/* ==========================================================================
   APEX DIGITAL — ROI Case Study Showroom & Interactive Modeling Engine
   Sovereign Minimalism: Dual Dark / Light Mode System
   Mobile-Hardened, Zero Horizontal Scroll Architecture
   ========================================================================== */

/* ─── Global Design Tokens: Dark Theme (Default) ─────────────────────────── */
:root,
[data-theme="dark"] {
    /* Surfaces — Pure Sovereign Black Canvas */
    --bg-base: #000000;
    --bg-section-alt: #040406;
    --surface-card: #08080a;
    --surface-card-hover: #101014;
    --surface-dark: #000000;
    --surface-glass: rgba(0, 0, 0, 0.92);

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --text-primary: #FFFFFF;
    --text-body: #C4C4D0;
    --text-muted: #8E8E9F;
    --text-inverted: #FFFFFF;

    /* Sovereign Champagne Gold & Luxury Accents */
    --champagne: #DFC38A;
    --champagne-light: #F3E7D3;
    --champagne-dark: #B89655;
    --champagne-glow: rgba(223, 195, 138, 0.22);
    --champagne-gradient: linear-gradient(135deg, #F3E7D3 0%, #DFC38A 50%, #B89655 100%);

    --gold: #DFC38A;
    --gold-light: rgba(223, 195, 138, 0.12);
    --gold-border: rgba(223, 195, 138, 0.28);
    --gold-glow: rgba(223, 195, 138, 0.22);
    
    --blue: #3B82F6;
    --blue-light: rgba(59, 130, 246, 0.14);
    --blue-border: rgba(59, 130, 246, 0.28);

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-champagne: rgba(223, 195, 138, 0.25);
    --border-champagne-bright: #DFC38A;

    /* Shadows */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.65);

    /* Layout */
    --container-width: 1280px;
    --radius-card: 20px;
    --radius-sm: 10px;

    /* Telemetry HUD Grid & Axes */
    --hud-grid-line: rgba(255, 255, 255, 0.06);
    --hud-grid-baseline: rgba(255, 255, 255, 0.12);
    --hud-grid-vert: rgba(255, 255, 255, 0.04);
    --hud-axis-text: rgba(255, 255, 255, 0.48);

    /* Motion */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --t-fast: 0.18s var(--ease-out);
    --t-med: 0.32s var(--ease-out);
}

/* ─── Global Design Tokens: Light Theme ──────────────────────────────────── */
[data-theme="light"] {
    --bg-base: #fafaf8;
    --bg-section-alt: #f3f2ef;
    --surface-card: #ffffff;
    --surface-card-hover: #ffffff;
    --surface-dark: #111111;
    --surface-glass: rgba(255, 255, 255, 0.92);

    --text-primary: #111111;
    --text-body: #3a3a3a;
    --text-muted: #787874;
    --text-inverted: #ffffff;

    --champagne: #B89655;
    --champagne-light: #8A6D32;
    --champagne-dark: #6D5422;
    --champagne-glow: rgba(184, 146, 85, 0.2);
    --champagne-gradient: linear-gradient(135deg, #9C7A3C 0%, #B89655 50%, #6D5422 100%);

    --gold: #B89655;
    --gold-light: #f0e6c8;
    --gold-border: rgba(184, 150, 85, 0.3);
    --gold-glow: rgba(184, 150, 85, 0.2);
    
    --blue: #0066FF;
    --blue-light: #e8f0ff;
    --blue-border: rgba(0, 102, 255, 0.2);

    --border-light: rgba(0, 0, 0, 0.07);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-champagne: rgba(184, 146, 85, 0.35);
    --border-champagne-bright: #B89655;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.08);

    /* Telemetry HUD Grid & Axes (Light Theme) */
    --hud-grid-line: rgba(0, 0, 0, 0.09);
    --hud-grid-baseline: rgba(0, 0, 0, 0.18);
    --hud-grid-vert: rgba(0, 0, 0, 0.06);
    --hud-axis-text: #4A4A5A;
}

/* ─── Global Reset & Absolute Mobile Overflow Shield ─────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--t-med), color var(--t-med);
}

h1, h2, h3, h4, h5,
.hero-title,
.section-title,
.cta-title,
.case-title,
.stat-number,
.metric-num,
.proof-num,
.hud-val {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ─── Header & Sovereign Navigation ──────────────────────────────────────── */
.header {
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10001;
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background-color var(--t-med), border-color var(--t-med), padding var(--t-med);
}

[data-theme="dark"] .header {
    background-color: rgba(0, 0, 0, 0.92);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
}

.logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--gold-glow));
    transition: opacity var(--t-fast), transform var(--t-fast);
}

