﻿/* =========================================================
   TOKENS
========================================================= */
:root {
    --bg: #070a14;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.68);
    --line: rgba(255,255,255,0.12);
    --shadow: 0 12px 40px rgba(0,0,0,0.45);
    --radius: 18px;
    --max: 1120px;
    --pad: 20px;
    --gridGap: 14px;
    /* JS-driven */
    --stageAlpha: 1;
    --stageShift: 0px;
    --curtainY: 100vh;
    --curtainT: 0;
    /* Hero optical nudge */
    --heroNudgeY: -90px;
    --scrollCueOpacity: 1;
    /* Strong CTA style shared by hero + nav CTA buttons */
    --btnStrongStart: rgba(106,168,255,0.58);
    --btnStrongEnd: rgba(196,90,255,0.46);
    --btnStrongHoverStart: rgba(106,168,255,0.66);
    --btnStrongHoverEnd: rgba(196,90,255,0.54);
    --btnStrongBorder: rgba(255,255,255,0.34);
}

/* =========================================================
   BASE
========================================================= */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        opacity: .9;
    }

.container {
    width: min(var(--max), calc(100% - 2*var(--pad)));
    margin: 0 auto;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Hide scrollbar but keep scrolling */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    html::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* Content above stage/curtain */
header, main, footer {
    position: relative;
    z-index: 3;
}

/* =========================================================
   HEADER / NAV
========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0);
    backdrop-filter: none;
}

    .header.is-solid {
        background: rgba(7,10,20,0.65);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(10px);
    }

.nav {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 21px 50px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg,rgba(106,168,255,0.45),rgba(196,90,255,0.35));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: var(--shadow);
}

.brand-name {
    font-family: "Clash Display", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    height: 30px;
    display: inline-flex;
    align-items: center;
    font-size: 30px;
    line-height: 1;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    font-size: 14px;
    color: var(--muted);
}

    .nav-links a {
        color: var(--muted);
    }

        .nav-links a.btn {
            color: var(--text);
            opacity: 1;
            background: linear-gradient(135deg,var(--btnStrongStart),var(--btnStrongEnd));
            border-color: var(--btnStrongBorder);
        }

            .nav-links a.btn:hover {
                opacity: 1;
                background: linear-gradient(135deg,var(--btnStrongHoverStart),var(--btnStrongHoverEnd));
            }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
}

    .nav-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: rgba(255,255,255,0.8);
        margin: 4px 0;
        border-radius: 2px;
    }

/* =========================================================
   BUTTONS / SMALL TEXT
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(135deg,rgba(106,168,255,0.28),rgba(196,90,255,0.18));
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease,opacity 160ms ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-small {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    box-shadow: none;
}

.fineprint {
    color: rgba(255,255,255,0.58);
    font-size: 12.5px;
    margin: 0;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
}

.hero-stage {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(var(--heroNudgeY));
}

.kicker {
    margin: 0 0 14px;
    font-family: "Clash Display", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12.5px;
    color: rgba(255,255,255,0.72);
}

.hero-title {
    margin: 0 0 30px;
    font-size: clamp(40px,4.8vw,64px);
    line-height: 1.02;
    letter-spacing: -0.9px;
}

.hero-title-centre {
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--gridGap);
}

.hero-actions-centre {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-actions .btn {
    opacity: 1;
    background: linear-gradient(135deg,var(--btnStrongStart),var(--btnStrongEnd));
    border-color: var(--btnStrongBorder);
}

    .hero-actions .btn:hover {
        opacity: 1;
        background: linear-gradient(135deg,var(--btnStrongHoverStart),var(--btnStrongHoverEnd));
    }

    .hero-actions .btn:active {
        opacity: .99;
    }

.hero-actions .btn-ghost {
    opacity: .98;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.32);
}

    .hero-actions .btn-ghost:hover {
        opacity: 1;
        background: rgba(255,255,255,0.23);
    }

/* =========================================================
   SCROLL CUE (belongs to hero, NOT fixed)
========================================================= */
.scroll-cue {
    position: absolute;
    top: 750px;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 9999;
    pointer-events: none;
    width: min(var(--max), calc(100% - 2*var(--pad)));
    margin: 0 auto;
    display: grid;
    justify-items: center;
    row-gap: 8px;
    opacity: var(--scrollCueOpacity);
    transition: opacity 120ms linear;
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-lines {
    width: 64px;
    height: 5px;
    position: relative;
    margin-bottom: -4px;
}

    .scroll-lines::before,
    .scroll-lines::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255,255,255,0.35);
    }

    .scroll-lines::before {
        top: 0;
    }

    .scroll-lines::after {
        bottom: 0;
    }

