:root {
    --bg: #f4f7ff;
    --surface: #ffffff;
    --surface-soft: #edf2ff;
    --ink: #091026;
    --muted: #58637f;
    --line: #dbe3ff;
    --blue: #0717a4;
    --blue-deep: #030843;
    --blue-dark: #050d73;
    --cyan: #38d5ff;
    --electric: #78f3ff;
    --yellow: #f5c542;
    --coral: #ff6b8b;
    --graphite: #07112d;
    --shadow: 0 24px 70px rgba(7, 23, 164, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Space Grotesk", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(7, 23, 164, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(7, 23, 164, 0.045) 1px, transparent 1px),
        var(--bg);
    background-size: 44px 44px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(7, 23, 164, 0.2), transparent 34%),
        linear-gradient(300deg, rgba(56, 213, 255, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(120, 243, 255, 0.08), transparent 58%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(115deg, transparent 0 47%, rgba(7, 23, 164, 0.1) 47% 48%, transparent 48% 100%),
        linear-gradient(65deg, transparent 0 63%, rgba(56, 213, 255, 0.13) 63% 64%, transparent 64% 100%);
}

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

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

.page-shell {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    width: min(calc(100% - 32px), 1180px);
    min-height: 72px;
    margin: 16px auto 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(219, 231, 225, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 50px rgba(17, 23, 19, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.brand img {
    width: 158px;
    height: 44px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(247, 251, 249, 0.9);
}

.site-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: var(--surface);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 35px rgba(7, 23, 164, 0.28);
}

.btn-dark {
    color: #ffffff;
    background: var(--graphite);
    box-shadow: 0 12px 30px rgba(17, 23, 19, 0.16);
}

.btn-light {
    color: var(--graphite);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.72);
}

.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    margin-top: -88px;
    padding: 190px clamp(24px, 5vw, 84px) 88px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 42px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 30%, rgba(56, 213, 255, 0.22), transparent 34%),
        linear-gradient(100deg, rgba(3, 8, 67, 0.98) 0%, rgba(7, 23, 164, 0.92) 50%, rgba(3, 8, 67, 0.96) 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, black, transparent 92%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 820px);
    margin: 0 auto;
    text-align: center;
}

.cortex-stage {
    width: min(84vw, 60vh, 680px);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.cortex-field {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.cortex-field::before,
.cortex-field::after {
    content: "";
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 1px solid rgba(120, 243, 255, 0.42);
    box-shadow:
        inset 0 0 34px rgba(56, 213, 255, 0.26),
        0 0 54px rgba(56, 213, 255, 0.32);
    animation: cortexRing 5.4s linear infinite;
}

.cortex-field::after {
    inset: 18%;
    border-color: rgba(255, 255, 255, 0.24);
    animation-duration: 7.2s;
    animation-direction: reverse;
}

.cortex-field img {
    position: relative;
    z-index: 4;
    width: min(108%, 700px);
    height: auto;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
    filter:
        drop-shadow(0 0 18px rgba(120, 243, 255, 0.88))
        drop-shadow(0 0 44px rgba(7, 23, 164, 0.7))
        saturate(1.18)
        contrast(1.08);
    animation: cortexFloat 5.6s ease-in-out infinite;
}

.cortex-pulse,
.cortex-lightning {
    position: absolute;
    pointer-events: none;
}

.cortex-pulse {
    inset: 28%;
    z-index: 1;
    border-radius: 50%;
    border: 1px solid rgba(120, 243, 255, 0.34);
    animation: cortexPulse 3.4s ease-out infinite;
}

.pulse-two {
    animation-delay: 1.1s;
}

.pulse-three {
    animation-delay: 2.2s;
}

.cortex-lightning {
    z-index: 5;
    width: min(108%, 700px);
    aspect-ratio: 1;
    overflow: visible;
    mix-blend-mode: screen;
}

.neural-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 46 18 12 28 20 620;
    stroke-dashoffset: 812;
    opacity: 0;
    filter: url("#shockGlow");
    animation-name: none;
    animation-duration: 2.1s, 90ms;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1), steps(2, end);
    animation-iteration-count: 1, infinite;
}

.shock-pattern.is-active .neural-path {
    animation-name: neuralTravel, neuralJitter;
}

.path-main {
    stroke: #ffffff;
    stroke-width: 10;
    stroke-dasharray: 68 20 16 34 24 700;
    animation-duration: 2.35s, 90ms;
}

.path-branch-one {
    animation-delay: 0.18s;
    animation-duration: 1.85s, 90ms;
}

.path-branch-two {
    stroke: #38d5ff;
    animation-delay: 0.34s;
    animation-duration: 1.95s, 90ms;
}

.path-branch-three {
    stroke: #ffffff;
    animation-delay: 0.12s;
    animation-duration: 1.8s, 90ms;
}

.path-branch-four {
    stroke: #ffffff;
    stroke-width: 6;
    animation-delay: 0.26s;
    animation-duration: 1.95s, 90ms;
}

.path-branch-five {
    stroke: #38d5ff;
    animation-delay: 0.4s;
    animation-duration: 1.7s, 90ms;
}

.path-branch-six {
    stroke: #ffffff;
    stroke-width: 6;
    animation-delay: 0.08s;
    animation-duration: 2.05s, 90ms;
}

.path-branch-seven {
    animation-delay: 0.14s;
    animation-duration: 1.75s, 90ms;
}

.path-branch-eight {
    stroke: #ffffff;
    stroke-width: 6;
    animation-delay: 0.28s;
    animation-duration: 1.9s, 90ms;
}

.path-branch-nine {
    stroke: #38d5ff;
    animation-delay: 0.42s;
    animation-duration: 1.8s, 90ms;
}

.path-branch-ten {
    stroke: #ffffff;
    animation-delay: 0.06s;
    animation-duration: 2s, 90ms;
}

.path-branch-eleven,
.path-branch-fifteen,
.path-branch-eighteen {
    stroke: #38d5ff;
}

.path-branch-twelve,
.path-branch-sixteen,
.path-branch-nineteen {
    stroke: #ffffff;
    stroke-width: 6;
}

.shock-forks {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    filter: url("#shockGlow");
    animation-name: none;
    animation-duration: 1.8s;
    animation-timing-function: steps(2, end);
    animation-iteration-count: 1;
}

.shock-forks path {
    stroke-dasharray: 28 190;
    stroke-dashoffset: 218;
    vector-effect: non-scaling-stroke;
    animation-name: none;
    animation-duration: 1.8s;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
    animation-iteration-count: 1;
}

.shock-pattern.is-active.shock-forks {
    animation-name: forkBurst;
}

.shock-pattern.is-active.shock-forks path {
    animation-name: forkTravel;
}

.shock-forks.pattern-two,
.shock-forks.pattern-five {
    stroke: var(--electric);
}

.neural-sparks circle {
    fill: #ffffff;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: sparkNode 2.7s ease-in-out infinite;
}

.neural-sparks circle:nth-child(2) { animation-delay: 0.16s; }
.neural-sparks circle:nth-child(3) { animation-delay: 0.32s; }
.neural-sparks circle:nth-child(4) { animation-delay: 0.48s; }
.neural-sparks circle:nth-child(5) { animation-delay: 0.64s; }
.neural-sparks circle:nth-child(6) { animation-delay: 0.8s; }
.neural-sparks circle:nth-child(7) { animation-delay: 0.96s; }
.neural-sparks circle:nth-child(8) { animation-delay: 1.12s; }
.neural-sparks circle:nth-child(9) { animation-delay: 1.28s; }
.neural-sparks circle:nth-child(10) { animation-delay: 1.44s; }
.neural-sparks circle:nth-child(11) { animation-delay: 1.6s; }
.neural-sparks circle:nth-child(12) { animation-delay: 1.76s; }
.neural-sparks circle:nth-child(13) { animation-delay: 1.92s; }
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: var(--electric);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin: 0 auto 24px;
    font-size: 4.25rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.22rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    width: min(100%, 920px);
    margin: 38px auto 0;
}

