/* ===================================================
    tldiagram — Marketing Website Styles
    Dark, premium, 2026 design system
    =================================================== */

/* ─── Design Tokens ──────────────────────────────── */
:root {
    /* Neutrals: Pure Graphite (Chroma 0) */
    --bg-0: oklch(12% 0 0);
    --bg-1: oklch(16% 0 0);
    --bg-2: oklch(19% 0 0);
    --bg-3: oklch(22% 0 0);
    --surface-1: oklch(25% 0 0);
    --surface-2: oklch(30% 0 0);

    /* Tinted Neutrals */
    --text-1: oklch(98% 0 0);
    --text-2: oklch(90% 0 0);
    --text-3: oklch(75% 0 0);
    --text-4: oklch(60% 0 0);

    /* Brand: Pearl Silver */
    --blue-light: oklch(99% 0 0);
    --blue-main: oklch(94% 0.01 0);
    --blue-alt: oklch(85% 0.01 0);
    --blue-dark: oklch(70% 0.01 0);
    --blue-deep: oklch(40% 0.01 0);
    --cyan-main: oklch(96% 0.01 0);

    --blue-main-rgb: 240, 240, 240;
    --blue-deep-rgb: 100, 100, 100;
    --cyan-main-rgb: 250, 250, 250;

    --accent: var(--blue-main);
    --grad-brand: linear-gradient(135deg, oklch(70% 0 0.8) 0%, oklch(40% 0.0 0) 100%);

    --border: oklch(100% 0 0 / 0.08);
    --border-subtle: oklch(100% 0 0 / 0.04);
    --border-accent: oklch(100% 0 0 / 0.15);
    --border-bright: oklch(100% 0 0 / 0.25);

    /* Frosted Obsidian (Tactile Developer) System */
    --obsidian-bg: oklch(18% 0 0 / 0.75);
    --obsidian-border: oklch(100% 0 0 / 0.08);
    --obsidian-radius: 8px;
    --obsidian-shadow: 0 20px 50px oklch(0% 0 0 / 0.5),
        inset 0 1px 1px oklch(100% 0 0 / 0.2),
        inset 0 -10px 20px oklch(100% 0 0 / 0.03);

    /* Volumetric Pearl (Tactile Silver) System */
    --pearl-bg: oklch(92% 0.01 0);
    --pearl-highlight: oklch(100% 0 0);
    --pearl-shadow: oklch(75% 0.02 0 / 0.4);

    --btn-glow-blue: color-mix(in srgb, var(--blue-deep), transparent 75%);
    --btn-glow-cyan: color-mix(in srgb, var(--cyan-main), transparent 90%);
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.05), 0 0 80px rgba(255, 255, 255, 0.02);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    --nav-h: 64px;
    --max-w: 1200px;
    --font: 'Metrophobic', system-ui, -apple-system, sans-serif;
    --font-heading: 'Josefin Sans', system-ui, -apple-system, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ─── Reset ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--surface-3) var(--bg-0);
}

/* ─── Base ────────────────────────────────────────── */
body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text-2);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    opacity: 0.6;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
}

/* ─── Typography ─────────────────────────────────── */
h1,
h2,
h3 {
    text-wrap: balance;
}

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
    background: linear-gradient(135deg, var(--text-1) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    background: rgba(var(--blue-main-rgb), 0.08);
    border: 1px solid rgba(var(--blue-main-rgb), 0.2);
    border-radius: var(--radius-sm);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);
}

.btn-primary {
    background: var(--pearl-bg);
    color: oklch(20% 0 0);
    border: 1px solid var(--obsidian-border);
    border-radius: var(--obsidian-radius);
    border-color: oklch(100% 0 0 / 0.25);
    box-shadow: 0 15px 40px oklch(0% 0 0 / 0.6);
}

