/* ===================================================
   Inferencia — Styles
   Hand-crafted. Intentionally imperfect.

   Design philosophy:
   - Break symmetry on purpose
   - Let whitespace breathe unevenly
   - One big idea per section
   - No shadows — borders only
   - Animate with restraint
   =================================================== */

:root {
    --brand-primary: #272935;
    --brand-secondary: #191a25;
    --brand-accent: #0097b2;
    --brand-light: #f7f7ff;

    /* surface layers — subtle shifts, not flat */
    --surface-base: #191a25;
    --surface-raised: #1e1f2b;
    --surface-card: #22242f;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
    --duration: .35s;
    --header-h: 72px;
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--surface-base);
    color: var(--brand-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain texture — overlays everything subtly */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: .22;
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
kbd { font-family: var(--font); }


/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}


/* ===================================================
   SCROLL PROGRESS — thin, not flashy
   =================================================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 200;
    pointer-events: none;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-accent);
    transition: width 50ms linear;
    will-change: width;
}


/* ===================================================
   HEADER — glass, direction-aware
   =================================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(25, 26, 37, .55);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgba(247, 247, 255, .04);
    transition: transform .45s var(--ease),
                background .35s var(--ease),
                border-color .35s var(--ease);
}

.header.is-scrolled {
    background: rgba(25, 26, 37, .92);
    border-bottom-color: rgba(247, 247, 255, .06);
}

.header.is-hidden { transform: translateY(-100%); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Logo */
.logo-link { display: inline-flex; }

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-light);
    border-radius: var(--radius-pill);
    padding: 7px 14px 7px 10px;
}
.logo-pill--sm { padding: 5px 12px 5px 8px; }
.logo-pill--sm .logo-text { font-size: 15px; }

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-secondary);
    letter-spacing: -.01em;
}


/* Desktop Nav */
.nav-main {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 450;
    color: rgba(247, 247, 255, .45);
    letter-spacing: .005em;
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--brand-accent);
    transition: width var(--duration) var(--ease);
}

.nav-link:hover { color: var(--brand-light); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--brand-light); }


/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    width: 32px;
}

.toggle-bar {
    display: block;
    height: 2px;
    background: rgba(247, 247, 255, .6);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}

.mobile-toggle.is-active .toggle-bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
}
.mobile-toggle.is-active .toggle-bar:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}


/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(25, 26, 37, .96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.mobile-nav-link {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
    color: rgba(247, 247, 255, .6);
    letter-spacing: -.02em;
    transition: color .2s;
}

.mobile-nav-link:hover { color: var(--brand-light); }


/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: transform var(--duration) var(--ease),
                background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

.btn-accent {
    background: var(--brand-accent);
    color: var(--brand-light);
}
.btn-accent:hover { background: #00a8c6; }

.btn-primary {
    background: var(--brand-accent);
    color: var(--brand-light);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #00a8c6;
}

.btn-outline {
    background: transparent;
    color: rgba(247, 247, 255, .6);
    border: 1px solid rgba(247, 247, 255, .1);
    padding: 15px 31px;
}
.btn-outline:hover {
    border-color: rgba(247, 247, 255, .22);
    color: var(--brand-light);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform var(--duration) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }


/* ===================================================
   CUSTOM CURSOR — hero only
   =================================================== */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity .3s;
}

body.cursor-active .custom-cursor { opacity: 1; }
body.cursor-active { cursor: none; }
body.cursor-active a,
body.cursor-active button { cursor: none; }

.cursor-dot {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--brand-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform .1s;
}

.cursor-ring {
    position: absolute;
    width: 34px; height: 34px;
    border: 1px solid rgba(247, 247, 255, .45);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
}

body.cursor-active .custom-cursor.is-hovering .cursor-ring {
    width: 54px; height: 54px;
    border-color: var(--brand-accent);
}


/* ===================================================
   HERO — left-heavy layout, massive whitespace
   Big headline. Tiny subtext. One strong CTA.
   =================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 25% 40%, rgba(0, 151, 178, .05) 0%, transparent 70%),
        linear-gradient(168deg, var(--brand-primary) 0%, var(--surface-base) 55%, #11121b 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 247, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 247, 255, .018) 1px, transparent 1px);
    background-size: 68px 68px;
    transform-origin: center;
    transition: transform .15s linear;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: .3;
    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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    transition: transform .15s linear;
}

.hero-orb--1 {
    width: clamp(260px, 30vw, 440px);
    height: clamp(260px, 30vw, 440px);
    top: 6%; right: -5%;
    background: radial-gradient(circle, rgba(0, 151, 178, .06) 0%, transparent 70%);
}

.hero-orb--2 {
    width: clamp(160px, 18vw, 280px);
    height: clamp(160px, 18vw, 280px);
    bottom: 15%; left: 28%;
    background: radial-gradient(circle, rgba(0, 151, 178, .03) 0%, transparent 70%);
}


/* Hero layout: 60/40 split — intentionally left-heavy */
.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(40px, 5vw, 100px);
    align-items: center;
}

