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

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: #06121f;
}

body {
    font-family: 'Inter', sans-serif;
    color: #eaf4ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

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

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

/* ---- Background layers ---- */
/* Fixed layers stay behind all content (z-index 0-1); every content
   section below is lifted to position: relative; z-index: 2+ so it
   always paints above them, including while scrolling. */

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 209, 172, 0.14), transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(79, 140, 255, 0.16), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(46, 230, 166, 0.10), transparent 60%),
        linear-gradient(180deg, #071a2b 0%, #061424 45%, #050f1c 100%);
}

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

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

nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    background: rgba(6, 18, 31, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(120, 200, 220, 0.12);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, #6ee7f0, #4f8cff 45%, #2ee6a6 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span.dot {
    color: #2ee6a6;
    -webkit-text-fill-color: #2ee6a6;
}

.nav-link {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 240, 0.5);
    color: #eaf4ff;
    background: rgba(79, 140, 255, 0.12);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
    background: rgba(79, 140, 255, 0.28);
    border-color: rgba(110, 231, 240, 0.9);
    transform: translateY(-1px);
}

.nav-link:focus-visible {
    outline: 2px solid #6ee7f0;
    outline-offset: 3px;
}

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

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

.hero {
    position: relative;
    z-index: 2;
    padding: 13vh 6vw 8vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 900px;
    background: linear-gradient(120deg, #eaf4ff 20%, #9fe8e0 55%, #7fb8ff 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 28px;
    max-width: 680px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #a9c1d6;
}

@media (max-width: 480px) {
    .hero { padding: 10vh 5vw 6vh; }
    .hero p { font-size: 1rem; }
}

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

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

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

.card {
    padding: 38px;
    border-radius: 18px;
    background: rgba(16, 38, 56, 0.55);
    border: 1px solid rgba(110, 231, 240, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(110, 231, 240, 0.45);
    box-shadow: 0 16px 40px rgba(10, 30, 45, 0.45);
}

.card .icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ee6a6, #4f8cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #06121f;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #eaf4ff;
}

.card p {
    font-size: 0.98rem;
    color: #a9c1d6;
    margin: 0;
}

@media (max-width: 480px) {
    .cards-section { padding: 3vh 5vw 8vh; }
    .cards { gap: 18px; }
    .card { padding: 28px; }
}

/* ---- CTA / Signal line ---- */

.cta,
.signal-line {
    position: relative;
    z-index: 2;
    padding: 10vh 6vw 14vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.signal-status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #2ee6a6;
    margin-bottom: 22px;
}

.signal-cta {
    display: inline-block;
    padding: 20px 48px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #06121f;
    background: linear-gradient(100deg, #6ee7f0, #4f8cff 50%, #2ee6a6 100%);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(79, 140, 255, 0.5);
}

.signal-cta:focus-visible {
    outline: 2px solid #eaf4ff;
    outline-offset: 4px;
}

.signal-sub {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a9c1d6;
}

@media (max-width: 480px) {
    .cta,
    .signal-line {
        padding: 8vh 5vw 10vh;
    }
    .signal-cta {
        padding: 16px 32px;
        font-size: 1rem;
        width: 100%;
    }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain.
   It renders as a plain in-flow element after </main>, so without an explicit
   stacking context it would paint underneath the fixed background/canvas
   layers above. Lifting it to position: relative with the same z-index as
   the other content sections keeps it visible and readable while scrolling. */

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 6vw;
    font-size: 0.85rem;
    color: #a9c1d6;
    background: rgba(6, 18, 31, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(120, 200, 220, 0.12);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: #6ee7f0;
}

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