.btn-primary:hover {
    background: oklch(95% 0.01 0);
    transform: translateY(-4px) scale(1.02);
    border-color: oklch(100% 0 0 / 0.25);
    box-shadow: 0 15px 40px oklch(0% 0 0 / 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    border: 1px solid oklch(100% 0 0 / 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--obsidian-radius);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: oklch(100% 0 0 / 0.2);
    transform: translateY(-4px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* ─── Navigation ──────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(7, 10, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    /* Optical alignment */
    margin-left: -8px;
    margin-right: -12px;
    outline: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-logo:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);
}

.nav-logo img {
    display: block;
    width: auto;
    height: 44px;
    padding-bottom: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: var(--nav-h);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-3);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    outline: none;
    display: block;
}

.nav-link:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--blue-main-rgb), 0.4);
    color: var(--text-1);
}

.nav-link.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-login {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 80px;
    text-align: center;
    text-decoration: none;
    outline: none;
}

.nav-login:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.nav-login:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);
}

/* ─── Hero ───────────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 100px) 24px 120px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    pointer-events: none;
}

/* Moving architectural grid */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--blue-main-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--blue-main-rgb), 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(60px);
    }
}

/* Scanning line effect */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.15;
    animation: scan 8s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* Aurora orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orb-float 18s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.4) 0%, transparent 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--cyan-main-rgb), 0.25) 0%, transparent 70%);
    top: 20%;
    right: -150px;
    animation-delay: -5s;
    animation-duration: 22s;
}

.hero-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(183, 148, 244, 0.15) 0%, transparent 70%);
    bottom: 0%;
    left: -120px;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, -30px) scale(1.1);
    }

    66% {
        transform: translate(40px, 50px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    /* Parallax exit — driven by --hero-exit CSS var set by JS on scroll */
    opacity: calc(1 - var(--hero-exit, 0) * 1.4);
    transform: translateY(calc(var(--hero-exit, 0) * -40px));
}

.hero-badge {
    margin-bottom: 40px;
    transform: perspective(1000px) rotateX(10deg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(56px, 10vw, 104px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--text-1);
    margin-bottom: 32px;
}

.hero-title .text-gradient {
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(0, 198, 255, 0.3));
}

.hero-title .line-2 {
    display: block;
    margin-top: 8px;
    font-weight: 200;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

.hero-sub {
    font-size: clamp(18px, 2.8vw, 22px);
    color: var(--text-3);
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Store badges */
.store-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.store-badge-link {
    display: inline-flex;
    opacity: 0.8;
    transition: var(--transition);
    outline: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.store-badge-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.store-badge-link:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--accent);
}

.store-badge {
    height: 40px;
    width: auto;
    display: block;
}

/* Hero Graph */
.hero-graph-wrap {
    position: relative;
    z-index: 5;
    margin-top: 100px;
    width: 100%;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    /* Break the grid: overlap into next section */
    margin-bottom: -120px;
    transform: perspective(2000px) rotateX(2deg);
}

.hero-graph-frame {
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(var(--blue-main-rgb), 0.15);
    position: relative;
    overflow: hidden;
}

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

.topbar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.topbar-dot-r {
    background: #ff5f57;
}

.topbar-dot-y {
    background: #ffbd2e;
}

.topbar-dot-g {
    background: #28c940;
}

.topbar-title {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-graph-canvas {
    background: var(--bg-0);
    aspect-ratio: 960/380;
    position: relative;
    cursor: grab;
}

.graph-svg {
    width: 100%;
    height: 100%;
}

@keyframes node-float-1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes node-float-2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes node-float-3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ─── Section headers ────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .label {
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.05;
}

.section-sub {
    font-size: 18px;
    color: var(--text-3);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Features Bento ─────────────────────────────── */
.features {
    padding: 240px 0 120px;
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    position: relative;
}

/* Technical blueprint overlay */
.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--blue-main-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--blue-main-rgb), 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 24px;
}

.bento-card {
    background: rgba(26, 33, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--blue-main-rgb), 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(var(--blue-main-rgb), 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--blue-main-rgb), 0.1);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-span-5 {
    grid-column: span 5;
}

.bento-span-7 {
    grid-column: span 7;
}

.bento-span-4 {
    grid-column: span 4;
}

.bento-span-8 {
    grid-column: span 8;
}

.bento-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.icon-blue {
    background: rgba(var(--blue-main-rgb), 0.15);
    color: var(--accent);
}

.icon-teal {
    background: rgba(129, 230, 217, 0.15);
    color: var(--teal);
}

.icon-purple {
    background: rgba(183, 148, 244, 0.15);
    color: var(--purple);
}

.icon-cyan {
    background: rgba(var(--cyan-main-rgb), 0.15);
    color: var(--cyan);
}

.icon-green {
    background: rgba(104, 211, 145, 0.15);
    color: var(--green);
}

.icon-grad {
    background: var(--grad-brand);
    color: #fff;
}

.bento-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 12px;
}

.bento-card-desc {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.6;
}

.mini-graph {
    margin-top: 32px;
    background: #070a10;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 140px;
}

.node-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.node-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.pill-teal {
    background: rgba(129, 230, 217, 0.1);
    color: var(--teal);
}

.pill-blue {
    background: rgba(var(--blue-main-rgb), 0.1);
    color: var(--accent);
}

.pill-purple {
    background: rgba(183, 148, 244, 0.1);
    color: var(--purple);
}

.pill-orange {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.pill-cyan {
    background: rgba(var(--cyan-main-rgb), 0.1);
    color: var(--cyan);
}

.pill-yellow {
    background: rgba(246, 224, 94, 0.1);
    color: #f6e05e;
}

.pill-green {
    background: rgba(104, 211, 145, 0.1);
    color: var(--green);
}

.pill-pink {
    background: rgba(251, 182, 206, 0.1);
    color: #fbb6ce;
}

.pill-gray {
    background: rgba(160, 174, 192, 0.1);
    color: var(--text-3);
}

/* ─── Zoom Feature Section ──────────────────────── */

/* Scroll-space wrapper — creates the 400vh scroll budget */
.zoom-scroll-wrapper {
    position: relative;
    height: 400vh;
}

.zoom-feature-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--bg-0);
    overflow: hidden;
}

