/* ============================================================
   VANCROFT PREMIUM DESIGN SYSTEM (style2.css)
   Final production-ready with all optimisations applied.
   ============================================================ */

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

:root {
    /* Canvas Colors */
    --bg: #07080a;
    --bg-card: rgba(11, 12, 15, 0.82);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 107, 74, 0.15);

    /* Typography Colors */
    --text-primary: #ffffff;
  --text-secondary: #b0b0b2;
  --text-muted: #72737a;

    /* Accent Aurora Palette */
    --crimson: #ff2f3a;
    --coral: #ff6b4a;
    --amber: #ffb347;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    /* Legacy compatibility aliases */
    --surface: rgba(11, 12, 15, 0.82);
    --border2: rgba(255, 255, 255, 0.08);
    --border3: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #b0b0b2;
    --dim: #72737a;
    --fh: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fb: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fm: 'JetBrains Mono', monospace;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

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

/* ── GLOBAL BOX-SIZING & OVERFLOW GUARD ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── LIVING AURORA BACKGROUND SYSTEM ── */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    clip-path: inset(0);
}

.blade {
    position: absolute; /* CRITICAL: removes from document flow so 1100px+ widths don't cause horizontal overflow */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.blade-1 {
    width: 1100px;
    height: 420px;
    top: -12%;
    left: -18%;
    background: radial-gradient(
            ellipse 60% 40% at 55% 50%,
            rgba(255, 47, 58, 0.38) 0%,
            rgba(255, 107, 74, 0.18) 38%,
            rgba(255, 179, 71, 0.06) 65%,
            transparent 100%
    );
    filter: blur(88px);
    transform: rotate(-28deg) scaleX(1.3);
    animation: drift1 20s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}

.blade-2 {
    width: 900px;
    height: 360px;
    top: 15%;
    right: -22%;
    background: radial-gradient(
            ellipse 55% 35% at 42% 52%,
            rgba(255, 107, 74, 0.3) 0%,
            rgba(255, 179, 71, 0.15) 45%,
            rgba(255, 47, 58, 0.04) 75%,
            transparent 100%
    );
    filter: blur(96px);
    transform: rotate(22deg);
    animation: drift2 25s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    animation-delay: -6s;
}

.blade-3 {
    width: 1200px;
    height: 320px;
    top: 35%;
    left: -8%;
    background: radial-gradient(
            ellipse 70% 30% at 48% 50%,
            rgba(255, 107, 74, 0.18) 0%,
            rgba(255, 47, 58, 0.1) 35%,
            rgba(255, 179, 71, 0.04) 65%,
            transparent 100%
    );
    filter: blur(100px);
    transform: rotate(-18deg);
    animation: drift3 18s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    animation-delay: -10s;
}

.blade-4 {
    width: 800px;
    height: 500px;
    bottom: -10%;
    right: -5%;
    background: radial-gradient(
            ellipse 50% 55% at 50% 45%,
            rgba(255, 47, 58, 0.22) 0%,
            rgba(255, 107, 74, 0.1) 50%,
            transparent 80%
    );
    filter: blur(92px);
    transform: rotate(-35deg) scaleY(1.2);
    animation: drift4 22s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    animation-delay: -3s;
}

.blade-5 {
    width: 750px;
    height: 300px;
    top: -5%;
    left: 30%;
    background: radial-gradient(
            ellipse 65% 40% at 50% 60%,
            rgba(255, 179, 71, 0.14) 0%,
            rgba(255, 107, 74, 0.06) 55%,
            transparent 85%
    );
    filter: blur(72px);
    transform: rotate(-8deg);
    animation: drift5 15s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    animation-delay: -8s;
}

/* Aurora drift animations (unchanged) */
@keyframes drift1 {
    0% {
        transform: rotate(-28deg) scaleX(1.3) translate(0, 0);
        opacity: 1;
    }
    30% {
        transform: rotate(-24deg) scaleX(1.38) translate(3%, 4%);
        opacity: 0.85;
    }
    65% {
        transform: rotate(-32deg) scaleX(1.25) translate(-2%, 6%);
        opacity: 0.95;
    }
    100% {
        transform: rotate(-26deg) scaleX(1.42) translate(5%, 2%);
        opacity: 0.78;
    }
}

@keyframes drift2 {
    0% {
        transform: rotate(22deg) translate(0, 0) scale(1);
        opacity: 0.9;
    }
    40% {
        transform: rotate(26deg) translate(-4%, 3%) scale(1.07);
        opacity: 1;
    }
    100% {
        transform: rotate(19deg) translate(3%, -5%) scale(0.94);
        opacity: 0.72;
    }
}

@keyframes drift3 {
    0% {
        transform: rotate(-18deg) translate(0, 0) scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(-14deg) translate(4%, -3%) scaleX(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(-22deg) translate(-3%, 5%) scaleX(0.95);
        opacity: 0.65;
    }
}

@keyframes drift4 {
    0% {
        transform: rotate(-35deg) scaleY(1.2) translate(0, 0);
        opacity: 0.85;
    }
    45% {
        transform: rotate(-30deg) scaleY(1.3) translate(-3%, -4%);
        opacity: 1;
    }
    100% {
        transform: rotate(-38deg) scaleY(1.15) translate(4%, 3%);
        opacity: 0.7;
    }
}

@keyframes drift5 {
    0% {
        transform: rotate(-8deg) translate(0, 0) scale(1);
        opacity: 0.75;
    }
    35% {
        transform: rotate(-5deg) translate(3%, 2%) scale(1.12);
        opacity: 0.95;
    }
    100% {
        transform: rotate(-11deg) translate(-4%, -3%) scale(0.92);
        opacity: 0.6;
    }
}

/* ── FILM GRAIN ── */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cfilter id='fg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fg)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grainShift 0.12s steps(1) infinite;
}

.grain::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: repeating-conic-gradient(#000 0 0.0001%, #0000 0 0.0002%);
    opacity: 0.03;
    pointer-events: none;
}

@keyframes grainShift {
    0% {
        background-position: 0px 0px;
    }
    10% {
        background-position: -48px -24px;
    }
    20% {
        background-position: 36px 12px;
    }
    30% {
        background-position: -8px 48px;
    }
    40% {
        background-position: 60px -36px;
    }
    50% {
        background-position: -24px 60px;
    }
    60% {
        background-position: 24px -48px;
    }
    70% {
        background-position: -60px 24px;
    }
    80% {
        background-position: 48px 36px;
    }
    90% {
        background-position: -36px -12px;
    }
    100% {
        background-position: 12px 48px;
    }
}

/* ── VIGNETTE ── */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(
            ellipse 100% 100% at 50% 50%,
            transparent 42%,
            rgba(7, 8, 10, 0.38) 68%,
            rgba(7, 8, 10, 0.8) 100%
    );
}

