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

:root {
    --navy-950: #061626;
    --navy-900: #0b2540;
    --navy-800: #113456;
    --navy-700: #164066;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;
    --text-primary: #f2f8f9;
    --text-muted: #b9d4e0;
    --text-faint: #8fadbe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, #0a3a38 100%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0;
}

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

img, svg {
    display: block;
    max-width: 100%;
}

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

.bg-base {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(45, 212, 191, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(96, 165, 250, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

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

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

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-sizing: border-box;
    background: rgba(6, 22, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.wordmark-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    background:
        linear-gradient(var(--navy-950), var(--navy-950)) padding-box,
        linear-gradient(135deg, var(--teal-300), var(--blue-400)) border-box;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.55);
    flex-shrink: 0;
}

.wordmark .accent {
    background: linear-gradient(120deg, var(--teal-300), var(--blue-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--teal-400), var(--blue-400));
    color: #052026;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(45, 212, 191, 0.28);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(45, 212, 191, 0.45);
}

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

@media (max-width: 650px) {
    .nav-inner {
        padding: 14px 18px;
    }

    .wordmark {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

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

.hero {
    position: relative;
    z-index: 10;
    padding: 14vh 32px 10vh;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-300);
    background: rgba(45, 212, 191, 0.10);
    border: 1px solid rgba(45, 212, 191, 0.30);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 28px;
    color: var(--text-primary);
}

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

.halo-phrase {
    position: relative;
    display: inline-block;
    padding: 0 0.12em;
}

.halo-phrase::before {
    content: "";
    position: absolute;
    inset: -0.32em -0.42em;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.38) 0%, rgba(94, 234, 212, 0.14) 55%, rgba(94, 234, 212, 0) 75%);
    box-shadow: 0 0 26px 6px rgba(94, 234, 212, 0.22);
    animation: halo-pulse 3.6s ease-in-out infinite;
}

.halo-phrase.blue::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.38) 0%, rgba(96, 165, 250, 0.14) 55%, rgba(96, 165, 250, 0) 75%);
    box-shadow: 0 0 26px 6px rgba(96, 165, 250, 0.22);
    animation-delay: 1.1s;
}

@keyframes halo-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

@media (max-width: 480px) {
    .hero {
        padding: 12vh 20px 8vh;
    }

    .hero h1 {
        line-height: 1.2;
    }
}

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

.cards-section {
    position: relative;
    z-index: 10;
    padding: 6vh 32px 10vh;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 22, 38, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.2);
    border-color: rgba(94, 234, 212, 0.35);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), rgba(96, 165, 250, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
}

.card-icon::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(240, 250, 250, 0.75);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

@media (max-width: 480px) {
    .cards-section {
        padding: 4vh 20px 8vh;
    }

    .card {
        padding: 28px 24px;
    }
}

/* ---- Signal Line (CTA) ---- */

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

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

.signal-status {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    color: var(--teal-300);
    font-weight: 600;
    margin: 0 0 22px;
}

.signal-cta {
    display: inline-block;
    margin: 0 auto 20px;
    padding: 18px 44px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--teal-400), var(--blue-400));
    color: #052026;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(45, 212, 191, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(45, 212, 191, 0.5);
}

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

.signal-sub {
    color: var(--text-faint);
    font-size: 0.92rem;
    margin: 4px 0 0;
}

@media (max-width: 480px) {
    .signal-line {
        padding: 8vh 20px 10vh;
    }

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

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   contrast, background and spacing live here so the footer stays readable
   over the fixed canvas animation and gradient background. */

footer {
    position: relative;
    z-index: 10;
    padding: 28px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(6, 22, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer div {
    margin: 4px 0;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