/* Stack diagram + text vertically inside the sticky section */
.zoom-feature-section>.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Scroll progress bar — thin accent line at bottom, driven by --zp CSS var */
.zoom-feature-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: calc(var(--zp, 0) * 100%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

/* Unified diagram block — scales as a single unit like .hero-graph-wrap */
.zoom-diagram-block {
    width: 100%;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(var(--blue-main-rgb), 0.08);
    /* Initial state driven by JS on desktop via inline style */
    transform: perspective(2000px) rotateX(2.5deg) scale(0.88);
    transform-origin: center top;
    will-change: transform;
}

.zoom-frame {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.zoom-split-canvas {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    background: var(--bg-0);
    height: 330px;
    position: relative;
}

.zoom-panel {
    position: relative;
    overflow: hidden;
}

.zoom-panel-svg {
    width: 100%;
    height: 100%;
}

.zoom-context-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.chip-system {
    background: rgba(var(--blue-main-rgb), 0.15);
    color: var(--accent);
    border: 1px solid rgba(var(--blue-main-rgb), 0.2);
}

.chip-container {
    background: rgba(183, 148, 244, 0.15);
    color: var(--purple);
    border: 1px solid rgba(183, 148, 244, 0.2);
}

.zoom-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    background: rgba(7, 10, 16, 0.5);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.zoom-flow-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.zoom-flow-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.1;
}

.zoom-flow-line:nth-child(1) {
    top: 25%;
    animation: flow-right 3s linear infinite;
}

.zoom-flow-line:nth-child(2) {
    top: 50%;
    animation: flow-right 2s linear infinite reverse;
}

.zoom-flow-line:nth-child(3) {
    top: 75%;
    animation: flow-right 4s linear infinite;
}

@keyframes flow-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* ── Zoom sequence: 9s looping orchestration ── */

/* Total cycle = 9s
   0.0–2.0s  : idle / hold
   2.0–3.2s  : badge pulses (click)
   3.2–5.0s  : arrows fade/draw in
   5.0–7.5s  : right panel reveals
   7.5–9.0s  : hold → fade all back out
*/

/* Zoom section animations are now scroll-driven via JS + CSS custom properties.
   Time-based keyframes removed. See site.js updateZoomSection() / computeZoomTarget(). */

.zoom-connector-badge {
    width: 44px;
    height: 44px;
    background: var(--surface-1);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 20px rgba(var(--blue-main-rgb), 0.2);
    z-index: 2;
    position: relative;
    /* transform driven by JS via scroll progress */
}

/* Ripple ring pseudo-element — driven by JS via --ripple-scale / --ripple-opacity CSS vars */
.zoom-connector-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    transform: scale(var(--ripple-scale, 0.4));
    opacity: var(--ripple-opacity, 0);
    pointer-events: none;
}