/* ── LAYOUT CONTAINER ── */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── HEADER NAVIGATION ── */
.nav-container {
    position: fixed;
    /* env(safe-area-inset-top) adds the iPhone X notch height automatically */
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 1200px;
    box-sizing: border-box;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 60px;
    background: rgba(11, 12, 15, 0.8);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo img {
    height: 20px;
    width: auto;
    display: block;
}

.nav-logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 8px rgba(255, 107, 74, 0.8);
    animation: dotPulse 2.4s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a {
    transition: color 0.2s;
    padding: 4px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── KEYCAP BUTTONS ── */
.btn-keycap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: #1e2021;
    background: linear-gradient(180deg, #f5f5f5 0%, #e6e6e6 40%, #dcdcdc 100%);
    border: none;
    border-radius: 9px;
    padding: 13px 28px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: -0.1px;
    outline: 1.5px solid rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(255, 255, 255, 0.08),
    0 5px 0 rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.08s, box-shadow 0.08s;
}

.btn-keycap:hover {
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(255, 255, 255, 0.12),
    0 6px 0 rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.btn-keycap:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(255, 255, 255, 0.06),
    0 2px 0 rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* ── HERO CTA ENHANCEMENT (PRIMARY BUTTON) ── */
.btn-keycap-hero {
    padding: 15px 34px;
    font-size: 16px;
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(255, 107, 74, 0.15),
    0 6px 0 rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn-keycap-hero:hover {
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.9),
    0 0 38px rgba(255, 107, 74, 0.25),
    0 6px 0 rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

/* ── GHOST BUTTON (NAV CTA) ── */
.btn-keycap-ghost {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #c0c0c0;
    font-weight: 500;
    outline: 1.5px solid rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 255, 255, 0.04),
    0 3px 0 rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.3);
}

.btn-keycap-ghost:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.045) 100%);
    box-shadow: 0 0 0 2.5px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 255, 255, 0.06),
    0 4px 0 rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Extra-specific nav CTA styling (preserves original) */
