/* =====================================================
   MHz Labs — Landing Page Styles
   Design system: taste-skill (VARIANCE:8, MOTION:6, DENSITY:4)
   Theme: Light — #f7f7f7 canvas, #70020f brand, #fedee1 accent
   ===================================================== */

/* =====================================================
   01. CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    /* Color tokens */
    --bg:           #f7f7f7;
    --surface:      #ffffff;
    --surface-dk:   #70020f;
    --border:       #e8d0d3;
    --border-subtle:#f0e4e6;
    --primary:      #70020f;
    --primary-dim:  rgba(112,2,15,0.08);
    --accent:       #fedee1;
    --text-1:       #111111;
    --text-2:       #555555;
    --text-3:       #888888;
    --text-inv:     #f7f7f7;
    --text-inv-2:   rgba(247,247,247,0.7);

    /* Typography */
    --font-h1:      'Bebas Neue', 'Anton', system-ui, sans-serif;
    --font-display: 'Anton', system-ui, sans-serif;
    --font-mono:    'Geist Mono', 'SF Mono', 'Fira Code', monospace;
    --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-pad:  clamp(5rem, 10vw, 8rem);
    --inner-max:    1200px;
    --inner-pad:    clamp(1.25rem, 5vw, 3rem);

    /* Motion — spring cubic-bezier, transform/opacity only */
    --ease-spring:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast:     0.35s;
    --dur-med:      0.55s;
    --dur-slow:     0.75s;
}

/* =====================================================
   02. RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

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

/* =====================================================
   03. TYPOGRAPHY SCALE
   ===================================================== */
h1 {
    font-family: var(--font-h1);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--text-1);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.02em;
    color: var(--text-1);
    text-transform: uppercase;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

p { max-width: 65ch; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.85;
    margin-bottom: 1rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.section-label-inv {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

/* .logo-dot removed — logo is now an image */

/* Brand name — always dark red wherever it appears in text */
.brand-name { color: var(--primary); }
.brand-name--display { font-weight: 700; }

/* =====================================================
   04. LAYOUT UTILITIES
   ===================================================== */

/* Alternating section background */
.section-alt { background: #f0f0f0; }

.section-inner {
    max-width: var(--inner-max);
    margin-inline: auto;
    padding-inline: var(--inner-pad);
}

.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 760px;
}

.section-header h2 {
    margin-bottom: 1.25rem;
}

.section-desc {
    color: var(--text-2);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.75;
    max-width: 58ch;
}

.section-sub-mono {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-top: 0.75rem;
}

/* =====================================================
   05. BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0em;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition:
        transform var(--dur-fast) var(--ease-spring),
        opacity var(--dur-fast) var(--ease-out),
        background var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover  { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: var(--text-inv);
}
.btn-primary:hover { background: #8b020f; }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary-dim); }

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
}
.btn-accent:hover { background: #fecdd0; }

.btn-inv-ghost {
    background: transparent;
    color: var(--text-inv);
    border: 1.5px solid rgba(247,247,247,0.4);
}
.btn-inv-ghost:hover { border-color: rgba(247,247,247,0.7); background: rgba(247,247,247,0.06); }

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
}

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

/* =====================================================
   06. NAVIGATION
   ===================================================== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    transition: background var(--dur-med) ease, box-shadow var(--dur-med) ease, border-color var(--dur-med) ease;
}

#nav.scrolled {
    background: rgba(247, 247, 247, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    max-width: var(--inner-max);
    margin-inline: auto;
    padding: 1.5rem var(--inner-pad);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity var(--dur-fast) ease;
}
.nav-logo:hover { opacity: 0.7; }

.logo-img {
    height: 42px;
    transition: filter var(--dur-med) ease;
    width: auto;
    display: block;
}

.logo-img-sm {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-dim); }

/* Inverted nav — for dark hero backgrounds */
#nav.nav-inv .logo-img { filter: brightness(0) invert(1); }
#nav.nav-inv .nav-links a { color: rgba(247,247,247,0.75); }
#nav.nav-inv .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.10); }
#nav.nav-inv .nav-hamburger span { background: var(--text-inv); }
#nav.nav-inv .btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
#nav.nav-inv .btn-primary:hover { background: #fff; border-color: #fff; }
#nav.nav-inv.scrolled {
    background: rgba(247,247,247,0.92);
    border-bottom-color: var(--border);
}
#nav.nav-inv.scrolled .nav-links a { color: var(--text-2); }
#nav.nav-inv.scrolled .nav-links a:hover { color: var(--primary); background: var(--primary-dim); }
#nav.nav-inv.scrolled .nav-hamburger span { background: var(--text-1); }
#nav.nav-inv.scrolled .btn-primary {
    background: var(--primary);
    color: var(--text-inv);
    border-color: var(--primary);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast) ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem var(--inner-pad) 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
    background: rgba(247,247,247,0.97);
    backdrop-filter: blur(12px);
}
.nav-mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-1);
    padding: 0.6rem 0.5rem;
    border-radius: 6px;
    transition: background var(--dur-fast) ease;
}
.nav-mobile-menu a:hover { background: var(--primary-dim); }
.nav-mobile-menu .btn { margin-top: 0.5rem; justify-content: center; }
.nav-mobile-menu.open { display: flex; }

