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

:root{
    --bg: #05080d;
    --panel: #0b121b;
    --panel-border: rgba(143, 227, 255, 0.14);
    --ink: #eaf3f6;
    --muted: #9db0bb;
    --accent: #3ee6d0;
    --accent-2: #4f8cff;
}

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

html { scroll-behavior: smooth; overflow-x: hidden;
    background-color: var(--bg);
}

body{
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

/* ---- Layered background ---- */

#bg-static{
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% -10%, rgba(79,140,255,0.14), transparent 55%),
        radial-gradient(ellipse at 85% 110%, rgba(62,230,208,0.10), transparent 55%),
        var(--bg);
}

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

main, footer, section{
    position: relative;
    z-index: 10;
}

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

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 8, 13, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

header.nav-scrolled{
    padding: 13px 5vw;
    background: rgba(5, 8, 13, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce){
    header{ transition: none; }
}

.wordmark{
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: font-size 0.25s ease;
}

header.nav-scrolled .wordmark{
    font-size: 1.08rem;
}

@media (prefers-reduced-motion: reduce){
    .wordmark{ transition: none; }
}
.wordmark span:first-child{ color: var(--ink); font-weight: 700; }
.wordmark span:last-child{ color: var(--accent); font-weight: 500; }

.nav-link{
    display: inline-block;
    border: 1px solid rgba(62,230,208,0.4);
    color: var(--accent);
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: padding 0.25s ease, font-size 0.25s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

header.nav-scrolled .nav-link{
    padding: 7px 16px;
    font-size: 0.76rem;
}

@media (prefers-reduced-motion: reduce){
    .nav-link{ transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
}
.nav-link:hover,
.nav-link:focus-visible{
    background: var(--accent);
    color: #04110f;
    transform: translateY(-1px);
}
.nav-link:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 480px){
    header{ padding: 14px 5vw; }
    .wordmark{ font-size: 1.05rem; }
    .nav-link{ padding: 8px 14px; font-size: 0.78rem; }

    header.nav-scrolled{ padding: 11px 5vw; }
    header.nav-scrolled .wordmark{ font-size: 0.92rem; }
    header.nav-scrolled .nav-link{ padding: 6px 12px; font-size: 0.7rem; }
}

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

.hero{
    padding: 14vh 6vw 8vh;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eyebrow{
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 22px;
    font-weight: 600;
}

.hero h1{
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 26px;
    max-width: 16ch;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.hero h1 em{
    font-style: normal;
    color: var(--accent);
}

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

@media (max-width: 480px){
    .hero{ padding: 12vh 6vw 6vh; min-height: 60vh; }
}

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

.cards{
    padding: 4vh 6vw 10vh;
    max-width: 1200px;
    margin: 0 auto;
}

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

.card{
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 38px 34px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover{
    transform: translateY(-6px);
    border-color: rgba(62,230,208,0.4);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}

.card .tag{
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 16px;
}

.card h3{
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ink);
}

.card p{
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

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

/* ---- CTA ---- */

.signal-line{
    padding: 12vh 6vw 14vh;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.signal-status{
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.signal-cta{
    display: inline-block;
    background: var(--accent);
    color: #04110f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 17px 44px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 32px -12px rgba(62,230,208,0.5);
}
.signal-cta:hover,
.signal-cta:focus-visible{
    transform: translateY(-2px);
    box-shadow: 0 16px 38px -10px rgba(62,230,208,0.65);
}
.signal-cta:focus-visible{ outline: 2px solid var(--ink); outline-offset: 4px; }

.signal-sub{
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 480px){
    .signal-cta{ padding: 15px 34px; width: 100%; }
}

/* ---- Footer (styling only - content lives in _footer.html) ---- */

footer{
    color: rgba(157,176,187,0.75);
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
