@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-0: #05070a;
    --bg-1: #0a0f16;
    --ink: #eef3f7;
    --muted: #97a6b5;
    --muted-2: #7c8fa1;
    --cyan: #35e6ff;
    --violet: #9b6bff;
    --amber: #ffc542;
    --line: rgba(255, 255, 255, 0.09);
    --card-bg: rgba(255, 255, 255, 0.035);
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

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

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

/* ── Background layers ─────────────────────────────────────────── */

.blueprint-bg,
.bg-fill {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 90% at 18% -10%, rgba(155, 107, 255, 0.16), transparent 55%),
        radial-gradient(110% 90% at 85% 8%, rgba(53, 230, 255, 0.13), transparent 55%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
}

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

/* ── Content base ───────────────────────────────────────────────── */
/* Lifts all page content above the fixed background/canvas layers. */

.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 clamp(20px, 5vw, 56px);
    background: rgba(5, 7, 10, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

.wordmark {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.wordmark span {
    color: var(--cyan);
}

.nav-link,
#buy_now_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--bg-0);
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-link:hover,
#buy_now_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 230, 255, 0.25);
    filter: brightness(1.06);
}

.nav-link:focus-visible,
#buy_now_link:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@media (max-width: 650px) {
    nav {
        padding: 16px 18px;
    }
    .wordmark {
        font-size: 1.1rem;
    }
    .nav-link,
    #buy_now_link {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

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

.hero {
    padding: 14vh 24px 9vh;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 22px;
    opacity: 0.9;
}

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

.hero h1 .accent {
    background: linear-gradient(120deg, var(--cyan), var(--violet) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    margin-top: 26px;
    max-width: 680px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--muted);
    font-weight: 400;
}

.hero .domain-tag {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

.domain-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px 2px rgba(53, 230, 255, 0.6);
}

@media (max-width: 600px) {
    .hero {
        padding: 12vh 18px 7vh;
        min-height: unset;
    }
    .hero .domain-tag {
        margin-top: 28px;
        font-size: 0.82rem;
    }
}

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

.cards-section {
    padding: 6vh 24px 12vh;
    max-width: 1180px;
    margin: 0 auto;
}

.cards-heading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.cards-sub {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 1rem;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px 35px;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(53, 230, 255, 0.35);
    background: rgba(255, 255, 255, 0.055);
}

.card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(53, 230, 255, 0.18), rgba(155, 107, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card .icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--cyan);
}

.card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

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

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

/* ── Signal Line (CTA) ─────────────────────────────────────────── */

.signal-line {
    padding: 10vh 24px 14vh;
    text-align: center;
    position: relative;
    z-index: 1;
}

.signal-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 600;
    margin: 0 0 26px;
}

.signal-cta,
#buy_now_bottom {
    display: inline-block;
    text-decoration: none;
    color: var(--bg-0);
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    padding: 18px 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.signal-cta:hover,
#buy_now_bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(53, 230, 255, 0.3);
    filter: brightness(1.06);
}

.signal-cta:focus-visible,
#buy_now_bottom:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

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

@media (max-width: 600px) {
    .signal-cta,
    #buy_now_bottom {
        padding: 16px 32px;
        font-size: 0.98rem;
    }
}

/* ── Footer (rendered via SSI, styling only) ───────────────────── */
/* Positioned above the fixed background/canvas layers, with */
/* explicit contrast so it stays readable regardless of scroll. */

footer {
    position: relative;
    z-index: 20;
    background: var(--bg-1);
    color: var(--muted-2);
    border-top: 1px solid var(--line);
    padding: 28px 24px 40px;
    font-size: 0.82rem;
}

footer div {
    margin: 4px 0;
}

/* ── Motion ─────────────────────────────────────────────────────── */

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