/* =====================================================
   07. HERO SECTION — video background, centered layout
   ===================================================== */
#hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 4rem;
    padding-inline: var(--inner-pad);
}

/* Full-bleed background video — centered, native aspect ratio, minimal upscale */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    will-change: opacity; /* GPU layer — smoother crossfade */
}

/* Inward gradient mask — light and subtle:
   - All four edges fade very gently to white
   - Bottom transitions cleanly into page background
*/
.hero-video-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to bottom,
            rgba(247,247,247,0.55) 0%,
            transparent 18%,
            transparent 62%,
            rgba(247,247,247,0.7) 86%,
            #f7f7f7 100%
        ),
        linear-gradient(to right,
            #f7f7f7 0%,
            rgba(247,247,247,0.95) 4%,
            rgba(247,247,247,0.7) 8%,
            transparent 14%,
            transparent 86%,
            rgba(247,247,247,0.7) 92%,
            rgba(247,247,247,0.95) 96%,
            #f7f7f7 100%
        );
}

/* Centered hero content — bare, no card */
.hero-centered {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 820px;
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(2rem, 6vw, 4.5rem);
}

/* Hero typography — soft white halo per-element for readability */
.hero-centered .eyebrow {
    color: var(--primary);
    opacity: 1;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 8px rgba(255,255,255,1), 0 0 14px rgba(255,255,255,0.85);
}

.hero-h1 {
    color: var(--text-1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255,255,255,1), 0 0 18px rgba(255,255,255,0.85);
    text-transform: uppercase;
}

/* VLEO in dark red brand color */
.hero-h1 .brand-word { color: var(--primary); }

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: var(--text-1);
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 52ch;
    margin-inline: auto;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
}

/* Ghost button for light glass hero */
.btn-ghost-inv {
    background: transparent;
    color: var(--text-1);
    border: 1.5px solid rgba(17, 17, 17, 0.3);
}
.btn-ghost-inv:hover {
    background: rgba(17, 17, 17, 0.06);
    border-color: rgba(17, 17, 17, 0.55);
}

/* =====================================================
   TAGLINE BRIDGE — full-width strip between hero and problem
   ===================================================== */
.tagline-bridge {
    background: var(--bg);
    padding-block: clamp(3rem, 6vw, 5rem);
    padding-inline: var(--inner-pad);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.tagline-bridge-text {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 780px;
    margin-inline: auto;
    letter-spacing: -0.01em;
}

/* Stats bar — glassmorphism pill */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-top: 1.75rem;
    padding: 0.85rem 1.75rem;

    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.stat-item { color: var(--primary); }
.stat-sep  { color: rgba(112, 2, 15, 0.35); font-size: 1rem; }

/* =====================================================
   09. SECTION SHARED STYLES
   ===================================================== */
section {
    padding-block: var(--section-pad);
}

/* Alternating section backgrounds */
#problem  { background: var(--bg); }
#solution { background: var(--surface); }
#market   { background: var(--bg); }

/* Top border accent on problem section */
#problem { border-top: 1px solid var(--border); }
#solution { border-top: 1px solid var(--border-subtle); }
#market   { border-top: 1px solid var(--border); }

/* =====================================================
   10. PROBLEM SECTION — DATA COLUMNS
   ===================================================== */
/* ── Cables scroll animation ─────────────────────────────── */
.cables-anim-wrap {
    position: relative;
    width: 100%;
    height: clamp(280px, 38vw, 480px);
    overflow: hidden;
    background: var(--bg);
}

/* Subtle top/bottom fade only — blends clipped edges into page bg */
.cables-anim-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
        var(--bg) 0%,
        transparent 12%,
        transparent 88%,
        var(--bg) 100%
    );
}

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


