@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
    --bg-0: #080a0e;
    --bg-1: #0d1119;
    --bg-2: #121826;
    --ink: #eef1f6;
    --muted: #a7b0bf;
    --muted-2: #7d8695;
    --gold: #d8a656;
    --gold-light: #f0c579;
    --teal: #4fd1c5;
    --line: rgba(255,255,255,0.09);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
    margin: 0;
    background: var(--bg-0);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .wordmark{
    font-family: 'Sora', sans-serif;
}

/* ---- Background layers ----
   Fixed, non-negative z-index so the animation stays behind content
   but never falls below the page's own stacking context. ---- */

#bg-gradient{
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% -10%, #1a2233 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, #16202a 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}

#falcon-canvas{
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    display: block;
}

/* ---- Content layering ----
   All major sections sit above the fixed background/canvas layers. */

.hero,
.cards-section,
.cta,
.signal-line{
    position: relative;
    z-index: 2;
}

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

nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: rgba(8, 10, 14, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.wordmark{
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.wordmark .dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px 2px rgba(216,166,86,0.6);
    flex-shrink: 0;
}
.wordmark .spin-part{
    color: var(--gold-light);
    font-weight: 600;
}

.nav-link{
    display: inline-block;
    padding: 10px 22px;
    background: var(--gold);
    color: #14100a;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--gold);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible{
    background: var(--gold-light);
    box-shadow: 0 6px 22px rgba(216,166,86,0.35);
    transform: translateY(-2px);
}
.nav-link:focus-visible{ outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 650px) {
    nav { padding: 18px 5%; }
    .wordmark { font-size: 1.1rem; }
}

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

.hero{
    padding: 14vh 32px 8vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .eyebrow{
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1{
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 26px;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero h1 .accent{
    background: linear-gradient(100deg, var(--gold-light), var(--gold) 60%, var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p{
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: var(--muted);
}

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

.cards-section{
    padding: 6vh 32px 10vh;
}
.cards-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.card{
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px 35px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover{
    transform: translateY(-6px);
    border-color: rgba(216,166,86,0.4);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.card .icon{
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216,166,86,0.12);
    border: 1px solid rgba(216,166,86,0.3);
    margin-bottom: 20px;
}
.card .icon svg{ width: 20px; height: 20px; }
.card h3{
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ink);
}
.card p{
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 600px) {
    .card { padding: 30px 24px; }
}

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

.cta{
    padding: 10vh 32px 14vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status{
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    margin: 0 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.signal-status::before{
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px 3px rgba(79,209,197,0.55);
    display: inline-block;
}

.signal-cta{
    display: inline-block;
    padding: 18px 44px;
    background: linear-gradient(100deg, var(--gold-light), var(--gold));
    color: #14100a;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 999px;
    margin: 0 0 20px;
    border: 1px solid var(--gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.signal-cta:hover,
.signal-cta:focus-visible{
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(216,166,86,0.4);
}
.signal-cta:focus-visible{ outline: 2px solid var(--teal); outline-offset: 4px; }

.signal-sub{
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted-2);
}

/* ---- Footer (markup served via SSI - styling only) ----
   Solid background + explicit light color keeps footer text legible
   over the fixed background/canvas layers. */

footer{
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 26px 32px 40px;
    font-size: 0.82rem;
    color: var(--muted);
    background: var(--bg-1);
    border-top: 1px solid var(--line);
}
footer div{ margin: 4px 0; }

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .nav-link, .signal-cta, .card{ transition: none; }
}

@media (max-width: 480px){
    nav{ padding: 14px 18px; }
    .wordmark{ font-size: 1.08rem; }
    .nav-link{ padding: 8px 16px; font-size: 0.82rem; }
    .hero{ padding: 12vh 18px 6vh; }
    .cards-section{ padding: 4vh 18px 7vh; }
    .card{ padding: 30px 24px; }
    .cta{ padding: 8vh 18px 10vh; }
    .signal-cta{ padding: 16px 32px; font-size: 0.98rem; }
}