.nav-cta-btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 7px;
    outline: 1px solid rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.8),
    0 2px 0 rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── MOBILE DRAWERS ── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    /* top = nav-container top(18px) + nav height(60px) - small gap = ~74px */
    top: calc(74px + env(safe-area-inset-top, 0px));
    background: rgba(7, 8, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px 32px calc(40px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    gap: 24px;
    /* Must be above nav (z-index:100) */
    z-index: 110;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

/* Full-width mobile CTA */
.mobile-cta-btn {
    width: 100%;
    text-align: center;
}

/* ── HERO SECTION ── */
.hero {
    /* svh = small viewport height, excludes iOS Safari chrome */
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 18px;
    border-radius: 100px;
}

.eyebrow-line {
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, var(--crimson), var(--amber));
    opacity: 0.7;
}

.eyebrow-line.mirror {
    transform: scaleX(-1);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 8px rgba(255, 107, 74, 0.8);
    animation: dotPulse 2.4s ease-in-out infinite;
}

h1 {
    font-size: clamp(36px, 6.8vw, 92px);
    font-weight: 700;
    line-height: 1.06;
    /* letter-spacing scales with font size — -3px is fine at 92px but breaks at 36px */
    letter-spacing: clamp(-1px, -0.03em, -3px);
    color: var(--text-primary);
    margin-bottom: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1 .line {
    display: block;
}

h1 .grad {
    background: linear-gradient(110deg, var(--amber) 0%, var(--coral) 48%, var(--crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: warmShift 5s ease-in-out infinite alternate;
}

.hero-sub {
    font-size: clamp(15px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: min(660px, 90%);
    margin: 0 auto 44px;
    line-height: 1.65;
}

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

/* Hero note (small print) */
.hero-note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── COMMAND BAR MOCKUP (unused but kept for completeness) ── */
.cmd-bar-wrap {
    width: 100%;
    max-width: 840px;
    margin: 64px auto 0;
    position: relative;
    text-align: left;
}

.cmd-bar-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255, 107, 74, 0.12) 0%, transparent 75%);
    filter: blur(24px);
    pointer-events: none;
}

.cmd-bar {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cmd-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 74, 0.3) 30%, rgba(255, 179, 71, 0.2) 55%, transparent 100%);
}

.cmd-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.live {
    background: #5cb85c;
    box-shadow: 0 0 6px rgba(92, 184, 92, 0.8);
}

.status-label {
    color: var(--text-muted);
}

.status-value {
    color: var(--text-secondary);
}

.status-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.status-warm {
    color: var(--coral);
    font-weight: 500;
}

.cmd-search {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cmd-search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cmd-input-text {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #e0e0e0;
}

.cmd-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--coral);
    vertical-align: middle;
    margin-left: 2px;
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(255, 107, 74, 0.8);
    animation: cursorBlink 1.1s ease-in-out infinite;
}

@keyframes cursorBlink {
    0%, 48% {
        opacity: 1;
    }
    50%, 98% {
        opacity: 0;
    }
}

.cmd-shortcut {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #3a3c42;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 3px 8px;
    white-space: nowrap;
    margin-left: auto;
}

.cmd-results {
    padding: 8px 0;
}

.cmd-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.cmd-result:hover,
.cmd-result.active {
    background: rgba(255, 255, 255, 0.04);
}