.hero-content {
    padding: clamp(56px, 10vh, 120px) 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 32px;
}

.eyebrow-dash {
    width: 24px;
    height: 1px;
    background: var(--brand-accent);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: var(--brand-light);
    margin-bottom: 28px;
}

/* Handwritten underline under accent text */
.text-accent {
    color: var(--brand-accent);
    position: relative;
    display: inline-block;
}

.handwritten-underline {
    position: absolute;
    bottom: -4px;
    left: -2%;
    width: 104%;
    height: 10px;
    opacity: .45;
}

.text-dim { color: rgba(247, 247, 255, .3); }

.hero-subtitle {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.75;
    color: rgba(247, 247, 255, .48);
    max-width: 460px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* Right side — proof numbers + demo stacked */
.hero-aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
}

/* Proof: real numbers, not generic */
.hero-proof {
    display: flex;
    gap: clamp(24px, 3vw, 48px);
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proof-number {
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--brand-light);
    line-height: 1;
}

.proof-label {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(247, 247, 255, .28);
    letter-spacing: .01em;
}


/* Demo window — slightly tilted, imperfect */
.demo-window {
    max-width: 340px;
    background: rgba(34, 36, 47, .7);
    border: 1px solid rgba(247, 247, 255, .05);
    border-radius: var(--radius);
    overflow: hidden;
    transform: rotate(1.8deg);
    transition: transform .5s var(--ease),
                border-color .3s;
}

.demo-window:hover {
    transform: rotate(0deg) translateY(-3px);
    border-color: rgba(247, 247, 255, .1);
}

.demo-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(247, 247, 255, .03);
}

.demo-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
}
.demo-dot--red { background: rgba(255, 95, 87, .55); }
.demo-dot--yellow { background: rgba(255, 189, 46, .55); }
.demo-dot--green { background: rgba(40, 201, 64, .55); }

.demo-bar-title {
    margin-left: 8px;
    font-size: 10px;
    color: rgba(247, 247, 255, .15);
    letter-spacing: .04em;
}

.demo-body {
    padding: 18px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
}

.demo-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.demo-line:last-child { margin-bottom: 0; }

