/* ═══════════════════════════════════════════════════════════
   OVERDRIVE — AI Agent Operations Layer for Antigravity
   Avirn Design System: Obsidian Void + Titanium Silver
   ═══════════════════════════════════════════════════════════ */
/* Fonts loaded via <link> in HTML — no @import needed */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #000000;
    --s1: #0a0a0a;
    --s2: #111111;
    --s3: #1a1a1a;
    --ti-100: #f5f5f7;
    --ti-200: #d1d1d6;
    --ti-300: #a1a1a6;
    --ti-400: #8e8e93;
    --ti-500: #636366;
    --ti-600: #48484a;
    --ti-700: #3a3a3c;
    --ti-800: #2c2c2e;
    --ti-900: #1c1c1e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --ease: cubic-bezier(.25, .46, .45, .94);
    --spring: cubic-bezier(.22, 1, .36, 1);
    --smooth: cubic-bezier(.16, 1, .3, 1);
    --max-w: 1100px;
    --px: clamp(20px, 4vw, 40px);
    --nav-height: 56px;
    --radius-pill: 980px;
    --radius-card: 16px;
    --dur-fast: 0.2s;
    --dur-base: 0.3s;
    --dur-slow: 0.6s;
    --dur-xl: 1s;
    --z-bg: 0;
    --z-content: 1;
    --z-overlay: 2;
    --z-nav: 40;
    --z-nav-toggle: 41;
    --z-progress: 50;
    --z-loader: 90;
    --z-noise: 100;
}

html {
    background: var(--bg);
    color: var(--ti-100);
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

::selection {
    background: rgba(255, 255, 255, 0.1);
}

/* ═══ Film Grain ═══ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-noise);
    pointer-events: none;
    opacity: 0.018;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ═══ Ambient Glow ═══ */
.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.glow-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(161, 161, 170, 0.04), transparent 70%);
    animation: glowDrift1 20s ease-in-out infinite alternate;
}

.glow-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 200, 210, 0.03), transparent 70%);
    animation: glowDrift2 25s ease-in-out infinite alternate;
}

@keyframes glowDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 60px) scale(1.15);
    }
}

@keyframes glowDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -40px) scale(1.1);
    }
}

/* ═══ Loader ═══ */
.loader {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s var(--smooth), filter 0.8s;
}

.loader.out {
    opacity: 0;
    filter: blur(30px);
    pointer-events: none;
}

.loader-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--ti-800);
    border-top-color: var(--ti-300);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-word {
    margin-top: 28px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--ti-600);
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp 0.6s var(--smooth) 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* ═══ Scroll Progress Bar ═══ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #4ade80, #38bdf8, #a78bfa);
    z-index: var(--z-progress);
    transition: width 0.1s linear;
}

/* ═══ Nav ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    opacity: 0;
    transform: translateY(-8px);
    animation: fadeUp 0.6s var(--smooth) 0.8s forwards;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--ti-100);
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--ti-500);
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--ti-100);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ti-300);
    transform: scaleX(0);
    transition: transform 0.3s var(--spring);
    transform-origin: left;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* ═══ Hero ═══ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--px);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--px);
    opacity: 0;
    animation: gridFade 2s ease 0.6s forwards;
}

@keyframes gridFade {
    to {
        opacity: 1;
    }
}

.grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: var(--z-overlay);
    max-width: 900px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s var(--smooth) 1.2s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ti-600);
    margin-bottom: 36px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ti-800);
}

.hero-title {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.word {
    display: inline-block;
    -webkit-text-fill-color: #f5f5f7;
    opacity: 0;
    transform: translateY(20px);
    animation: wordIn 0.7s var(--smooth) forwards;
    animation-delay: calc(1.2s + var(--d));
}

@keyframes wordIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--ti-400);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s var(--smooth) 1.8s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--smooth) 2.1s forwards;
}

.scroll-hint {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s var(--smooth) 2.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--ti-700), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1);
    }
}

/* ═══ Buttons ═══ */
.btn-primary {
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #0077ed;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    color: #2997ff;
    font-size: 17px;
    font-weight: 400;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    color: #6cb6ff;
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ═══ Sections ═══ */
.section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 1s var(--smooth);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ti-500);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1;
    color: #f5f5f7;
}