.zoom-connector-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Zoom connector arrows: paths start with strokeDasharray="0 length" set by JS on DOMContentLoaded */

/* Right panel: start hidden, JS reveals on scroll */
.zoom-panel-right {
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    position: relative;
    z-index: 2;
}

.zoom-levels-bar {
    background: var(--bg-2);
    padding: 12px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-level-item {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
}

.zoom-level-item.active {
    color: var(--accent);
}

.zoom-level-item.current {
    color: var(--text-1);
    font-weight: 800;
}

.zoom-level-arrow {
    color: var(--text-5);
    font-size: 14px;
}

/* ─── Stats strip ──────────────────────────────── */
.stats-strip {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-4);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── Zoom text reveal ───────────────────────────── */
.zoom-text-reveal {
    font-family: var(--font-heading);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    max-width: 780px;
    margin: 28px auto 0;
    letter-spacing: 0.01em;
}

.text-word {
    display: inline;
    color: var(--text-5);
    transition: color 0.15s ease;
}

.text-word.lit {
    color: var(--text-1);
}

/* ─── How it works ──────────────────────────────── */

/* Scroll-space wrapper — creates the 250vh scroll budget */
.how-scroll-wrapper {
    position: relative;
    height: 250vh;
}

.how-it-works {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    background: var(--bg-0);
    overflow: hidden;
}

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

.step-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    /* Initial hidden state — JS reveals sequentially on scroll */
    opacity: 0;
    transform: translateY(40px);
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.step-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: block;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-3);
    line-height: 1.6;
}

/* ─── CTA Section ──────────────────────────────── */
.cta-section {
    padding: 160px 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 114, 255, 0.12) 0%, transparent 70%);
    z-index: 1;
}

.cta-box {
    background: var(--surface-1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-2xl);
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-sub {
    font-size: 18px;
    color: var(--text-3);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ─── Legal Hero ──────────────────────────────── */
.legal-hero {
    padding: calc(var(--nav-h) + 80px) 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    border-bottom: 1px solid var(--border);
}

.legal-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.legal-date {
    font-size: 14px;
    color: var(--text-4);
    margin-top: 16px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    margin: 60px 0 24px;
    letter-spacing: -0.01em;
}

.legal-content p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 24px 24px;
}

.legal-content li {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--text-1);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-toc {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 60px;
}

.legal-toc h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-toc ol {
    margin-left: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 32px;
}

.legal-toc li a {
    font-size: 14px;
    color: var(--text-3);
}

.legal-toc li a:hover {
    color: var(--accent);
}

/* ─── Pricing ─────────────────────────────────── */
.pricing-section {
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(26, 33, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--blue-main-rgb), 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    border-color: var(--border-bright);
    background: linear-gradient(135deg, rgba(var(--blue-deep-rgb), 0.18) 0%, rgba(22, 30, 50, 0.9) 100%);
    box-shadow: 0 0 0 1px rgba(var(--blue-main-rgb), 0.15) inset, var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--grad-brand);
    color: #fff;
}

