@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --ink: #0a0f24;
    --ink-2: #121a3d;
    --gold: #d4af6a;
    --gold-bright: #e8c987;
    --ice: #7fa8d9;
    --text: #eef1fb;
    --muted: #aab4d4;
    --card-bg: rgba(255, 255, 255, 0.035);
    --card-border: rgba(212, 175, 106, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Background ─────────────────────────────────────────────────── */
/* Fixed layers use z-index 0/1 (never negative) so normal-flow content
   can be lifted above them with position: relative; z-index: 2+. */

.bg-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(45, 58, 110, 0.55), transparent 70%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink) 100%);
}

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

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 5vw, 64px);
    background: rgba(10, 15, 36, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 106, 0.12);
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
}

.logo .list-part {
    color: var(--gold-bright);
}

.logo .dot {
    color: var(--gold);
    font-size: 0.8em;
    padding: 0 2px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: var(--gold-bright);
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--gold-bright);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: transparent;
    color: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 106, 0.18);
    outline: none;
}

@media (max-width: 650px) {
    nav {
        padding: 16px 18px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .nav-link {
        padding: 8px 16px;
        font-size: 0.78rem;
    }
}

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

.hero {
    position: relative;
    z-index: 2;
    padding: 14vh 24px 10vh;
    padding-top: max(14vh, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    max-width: 16ch;
    color: var(--text);
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-bright);
}

.hero-sub {
    margin-top: 28px;
    max-width: 680px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    color: var(--muted);
}

@media (max-width: 480px) {
    .hero {
        padding-top: max(12vh, 90px);
        padding-bottom: 8vh;
    }
}

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

.cards-section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 10vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 40px 35px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 106, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 16px;
}

.card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text);
}

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

@media (max-width: 600px) {
    .cards-section {
        padding: 24px 18px 8vh;
        gap: 18px;
    }
    .card {
        padding: 30px 24px;
    }
}

/* ── CTA / Signal line ─────────────────────────────────────────────── */

.cta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 12vh 24px 16vh;
    max-width: 680px;
    margin: 0 auto;
}

.signal-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--ice);
}

.signal-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    padding: 18px 46px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(212, 175, 106, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(212, 175, 106, 0.4);
    filter: brightness(1.05);
    outline: none;
}

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

@media (max-width: 480px) {
    .signal-cta {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
}

/* ── Footer ─────────────────────────────────────────────────────── */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   styling lives here so it stays legible and above the fixed background/canvas
   layers instead of relying on Bootstrap margin utilities. */

footer {
    position: relative;
    z-index: 2;
    padding: 30px 20px 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--ink);
    border-top: 1px solid rgba(212, 175, 106, 0.15);
}

footer div {
    margin: 4px 0;
}

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