.logo-link:hover .logo {
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link:hover:not(.nav-cta):not(.nav-home) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover:not(.nav-cta):not(.nav-home) {
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.nav-home {
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    margin-right: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link.nav-home:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-light);
}

.nav-link.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--champagne-gradient);
    color: #040405 !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.65rem 1.35rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    border: none;
    box-shadow: 0 0 16px var(--champagne-glow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.nav-link.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-link.nav-cta:hover::before {
    left: 100%;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px var(--champagne-glow);
}

[data-theme="light"] .nav-link.nav-cta {
    color: #ffffff !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    z-index: 10002;
    position: relative;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: var(--surface-card);
    border: 1px solid var(--border-champagne);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
    box-shadow: 0 0 15px var(--gold-glow);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--gold);
    color: var(--text-primary);
}

.theme-toggle-btn:active {
    transform: scale(0.92);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-champagne);
    border-radius: 10px;
    color: var(--champagne);
    cursor: pointer;
    z-index: 10003;
    position: relative;
    padding: 0;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.nav-toggle:hover {
    background: rgba(223, 195, 138, 0.15);
    border-color: var(--champagne);
}

.nav-toggle .close-icon {
    display: none;
}

.nav-toggle.active .hamburger-icon {
    display: none;
}

.nav-toggle.active .close-icon {
    display: block;
    color: var(--champagne);
}