.signal-row div {
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.signal-row strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.signal-row .signal-title {
    max-width: 180px;
    min-height: 52px;
    font-size: 1.12rem;
    line-height: 1.18;
}

.signal-row span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
}

.method-section,
.lab-section,
.journey-section,
.cta-section {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
}

.method-section {
    padding: 76px 0 42px;
}

.section-heading {
    width: min(100%, 720px);
    margin-bottom: 28px;
}

.section-heading.wide {
    width: min(100%, 920px);
}

.section-heading h2,
.journey-copy h2,
.cta-section h2 {
    margin-bottom: 0;
    font-size: 2.55rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.method-item,
.track-card,
.timeline-step,
.cta-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 50px rgba(17, 23, 19, 0.08);
}

.method-item {
    min-height: 286px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.method-item img {
    width: 52px;
    height: 52px;
    margin-bottom: auto;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-soft);
}

.method-item h3,
.track-card h3,
.timeline-step h3 {
    margin-bottom: 10px;
    font-size: 1.22rem;
    line-height: 1.2;
}

.method-item p,
.track-card p,
.timeline-step p,
.journey-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.lab-section {
    padding: 46px 0;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.track-card {
    position: relative;
    min-height: 360px;
    padding: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.track-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
}

.track-card::after {
    content: "";
    position: absolute;
    inset: auto 20px 112px 20px;
    height: 94px;
    border: 1px solid currentColor;
    border-radius: 8px;
    opacity: 0.28;
    transform: skewY(-8deg);
}

.track-card > * {
    position: relative;
    z-index: 1;
}

.track-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-weight: 900;
}

.track-card.analytics {
    color: #ffffff;
    background: linear-gradient(145deg, var(--blue-deep), var(--blue));
}