.demo-caret {
    color: var(--brand-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.demo-text {
    color: rgba(247, 247, 255, .65);
    min-height: 1.3em;
}

.demo-cursor {
    animation: blink 1s step-end infinite;
    color: var(--brand-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.demo-line--response {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.demo-line--response.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-tag {
    font-size: 9px;
    font-weight: 700;
    color: var(--brand-accent);
    background: rgba(0, 151, 178, .09);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: .05em;
}

.demo-resp-text {
    color: rgba(247, 247, 255, .38);
    font-style: italic;
}


/* Hero annotation scribble */
.hero-annotation {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    transform: rotate(-4deg);
    transform-origin: left;
    padding-left: 8px;
}

.annotation-text {
    font-size: 11px;
    color: rgba(0, 151, 178, .4);
    font-style: italic;
}


/* Scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: clamp(20px, 4vw, 48px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(247, 247, 255, .18);
}

.scroll-track {
    width: 1px; height: 36px;
    background: rgba(247, 247, 255, .06);
    border-radius: 1px;
    overflow: hidden;
}

.scroll-thumb {
    width: 100%; height: 12px;
    background: var(--brand-accent);
    border-radius: 1px;
    animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
    0%   { transform: translateY(-12px); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(36px); opacity: 0; }
}


/* ===================================================
   DIVIDERS — organic, not perfect lines
   =================================================== */
.divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.divider--wave svg {
    width: 100%;
    height: 28px;
    display: block;
}

.divider--scribble {
    padding: 0 clamp(20px, 4vw, 48px);
    max-width: 1200px;
    margin: 0 auto;
}

.divider--scribble svg {
    width: 100%;
    height: 12px;
}


/* ===================================================
   MARQUEE — subtle, uppercase, muted
   =================================================== */
.marquee {
    border-top: 1px solid rgba(247, 247, 255, .04);
    border-bottom: 1px solid rgba(247, 247, 255, .04);
    padding: 14px 0;
    overflow: hidden;
    background: var(--surface-raised);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(247, 247, 255, .2);
    white-space: nowrap;
}

.marquee-sep {
    font-size: 7px;
    color: rgba(0, 151, 178, .25);
    flex-shrink: 0;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ===================================================
   SECTIONS — varied rhythm, NOT identical padding
   =================================================== */

/* Each section has different bg tone for subtle shift */
.section--services {
    padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
    background: var(--surface-base);
}

.section--process {
    padding: clamp(80px, 10vw, 150px) 0;
    background: var(--surface-raised);
}

.section--note {
    padding: clamp(48px, 6vw, 80px) 0;
    background: var(--surface-base);
    border-top: 1px solid rgba(247, 247, 255, .03);
}

.section--faq {
    padding: clamp(90px, 12vw, 180px) 0 clamp(100px, 13vw, 160px);
    background: var(--surface-base);
}

.section--cta {
    padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
    background: var(--surface-raised);
}


/* Section header — always left-aligned (human feel) */
.section-header {
    margin-bottom: clamp(48px, 6vw, 72px);
    text-align: left;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 14px;
}

.section-label--dim { color: rgba(247, 247, 255, .35); }

.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.025em;
    color: var(--brand-light);
}

.section-title--xl {
    font-size: clamp(32px, 4.2vw, 52px);
}


/* ===================================================
   SERVICE CARDS — asymmetric, not a perfect grid
   =================================================== */

/* Featured card — full width, horizontal, BIG */
.card--hero {
    background: var(--surface-card);
    border: 1px solid rgba(247, 247, 255, .05);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: border-color var(--duration) var(--ease);
    margin-bottom: 20px;
}

.card--hero:hover {
    border-color: rgba(0, 151, 178, .16);
}

.card-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: clamp(36px, 4vw, 56px);
    gap: 40px;
}

.card-hero-content { position: relative; }

.card-hero-visual {
    width: clamp(70px, 9vw, 120px);
    height: clamp(70px, 9vw, 120px);
    opacity: .05;
}

.card-hero-visual svg {
    width: 100%;
    height: 100%;
}

.card-title--xl {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 650;
    letter-spacing: -.015em;
    margin-bottom: 12px;
}


/* Pair — offset one card down, breaking symmetry */
.card-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid rgba(247, 247, 255, .05);
    border-radius: var(--radius);
    padding: clamp(28px, 3vw, 42px);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease),
                transform .5s var(--ease);
}

/* Soft gradient on hover — barely visible */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 151, 178, .02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    pointer-events: none;
}

.card:hover {
    border-color: rgba(0, 151, 178, .13);
    transform: translateY(-3px);
}

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

/* Offset — intentional asymmetry */
.card--offset {
    margin-top: 40px;
}

.card-label {
    position: absolute;
    top: clamp(20px, 2vw, 30px);
    right: clamp(20px, 2vw, 30px);
    font-size: 11px;
    font-weight: 600;
    color: rgba(247, 247, 255, .07);
    font-variant-numeric: tabular-nums;
}

.card-icon {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 151, 178, .06);
    margin-bottom: 22px;
}

.card-icon svg {
    width: 18px; height: 18px;
    color: var(--brand-accent);
}

