@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;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body, html {
    background: #0a0a1f;
    color: #eef0fb;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

a {
    text-decoration: none;
}

/* ---- Background layers ---- */
/* Fixed behind everything; content sections below are lifted to z-index 2+
   so nothing is ever hidden behind the animation while scrolling. */

#bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.28), transparent 55%),
        radial-gradient(ellipse at 80% 15%, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(139, 92, 246, 0.2), transparent 60%),
        #08081a;
}

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

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    background: rgba(10, 10, 31, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 130, 255, 0.15);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #f5f4ff;
}

.logo span {
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    display: inline-block;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
    filter: brightness(1.08);
}

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

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

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

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

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .sub {
    margin: 1.75rem auto 0;
    max-width: 680px;
    font-size: 1.15rem;
    line-height: 1.65;
    color: #c7cae8;
}

.domain-pill {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(124, 58, 237, 0.14);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e6e0ff;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

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

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

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

.cards-heading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 3rem;
    color: #f5f4ff;
    font-weight: 600;
}

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

/* Card background is a solid dark panel rather than a near-transparent
   overlay so heading/body contrast holds regardless of what the canvas
   animation is doing behind it. */
.card {
    background: linear-gradient(180deg, rgba(35, 30, 82, 0.65), rgba(14, 12, 36, 0.65));
    border: 1px solid rgba(148, 130, 255, 0.18);
    border-radius: 18px;
    padding: 38px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(59, 42, 140, 0.35);
    border-color: rgba(167, 139, 250, 0.5);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #f5f4ff;
    font-weight: 600;
}

.card p {
    color: #c7cae8;
    line-height: 1.6;
    font-size: 0.98rem;
}

@media (max-width: 480px) {
    .card { padding: 28px; }
}

/* ---- CTA ---- */

.cta {
    position: relative;
    z-index: 2;
    padding: 10vh 6vw 14vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
}

.signal-status {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
}

.signal-cta {
    display: inline-block;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 20px 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    margin-bottom: 1.75rem;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 55px rgba(124, 58, 237, 0.55);
    filter: brightness(1.1);
}

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

.signal-sub {
    color: #b6b9de;
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .signal-cta { width: 100%; padding: 18px 24px; font-size: 1rem; }
    .cta { padding: 8vh 6vw 10vh; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   contrast, background, and spacing live here instead so it stays legible over
   the fixed background/canvas layers. Padding kept symmetric top/bottom. */

footer {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #c7cae8;
    background: rgba(8, 8, 26, 0.6);
    border-top: 1px solid rgba(148, 130, 255, 0.15);
}

footer a {
    color: #c4b5fd;
}

footer div {
    margin: 4px 0;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-link,
    .signal-cta,
    .card {
        transition: none !important;
    }
}
