@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, #0a1712 0%, #0d1f17 45%, #0a1a13 100%);
    color: #f2ead9;
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

a {
    text-decoration: none;
}

/* ---- Background layers ---- */
/* Fixed, full-viewport, non-interactive; kept at z-index 0-1 so every
   content section (declared further down) renders above it. */

#scanCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(10, 23, 18, 0) 0%, rgba(8, 17, 13, 0.55) 100%);
}

/* ---- Nav ---- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
    background: rgba(10, 20, 15, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: #f5efe0;
}

.wordmark span {
    background: linear-gradient(90deg, #f0c862, #6bbf8a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(240, 200, 98, 0.6);
    color: #f0c862;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: linear-gradient(90deg, #f0c862, #4caf6d);
    color: #0a1712;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.nav-link:focus-visible {
    outline: 2px solid #f0c862;
    outline-offset: 3px;
}

/* ---- Layout wrapper ---- */

main {
    position: relative;
    z-index: 10;
}

/* Major content sections stay above the fixed canvas/vignette (z-index 0-1)
   at every scroll position. */
.hero,
.cards-section,
.cta,
.signal-line {
    position: relative;
    z-index: 10;
}

/* ---- Hero ---- */

.hero {
    padding: 13vh 6vw 8vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #f8f3e5;
    max-width: 16ch;
}

.hero h1 .accent {
    background: linear-gradient(90deg, #f0c862, #4caf6d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 26px;
    max-width: 680px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(220, 226, 214, 0.72);
}

/* ---- Cards ---- */

.cards-section {
    padding: 4vh 6vw 10vh;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(20, 34, 26, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 38px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 200, 98, 0.55);
    box-shadow: 0 20px 40px rgba(6, 14, 10, 0.45);
}

.card .icon {
    font-size: 1.8rem;
    margin-bottom: 18px;
    display: inline-block;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0c862;
    margin-bottom: 14px;
}

.card p {
    color: rgba(220, 226, 214, 0.75);
    line-height: 1.6;
    font-size: 0.98rem;
}

/* ---- CTA / Signal line ---- */

.cta {
    padding: 6vh 6vw 14vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.signal-inner {
    max-width: 600px;
    margin: 0 auto;
}

.signal-status {
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6bbf8a;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.signal-cta {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0a1712;
    background: linear-gradient(90deg, #f0c862, #6bbf8a);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.28);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.4);
    filter: brightness(1.05);
}

.signal-cta:focus-visible {
    outline: 2px solid #f0c862;
    outline-offset: 4px;
}

.signal-sub {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(220, 226, 214, 0.55);
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing and contrast live here instead, so the footer stays readable over
   the fixed canvas/vignette background at any scroll position. */

footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 24px 6vw;
    font-size: 0.85rem;
    color: rgba(220, 226, 214, 0.65);
    background: rgba(9, 18, 14, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: #f0c862;
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
    nav {
        padding: 14px 5vw;
    }

    .wordmark {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 12vh;
        padding-bottom: 6vh;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards-section {
        padding-bottom: 6vh;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 28px;
    }

    .signal-cta {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