.card-title {
    font-size: clamp(17px, 1.3vw, 21px);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.card-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(247, 247, 255, .42);
    margin-bottom: 18px;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(247, 247, 255, .25);
    border: 1px solid rgba(247, 247, 255, .06);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
}

/* Hover-reveal detail — not click-heavy */
.card-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease), opacity .3s;
    opacity: 0;
}

.card:hover .card-reveal,
.card--hero:hover .card-reveal {
    max-height: 100px;
    opacity: 1;
}

.card-reveal p {
    padding-top: 14px;
    font-size: 12.5px;
    line-height: 1.65;
    color: rgba(0, 151, 178, .6);
    border-top: 1px solid rgba(247, 247, 255, .04);
    margin-top: 14px;
    font-style: italic;
}

.card--hero .card-reveal {
    padding: 0 clamp(36px, 4vw, 56px) 0;
}

.card--hero:hover .card-reveal {
    padding-bottom: clamp(24px, 3vw, 40px);
}

.section-footnote {
    margin-top: 44px;
    font-size: 12.5px;
    color: rgba(247, 247, 255, .22);
    line-height: 1.6;
}

.footnote-ast {
    color: var(--brand-accent);
    margin-right: 4px;
}


/* ===================================================
   PROCESS — horizontal steps
   =================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.step {
    padding: 0 clamp(12px, 1.5vw, 24px);
    position: relative;
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.step-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-accent);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.step-rule {
    flex: 1;
    height: 1px;
    background: rgba(247, 247, 255, .06);
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.step-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(247, 247, 255, .38);
    margin-bottom: 12px;
}

.step-time {
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 151, 178, .45);
    letter-spacing: .02em;
}


/* ===================================================
   FOUNDER NOTE — personal, slightly rotated
   =================================================== */
.note-card {
    max-width: 620px;
    position: relative;
}

.note-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(247, 247, 255, .55);
    margin-bottom: 22px;
    background: rgba(39, 41, 53, .5);
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(247, 247, 255, .05);
}

.note-text {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.8;
    color: rgba(247, 247, 255, .5);
    font-style: normal;
    border: none;
}

.note-text em {
    color: var(--brand-light);
    font-style: italic;
}

.note-scribble {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.scribble-label {
    font-size: 11px;
    color: var(--brand-accent);
    opacity: .4;
    font-style: italic;
}


/* ===================================================
   FAQ — smooth height animation
   =================================================== */
.faq-list {
    max-width: 680px;
}

.faq-item {
    border-bottom: 1px solid rgba(247, 247, 255, .04);
}

.faq-item:first-child {
    border-top: 1px solid rgba(247, 247, 255, .04);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    text-align: left;
    gap: 24px;
}

.faq-q {
    font-size: 15px;
    font-weight: 500;
    color: rgba(247, 247, 255, .7);
    transition: color var(--duration);
}

.faq-trigger:hover .faq-q { color: var(--brand-light); }

.faq-icon {
    font-size: 18px;
    color: rgba(247, 247, 255, .2);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    transition: transform var(--duration) var(--ease), color var(--duration);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--brand-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease);
}

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

.faq-answer-body {
    padding: 0 0 22px;
}

.faq-answer-body p {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(247, 247, 255, .38);
    max-width: 560px;
}


/* ===================================================
   CTA — asymmetric, not centered
   =================================================== */
.cta-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid rgba(247, 247, 255, .05);
    border-radius: var(--radius);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px);
    max-width: 500px;
}

.cta-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.cta-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(247, 247, 255, .42);
    margin-bottom: 32px;
}

.cta-fine {
    margin-top: 16px;
    font-size: 11px;
    color: rgba(247, 247, 255, .18);
}

.cta-decoration {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 24vw, 340px);
    height: clamp(200px, 24vw, 340px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 151, 178, .08) 0%, transparent 65%);
}

/* Grid lines inside CTA — subtle texture */
.cta-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 247, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 247, 255, .015) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: .6;
}


/* ===================================================
   FOOTER
   =================================================== */
.footer {
    border-top: 1px solid rgba(247, 247, 255, .04);
    padding: 44px 0 36px;
    background: var(--surface-base);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(247, 247, 255, .2);
}