/* Full-bleed strip — sits outside section-inner, spans full section width */
.data-columns-bleed {
    background: linear-gradient(135deg, #3a0009 0%, #70020f 60%, #8a0312 100%);
    padding-block: 2.5rem;
    /* Horizontally centers content at inner-max, falls back to inner-pad at narrow viewports */
    padding-inline: clamp(var(--inner-pad), calc((100% - var(--inner-max)) / 2 + var(--inner-pad)), 50%);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.data-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.data-col {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 20px;
    transition-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
    will-change: transform;

    /* Frosted glass on dark red */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Inner glow — light source rising from bottom of card */
.data-col::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(254, 222, 225, 0.28) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.data-num {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.data-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.data-desc {
    font-size: 0.88rem;
    color: rgba(254, 222, 225, 0.65);
    line-height: 1.65;
    max-width: 28ch;
}

/* Problem hero — giant stat centerpiece */
.problem-hero {
    text-align: center;
    padding-block: clamp(2rem, 5vw, 4rem);
}

.problem-hero-stat {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 16vw, 13rem);
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.problem-hero-sub {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-2);
    max-width: 52ch;
    margin-inline: auto;
    margin-top: 1.25rem;
    line-height: 1.7;
}

.orbital-diagram {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-composite: intersect;
}

/* Image placeholder */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: var(--border-subtle);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.img-placeholder-fill {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
    background: var(--primary-dim);
}

/* Section desc below hero stat */
.section-desc.reveal-up {
    max-width: 68ch;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* =====================================================
   11. SOLUTION — BENTO GRID
   ===================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.bento-item {
    background: var(--surface);
    padding: clamp(2rem, 3.5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition-delay: var(--delay, 0s);
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    overflow: hidden;
    transition:
        transform var(--dur-med) var(--ease-spring),
        box-shadow var(--dur-med) var(--ease-spring);
}

/* Large watermark number behind content */
.bento-item::after {
    content: attr(data-num);
    position: absolute;
    bottom: -0.5rem;
    right: 1rem;
    font-family: var(--font-h1);
    font-size: 8rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.04;
    pointer-events: none;
    letter-spacing: -0.02em;
    transition: opacity var(--dur-med) ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(112, 2, 15, 0.10),
        0 2px 8px rgba(112, 2, 15, 0.06);
}
.bento-item:hover::after { opacity: 0.07; }

/* Wide card spans full width */
.bento-wide {
    grid-column: 1 / -1;
    border-top: 3px solid var(--primary);
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}
.bento-wide .bento-text { flex: 1; }
.bento-wide .bento-metric { margin-top: 0; flex-shrink: 0; }

/* Accent (dark) card */
.bento-accent {
    background: var(--surface-dk);
    border-color: var(--surface-dk);
    border-top-color: var(--accent);
    color: var(--text-inv);
    box-shadow: 0 4px 24px rgba(112, 2, 15, 0.25);
}
.bento-accent:hover {
    box-shadow:
        0 16px 48px rgba(112, 2, 15, 0.35),
        0 4px 12px rgba(112, 2, 15, 0.2);
}
.bento-accent::after { color: var(--accent); opacity: 0.08; }
.bento-accent:hover::after { opacity: 0.14; }
.bento-accent h3  { color: var(--text-inv); }

/* Fix: ensure .bento-accent p overrides .bento-item p below */

.bento-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-bottom: 0.25rem;
    transition: background var(--dur-fast) ease;
}
.bento-item:hover .bento-icon { background: rgba(112, 2, 15, 0.14); }
.bento-accent .bento-icon {
    background: rgba(254, 222, 225, 0.1);
}
.bento-accent:hover .bento-icon { background: rgba(254, 222, 225, 0.18); }

.bento-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: -0.25rem;
}

.bento-tag-inv { color: var(--accent); }

.bento-item h3 { margin-bottom: 0.1rem; }

.bento-item p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 55ch;
}

/* MUST come after .bento-item p to win specificity */
.bento-accent p { color: rgba(247, 247, 247, 0.78); }

.bento-metric {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.bento-metric-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.bento-metric-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
    max-width: 14ch;
    line-height: 1.4;
}

/* =====================================================
   11b. SOLUTION — SCROLL VIDEO + EDITORIAL LAYOUT
   ===================================================== */

/* Hero pillar — 2-col card, canvas in right panel */
.solution-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-radius: 16px;
    border: 1px solid var(--border);
    /* overflow: hidden removed — clipped by .solution-hero-visual instead */
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.solution-hero-content {
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.solution-hero-content p:last-of-type {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Right panel owns its own clipping so the card border never overlaps the canvas */
.solution-hero-visual {
    position: relative;
    overflow: hidden;
    border-radius: 0 15px 15px 0; /* 1px inset from card border-radius */
    background: #111;
}

/* Canvas fills the right panel */
.solution-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scroll progress bar — thin line at bottom of canvas panel */
.solution-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.12);
}
.solution-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.05s linear;
}

/* Benefit-first claim line */
.pillar-claim {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.pillar-claim-inv {
    color: var(--accent);
}

/* Three pillars row */
.solution-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* =====================================================
   12. MARKET SECTION
   ===================================================== */
/* Cinematic 628+ hero */
.market-cinema {
    text-align: center;
    padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.market-big-num {
    font-family: var(--font-mono);
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 500;
    color: var(--primary);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.market-big-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    max-width: none;
}

.market-sub-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-2);
}

.market-sub-num {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

/* Segments bleed strip — mirrors data-columns-bleed */
.segments-bleed {
    background: linear-gradient(135deg, #3a0009 0%, #70020f 60%, #8a0312 100%);
    padding-block: 2.5rem;
    padding-inline: clamp(var(--inner-pad), calc((100% - var(--inner-max)) / 2 + var(--inner-pad)), 50%);
    margin-bottom: clamp(3rem, 5vw, 4rem);
    border-radius: clamp(16px, 2vw, 24px);
    overflow: hidden;
}

/* Segments */
.segments {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Horizontal three-column variant */
.segments--row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-direction: unset;
    gap: 1.25rem;
    border-top: none;
    margin-bottom: 0;
    perspective: 1000px;
}

.segments--row .segment {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Frosted glass on dark red — identical to .data-col */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Inner glow rising from bottom — mirrors .data-col::before */
.segments--row .segment::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(254, 222, 225, 0.28) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.segments--row .segment:first-child { padding-left: clamp(1.75rem, 3vw, 2.5rem); }
.segments--row .segment:last-child  { border-right: none; padding-right: clamp(1.75rem, 3vw, 2.5rem); }

.segment {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-fast) ease;
}
.segment:first-child { padding-top: 0; }
.segment:last-child  { border-bottom: none; padding-bottom: 0; }

.segment-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-1);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.segments-bleed .segment-title { color: var(--text-inv); }
.segments-bleed .segment-desc  { color: rgba(247, 247, 247, 0.7); }

.segment-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 55ch;
}

/* Trust bar */
.trust-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.trust-sep { color: var(--border); }

/* =====================================================
   13. FINAL CTA SECTION
   ===================================================== */
.section-dark {
    background: var(--surface-dk);
    position: relative;
    overflow: hidden;
    padding-block: 0; /* cta-content handles its own padding */
}

/* Two-column grid: content left, isotype right */
.cta-inner {
    max-width: var(--inner-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 420px;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: var(--section-pad) var(--inner-pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.cta-h2 {
    color: var(--text-inv);
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.cta-desc {
    color: var(--text-inv-2);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 50ch;
}

.cta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Full-height isotype — light pink tint */
.cta-isotype {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 2rem 2rem 2rem 0;
    overflow: hidden;
}

.cta-iso-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* Convert dark grey icon → light pink (#fedee1) */
    filter: invert(100%) sepia(12%) saturate(500%) hue-rotate(298deg);
    opacity: 0.18;
}

/* =====================================================
   14. FOOTER
   ===================================================== */
#footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
}

.footer-inner {
    max-width: var(--inner-max);
    margin-inline: auto;
    padding-inline: var(--inner-pad);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    transition: opacity var(--dur-fast) ease;
}
.footer-logo:hover { opacity: 0.6; }

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.footer-nav a:hover { color: var(--primary); background: var(--primary-dim); }

.footer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-affil {
    font-size: 0.8rem;
    color: var(--text-3);
    max-width: none;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-3);
    max-width: none;
}

/* =====================================================
   15. SCROLL REVEAL ANIMATIONS
   ===================================================== */

/* Initial hidden states */
.reveal-up,
.reveal-fade {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--dur-slow) var(--ease-spring),
        transform var(--dur-slow) var(--ease-spring);
    transition-delay: var(--delay, 0s);
}

.reveal-slide {
    opacity: 0;
    transform: translateX(-20px);
    transition:
        opacity var(--dur-slow) var(--ease-spring),
        transform var(--dur-slow) var(--ease-spring);
    transition-delay: 0.5s;
}

/* Word-by-word hero headline */
.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--dur-med) var(--ease-spring),
        transform var(--dur-med) var(--ease-spring);
}