.cmd-result.active {
    background: rgba(255, 107, 74, 0.06);
    border-left: 2px solid rgba(255, 107, 74, 0.5);
    padding-left: 22px;
}

.cmd-result-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.cmd-result-icon.run {
    background: rgba(255, 107, 74, 0.12);
    color: var(--coral);
}

.cmd-result-icon.build {
    background: rgba(255, 179, 71, 0.1);
    color: var(--amber);
}

.cmd-result-icon.check {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.cmd-result-icon.deploy {
    background: rgba(255, 47, 58, 0.12);
    color: var(--crimson);
}

.cmd-result-content {
    flex: 1;
    min-width: 0;
}

.cmd-result-title {
    font-size: 13.5px;
    font-weight: 500;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmd-result-title.active {
    color: #fff;
}

.cmd-result-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cmd-result-desc .success {
    color: #5cb85c;
}

.cmd-result-desc .pending {
    color: var(--amber);
}

.cmd-result-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 2px 7px;
}

.cmd-result-shortcut {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #3a3c42;
    display: flex;
    gap: 4px;
}

.cmd-result-shortcut span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
}

.cmd-divider {
    padding: 4px 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: #333640;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    padding-top: 12px;
}

.cmd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-footer-chips {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 3px 9px;
}

.chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.chip-dot.green {
    background: #5cb85c;
    box-shadow: 0 0 4px rgba(92, 184, 92, 0.7);
}

.chip-dot.amber {
    background: var(--amber);
    box-shadow: 0 0 4px rgba(255, 179, 71, 0.7);
}

.cmd-footer-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #333640;
    display: flex;
    gap: 12px;
}

.cmd-footer-hint span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmd-footer-hint kbd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

/* ── SOCIAL PROOF LOGO MARQUEE (unused) ── */
.social-proof {
    padding: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.social-proof-inner {
    padding: 44px 0 48px;
}

.social-proof-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 36px;
}

.logo-track-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px 64px;
}

.logo-item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.4s, transform 0.3s;
}

.logo-item:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
}

.logo-item img {
    max-height: 28px;
    max-width: 130px;
    object-fit: contain;
    display: block;
}

/* ── COMMON SECTION LAYOUTS ── */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--coral);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--coral);
    opacity: 0.6;
}

/* Centered variant */
.section-label.centered {
    justify-content: center;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2.2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-body {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.72;
}

/* ── GLASSMorphic CARDS ── */
.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
    /* will-change applied only on hover via JS — not statically, which wastes GPU layers */
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0.3), transparent);
    transition: opacity 0.3s;
}

/* Only apply hover lift on devices that support true hover (not mobile touch) */
@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 107, 74, 0.25);
        box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 107, 74, 0.08);
    }
}

/* ── THE PROBLEM SECTION V2 ── */
.problem-v2 {
    padding: 140px 0 120px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.problem-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 72px;
}

.problem-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

.problem-card {
    padding: 42px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--crimson), var(--coral));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 107, 74, 0.35);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 107, 74, 0.2);
}

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

.proc-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--coral);
    margin-bottom: 20px;
    display: inline-block;
}

.problem-card-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.15;
}

.problem-card-desc {
    font-size: 15.2px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.68;
    flex-grow: 1;
}

.problem-card-desc strong {
    color: #fff;
    font-weight: 600;
}

.problem-callout-v2 {
    max-width: 860px;
    margin: 0 auto;
}

.problem-callout-inner {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 74, 0.25);
    border-radius: 28px;
    padding: 68px 52px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.problem-callout-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 47, 58, 0.06) 0%, rgba(255, 107, 74, 0.04) 50%, transparent 80%);
    pointer-events: none;
}

.problem-callout-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--coral), var(--amber), transparent);
}