.section-sub {
    font-size: 14px;
    color: var(--ti-500);
    line-height: 1.7;
}

.divider {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 1px;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    left: var(--px);
    right: var(--px);
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover) 50%, transparent);
}

/* ═══ Stats Strip ═══ */
.stats-strip {
    padding: 0 var(--px) 80px;
    position: relative;
    z-index: var(--z-content);
}

.stats-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

.stat-item {
    padding: 40px 24px;
    background: var(--bg);
    text-align: center;
    transition: background 0.3s;
}

.stat-item:hover {
    background: var(--s1);
}

.stat-val {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #FFF 0%, #D4D4D8 60%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--ti-500);
    margin-left: 2px;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ti-600);
}

/* ═══ Performance Bars ═══ */
.perf-section {
    padding: 100px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.perf-grid {
    max-width: 700px;
    margin: 0 auto;
}

.perf-bar {
    display: grid;
    grid-template-columns: 90px 1fr 60px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
}

.perf-bar[data-visible] {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s var(--spring);
}

.perf-step {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ti-400);
}

.perf-track {
    height: 6px;
    background: var(--s2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.perf-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ti-600), var(--ti-400));
    width: 0;
    transition: width 1.2s var(--spring);
}

.perf-bar[data-visible] .perf-fill {
    width: var(--w);
}

.perf-fill.fast {
    background: linear-gradient(90deg, #2d5a27, #4ade80);
}

.perf-fill.medium {
    background: linear-gradient(90deg, #5a4f27, #facc15);
}

.perf-fill.slow {
    background: linear-gradient(90deg, #5a2727, #f87171);
}

.perf-time {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ti-500);
    text-align: right;
}

/* ═══ Terminal Demo ═══ */
.demo-section {
    padding: 0 var(--px) 80px;
    position: relative;
    z-index: var(--z-content);
}

.demo-inner {
    max-width: 780px;
    margin: 0 auto;
}

.terminal-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
    position: relative;
    z-index: var(--z-overlay);
    padding-left: 16px;
}

.tab-btn {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--ti-600);
    background: transparent;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all var(--dur-fast);
}

.tab-btn:hover {
    color: var(--ti-300);
    background: var(--s1);
}

.tab-btn.active {
    color: var(--ti-200);
    background: var(--s1);
    border-bottom-color: var(--s1);
}

.terminal {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--s1);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ti-800);
}

.terminal-title {
    font-size: 11px;
    color: var(--ti-600);
    margin-left: 8px;
    font-weight: 500;
}

.terminal-body {
    padding: 24px;
    overflow-x: auto;
}

.terminal-body pre {
    margin: 0;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.7;
    color: var(--ti-300);
    white-space: pre;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hero-typing {
    margin: 20px auto 0;
    max-width: 640px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--ti-300);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hero-typing-code {
    white-space: nowrap;
}

.hero-cursor {
    display: inline-block;
    color: var(--ti-100);
    animation: cursorBlink 1s steps(1, end) infinite;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

.terminal-body .c {
    color: var(--ti-600);
    font-style: italic;
}

.terminal-body .k {
    color: #e2e8f0;
    font-weight: 700;
}

.terminal-body .s {
    color: #a8e6a1;
}

.terminal-body .f {
    color: #93c5fd;
}

.terminal-body .n {
    color: #fbbf24;
}

.terminal-body .b {
    color: #f97316;
}

/* ═══ Waterfall Steps ═══ */
.waterfall {
    padding: 100px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.steps-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
}

.step-card {
    padding: 36px 28px;
    background: var(--bg);
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.step-card[data-visible] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s var(--spring), background 0.3s;
}

.step-card:hover {
    background: var(--s1);
}

.step-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ti-600);
    margin-bottom: 12px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    display: inline-block;
    transition: border-color 0.3s, color 0.3s;
}

