@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: #05070f;
    --bg-1: #0a0f1e;
    --accent-cyan: #4fd8ff;
    --accent-blue: #6c8bff;
    --accent-violet: #9d6cff;
    --accent-teal: #35e6c4;
    --text-primary: #f1f5fc;
    --text-muted: #a9b7d1;
    --border-soft: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(16, 22, 38, 0.55);
}

* { box-sizing: border-box; }

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

body {
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    position: relative;
}

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

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

/* ---- Background ---- */

.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(76, 128, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(157, 108, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(53, 230, 196, 0.10), transparent 65%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: drift-bg 26s ease-in-out infinite;
}

@keyframes drift-bg {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    50%  { background-position: 30% 20%, 70% 30%, 60% 80%, 0 0; }
    100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
}

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

@media (prefers-reduced-motion: reduce) {
    .bg-gradient { animation: none; }
}

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

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

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

.wordmark span {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    display: inline-flex; align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600; font-size: 0.92rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    color: #061018;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 216, 255, 0.35);
    filter: brightness(1.08);
    outline: none;
}

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

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

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

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

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(79, 216, 255, 0.06);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.12;
    max-width: 900px;
    margin: 0;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

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

.hero .subtitle {
    margin-top: 26px;
    max-width: 680px;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .hero {
        padding-top: max(12vh, 96px);
        padding-bottom: 6vh;
    }
    .hero .subtitle { max-width: 100%; }
}

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

.cards-section {
    position: relative;
    z-index: 2;
    padding: 6vh 6vw 10vh;
}

.grid {
    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(--border-soft);
    border-radius: 18px;
    padding: 38px 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), var(--accent-teal));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    border-color: rgba(79, 216, 255, 0.35);
}

.card .icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(79, 216, 255, 0.18), rgba(157, 108, 255, 0.18));
    border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
}

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

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

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

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

/* ---- Signal Line / CTA ---- */

.cta {
    position: relative;
    z-index: 2;
    padding: 8vh 6vw 16vh;
}

.signal-line {
    position: relative;
    z-index: 2;
    text-align: center;
}

.signal-inner {
    max-width: 600px;
    margin: 0 auto;
}

.signal-status {
    color: var(--accent-teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.signal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 46px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #04101a;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
    box-shadow: 0 10px 40px rgba(108, 139, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 50px rgba(108, 139, 255, 0.45);
    filter: brightness(1.06);
    outline: none;
}

.signal-cta:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

.signal-sub {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .cta { padding: 6vh 6vw 12vh; }
    .signal-cta { display: flex; width: 100%; padding: 16px 24px; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing and dark-theme contrast live here instead. */

footer {
    position: relative;
    z-index: 2;
    padding: 24px 6vw;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-0);
    border-top: 1px solid var(--border-soft);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: var(--accent-cyan);
}