.problem-callout-quote {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.1px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.problem-callout-quote span {
    background: linear-gradient(90deg, var(--coral), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.problem-callout-desc {
    color: var(--text-secondary);
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
}

/* ── THE SOLUTION & OFFERS ── */
.solution {
    padding: 130px 0;
    background: linear-gradient(160deg, rgba(255, 47, 58, 0.03) 0%, rgba(255, 107, 74, 0.02) 40%, transparent 75%);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.solution-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}

.solution-intro-text {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 550;
    margin-bottom: 28px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.solution-card {
    padding: 48px;
}

/* Flex variant for equal height cards */
.solution-card-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
}

.solution-card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.68;
    margin-bottom: 24px;
}

.solution-card-footer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.solution-card-highlight {
    border-color: rgba(255, 107, 74, 0.25);
}

.solution-card-footer-highlight {
    background: rgba(255, 107, 74, 0.05);
    border: 1px solid rgba(255, 107, 74, 0.15);
    color: var(--coral);
    line-height: 1.5;
}

/* Price tags */
.price-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 18px;
}

.price-tag-amber {
    color: var(--amber);
}

.price-tag-coral {
    color: var(--coral);
}

.sprint-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 74, 0.08);
    border: 1px solid rgba(255, 107, 74, 0.18);
    color: var(--coral);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.policy-box {
    margin-top: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 36px;
}

.policy-box p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 820px;
    margin: 0 auto;
}

.policy-box strong {
    color: var(--text-primary);
}

/* ── CASE STUDIES ── */
.case-studies-sec {
    padding: 130px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.case-studies-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.case-card.expanded {
    border-color: rgba(255, 107, 74, 0.5);
}

.case-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0a0c10;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.85);
}

.case-card:hover .case-img-wrap img {
    transform: scale(1.06);
    filter: brightness(0.95);
}

.case-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(7, 8, 10, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 74, 0.2);
    color: var(--coral);
    padding: 4px 12px;
    border-radius: 100px;
}

.case-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.case-result {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Expand/collapse trigger */
.case-expand-trigger {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--coral);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* Hidden expanded details (revealed via .expanded class) */
.case-expanded-details {
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 18px;
    padding-top: 18px;
    text-align: left;
}

.case-card.expanded .case-expanded-details {
    display: block;
}

.case-detail-block {
    margin-bottom: 12px;
}

.case-detail-heading {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--coral);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.case-detail-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.case-tech-tags {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--coral);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
}

.case-card:hover .case-link {
    gap: 10px;
    color: var(--amber);
}

.case-studies-all-link {
    text-align: center;
    margin-top: 40px;
}

.case-studies-all-link .case-link {
    font-size: 15px;
}

/* ── PROCESS ── */
.process-sec {
    padding: 130px 0;
    background: var(--bg2); /* ensure --bg2 is defined if used */
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.proc-card {
    padding: 36px 28px;
}

/* Note: .proc-num redefined for process section (keeping original specificity) */
.process-grid .proc-num {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--coral);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
    opacity: 0.8;
}

.proc-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.proc-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── BOTTOM CTA SECTION ── */
.cta-sec {
    padding: 140px 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 47, 58, 0.05) 0%, transparent 70%);
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-box {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 107, 74, 0.15);
    border-radius: 28px;
    padding: 72px 64px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--crimson), var(--coral), var(--amber), transparent);
}