.footer-nav {
    display: flex;
    gap: 18px;
}

.footer-nav a {
    font-size: 13px;
    color: rgba(247, 247, 255, .3);
    transition: color var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--brand-light); }

.footer-copy {
    font-size: 11px;
    color: rgba(247, 247, 255, .12);
}

.footer-kbd-hint {
    font-size: 11px;
    color: rgba(247, 247, 255, .12);
    margin-top: 2px;
}

.footer-kbd-hint kbd {
    background: rgba(247, 247, 255, .05);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid rgba(247, 247, 255, .07);
}


/* ===================================================
   BACK TO TOP
   =================================================== */
.btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    background: rgba(34, 36, 47, .85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(247, 247, 255, .06);
    border-radius: var(--radius-pill);
    color: rgba(247, 247, 255, .45);
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .35s var(--ease),
                transform .35s var(--ease),
                color .2s,
                border-color .2s;
}

.btt.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btt:hover {
    color: var(--brand-light);
    border-color: rgba(247, 247, 255, .12);
}

.btt-text {
    letter-spacing: .05em;
    text-transform: uppercase;
}


/* ===================================================
   EXIT INTENT
   =================================================== */
.exit-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 150;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    pointer-events: none;
}

.exit-bar.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.exit-inner {
    background: var(--surface-card);
    border-bottom: 1px solid rgba(247, 247, 255, .05);
    padding: 14px clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: center;
}

.exit-msg {
    font-size: 13.5px;
    color: rgba(247, 247, 255, .55);
}

.exit-close {
    font-size: 18px;
    color: rgba(247, 247, 255, .25);
    transition: color .2s;
    padding: 4px;
}
.exit-close:hover { color: var(--brand-light); }


/* ===================================================
   TIME NUDGE
   =================================================== */
.nudge {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: rgba(34, 36, 47, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(247, 247, 255, .05);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.nudge.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nudge-msg {
    font-size: 12.5px;
    color: rgba(247, 247, 255, .45);
}

.nudge-msg a {
    color: var(--brand-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nudge-close {
    font-size: 16px;
    color: rgba(247, 247, 255, .2);
    padding: 2px;
    transition: color .2s;
}
.nudge-close:hover { color: var(--brand-light); }


/* ===================================================
   KEYBOARD SHORTCUTS MODAL
   =================================================== */
.kbd-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.kbd-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.kbd-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 26, 37, .7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.kbd-dialog {
    position: relative;
    background: var(--surface-card);
    border: 1px solid rgba(247, 247, 255, .07);
    border-radius: var(--radius);
    padding: 32px 36px;
    min-width: 280px;
    transform: scale(.96) translateY(8px);
    transition: transform .3s var(--ease-back);
}

.kbd-modal.is-visible .kbd-dialog {
    transform: scale(1) translateY(0);
}

.kbd-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: -.01em;
}

.kbd-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kbd-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kbd-row kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    background: rgba(247, 247, 255, .05);
    border: 1px solid rgba(247, 247, 255, .08);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 0 7px;
}

.kbd-row span {
    font-size: 12.5px;
    color: rgba(247, 247, 255, .45);
}

.kbd-hint {
    margin-top: 22px;
    font-size: 11px;
    color: rgba(247, 247, 255, .18);
}

.kbd-hint kbd {
    background: rgba(247, 247, 255, .04);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid rgba(247, 247, 255, .07);
}


/* ===================================================
   LIGHT MODE — [data-theme="light"]
   Surfaces flip white, text goes dark, accent stays
   =================================================== */

/* Theme toggle button */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(247, 247, 255, .08);
    background: rgba(39, 41, 53, .3);
    color: rgba(247, 247, 255, .55);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--duration) var(--ease),
                background var(--duration) var(--ease),
                color var(--duration) var(--ease);
}

.theme-toggle:hover {
    border-color: rgba(247, 247, 255, .2);
    color: var(--brand-light);
}

.theme-icon {
    position: absolute;
    transition: transform .5s var(--ease-back), opacity var(--duration) var(--ease);
}