.pricing-tier {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 15px;
    color: var(--text-3);
    margin-bottom: 32px;
    line-height: 1.6;
}

.pricing-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-3);
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-1);
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: var(--text-4);
    margin-bottom: 10px;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.feature-check {
    color: var(--green);
    font-weight: 700;
}

.feature-x {
    color: var(--text-5);
    font-weight: 700;
}

.pricing-cta {
    width: 100%;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-4);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-1);
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
    transition: var(--transition), background 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.toggle-switch:hover {
    border-color: var(--border-accent);
    background: var(--bg-3);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--text-1);
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover::after {
    background: #fff;
    transform: scale(1.05);
}

.toggle-switch.on {
    background: var(--accent);
    border-color: var(--blue-main);
}

.toggle-switch.on:hover {
    background: var(--blue-alt);
}

.toggle-switch.on::after {
    transform: translateX(24px);
    background: #fff;
}

.toggle-switch.on:hover::after {
    transform: translateX(24px) scale(1.05);
}

.save-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    background: rgba(104, 211, 145, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

/* ─── FAQ ───────────────────────────────────────── */
.faq-section {
    padding: 120px 0;
    background: var(--bg-1);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-q {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-1);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-q svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-4);
}

.faq-item.open .faq-q svg {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item.open {
    border-color: var(--accent-dim);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a-inner {
    padding: 0 32px 32px;
    color: var(--text-3);
    font-size: 16px;
    line-height: 1.6;
}

/* ─── Footer ───────────────────────────────────── */
footer {
    padding: 100px 0 60px;
    background: var(--bg-0);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-4);
    max-width: 280px;
    line-height: 1.6;
}

.footer-brand .nav-logo {
    margin-bottom: 24px;
    justify-content: flex-start;
    margin-left: -4px;
}

.footer-brand .nav-logo img {
    height: 48px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: var(--text-4);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--text-3);
}

/* ─── Animations ────────────────────────────────── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-up {
    opacity: 0;
}

.animate-fade-up.visible {
    animation: fade-up 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1199px) {

    .zoom-connector-arrows,
    .zoom-connector-long-arrows {
        display: none;
    }
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .nav-privacy {
        display: none
    }
}

@media (max-width: 900px) {
    .nav-terms {
        display: none
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none
    }

    .hero-title {
        font-size: 56px;
    }

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

    .bento-span-4,
    .bento-span-5,
    .bento-span-7,
    .bento-span-8 {
        grid-column: span 12;
    }

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

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

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

    .zoom-split-canvas {
        grid-template-columns: 1fr;
        height: auto;
    }

    .zoom-connector {
        padding: 32px 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-graph-wrap {
        margin-bottom: -40px;
    }

    .features {
        padding-top: 120px;
    }

    /* ── Scroll-driven sections: restore static layout on mobile ── */
    .zoom-scroll-wrapper {
        height: auto;
    }

    .zoom-feature-section {
        position: static;
        height: auto;
        padding: 80px 0;
    }

    .zoom-feature-section::after {
        display: none;
    }

    .zoom-connector-arrows .arrow-draw,
    .zoom-connector-long-arrows .arrow-draw {
        stroke-dasharray: none !important;
    }

    .zoom-diagram-block {
        transform: none;
    }

    .zoom-panel-right {
        opacity: 1;
        transform: none;
    }

    .text-word {
        color: var(--text-1);
    }

    .how-scroll-wrapper {
        height: auto;
    }

    .how-it-works {
        position: static;
        height: auto;
        padding: 80px 0;
    }

    .step-card {
        opacity: 1;
        transform: none;
    }

    /* Hero content: disable parallax on mobile */
    .hero-content {
        opacity: 1 !important;
        transform: none !important;
    }
}