.cta-title {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -2.2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.cta-body {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.72;
}

/* ── ABOUT FOUNDER ── */
.about-founder {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.about-card {
    padding: 56px 64px;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
}

.about-headline {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.2px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-signature {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 56px 48px;
    background: var(--bg);
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.footer-brand img {
    height: 22px;
}

.footer-copy {
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact span {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.footer-email {
    color: var(--coral);
    font-weight: 600;
}

.footer-cal-link {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13.5px;
}

.footer-links {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a {
    transition: color 0.2s;
}

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

.footer-copyright {
    text-align: center;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    /* No filter:blur — it triggers expensive GPU compositing layers on mobile */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.cases-grid .reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.cases-grid .reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.process-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.process-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.process-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.offers-grid .reveal:nth-child(2) {
    transition-delay: 0.12s;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 10;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.testimonial-card {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--coral);
    margin-top: 4px;
}

/* Consistent testimonials heading */
.testimonials-heading {
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 700;
    letter-spacing: -2.2px;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .problem-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Process grid: 4-col is too cramped at tablet; drop to 2-col */
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Background: static gradient instead of animated blades */
    .aurora {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 20%, rgba(255, 47, 58, 0.12) 0%, rgba(255, 107, 74, 0.04) 50%, transparent 80%);
        overflow: hidden;
        clip-path: inset(0);
    }

    .blade {
        display: none !important;
    }

    /* Disable grain animation on mobile — runs 8+ times/second, kills iOS battery */
    .grain {
        animation: none;
        opacity: 0.02;
    }

    .grain::after {
        display: none;
    }

    /* Vignette is pure GPU compositing on mobile, not needed */
    .vignette {
        display: none;
    }

    /* Glass card: minimal backdrop-filter on mobile */
    .glass-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .nav {
        padding: 0 16px;
        height: 54px;
    }

    .nav-right {
        gap: 10px;
    }

    /* Hide desktop links & 20min call CTA button from top nav on mobile */
    .nav-links,
    .nav-right > a,
    .nav-right .nav-cta-btn,
    .nav-right .btn-keycap,
    .nav-cta {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile menu: ensure it sits below the nav and covers screen */
    .mobile-menu {
        top: 70px;
        z-index: 200;
    }

    /* Show CTA button in mobile drawer */
    .mobile-cta-btn {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        /* Allow the long CTA text to wrap instead of overflow */
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    /* INSTANT MOBILE LOADING & ZERO DELAY: DISALBE HIDDEN REVEAL STATES ON MOBILE */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Hero */
    .hero {
        padding: 90px 16px 50px;
        min-height: 100svh;
        min-height: 100vh;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* CRITICAL: Allow long CTA text to wrap on mobile.
       "Book a 20-Minute Diagnostic Call →" is ~340px wide at nowrap.
       On iPhone X (375px) this overflows the whole layout. */
    .btn-keycap,
    .btn-keycap-hero {
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .hero-sub {
        font-size: clamp(15px, 4vw, 18px);
    }

    .hero-note {
        font-size: 11.5px;
        line-height: 1.55;
    }

    /* Eyebrow pill: prevent overflow on small screens */
    .eyebrow {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 10px;
        padding: 6px 12px;
        max-width: calc(100% - 48px);
        white-space: normal;
        text-align: center;
        line-height: 1.6;
    }

    .eyebrow-line {
        display: none;
    }

    /* Layout */
    .wrap {
        padding: 0 20px;
    }

    h1 {
        /* At 375px, -3px tracking looks terrible. Ease it significantly. */
        letter-spacing: -0.5px;
        font-size: clamp(30px, 9vw, 48px);
    }

    /* Grids → single column on mobile */
    .problem-cards-grid,
    .cases-grid,
    .process-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Remove stagger delays on mobile — they cause perceived slowness */
    .cases-grid .reveal:nth-child(2),
    .cases-grid .reveal:nth-child(3),
    .process-grid .reveal:nth-child(2),
    .process-grid .reveal:nth-child(3),
    .process-grid .reveal:nth-child(4),
    .offers-grid .reveal:nth-child(2) {
        transition-delay: 0s;
    }

    /* Card padding reductions for mobile */
    .solution-card {
        padding: 28px 24px;
    }

    .proc-card {
        padding: 28px 22px;
    }

    .about-card {
        padding: 36px 28px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .offers-grid {
        grid-template-columns: 1fr !important;
    }

    .problem-callout-inner {
        padding: 36px 24px;
    }

    /* Case card images: constrain height on mobile */
    .case-img-wrap {
        height: 180px;
    }

    /* Testimonial grid → single col */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce section vertical padding on mobile */
    .problem-v2 {
        padding: 80px 0 70px;
    }

    .solution {
        padding: 80px 0;
    }

    .case-studies-sec {
        padding: 80px 0;
    }

    .process-sec {
        padding: 80px 0;
    }

    .cta-sec {
        padding: 80px 0;
    }

    /* Secondary pages mobile overrides */
    .about-hero,
    .cs-header,
    .contact-hero {
        padding: 90px 0 50px;
    }

    .about-grid,
    .cs-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 36px;
    }

    .cs-detail-block {
        padding: 50px 0;
    }

    .cs-metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-container {
        padding: 32px 20px !important;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 16px;
    }

    .nav-container {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: clamp(26px, 8.5vw, 36px);
        letter-spacing: -0.3px;
    }

    .hero {
        padding: 80px 16px 50px;
    }

    .about-card {
        padding: 28px 20px;
    }

    /* Full-bleed CTA box on tiny screens */
    .cta-box {
        padding: 32px 18px;
    }

    /* The hero CTA text is ~38 chars. On 375px screens white-space:nowrap
       causes it to overflow and break the whole layout. Allow wrapping. */
    .btn-keycap,
    .btn-keycap-hero {
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        font-size: 13px;
        padding: 11px 18px;
        width: 100%;
        max-width: 300px;
    }

    /* Hero CTA row: stack and center vertically on mobile */
    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    /* Small mobile secondary page overrides */
    .cs-metric-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-container {
        padding: 24px 16px !important;
    }
}

/* ── KEYFRAMES ── */
@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 107, 74, 0.8);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(255, 107, 74, 0.3);
    }
}

@keyframes warmShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .aurora .blade {
        animation: none;
        opacity: 0.08;
    }
    .reveal {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    h1 .grad {
        animation: none;
    }
    .pulse-dot {
        animation: none;
    }
}


/* ── SECONDARY PAGES STYLES ── */
/* ── SECONDARY PAGES STYLES ── */
.btn-primary, .btn-lime {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--coral) 100%);
  color: #fff;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 15.5px;
  padding: 16px 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 40px rgba(255,47,58,0.28), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, filter 0.2s;
  cursor: pointer; border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before, .btn-lime::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}

.btn-primary:hover, .btn-lime:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 60px rgba(255,107,74,0.45), 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.08);
}

.btn-primary:active, .btn-lime:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 0 20px rgba(255,47,58,0.2), inset 0 2px 4px rgba(0,0,0,0.3);
}

.contact-hero {
  padding: 140px 0 100px;
  position: relative; z-index: 2;
}

.contact-container {
  max-width: 680px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 52px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}

.contact-container::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--coral), var(--amber));
}

