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

:root {
    --bg: #0a0f1c;
    --bg-alt: #0d1322;
    --surface: #131b2e;
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-muted: #93a1b8;
    --blue: #4f8ef7;
    --blue-light: #7db1ff;
    --grey: #a3b0c7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

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

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

img, svg, canvas {
    display: block;
}

/* ---------- Background animation canvas ---------- */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Nav ---------- */
#site-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
    padding: 26px 0;
    background: rgba(10, 15, 28, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: padding 250ms ease, background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

#site-nav.nav-scrolled {
    padding: 14px 0;
    background: rgba(10, 15, 28, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-bottom-color: var(--surface-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    transition: font-size 250ms ease;
}

.nav-scrolled .logo {
    font-size: 1.15rem;
}

.logo-mark {
    width: 20px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
    background: linear-gradient(160deg, var(--blue), var(--blue-light));
    clip-path: polygon(50% 0%, 100% 20%, 100% 55%, 50% 100%, 0% 55%, 0% 20%);
    transition: width 250ms ease, height 250ms ease;
}

.nav-scrolled .logo-mark {
    width: 17px;
    height: 20px;
}

.logo .accent {
    color: var(--blue-light);
}

.nav-link {
    display: inline-block;
    background: var(--blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: padding 250ms ease, font-size 250ms ease, background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.nav-scrolled .nav-link {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.nav-link:hover {
    background: var(--blue-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 142, 247, 0.35);
}

.nav-link:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

/* ---------- Shared layout ---------- */
main {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    z-index: 2;
    padding: 90px 32px;
}

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

/* ---------- Hero ---------- */
.hero {
    padding-top: 12vh;
    padding-bottom: 80px;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-light);
    border: 1px solid rgba(79, 142, 247, 0.35);
    background: rgba(79, 142, 247, 0.08);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 26px;
}

.hero-sub {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

/* ---------- Cards ---------- */
.cards-section {
    padding-top: 20px;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 38px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(79, 142, 247, 0.4);
}

.card-icon {
    width: 40px;
    height: 46px;
    margin-bottom: 22px;
    background: linear-gradient(160deg, var(--blue), var(--blue-light));
    clip-path: polygon(50% 0%, 100% 20%, 100% 55%, 50% 100%, 0% 55%, 0% 20%);
    opacity: 0.9;
}

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

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

/* ---------- CTA ---------- */
.cta-section {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 130px;
}

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

.signal-status {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--blue-light);
    margin-bottom: 22px;
}

.signal-cta {
    display: inline-block;
    background: var(--blue);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    padding: 20px 44px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(79, 142, 247, 0.3);
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.signal-cta:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(79, 142, 247, 0.45);
}

.signal-cta:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 3px;
}

.signal-sub {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   styling lives here so it stays readable over the dark theme and fixed canvas. */
footer {
    position: relative;
    z-index: 2;
    background: var(--bg);
    text-align: center;
    padding: 28px 32px;
    color: var(--grey);
    font-size: 0.82rem;
    border-top: 1px solid var(--surface-border);
}

footer a {
    color: var(--text-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .nav-inner {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 9px 14px;
        font-size: 0.82rem;
    }

    .nav-scrolled .logo {
        font-size: 0.98rem;
    }

    .nav-scrolled .logo-mark {
        width: 14px;
        height: 17px;
    }

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

    section {
        padding: 60px 20px;
    }

    .hero {
        padding-top: 14vh;
    }

    .card {
        padding: 28px;
    }

    .signal-cta {
        padding: 16px 30px;
        width: 100%;
    }
}