.step-card:hover .step-num {
    border-color: var(--ti-500);
    color: var(--ti-300);
}

.step-card h3 {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 12px;
    color: var(--ti-500);
    line-height: 1.7;
}

/* Color-coded step numbers */
.step-card[data-step="S1"] .step-num,
.step-card[data-step="S2"] .step-num,
.step-card[data-step="S3"] .step-num,
.step-card[data-step="S4"] .step-num {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.2);
}

.step-card[data-step="S5"] .step-num,
.step-card[data-step="S6"] .step-num,
.step-card[data-step="S7"] .step-num {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.2);
}

.step-card[data-step="S8"] .step-num,
.step-card[data-step="S9"] .step-num {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
}

/* Subtle glow on hover */
.step-card[data-step="S1"]:hover,
.step-card[data-step="S2"]:hover,
.step-card[data-step="S3"]:hover,
.step-card[data-step="S4"]:hover {
    box-shadow: inset 0 1px 30px rgba(74, 222, 128, 0.03);
}

.step-card[data-step="S5"]:hover,
.step-card[data-step="S6"]:hover,
.step-card[data-step="S7"]:hover {
    box-shadow: inset 0 1px 30px rgba(250, 204, 21, 0.03);
}

.step-card[data-step="S8"]:hover,
.step-card[data-step="S9"]:hover {
    box-shadow: inset 0 1px 30px rgba(248, 113, 113, 0.03);
}

/* ═══ GUI Section ═══ */
.gui-section {
    padding: 100px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.gui-features {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

.gui-card {
    padding: 40px 28px;
    background: var(--bg);
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.gui-card[data-visible] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s var(--spring), background 0.3s;
}

.gui-card:hover {
    background: var(--s1);
}

.gui-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

.gui-card:hover .gui-icon {
    border-color: var(--border-hover);
}

.gui-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ti-400);
    transition: stroke 0.3s;
}

.gui-card:hover .gui-icon svg {
    stroke: var(--ti-100);
}

.gui-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.gui-card p {
    font-size: 12px;
    color: var(--ti-500);
    line-height: 1.7;
}

/* ═══ Features Grid ═══ */
.features {
    padding: 100px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.feature-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

.feat-card {
    padding: 36px 28px;
    background: var(--bg);
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.feat-card[data-visible] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s var(--spring), background 0.3s;
}

.feat-card:hover {
    background: var(--s1);
}

.feat-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feat-card p {
    font-size: 12px;
    color: var(--ti-500);
    line-height: 1.7;
}

/* ═══ API Section ═══ */
.api-section {
    padding: 100px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.api-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

.api-col {
    padding: 36px 28px;
    background: var(--bg);
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.api-col[data-visible] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s var(--spring), background 0.3s;
}

.api-col:hover {
    background: var(--s1);
}

.api-col h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.api-code {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.8;
    color: var(--ti-400);
    white-space: pre;
    margin: 0;
    background: transparent;
    border: none;
    overflow-x: auto;
}

/* ═══ CTA ═══ */
.final-cta {
    padding: 100px var(--px);
    text-align: center;
    position: relative;
    z-index: var(--z-content);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 1s var(--smooth);
}

.final-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #f5f5f7;
}

.cta-sub {
    font-size: 17px;
    color: var(--ti-400);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ Footer ═══ */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--ti-600);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 12px;
    color: var(--ti-600);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--ti-100);
}

.footer-copy {
    font-size: 11px;
    color: var(--ti-700);
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gui-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ Mobile Menu ═══ */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: var(--z-nav-toggle);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ti-300);
    margin: 4px auto;
    transition: all 0.3s var(--spring);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(3.5px, 3.5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* Old Axial mobile breakpoint removed — consolidated into bottom media queries */

:focus-visible {
    outline: 2px solid #6cb6ff;
    outline-offset: 3px;
}

a[href]:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.tab-btn:focus-visible,
.nav-toggle:focus-visible,
.footer-links a:focus-visible {
    box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.35);
    border-radius: 8px;
}