.form-group {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}

.form-group label {
  font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(255,107,74,0.45);
  box-shadow: 0 0 20px rgba(255,107,74,0.12);
  background: rgba(255,107,74,0.03);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--dim);
}

.form-textarea { min-height: 130px; resize: vertical;
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,8,10,0.88);
  backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border3);
  border-radius: 24px;
  max-width: 540px; width: 100%;
  padding: 44px; position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 60px rgba(255,47,58,0.06);
  overflow: hidden;
}

.modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--coral), var(--amber));
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; border: none; color: var(--dim);
  font-size: 24px; cursor: pointer; transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover { color: var(--text);
}

/* ============================================================
   CASE STUDIES DEEP PAGE
   ============================================================ */
.cs-header {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative; z-index: 2;
}

.cs-detail-block {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
}

.cs-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}

.cs-metric-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 32px;
}

.cs-metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-metric-box:hover {
  border-color: rgba(255,107,74,0.2);
  box-shadow: 0 0 20px rgba(255,107,74,0.06);
}

.cs-metric-val {
  font-family: var(--fh); font-size: 32px; font-weight: 900;
  color: var(--coral); line-height: 1;
}

.cs-metric-lbl { font-size: 12px; color: var(--muted); margin-top: 6px;
}

.tech-pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}

.tech-pill {
  font-family: var(--fm); font-size: 11px; color: var(--amber);
  background: rgba(255,179,71,0.07); border: 1px solid rgba(255,179,71,0.18);
  padding: 4px 12px; border-radius: 6px;
}

.about-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
}

.about-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center;
}

.founder-meta { margin-top: 16px; text-align: center;
}

.founder-name { font-family: var(--fh); font-size: 19px; font-weight: 800;
}

.founder-title { font-family: var(--fm); font-size: 11px; color: var(--coral); margin-top: 4px;
}