.track-card.science {
    color: #111713;
    background: linear-gradient(145deg, #f5c542, #f7fbf9 76%);
}

.track-card.ai {
    color: #ffffff;
    background: linear-gradient(145deg, var(--blue-dark), var(--coral));
}

.track-card.lab {
    color: #ffffff;
    background: linear-gradient(145deg, #0a155f, #38d5ff);
}

.track-card.analytics p,
.track-card.ai p,
.track-card.lab p {
    color: rgba(255, 255, 255, 0.78);
}

.journey-section {
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
    gap: 34px;
    align-items: start;
}

.journey-copy {
    position: sticky;
    top: 118px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-step {
    min-height: 132px;
    padding: 18px;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
}

.timeline-step span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 900;
    background: var(--graphite);
}

.timeline-step:nth-child(2) span {
    background: var(--blue);
}

.timeline-step:nth-child(3) span {
    color: var(--ink);
    background: var(--yellow);
}

.timeline-step:nth-child(4) span {
    background: var(--coral);
}

.cta-section {
    margin-top: 50px;
    margin-bottom: 56px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(3, 8, 67, 0.96), rgba(7, 23, 164, 0.9)),
        linear-gradient(90deg, rgba(56, 213, 255, 0.34) 1px, transparent 1px);
    background-size: auto, 26px 26px;
}

.cta-section .eyebrow {
    color: var(--electric);
}

.cta-section h2 {
    max-width: 760px;
}

.site-footer {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 26px 0 38px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease, transform 700ms ease;
}

[data-animate="slide-down"] {
    transform: translateY(-14px);
}

[data-animate="float-in"] {
    transform: translateY(24px) scale(0.96);
}

[data-animate="cortex-in"] {
    transform: translateY(18px) scale(0.92);
}

[data-animate="fade-left"] {
    transform: translateX(24px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@keyframes cortexFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes cortexRing {
    from {
        transform: rotate(0deg) scale(0.98);
    }
    50% {
        box-shadow:
            inset 0 0 44px rgba(56, 213, 255, 0.34),
            0 0 76px rgba(56, 213, 255, 0.42);
    }
    to {
        transform: rotate(360deg) scale(1.02);
    }
}

@keyframes cortexPulse {
    0% {
        opacity: 0.72;
        transform: scale(0.52);
    }
    100% {
        opacity: 0;
        transform: scale(1.82);
    }
}

@keyframes neuralTravel {
    0% {
        opacity: 0;
        stroke-dashoffset: 812;
    }
    4% {
        opacity: 1;
    }
    9% {
        opacity: 0.24;
    }
    14%,
    58% {
        opacity: 1;
    }
    68% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

@keyframes neuralJitter {
    0% {
        stroke-width: 4;
        filter: url("#cortexGlow");
    }
    50% {
        stroke-width: 10;
        filter: url("#shockGlow");
    }
    100% {
        stroke-width: 6;
        filter: url("#shockGlow");
    }
}

@keyframes forkBurst {
    0%,
    18%,
    28%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    19%,
    22%,
    26% {
        opacity: 1;
        transform: translate(1px, -1px);
    }
    24% {
        opacity: 0.32;
        transform: translate(-1px, 1px);
    }
}

@keyframes forkTravel {
    0% {
        stroke-dashoffset: 218;
    }
    62%,
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes sparkNode {
    0%,
    24%,
    100% {
        opacity: 0;
        transform: scale(0.72);
    }
    7%,
    12% {
        opacity: 1;
        transform: scale(1.45);
    }
    17% {
        opacity: 0.34;
        transform: scale(0.96);
    }
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 204px;
    }

    h1 {
        font-size: 3.35rem;
    }

    .method-grid,
    .track-grid,
    .journey-section {
        grid-template-columns: 1fr;
    }

    .journey-copy {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        top: 10px;
        width: min(calc(100% - 20px), 1180px);
        margin-top: 10px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .site-nav a {
        text-align: center;
        font-size: 0.84rem;
        padding-inline: 8px;
    }

    .hero {
        margin-top: -184px;
        padding: 360px 20px 62px;
    }

    .cortex-stage {
        width: min(92vw, 440px);
        margin-bottom: 18px;
    }

    .cortex-field img {
        width: min(112%, 450px);
        height: auto;
        padding: 0;
    }

    .cortex-lightning {
        width: min(112%, 450px);
    }

    h1 {
        font-size: 2.42rem;
        line-height: 1.03;
    }

    .hero-copy {
        font-size: 1.03rem;
    }

    .hero-actions,
    .signal-row,
    .site-footer,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn,
    .cta-section .btn {
        width: 100%;
    }

    .signal-row {
        display: grid;
    }

    .method-section,
    .lab-section,
    .journey-section,
    .cta-section,
    .site-footer {
        width: min(calc(100% - 32px), 1180px);
    }

    .section-heading h2,
    .journey-copy h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .method-item,
    .track-card {
        min-height: 270px;
    }

    .timeline-step {
        grid-template-columns: 54px 1fr;
        gap: 14px;
    }

    .timeline-step span {
        width: 48px;
        height: 48px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
