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

:root {
    --bg-a: #06070b;
    --bg-b: #10121e;
    --text: #f5f3ec;
    --muted: #a7a9bb;
    --muted-2: #7d7f92;
    --accent: #ffb454;
    --accent-2: #8b5cf6;
    --card-bg: rgba(16, 18, 30, 0.55);
    --card-border: rgba(255, 255, 255, 0.09);
    --card-border-hover: rgba(255, 180, 84, 0.45);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0; padding: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--bg-b) 0%, var(--bg-a) 62%);
    color: var(--text);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.mono {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

/* ── Background layers ─────────────────────────────────────────────
   Fixed, non-interactive layers behind all page content. Kept at
   z-index 0/1 (never negative) so they stay under the .content
   wrapper (z-index 10) and the footer (z-index 20) at every scroll
   position. ────────────────────────────────────────────────────── */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 22% 15%, rgba(139, 92, 246, 0.12), transparent 45%),
        radial-gradient(circle at 78% 8%, rgba(255, 180, 84, 0.10), transparent 40%),
        linear-gradient(180deg, var(--bg-a) 0%, #0b0d17 45%, #08090f 100%);
    pointer-events: none;
}

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

.content {
    position: relative;
    z-index: 10;
}

/* ── Nav ────────────────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    background: rgba(6, 7, 11, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: var(--text);
}

.wordmark .accent {
    color: var(--accent);
}

.wordmark .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.6);
    animation: pulseDot 2.6s ease-out infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 180, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 180, 84, 0); }
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid rgba(255, 180, 84, 0.55);
    border-radius: 100px;
    color: var(--text);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--accent);
    color: #10121e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 180, 84, 0.25);
    outline: none;
}

@media (max-width: 650px) {
    nav { padding: 16px 5vw; }
    .wordmark { font-size: 1rem; }
    .nav-link { padding: 8px 14px; font-size: 0.72rem; }
}

/* ── Hero ───────────────────────────────────────────────────────── */

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 16px;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 28px;
}

.eyebrow .live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b5e;
    box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.6);
    animation: pulseDot 1.8s ease-out infinite;
}

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

.hero h1 .line-2 {
    display: block;
    background: linear-gradient(96deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

@media (max-width: 600px) {
    .hero { padding: 12vh 6vw 6vh; }
    .hero p { font-size: 0.98rem; }
}

/* ── Cards ──────────────────────────────────────────────────────── */

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 38px 35px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--card-border-hover);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

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

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

@media (max-width: 600px) {
    .cards { padding: 4vh 6vw 8vh; gap: 18px; }
    .card { padding: 30px 26px; }
}

/* ── CTA ────────────────────────────────────────────────────────── */

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

.cta h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 34px;
    color: var(--text);
}

.signal-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 20px;
}

.signal-cta {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: #10121e;
    background: linear-gradient(96deg, var(--accent) 0%, var(--accent-2) 100%);
    padding: 18px 44px;
    border-radius: 100px;
    margin: 0 0 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 12px 30px rgba(255, 180, 84, 0.18);
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.3);
    filter: brightness(1.06);
    outline: none;
}

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

@media (max-width: 600px) {
    .cta { padding: 10vh 6vw 9vh; }
    .signal-cta { padding: 16px 32px; font-size: 0.95rem; width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────────────────
   Markup is injected via SSI (_footer.html) and can't be edited here.
   It renders as a plain, non-positioned block after .content, so
   without help it would sit *behind* the fixed background/canvas
   layers in paint order. Promote it to its own stacking context above
   everything else and give it an opaque backdrop so it stays readable
   at any scroll position. ────────────────────────────────────────── */

footer {
    position: relative;
    z-index: 20;
    background: var(--bg-a);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5vh 6vw 4vh;
}

footer div {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wordmark .dot, .eyebrow .live { animation: none; }
}