.scroll-label {
    font-family: "Clash Display", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.70);
    line-height: 1;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.55);
    transform: rotate(45deg);
    margin-top: -4px;
}

@keyframes scrollPulse {
    0%,100% {
        transform: translateY(0);
        opacity: 0.65;
    }

    50% {
        transform: translateY(4px);
        opacity: 0.85;
    }
}

/* =========================================================
   SECTIONS / STRIP / CAPS / STEPS / CTA / FAQ / FOOTER
========================================================= */
.section {
    padding: 64px 0;
}

.section-alt {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    margin-bottom: 26px;
}

    .section-head h2 {
        margin: 0 0 8px;
        font-size: 28px;
        letter-spacing: -0.4px;
    }

    .section-head p {
        margin: 0;
        color: var(--muted);
        max-width: 70ch;
    }

.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.strip-glass {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.strip-inner {
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.strip-items {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.strip-item {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.cap {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 18px;
}

    .cap h3 {
        margin: 0 0 8px;
    }

    .cap p {
        margin: 0;
        color: var(--muted);
    }

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

    .steps li {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.04);
        border-radius: var(--radius);
        padding: 16px 18px;
    }

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-weight: 800;
    flex: 0 0 auto;
}

.steps h3 {
    margin: 0 0 6px;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.cta {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    border-radius: calc(var(--radius) + 4px);
    padding: 18px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 320px;
}

    .form input {
        width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: rgba(0,0,0,0.18);
        color: var(--text);
        outline: none;
    }

        .form input::placeholder {
            color: rgba(255,255,255,0.45);
        }

.form-note {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
    min-height: 18px;
}

.faq {
    display: grid;
    gap: 10px;
}

details {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 14px 16px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    margin: 10px 0 0;
    color: var(--muted);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    background: rgba(255,255,255,0.02);
}

.footer-inner {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 14px;
    color: var(--muted);
}

    .footer-links a {
        color: var(--muted);
    }

.footer-brand {
    margin: 0 0 8px;
}

/* =========================================================
   PERFORMANCE CHART
========================================================= */
.chart-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

    .chart-head h3 {
        margin: 0;
        font-size: 16px;
    }

    .chart-head p {
        margin: 0;
        font-size: 12.5px;
    }

.chart-area {
    position: relative;
    height: 260px;
    width: 100%;
}

.chart-area-lg {
    height: 340px;
}

.chart-area canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Performance section centred on screen */
.section.performance {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

    .section.performance .container {
        width: calc(100% - 2*var(--pad));
        max-width: 1600px;
        padding: 40px 0;
    }

/* Stack charts vertically */
.perf-charts {
    display: grid;
    gap: 14px;
}

/* Each chart tall enough, but two can fit in one viewport */
.chart-area-half {
    height: clamp(220px, 34vh, 320px);
}

/* =========================================================
   STAGE + CURTAIN
========================================================= */
/* Background spots fade in as stage fades out */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(900px 500px at 15% 10%, rgba(106,168,255,0.18), transparent 60%), radial-gradient(800px 500px at 80% 25%, rgba(196,90,255,0.15), transparent 55%), var(--bg);
    opacity: calc(1 - var(--stageAlpha));
    transition: opacity 120ms linear;
}

.stage-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #000;
    opacity: var(--stageAlpha);
}

.stage-video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateY(calc(var(--stageShift) * -1));
    will-change: transform, opacity;
    filter: brightness(0.4) contrast(1.08) saturate(1.05);
}

.stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7,10,20,0.40), rgba(7,10,20,0.70));
}

/* Curtain slides up */
.curtain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(900px 500px at 15% 10%, rgba(106,168,255,0.18), transparent 60%), radial-gradient(800px 500px at 80% 25%, rgba(196,90,255,0.15), transparent 55%), var(--bg);
    transform: translateY(var(--curtainY));
    will-change: transform;
    /* Soft top edge (no hard line) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 360px, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, black 360px, black 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* =========================================================
   REVEAL ANIMATION
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .cap-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        flex-direction: column;
        align-items: stretch;
    }

    .form {
        min-width: unset;
    }
}

@media (max-width: 720px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        padding: 14px;
        border-bottom: 1px solid var(--line);
        background: rgba(7,10,20,0.92);
        backdrop-filter: blur(10px);
    }

        .nav-links.open {
            display: flex;
        }

    .hero-actions-centre {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue {
        animation: none;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