.nav,
.hero-content,
.hero-grid,
.word,
.hero-sub,
.hero-actions,
.scroll-hint,
.scroll-line,
.loader,
.loader-word,
.loader-ring,
.section-header,
.final-cta,
.step-card,
.gui-card,
.feat-card,
.api-col,
.perf-bar,
.perf-fill,
.hero-typing,
.hero-cursor {
    will-change: transform, opacity;
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .scroll-progress {
        transition: none;
    }

    .hero-cursor {
        opacity: 1;
    }
}

@media print {
    :root {
        --bg: #ffffff;
        --s1: #ffffff;
        --s2: #ffffff;
        --s3: #ffffff;
        --ti-100: #000000;
        --ti-200: #1f1f1f;
        --ti-300: #333333;
        --ti-400: #444444;
        --ti-500: #555555;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .noise-overlay,
    .ambient-glow,
    .loader,
    .scroll-progress,
    .scroll-hint,
    .nav-toggle {
        display: none !important;
    }

    .nav {
        position: static;
        border-bottom-color: #cccccc;
        background: transparent;
        opacity: 1;
        transform: none;
    }

    .hero,
    .waterfall,
    .gui-section,
    .features,
    .api-section,
    .perf-section,
    .final-cta,
    .demo-section {
        padding: 24px 0;
    }

    .steps-grid,
    .gui-features,
    .feature-grid,
    .api-grid,
    .stats-inner {
        box-shadow: none;
        border: 1px solid #e2e2e2;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}

/* ═══ Hero Terminal ═══ */
.hero-terminal {
    margin: 32px auto 0;
    max-width: 640px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--smooth) 2.4s forwards;
}

.hero-terminal .terminal {
    text-align: left;
}

/* ═══ CTA ═══ */
.final-cta {
    padding: 100px var(--px);
    text-align: center;
    position: relative;
    z-index: var(--z-content);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 1s var(--smooth);
}

.final-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #f5f5f7;
}

.cta-sub {
    font-size: 17px;
    color: var(--ti-400);
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ Newsletter ═══ */
.newsletter-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.newsletter-label {
    font-size: 13px;
    color: var(--ti-500);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hover);
    background: var(--s1);
    color: var(--ti-100);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--ti-600);
}

.newsletter-btn {
    padding: 11px 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    white-space: nowrap;
}

.newsletter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.newsletter-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ti-400);
    min-height: 20px;
}

.newsletter-status.success {
    color: #4ade80;
}

.newsletter-status.error {
    color: #f87171;
}

/* ═══ Footer ═══ */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px var(--px);
    position: relative;
    z-index: var(--z-content);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--ti-600);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 12px;
    color: var(--ti-600);
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--ti-100);
}

.footer-copy {
    font-size: 11px;
    color: var(--ti-700);
}

/* ═══ Mobile Nav Toggle ═══ */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: var(--z-nav-toggle);
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--ti-300);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══ Tablet (<=900px) ═══ */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gui-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══ Mobile (<=680px) ═══ */
@media (max-width: 680px) {
    :root {
        --px: 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }

    .hero-sub {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .terminal-body {
        padding: 16px;
        overflow-x: auto;
    }

    .terminal-body pre {
        font-size: 11px;
    }

    .steps-grid,
    .feature-grid,
    .gui-features {
        grid-template-columns: 1fr;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 24px 16px;
    }

    .stat-val {
        font-size: 2rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero,
    .waterfall,
    .gui-section,
    .features,
    .final-cta {
        padding-left: var(--px);
        padding-right: var(--px);
    }

    .cta-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-links {
        gap: 16px;
    }

    .hero-grid {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 15px;
        padding: 10px 18px;
    }

    .ambient-glow {
        display: none;
    }
}