/* Revealed state — JS adds .is-visible */
.is-visible .reveal-up,
.is-visible .reveal-fade,
.is-visible .reveal-slide,
.reveal-up.is-visible,
.reveal-fade.is-visible,
.reveal-slide.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

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

/* =====================================================
   16. RESPONSIVE — MOBILE FIRST
   ===================================================== */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
    .hero-centered { padding: 2rem 1.25rem; }

    .solution-hero { grid-template-columns: 1fr; min-height: auto; }
    .solution-hero-visual { min-height: 260px; border-radius: 0 0 15px 15px; }
    .solution-pillars { grid-template-columns: 1fr; }
    .segments--row { grid-template-columns: 1fr; gap: 1rem; }
    .segments--row .segment { padding: 1.75rem; }
    .segments--row .segment:first-child,
    .segments--row .segment:last-child { padding: 1.75rem; }

    .market-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .market-big-num { font-size: clamp(3.5rem, 12vw, 5.5rem); }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: auto; flex-direction: column; gap: 1.5rem; }
    .bento-wide .bento-metric { margin-top: 0; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
    :root {
        --section-pad: 4rem;
    }

    .nav-links { display: none; }
    .nav-inner > .btn-sm { display: none; }
    .nav-hamburger { display: flex; }

    .hero-h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }

    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .hero-ctas .btn { width: 100%; justify-content: center; }

    .stats-bar { font-size: 0.62rem; padding: 0.7rem 1.25rem; }
    .stat-sep  { display: none; }

    .data-columns {
        grid-template-columns: 1fr;
        border-top: none;
    }

    .data-col {
        border-right: none;
        border-top: 1px solid var(--border);
        padding: 1.75rem 0;
    }
    .data-col:first-child { padding-top: 0; border-top: none; }
    .data-col + .data-col { padding-left: 0; }

    .hero-centered { padding: 2rem 1.25rem; }
    .hero-h1 { font-size: clamp(2.4rem, 11vw, 3.5rem); }

    .bento-item { padding: 1.5rem; }

    .cta-inner { grid-template-columns: 1fr; }
    .cta-isotype { display: none; }
    .cta-content { max-width: 100%; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    .footer-top  { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .trust-bar { gap: 0.35rem 0.75rem; }
    .trust-sep { display: none; }
}

/* Large screens */
@media (min-width: 1400px) {
    :root { --inner-max: 1320px; }
}

/* =====================================================
   17. REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .reveal-up,
    .reveal-fade,
    .reveal-slide,
    .reveal-word {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn { transition: none; }
}