[data-theme="light"] .nav-toggle {
    background: rgba(0, 0, 0, 0.04);
    color: var(--champagne-dark);
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
    padding: 5.5rem 0 4.5rem;
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background-image: radial-gradient(circle at 5% 60%, rgba(200, 168, 75, 0.06) 0%, transparent 60%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-content-left {
    flex: 1;
    max-width: 520px;
    flex-shrink: 0;
}

.hero-content-right {
    flex: 1.25;
    max-width: 660px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-sizing: border-box;
}

.badge {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background-color: var(--gold-light);
    border: 1px solid var(--gold-border);
    border-radius: 99px;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.accent-text {
    background: var(--champagne-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Hero Proof Strip */
.hero-proof-strip {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.25rem 1.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
    width: 100%;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.proof-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1;
}

.proof-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    max-width: 150px;
}

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--border-medium);
    flex-shrink: 0;
}

/* ─── Hero Sovereign Telemetry HUD Visual ─────────────────────────────────── */
.hero-telemetry-hud {
    position: relative;
    width: 100%;
    max-width: 660px;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(223, 195, 138, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    animation: hudFadeIn 0.8s var(--ease-out) both;
}

[data-theme="light"] .hero-telemetry-hud {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(184, 150, 85, 0.35);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes hudFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.25rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px 20px 0 0;
}

[data-theme="light"] .hud-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-live-beacon {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hud-beacon-core {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.hud-beacon-ring {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid #10B981;
    border-radius: 50%;
    opacity: 0.75;
    animation: beaconPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes beaconPulse {
    0% { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hud-status-text {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hud-meta-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-tag {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
}

.hud-tag--speed {
    background: rgba(0, 102, 255, 0.12);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hud-tag--proven {
    background: rgba(223, 195, 138, 0.12);
    color: var(--gold);
    border: 1px solid rgba(223, 195, 138, 0.25);
}

.hud-canvas-wrap {
    position: relative;
    width: 100%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-growth-mesh {
    width: 100%;
    height: 100%;
    display: block;
}

/* Theme Adaptive Telemetry HUD Grid & Axis Labels */
.hud-grid-line {
    stroke: var(--hud-grid-line);
    transition: stroke var(--t-med);
}

.hud-grid-baseline {
    stroke: var(--hud-grid-baseline);
    transition: stroke var(--t-med);
}

.hud-grid-vert {
    stroke: var(--hud-grid-vert);
    transition: stroke var(--t-med);
}

.hud-axis-text {
    fill: var(--hud-axis-text);
    font-family: var(--font-display);
    font-weight: 600;
    transition: fill var(--t-med);
}

[data-theme="light"] .hud-axis-text {
    fill: #4B4B5A !important;
    font-weight: 700;
}

[data-theme="light"] .hud-grid-line {
    stroke: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .hud-grid-baseline {
    stroke: rgba(0, 0, 0, 0.16) !important;
}

[data-theme="light"] .hud-grid-vert {
    stroke: rgba(0, 0, 0, 0.05) !important;
}

.apex-path-solid {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawApexSurge 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.apex-path-underglow {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawApexSurge 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.apex-area-surge {
    opacity: 0;
    animation: fadeInArea 1.4s ease-out 1.2s forwards;
}

@keyframes drawApexSurge {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
    to { opacity: 0.22; }
}

.node-radar-ring {
    animation: nodeRadarPulse 2.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    transform-origin: center center;
}

.node-radar-ring--gold {
    animation-delay: 1.2s;
}

@keyframes nodeRadarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Floating KPI HUD Cards */
.hud-floating-card {
    position: absolute;
    z-index: 4;
    pointer-events: auto;
    cursor: default;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.hud-floating-card:hover {
    transform: translateY(-2px) scale(1.02);
    z-index: 6;
}

.hud-card-peak {
    top: 3.5%;
    left: 45%;
    animation: hudCardEnter 0.7s var(--ease-out) 0.4s both;
}

.hud-card-roi {
    top: 30%;
    left: 11%;
    animation: hudCardEnter 0.7s var(--ease-out) 0.7s both;
}

.hud-card-sales {
    top: 56%;
    right: 6%;
    animation: hudCardEnter 0.7s var(--ease-out) 1.0s both;
}

@keyframes hudCardEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hud-card-inner {
    background: rgba(12, 12, 18, 0.92);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 175px;
    box-sizing: border-box;
}

[data-theme="light"] .hud-card-inner {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hud-card-inner--gold {
    border-left: 3px solid var(--gold);
}

.hud-card-inner--blue {
    border-left: 3px solid var(--blue);
}

.hud-pill-lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hud-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hud-icon-box--gold {
    background: rgba(223, 195, 138, 0.15);
    color: var(--gold);
}

.hud-icon-box--blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

.hud-pill-data {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    justify-content: center;
}

.hud-pill-stat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.hud-val {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hud-val--gold {
    color: var(--gold);
}

.hud-val--blue {
    color: var(--blue);
}

.hud-tag-mini {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.hud-tag-mini--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.hud-tag-mini--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hud-pill-sub {
    font-family: var(--font-display);
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    display: block;
}

.hud-live-tag {
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.hud-live-dot-green {
    width: 4px;
    height: 4px;
    background: #10B981;
    border-radius: 50%;
    animation: blinkLive 1.5s infinite;
}

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

.hud-card-sparkline {
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
}

.hud-mobile-metrics {
    display: none;
}

.hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.15rem;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 20px 20px;
}

[data-theme="light"] .hud-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hud-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.hud-footer-caption {
    font-family: var(--font-display);
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hud-footer-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.01em;
}

.hud-footer-badge {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

[data-theme="light"] .hud-footer-badge {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hud-footer-badge svg {
    color: var(--gold);
}

/* ─── Section Scaffolding ────────────────────────────────────────────────── */
.section-header-left {
    padding-left: 1.5rem;
    border-left: 3px solid var(--gold);
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── ROI Calculator Section ─────────────────────────────────────────────── */
.calculator-section {
    padding: 5rem 0;
    background-color: var(--bg-base);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.calc-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
    width: 100%;
}

.inputs-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    gap: 0.5rem;
    font-size: 0.95rem;
}

.editable-val-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.slider-val {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
    transition: opacity var(--t-fast);
    white-space: nowrap;
}

.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color var(--t-fast), background var(--t-fast);
    opacity: 0.7;
}

.edit-btn:hover {
    color: var(--blue);
    background: var(--blue-light);
    opacity: 1;
}

.inline-input {
    width: 90px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    border: none;
    border-bottom: 2px solid var(--blue);
    background: transparent;
    text-align: right;
    padding: 0.1rem 0.2rem;
    outline: none;
    font-family: inherit;
    transition: border-color var(--t-fast);
}

.inline-input:focus {
    border-color: var(--gold);
}

.hidden {
    display: none !important;
}

.slider-track-wrap {
    position: relative;
    padding: 0.35rem 0;
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    background: linear-gradient(to right,
            var(--blue) 0%,
            var(--blue) var(--fill, 4%),
            rgba(255, 255, 255, 0.12) var(--fill, 4%),
            rgba(255, 255, 255, 0.12) 100%);
}

[data-theme="light"] .slider {
    background: linear-gradient(to right,
            var(--blue) 0%,
            var(--blue) var(--fill, 4%),
            rgba(0, 0, 0, 0.1) var(--fill, 4%),
            rgba(0, 0, 0, 0.1) 100%);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0f172a;
    border: 2.5px solid var(--blue);
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(59, 130, 246, 0.4);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

[data-theme="light"] .slider::-webkit-slider-thumb {
    background: #ffffff;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.scenario-selector {
    width: 100%;
}

.scenario-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.scenario-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.clear-industry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--border-medium);
    border-radius: 99px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}

.clear-industry-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.industry-btn {
    background-color: var(--bg-base);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.65rem;
    color: var(--text-body);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: var(--t-med);
    min-height: 76px;
    justify-content: center;
    font-family: inherit;
    box-sizing: border-box;
}

.industry-btn:active {
    transform: scale(0.97);
}

.industry-btn.active {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: var(--blue);
    color: #60a5fa;
}

.industry-btn.active .ind-lift {
    color: #93c5fd;
    opacity: 0.85;
}

.ind-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    transition: background var(--t-fast);
}

[data-theme="light"] .ind-icon {
    background: rgba(0, 0, 0, 0.04);
}

.industry-btn.active .ind-icon {
    background: rgba(59, 130, 246, 0.25);
}

.ind-icon svg {
    display: block;
}

.ind-name {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.ind-lift {
    font-size: 0.64rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.source-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    animation: fadeUp 0.3s var(--ease-out);
}

.source-note svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Outputs Card */
.outputs-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-left: 3px solid var(--gold);
    background: #08080a;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .outputs-card {
    background: #ffffff;
}

.no-industry-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    animation: fadeUp 0.35s var(--ease-out);
}

.no-industry-prompt svg {
    opacity: 0.25;
}

.no-industry-prompt p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 240px;
}

.outputs-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    animation: fadeUp 0.35s var(--ease-out);
    width: 100%;
}

.output-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-value {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.15;
}

.text-gold {
    color: var(--gold) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.output-divider {
    height: 1px;
    background-color: var(--border-light);
}

.annual-lift-badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(223, 195, 138, 0.22);
    color: #ffffff;
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

[data-theme="light"] .annual-lift-badge {
    background-color: var(--gold-light);
    border: 1px solid var(--gold-border);
    color: var(--text-primary);
}

.annual-lift-badge strong {
    color: var(--gold);
}

.calc-action-pod {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeInScale 0.3s var(--ease-out);
    width: 100%;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.calc-cta-primary {
    background: var(--champagne-gradient);
    color: #040405 !important;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 0 20px var(--champagne-glow);
    border: none;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .calc-cta-primary {
    color: #ffffff !important;
}

.calc-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px var(--champagne-glow);
}

.calc-cta-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.calc-cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.16);
    border-color: #25D366;
    color: #25D366;
    transform: translateY(-2px);
}

.calc-disclaimer-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 1.25rem;
    text-align: center;
}

.disclaimer-anchor {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--t-fast);
}

/* ─── Case Studies Vault ─────────────────────────────────────────────────── */
.case-studies {
    padding: 5rem 0;
    background-color: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: var(--surface-card);
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all var(--t-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    background: var(--champagne-gradient);
    color: #040405;
    font-weight: 700;
    border-color: var(--champagne);
    box-shadow: 0 4px 16px var(--champagne-glow);
}

[data-theme="light"] .filter-tab.active {
    color: #ffffff;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.2);
}

.filter-tab.active .filter-count {
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.case-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--t-med), transform var(--t-med), border-color var(--t-med);
    box-sizing: border-box;
    width: 100%;
}

.case-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(223, 195, 138, 0.25);
}

.case-card.filtered-out {
    display: none !important;
    opacity: 0;
}

.case-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-badge {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.case-engine-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--blue);
    border: 1px solid var(--blue-border);
    white-space: nowrap;
}

.case-engine-tag.flagship-tag {
    background: rgba(223, 195, 138, 0.12);
    color: var(--gold);
    border: 1px solid rgba(223, 195, 138, 0.35);
}

.case-engine-tag.benchmark-tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
}

[data-theme="light"] .case-engine-tag.flagship-tag {
    background: rgba(184, 146, 85, 0.15);
    color: #8A6D32;
    border-color: rgba(184, 146, 85, 0.4);
}

[data-theme="light"] .case-engine-tag.benchmark-tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

[data-theme="light"] .case-engine-tag {
    background: #eaf2ff;
    color: #0052cc;
}

.case-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.case-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.75rem;
    line-height: 1.45;
}

.toggle-container {
    background-color: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    box-sizing: border-box;
    width: 100%;
}

.toggle-track {
    display: flex;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    padding: 0.2rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="light"] .toggle-track {
    background-color: rgba(0, 0, 0, 0.04);
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.65rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: var(--t-fast);
    min-height: 44px;
    font-family: inherit;
    box-sizing: border-box;
}

.toggle-btn.active {
    background-color: var(--surface-card);
    color: var(--text-primary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .toggle-btn.active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.toggle-content {
    display: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.toggle-content strong {
    color: var(--text-primary);
}

.toggle-content.active {
    display: block;
    animation: fadeUp 0.35s var(--ease-out);
}

.chart-wrapper {
    background-color: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.chart {
    width: 100%;
    height: 75px;
    display: block;
    overflow: visible;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-label-right {
    display: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.chart-label-right.active {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
}

.chart-line {
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.chart-line.active {
    opacity: 1;
}

.challenge-line {
    stroke: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .challenge-line {
    stroke: rgba(0, 0, 0, 0.2);
}

.solution-line {
    stroke-dashoffset: 100;
}

.solution-line.active {
    animation: draw 1.6s forwards var(--ease-out);
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.endpoint {
    opacity: 0;
    transition: opacity 0.4s 0.2s var(--ease-out);
}

.endpoint.active {
    opacity: 1;
}

.challenge-endpoint {
    fill: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .challenge-endpoint {
    fill: rgba(0, 0, 0, 0.2);
}

.solution-endpoint {
    fill: var(--gold);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.metrics-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.metric-num {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.metric-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.case-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
}

.case-source {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.4;
    font-style: italic;
    flex: 1;
    min-width: 180px;
}

.case-micro-cta {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
    padding: 4px 0;
}

.case-micro-cta:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

/* ─── The Conviction Section (Strategic Imperative) ───────────────────────── */
.conviction-section {
    padding: 5rem 0;
    background-color: var(--surface-dark);
    color: var(--text-inverted);
}

.conviction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.conviction-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-card);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: background var(--t-med), border-color var(--t-med);
    box-sizing: border-box;
    width: 100%;
}

.conviction-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(223, 195, 138, 0.3);
}

.conviction-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(223, 195, 138, 0.12);
    color: var(--gold);
    flex-shrink: 0;
}

.conviction-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-inverted);
    line-height: 1.25;
}

.conviction-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

[data-theme="light"] .conviction-section {
    background-color: #111115;
}

/* ─── Macro Stats (Market Data Bento) ────────────────────────────────────── */
.macro-stats {
    padding: 5rem 0;
    background-color: var(--bg-base);
}

.stats-dense-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--t-med), transform var(--t-med);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-sizing: border-box;
    width: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.stat-card-featured {
    border-left: 3px solid var(--gold);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.stat-detail {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.stat-source {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.65;
    margin-top: 0.85rem;
    font-style: italic;
    border-top: 1px solid var(--border-light);
    padding-top: 0.65rem;
}

/* ─── Conversion Command Center (CTA) ────────────────────────────────────── */
.cta-section {
    padding: 5rem 0;
    background-color: var(--bg-base);
}

.cta-inner {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.cta-badge {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 2rem 0 1.25rem;
    width: 100%;
}

.btn-champagne-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.25rem;
    min-height: 52px;
    border-radius: 6px;
    background: var(--champagne-gradient);
    color: #040405 !important;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 24px var(--champagne-glow);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-sizing: border-box;
}

[data-theme="light"] .btn-champagne-cta {
    color: #ffffff !important;
}

.btn-champagne-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-champagne-cta:hover::before {
    left: 100%;
}

.btn-champagne-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px var(--champagne-glow);
}

.btn-wa-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.85rem;
    min-height: 52px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25D366;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    box-sizing: border-box;
}

.btn-wa-cta:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.platform-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border-light);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.platform-nav-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.25rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
    box-sizing: border-box;
    width: 100%;
}

[data-theme="light"] .platform-nav-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.platform-nav-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.platform-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(223, 195, 138, 0.08);
    color: var(--gold);
    border: 1px solid rgba(223, 195, 138, 0.2);
    flex-shrink: 0;
    transition: transform var(--t-fast), background var(--t-fast);
}

.platform-nav-card:hover .platform-nav-icon {
    background: rgba(223, 195, 138, 0.18);
    transform: scale(1.05);
}

.platform-nav-info {
    flex: 1;
    min-width: 0;
}

.platform-nav-info strong {
    display: block;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.platform-nav-info span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 400;
}

.platform-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.4;
    transition: transform var(--t-fast), opacity var(--t-fast), color var(--t-fast);
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.platform-nav-card:hover .platform-card-arrow {
    opacity: 1;
    color: var(--gold);
    transform: translateX(3px);
}

/* ─── Streamlined Sovereign Footer ───────────────────────────────────────── */
.footer {
    background-color: var(--surface-card);
    border-top: 1px solid var(--border-light);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

[data-theme="dark"] .footer {
    background-color: #000000;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.footer-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color var(--t-fast);
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    width: 100%;
    max-width: 880px;
    margin: 2.25rem auto;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

[data-theme="light"] .footer-disclaimer {
    background: #fafaf8;
}

.footer-disclaimer-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    font-family: var(--font-display);
}

.footer-disclaimer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 800px;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-popia-tag {
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.footer-back-to-top {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--t-fast);
}

.footer-back-to-top:hover {
    color: var(--gold);
}

/* ─── Mobile Floating Quick-Action Dock ──────────────────────────────────── */
.mobile-floating-dock {
    display: none;
}

/* ─── Strategy & Demo Request Intake Modal ───────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast);
    box-sizing: border-box;
}

[data-theme="light"] .modal-overlay {
    background: rgba(10, 10, 12, 0.75);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0d0d10;
    border: 1px solid rgba(223, 195, 138, 0.35);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 560px;
    width: 100%;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform var(--t-fast);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(223, 195, 138, 0.12);
    box-sizing: border-box;
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: rgba(184, 146, 85, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15), 0 0 24px rgba(184, 146, 85, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--t-fast);
}

.modal-close:hover {
    color: #ffffff;
    border-color: var(--gold);
    background: rgba(223, 195, 138, 0.15);
    transform: rotate(90deg);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(223, 195, 138, 0.12);
    border: 1px solid rgba(223, 195, 138, 0.3);
    color: var(--gold);
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.65rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 22px;
}

.modal-subtitle strong {
    color: var(--gold);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    width: 100%;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: #050507;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 13px 15px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-height: 48px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    box-sizing: border-box;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
    background: #f7f7f9;
    color: #111113;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(223, 195, 138, 0.25);
}

.form-popia-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-popia-note svg {
    color: #10B981;
    flex-shrink: 0;
}

.btn-champagne {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--champagne-gradient);
    color: #050507 !important;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 0 20px var(--champagne-glow);
    min-height: 50px;
    text-decoration: none;
    box-sizing: border-box;
}

[data-theme="light"] .btn-champagne {
    color: #ffffff !important;
}

.btn-champagne:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--champagne-glow);
}

/* ==========================================================================
   UNIFIED CASCADING RESPONSIVE MEDIA QUERIES (ZERO HORIZONTAL BLOWOUT)
   ========================================================================== */

/* ─── 1. TABLET BREAKPOINT (max-width: 1024px) ───────────────────────────── */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(4, 4, 6, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem 2rem;
        gap: 1rem;
        z-index: 10000;
        overflow-y: auto;
    }

    [data-theme="light"] .main-nav {
        background: rgba(250, 250, 248, 0.98);
    }

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

    .nav-link {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: var(--text-primary);
        padding: 12px 24px;
        width: 100%;
        max-width: 320px;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid var(--border-light);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-link.nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        max-width: 320px;
        width: 100%;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-container {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-content-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content-right {
        width: 100%;
        max-width: 660px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .platform-nav-grid {
        grid-template-columns: 1fr;
    }

    /* Filter Wrapper on Tablet — Smooth Swipeable Pill Track */
    .filter-wrapper {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.35rem 1rem 0.85rem;
        margin: 1.25rem -1rem 2rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        box-sizing: border-box;
        scroll-behavior: smooth;
    }

    .filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filter-tabs {
        display: inline-flex;
        flex-wrap: nowrap;
        flex-shrink: 0;
        width: max-content;
        min-width: max-content;
        gap: 0.45rem;
        padding: 0.35rem;
        box-sizing: border-box;
    }

    .filter-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.55rem 0.95rem;
        font-size: 0.82rem;
        min-height: 42px;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ─── 2. MASTER MOBILE BREAKPOINT (max-width: 768px) ─────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
    }

    .header-container {
        padding: 0 14px;
    }

    .logo {
        height: 46px;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .hero-proof-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.95rem 0.75rem;
        background: var(--surface-card);
        border: 1px solid var(--border-light);
        border-radius: 12px;
    }

    .proof-divider {
        display: none;
    }

    .proof-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.2rem;
    }

    .proof-num {
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--gold);
        line-height: 1;
    }

    .proof-label {
        font-size: 0.68rem;
        color: var(--text-muted);
        line-height: 1.25;
        font-weight: 500;
        text-wrap: balance;
        max-width: 100%;
    }

    /* Telemetry HUD on Mobile: Decoupled Clean Curve + Bottom Metric Dock */
    .hero-telemetry-hud {
        border-radius: 16px;
    }

    .hud-header {
        padding: 0.7rem 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hud-canvas-wrap {
        height: 310px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hud-canvas-wrap #hero-growth-mesh {
        width: 100%;
        height: 100%;
        transform: scale(1.18);
        transform-origin: center center;
    }

    .hud-canvas-wrap .hud-floating-card {
        display: none !important;
    }

    .hud-mobile-metrics {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.85rem;
        background: rgba(8, 8, 12, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    [data-theme="light"] .hud-mobile-metrics {
        background: rgba(248, 248, 252, 0.9);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .hud-mobile-card {
        width: 100%;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        border-radius: 12px;
        background: rgba(14, 14, 22, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    [data-theme="light"] .hud-mobile-card {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    }

    .hud-mobile-card--gold {
        border-left: 4px solid var(--gold) !important;
    }

    .hud-mobile-card--blue {
        border-left: 4px solid var(--blue) !important;
    }

    .hud-mobile-lead {
        gap: 0.8rem;
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .hud-mobile-data {
        display: flex;
        flex-direction: column;
        gap: 0.18rem;
        min-width: 0;
    }

    .hud-mobile-val {
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.02em;
    }

    .hud-mobile-sub {
        font-family: var(--font-display);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
    }

    .hud-mobile-right {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-shrink: 0;
    }

    .hud-footer {
        padding: 0.75rem 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        background: rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hud-footer-left {
        gap: 0.1rem;
    }

    .hud-footer-caption {
        font-size: 0.54rem;
    }

    .hud-footer-title {
        font-size: 0.74rem;
    }

    .hud-footer-badge {
        font-size: 0.62rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    /* ROI Calculator on Mobile */
    .calculator-section {
        padding: 3.5rem 0;
    }

    .section-header-left {
        padding-left: 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-desc {
        font-size: 0.92rem;
    }

    .calc-card {
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
    }

    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .industry-btn {
        min-height: 66px;
        padding: 0.55rem 0.35rem;
        gap: 0.2rem;
    }

    .ind-icon {
        width: 26px;
        height: 26px;
    }

    .ind-icon svg {
        width: 16px;
        height: 16px;
    }

    .ind-name {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .ind-lift {
        font-size: 0.58rem;
    }

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

    /* Filter Wrapper on Mobile — Smooth Swipeable Pill Track */
    .filter-wrapper {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.35rem 1rem 0.85rem;
        margin: 1rem -1rem 1.75rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        box-sizing: border-box;
        scroll-behavior: smooth;
        cursor: grab;
    }

    .filter-wrapper.dragging {
        cursor: grabbing;
        user-select: none;
    }

    .filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filter-tabs {
        display: inline-flex;
        flex-wrap: nowrap;
        flex-shrink: 0;
        width: max-content;
        min-width: max-content;
        gap: 0.35rem;
        padding: 0.35rem;
        box-sizing: border-box;
    }

    .filter-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        min-height: 42px;
        touch-action: manipulation;
    }

    /* Case Studies Cards on Mobile */
    .case-studies {
        padding: 3.5rem 0;
    }

    .case-card {
        padding: 1.35rem 1.15rem;
        gap: 1.15rem;
        border-radius: 16px;
    }

    .case-title {
        font-size: 1.35rem;
    }

    .case-subtitle {
        font-size: 0.84rem;
    }

    .case-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .case-engine-tag {
        white-space: normal;
        word-break: break-word;
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .toggle-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
        min-height: 42px;
    }

    .toggle-content {
        font-size: 0.86rem;
    }

    .chart-wrapper {
        padding: 0.85rem;
    }

    .chart {
        height: 65px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
        padding-top: 1rem;
    }

    .metrics-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .metric-num {
        font-size: 1.5rem;
    }

    .metric-desc {
        font-size: 0.72rem;
    }

    .case-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .case-card-footer .case-source {
        min-width: 0;
        width: 100%;
        font-size: 0.65rem;
    }

    .case-micro-cta {
        white-space: normal;
        line-height: 1.3;
        font-size: 0.8rem;
    }

    /* Conviction & Stats */
    .conviction-section,
    .macro-stats,
    .cta-section {
        padding: 3.5rem 0;
    }

    .conviction-grid,
    .stats-dense-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .conviction-card,
    .stat-card {
        padding: 1.35rem 1.15rem;
        border-radius: 16px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    /* CTA Section on Mobile */
    .cta-inner {
        padding: 2.25rem 1.25rem;
        border-radius: 16px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .cta-actions-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-champagne-cta,
    .btn-wa-cta {
        width: 100%;
        min-height: 48px;
        font-size: 0.88rem;
        padding: 0.85rem 1.25rem;
    }

    .platform-nav-card {
        padding: 1rem 1.15rem;
        gap: 0.85rem;
    }

    .platform-nav-icon {
        width: 38px;
        height: 38px;
    }

    .platform-nav-info strong {
        font-size: 0.9rem;
    }

    .platform-nav-info span {
        font-size: 0.76rem;
    }

    /* Footer on Mobile */
    .footer {
        padding: 2.5rem 0 5.5rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-nav {
        gap: 0.85rem 1.25rem;
    }

    .footer-disclaimer {
        padding: 1.15rem 1rem;
        margin: 1.5rem auto;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    /* Mobile Floating Quick Dock */
    .mobile-floating-dock {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-medium);
        padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
        gap: 0.65rem;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
        transform: translateY(110%);
        transition: transform 0.3s var(--ease-out);
        box-sizing: border-box;
    }

    [data-theme="light"] .mobile-floating-dock {
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-floating-dock.visible {
        transform: translateY(0);
    }

    .mobile-dock-btn {
        flex: 1;
        min-height: 48px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 700;
        font-size: 0.88rem;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    .mobile-dock-primary {
        background: var(--champagne-gradient);
        color: #040405 !important;
        font-family: var(--font-display);
        box-shadow: 0 0 16px var(--champagne-glow);
    }

    [data-theme="light"] .mobile-dock-primary {
        color: #ffffff !important;
    }

    .mobile-dock-wa {
        background: #25D366;
        color: #ffffff;
        flex: 0.85;
    }

    /* Modal on Mobile */
    .modal-overlay {
        padding: 16px;
    }

    .modal-content {
        padding: 28px 18px;
        max-width: 100%;
        border-radius: 14px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.84rem;
        margin-bottom: 18px;
    }
}

/* ─── 3. COMPACT MOBILE BREAKPOINT (max-width: 480px) ────────────────────── */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hud-canvas-wrap {
        height: 285px;
    }

    .hud-canvas-wrap #hero-growth-mesh {
        transform: scale(1.22);
        transform-origin: center center;
    }

    .hud-header {
        padding: 0.6rem 0.85rem;
    }

    .hud-status-text {
        font-size: 0.62rem;
    }

    .hud-tag {
        font-size: 0.56rem;
        padding: 0.15rem 0.4rem;
    }

    .hud-mobile-metrics {
        padding: 0.65rem 0.75rem;
        gap: 0.45rem;
    }

    .hud-mobile-card {
        padding: 0.65rem 0.8rem;
        gap: 0.6rem;
    }

    .hud-mobile-lead {
        gap: 0.65rem;
    }

    .hud-mobile-val {
        font-size: 1.05rem;
    }

    .hud-mobile-sub {
        font-size: 0.55rem;
    }

    .hud-mobile-right {
        gap: 0.45rem;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .industry-btn {
        min-height: 60px;
        padding: 0.45rem 0.25rem;
    }

    .ind-name {
        font-size: 0.7rem;
    }

    .ind-lift {
        font-size: 0.56rem;
    }

    .proof-num {
        font-size: 1.2rem;
    }

    .proof-label {
        font-size: 0.64rem;
    }

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

    .cta-title {
        font-size: 1.55rem;
    }
}

/* ─── 4. ACCESSIBILITY & PREFERS REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .apex-path-solid,
    .apex-path-underglow,
    .apex-area-surge,
    .node-radar-ring,
    .hud-beacon-ring,
    .hud-live-dot-green,
    .hud-floating-card,
    .solution-line {
        animation: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
    }
}

/* ─── 5. FORM SECURITY & POPIA AFFIRMATIVE CONSENT CONTROLS ──────────────── */
.hp-wrap {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
}

.form-popia-group {
    margin-top: 14px;
    margin-bottom: 12px;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    user-select: none;
    min-height: 48px;
    padding: 4px 0;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: rgba(14, 14, 20, 0.9);
    border: 1.5px solid rgba(223, 195, 138, 0.35);
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .checkbox-custom {
    background: #ffffff;
    border-color: rgba(184, 146, 85, 0.4);
}

.form-checkbox-label:hover .checkbox-custom {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(223, 195, 138, 0.25);
}

.form-checkbox:focus-visible ~ .checkbox-custom {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.form-checkbox:checked ~ .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #040405;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

[data-theme="light"] .checkbox-custom::after {
    border-color: #ffffff;
}

.form-checkbox:checked ~ .checkbox-custom::after {
    display: block;
}

.checkbox-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.checkbox-text a:hover {
    color: #ffffff;
}