.theme-icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-icon--moon { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* When light mode is active, swap icons */
[data-theme="light"] .theme-icon--sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .theme-icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }


/* Theme transition overlay — fluid organic reveal
   Architecture:
   1. On click, we capture old-theme bg color
   2. Switch theme INSTANTLY
   3. Overlay with old color dissolves via SVG turbulence mask
   4. Organic wobbly edges, no perfect circle, no snap */
.theme-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    will-change: transform;
}

.theme-transition-overlay canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


/* ── Light mode variable overrides ── */
[data-theme="light"] {
    --brand-primary: #f2f2f8;
    --brand-secondary: #e8e8f0;
    --brand-light: #272935;
    --surface-base: #fafafe;
    --surface-raised: #f2f2f8;
    --surface-card: #eaeaf2;
}

/* Body & global */
[data-theme="light"] body {
    background: var(--surface-base);
    color: var(--brand-light);
}

[data-theme="light"] body::after { opacity: .1; }

/* Header */
[data-theme="light"] .header {
    background: rgba(250, 250, 254, .65);
    border-bottom-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .header.is-scrolled {
    background: rgba(250, 250, 254, .94);
    border-bottom-color: rgba(39, 41, 53, .08);
}

/* Logo pill — invert */
[data-theme="light"] .logo-pill {
    background: var(--brand-light);
}
[data-theme="light"] .logo-text {
    color: #fafafe;
}
[data-theme="light"] .logo-mark {
    color: var(--brand-accent);
}

/* Nav */
[data-theme="light"] .nav-link {
    color: rgba(39, 41, 53, .45);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.is-active {
    color: var(--brand-light);
}

/* Buttons */
[data-theme="light"] .btn-outline {
    color: rgba(39, 41, 53, .6);
    border-color: rgba(39, 41, 53, .12);
}
[data-theme="light"] .btn-outline:hover {
    border-color: rgba(39, 41, 53, .3);
    color: var(--brand-light);
}

/* Theme toggle in light mode */
[data-theme="light"] .theme-toggle {
    border-color: rgba(39, 41, 53, .1);
    background: rgba(228, 229, 236, .5);
    color: rgba(39, 41, 53, .55);
}
[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(39, 41, 53, .2);
    color: var(--brand-light);
}

/* Hero */
[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(ellipse 55% 40% at 25% 40%, rgba(0, 151, 178, .06) 0%, transparent 70%),
        linear-gradient(168deg, #f2f2f8 0%, #fafafe 55%, #e8e8f0 100%);
}
[data-theme="light"] .hero-grid-bg {
    background-image:
        linear-gradient(rgba(39, 41, 53, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 41, 53, .03) 1px, transparent 1px);
}
[data-theme="light"] .hero-grain { opacity: .12; }
[data-theme="light"] .hero-orb--1 {
    background: radial-gradient(circle, rgba(0, 151, 178, .08) 0%, transparent 70%);
}
[data-theme="light"] .hero-orb--2 {
    background: radial-gradient(circle, rgba(0, 151, 178, .05) 0%, transparent 70%);
}

[data-theme="light"] .hero-subtitle {
    color: rgba(39, 41, 53, .5);
}

[data-theme="light"] .text-dim {
    color: rgba(39, 41, 53, .3);
}

/* Proof */
[data-theme="light"] .proof-label {
    color: rgba(39, 41, 53, .35);
}

/* Demo window */
[data-theme="light"] .demo-window {
    background: rgba(234, 234, 242, .8);
    border-color: rgba(39, 41, 53, .08);
}
[data-theme="light"] .demo-window:hover {
    border-color: rgba(39, 41, 53, .15);
}
[data-theme="light"] .demo-bar {
    border-bottom-color: rgba(39, 41, 53, .04);
}
[data-theme="light"] .demo-bar-title {
    color: rgba(39, 41, 53, .2);
}
[data-theme="light"] .demo-text {
    color: rgba(39, 41, 53, .65);
}
[data-theme="light"] .demo-resp-text {
    color: rgba(39, 41, 53, .4);
}

/* Annotation */
[data-theme="light"] .annotation-text {
    color: rgba(0, 151, 178, .5);
}

/* Scroll cue */
[data-theme="light"] .scroll-label {
    color: rgba(39, 41, 53, .2);
}
[data-theme="light"] .scroll-track {
    background: rgba(39, 41, 53, .08);
}

/* Marquee */
[data-theme="light"] .marquee {
    border-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .marquee-item {
    color: rgba(39, 41, 53, .22);
}
[data-theme="light"] .marquee-sep {
    color: rgba(0, 151, 178, .3);
}

/* Cards */
[data-theme="light"] .card,
[data-theme="light"] .card--hero {
    background: var(--surface-card);
    border-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .card--hero:hover {
    border-color: rgba(0, 151, 178, .18);
}
[data-theme="light"] .card-label {
    color: rgba(39, 41, 53, .1);
}
[data-theme="light"] .card-icon {
    background: rgba(0, 151, 178, .08);
}
[data-theme="light"] .card-desc {
    color: rgba(39, 41, 53, .45);
}
[data-theme="light"] .tag {
    color: rgba(39, 41, 53, .3);
    border-color: rgba(39, 41, 53, .08);
}
[data-theme="light"] .card-reveal p {
    color: rgba(0, 151, 178, .7);
    border-top-color: rgba(39, 41, 53, .06);
}

/* Section labels & titles */
[data-theme="light"] .section-label--dim { color: rgba(39, 41, 53, .4); }
[data-theme="light"] .section-footnote { color: rgba(39, 41, 53, .25); }

/* Steps */
[data-theme="light"] .step-rule { background: rgba(39, 41, 53, .08); }
[data-theme="light"] .step-desc { color: rgba(39, 41, 53, .42); }
[data-theme="light"] .step-time { color: rgba(0, 151, 178, .55); }

/* Note */
[data-theme="light"] .note-badge {
    background: rgba(228, 229, 236, .6);
    border-color: rgba(39, 41, 53, .06);
    color: rgba(39, 41, 53, .6);
}
[data-theme="light"] .note-text {
    color: rgba(39, 41, 53, .5);
}
[data-theme="light"] .note-text em {
    color: var(--brand-light);
}

/* FAQ */
[data-theme="light"] .faq-item {
    border-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .faq-q {
    color: rgba(39, 41, 53, .7);
}
[data-theme="light"] .faq-trigger:hover .faq-q {
    color: var(--brand-light);
}
[data-theme="light"] .faq-icon {
    color: rgba(39, 41, 53, .25);
}
[data-theme="light"] .faq-answer-body p {
    color: rgba(39, 41, 53, .42);
}

/* CTA */
[data-theme="light"] .cta-card {
    background: var(--surface-card);
    border-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .cta-desc {
    color: rgba(39, 41, 53, .45);
}
[data-theme="light"] .cta-fine {
    color: rgba(39, 41, 53, .22);
}
[data-theme="light"] .cta-grid-lines {
    background-image:
        linear-gradient(rgba(39, 41, 53, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 41, 53, .025) 1px, transparent 1px);
}

/* Footer */
[data-theme="light"] .footer {
    border-top-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .footer-tagline { color: rgba(39, 41, 53, .25); }
[data-theme="light"] .footer-nav a { color: rgba(39, 41, 53, .35); }
[data-theme="light"] .footer-nav a:hover { color: var(--brand-light); }
[data-theme="light"] .footer-copy { color: rgba(39, 41, 53, .15); }
[data-theme="light"] .footer-kbd-hint { color: rgba(39, 41, 53, .15); }
[data-theme="light"] .footer-kbd-hint kbd {
    background: rgba(39, 41, 53, .05);
    border-color: rgba(39, 41, 53, .08);
}

/* Back to top */
[data-theme="light"] .btt {
    background: rgba(242, 242, 248, .9);
    border-color: rgba(39, 41, 53, .08);
    color: rgba(39, 41, 53, .45);
}
[data-theme="light"] .btt:hover {
    color: var(--brand-light);
    border-color: rgba(39, 41, 53, .15);
}

/* Exit bar */
[data-theme="light"] .exit-inner {
    background: var(--surface-card);
    border-bottom-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .exit-msg { color: rgba(39, 41, 53, .6); }
[data-theme="light"] .exit-close { color: rgba(39, 41, 53, .3); }

/* Nudge */
[data-theme="light"] .nudge {
    background: rgba(242, 242, 248, .94);
    border-color: rgba(39, 41, 53, .06);
}
[data-theme="light"] .nudge-msg { color: rgba(39, 41, 53, .5); }
[data-theme="light"] .nudge-close { color: rgba(39, 41, 53, .25); }

/* Kbd modal */
[data-theme="light"] .kbd-overlay {
    background: rgba(250, 250, 254, .7);
}
[data-theme="light"] .kbd-dialog {
    background: var(--surface-card);
    border-color: rgba(39, 41, 53, .08);
}
[data-theme="light"] .kbd-row kbd {
    background: rgba(39, 41, 53, .05);
    border-color: rgba(39, 41, 53, .1);
}
[data-theme="light"] .kbd-row span {
    color: rgba(39, 41, 53, .5);
}
[data-theme="light"] .kbd-hint { color: rgba(39, 41, 53, .22); }

/* Cursor — darker in light mode */
[data-theme="light"] .cursor-dot {
    background: var(--brand-light);
}
[data-theme="light"] .cursor-ring {
    border-color: rgba(39, 41, 53, .4);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(39, 41, 53, .1);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(39, 41, 53, .2);
}

/* Dividers */
[data-theme="light"] .divider--wave svg path {
    fill: var(--surface-raised);
}
[data-theme="light"] .divider--scribble svg path {
    stroke: rgba(39, 41, 53, .08);
}

/* Mobile nav */
[data-theme="light"] .mobile-nav {
    background: rgba(250, 250, 254, .96);
}
[data-theme="light"] .mobile-nav-link {
    color: rgba(39, 41, 53, .5);
}
[data-theme="light"] .mobile-nav-link:hover {
    color: var(--brand-light);
}

[data-theme="light"] .toggle-bar {
    background: rgba(39, 41, 53, .5);
}

/* Handwritten underline */
[data-theme="light"] .handwritten-underline {
    opacity: .55;
}


/* ===================================================
   REVEAL ANIMATIONS — restrained, not overkill
   =================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .7s var(--ease-out),
        transform .7s var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays — varied, not mechanical */
[data-reveal][data-reveal-delay="80"]  { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="120"] { transition-delay: 120ms; }
[data-reveal][data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-reveal-delay="220"] { transition-delay: 220ms; }
[data-reveal][data-reveal-delay="240"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-reveal-delay="320"] { transition-delay: 320ms; }
[data-reveal][data-reveal-delay="360"] { transition-delay: 360ms; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal][data-reveal-delay="900"] { transition-delay: 900ms; }


/* ===================================================
   RESPONSIVE — mobile is a different design, not shrunken
   =================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-aside {
        padding-top: 0;
    }

    .demo-window {
        transform: rotate(0);
        max-width: 300px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }

    .step:nth-child(1), .step:nth-child(3) { padding-left: 0; }
    .step:nth-child(2), .step:nth-child(4) { padding-right: 0; }
}

@media (max-width: 768px) {
    .nav-main { display: none; }
    .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    .custom-cursor { display: none !important; }

    .hero-content {
        padding: clamp(32px, 5vh, 56px) 0;
    }

    .hero-aside { display: none; }

    /* Show proof inline on mobile */
    .hero-actions { margin-bottom: 36px; }

    .card-pair {
        grid-template-columns: 1fr;
    }

    .card--offset { margin-top: 0; }

    .card--hero .card-hero-inner {
        grid-template-columns: 1fr;
    }

    .card-hero-visual { display: none; }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .step { padding: 0 !important; }
    .step-rule { display: none; }

    .cta-decoration { display: none; }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }

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

    .btn-lg { justify-content: center; }

    .hero-scroll-cue { left: 20px; }
    .nudge { left: 14px; right: 14px; bottom: 14px; }
    .btt { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 24px; }
    .section-title--xl { font-size: 28px; }
    .cta-title { font-size: 24px; }
}


/* ===================================================
   REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .scroll-thumb { animation: none; }
}
