/* Landing page and 404: the single-screen hero with the floating name pill.
   These pages set "minimal": true in their meta, so the layout swaps the
   full navbar for the pill in partials/pill.html. */

/* ---------------------------------------------------------------- floating pill */
.index-header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    padding: .75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.header-logo { display: flex; align-items: center; gap: .75rem; }
.header-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2C3E50;
}
.header-logo-text { font-size: 1.25rem; font-weight: 800; color: #2C3E50; }
.header-logo:hover .header-logo-text { color: #34495E; }

/* ---------------------------------------------------------------- hero */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: var(--white);
    text-align: center;
    padding: 100px var(--s-3) var(--s-6);
}

.landing-content { max-width: 800px; animation: landingFade 1s ease-in; }

@keyframes landingFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.landing-name {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: .75rem;
}

.landing-title {
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .75rem;
}

.landing-tagline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.landing-extra {
    display: inline-block;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: .7rem 1rem;
    border-radius: var(--radius);
    background: rgba(var(--accent-rgb), .22);
    border: 1px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .92);
    font-size: .95rem;
}

.landing-cta { display: flex; justify-content: center; margin-bottom: var(--s-3); }

/* ---------------------------------------------------------------- the glowing button */
@keyframes glowPulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); }
    50%  { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(var(--accent-rgb), .3); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}
@keyframes glowRing {
    0%, 100% { box-shadow: 0 0 10px rgba(var(--accent-rgb), .5), 0 0 20px rgba(var(--accent-rgb), .3), 0 0 30px rgba(var(--accent-rgb), .2); }
    50%      { box-shadow: 0 0 20px rgba(var(--accent-rgb), .8), 0 0 30px rgba(var(--accent-rgb), .6), 0 0 40px rgba(var(--accent-rgb), .4); }
}

.btn-glow {
    position: relative;
    padding: 12px 32px;
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), .5);
    animation: glowPulse 2s infinite ease-in-out;
}
.btn-glow::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 4px;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark), var(--accent));
    opacity: .5;
    z-index: -1;
    animation: glowRing 2s infinite ease-in-out;
}
.btn-glow:hover {
    background: var(--accent-dark);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), .8);
    animation: none;
}

/* ---------------------------------------------------------------- quiet section links */
.landing-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem 0;
    font-size: .92rem;
}
.landing-links a { color: rgba(255, 255, 255, .7); padding: 0 .75rem; position: relative; }
.landing-links a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transform: translateY(-50%);
}
.landing-links a:hover { color: var(--white); }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 1440px) {
    .landing-name { font-size: 4rem; }
}
@media (max-width: 767px) {
    .landing { min-height: auto; padding: 120px var(--s-2) 3rem; }
    .landing-name { font-size: 2.5rem; }
    .landing-title { font-size: 1.1rem; }
    .landing-tagline { font-size: .95rem; }
    .landing-photo { width: 100px; height: 100px; }
    .btn-glow { width: 100%; max-width: 300px; text-align: center; justify-content: center; }
}
@media (max-width: 640px) {
    .index-header { top: 10px; left: 10px; right: 10px; padding: .6rem 1rem; }
    .header-logo-img { width: 32px; height: 32px; }
    .header-logo-text { font-size: 1rem; }
}
