/* ═══════════════════════════════════════════════════════════════
   KWIKO SOLUTIONS PAGE v2.1
   Refined: Hero animations, Diagnostic dashboard, Service viewer, Horizontal process
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────── */

:root {
    /* Core Palette */
    --sol-bg: #050505;
    --sol-body: #0f0f0f;
    /* Main content area - slightly lighter for contrast */
    --sol-surface: #0a0a0a;
    --sol-panel: #111111;
    --sol-panel-hover: #161616;
    --sol-border: rgba(255, 255, 255, 0.06);
    --sol-border-hover: rgba(255, 255, 255, 0.12);

    /* Accents */
    --sol-orange: #F37021;
    --sol-orange-glow: rgba(243, 112, 33, 0.3);
    --sol-orange-subtle: rgba(243, 112, 33, 0.08);
    --sol-green: #00ff9d;
    --sol-green-subtle: rgba(0, 255, 157, 0.1);
    --sol-red: #ff4b4b;
    --sol-red-subtle: rgba(255, 75, 75, 0.1);

    /* Text */
    --sol-white: #ffffff;
    --sol-muted: #888888;
    --sol-dim: #555555;

    /* Typography */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Departure Mono', 'SF Mono', monospace;

    /* Spacing */
    --section-gap: clamp(100px, 15vh, 160px);
    --container-max: 1300px;
    --container-pad: clamp(20px, 5vw, 80px);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.5s;
}


/* ─────────────────────────────────────────────────────────────────
   2. PAGE WRAPPER & SCROLL STRUCTURE
   ───────────────────────────────────────────────────────────────── */

.solutions-page-wrapper {
    background-color: var(--sol-bg);
    min-height: 100vh;
    position: relative;
}

/* Unicorn Background */
.unicorn-bg-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.6s var(--ease-out);
}

.unicorn-bg-container.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.unicorn-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--sol-bg) 70%);
}

/* Content Curtain Architecture */
.content-curtain {
    position: relative;
    z-index: 2;
    padding-top: 100vh;
    pointer-events: none;
}

.scrolling-content {
    position: relative;
    background: var(--sol-body);
    pointer-events: auto;
    box-shadow: 0 -80px 120px rgba(0, 0, 0, 0.9);
}

.main-shell {
    position: relative;
    z-index: 2;
    background: var(--sol-body);
}


/* ─────────────────────────────────────────────────────────────────
   3. HERO SECTION - WITH VISIBLE ANIMATIONS
   ───────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   3. HERO SECTION - Monitoring Mesh
   ───────────────────────────────────────────────────────────────── */

.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    background: var(--sol-bg);
    /* Fallback */
}

/* Three.js Canvas */
#mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Lighter overlays */
.vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 50%,
            transparent 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.25) 70%,
            var(--sol-bg) 100%);
}

.horizon-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            transparent 100%);
}

.ground-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            transparent 100%);
}

/* Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 32px;
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--sol-orange);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 1s 0.5s var(--ease-out) forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--sol-orange);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px var(--sol-orange-glow);
}

.pulse-dot::before,
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--sol-orange);
    border-radius: 50%;
    animation: pingRing 2.5s ease-out infinite;
}

.pulse-dot::after {
    animation-delay: 1.25s;
}

@keyframes pingRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
    color: var(--sol-white);
}

.hero-headline .line {
    display: block;
    /* LCP FIX: Default to visible so Lighthouse sees content immediately */
    opacity: 1;
    transform: translateY(0);
}

/* Animation only triggers when body.is-loading is present (JS adds this) */
body.is-loading .hero-headline .line {
    opacity: 0;
    transform: translateY(40px);
}

.hero-headline .line:nth-child(1) {
    animation: fadeUp 1s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline .line:nth-child(2) {
    animation: fadeUp 1s 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline .line:nth-child(2) em {
    font-style: italic;
    color: var(--sol-muted);
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--sol-muted);
    max-width: 500px;
    margin: 0 auto 44px;
    line-height: 1.75;
    /* LCP FIX: Also default visible */
    opacity: 1;
    animation: fadeUp 1s 1.05s var(--ease-out) forwards;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeUp 1s 1.25s var(--ease-out) forwards;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sol-orange);
    box-shadow: 0 0 12px var(--sol-orange-glow);
    animation: statusPulse 3s ease infinite;
}

.status-dot.green {
    background: var(--sol-green);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.5);
}

@keyframes statusPulse {

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

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

.status-label {
    color: var(--sol-dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-value {
    color: var(--sol-white);
    font-weight: 500;
}

/* Network Activity Indicator */
.network-activity {
    position: absolute;
    top: 100px;
    /* Offset for header */
    right: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeUp 0.8s 1.6s var(--ease-out) forwards;
}

.activity-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.activity-bar {
    width: 2px;
    background: var(--sol-orange);
    border-radius: 1px;
    animation: barPulse 0.8s ease infinite;
}

.activity-bar:nth-child(1) {
    height: 35%;
    animation-delay: 0s;
}

.activity-bar:nth-child(2) {
    height: 65%;
    animation-delay: 0.1s;
}

.activity-bar:nth-child(3) {
    height: 45%;
    animation-delay: 0.2s;
}

.activity-bar:nth-child(4) {
    height: 85%;
    animation-delay: 0.3s;
}

.activity-bar:nth-child(5) {
    height: 25%;
    animation-delay: 0.4s;
}

@keyframes barPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sol-dim);
}

.activity-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--sol-orange);
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s 1.9s var(--ease-out) forwards;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sol-dim);
}

.scroll-line {
    width: 1px;
    height: 50px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, var(--sol-orange), transparent);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

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

@media (max-width: 768px) {
    .network-activity {
        display: none;
    }

    .status-bar {
        flex-direction: column;
        gap: 14px;
        padding: 18px 28px;
        border-radius: 16px;
        width: 100%;
    }
}

/* Scroll Cue - Animated */
.scroll-cue {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeIn 1s var(--ease-out) 1.6s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--sol-orange);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s var(--ease-out) infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-dim);
}

/* Hero Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

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

/* ─────────────────────────────────────────────────────────────────
   TRUST BAR (MARQUEE)
   ───────────────────────────────────────────────────────────────── */
.trust-bar-section {
    border-bottom: 1px solid var(--sol-border);
    background: var(--sol-surface);
    padding: 24px 0;
    overflow: hidden;
}

.trust-bar-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trust-bar-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: trustScroll 40s linear infinite;
}

.trust-bar-track:hover {
    animation-play-state: paused;
}

.tech-pill {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out);
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tech-pill.accent {
    border-color: rgba(243, 112, 33, 0.15);
    background: rgba(243, 112, 33, 0.05);
}

.tech-pill.accent .tech-name {
    color: var(--sol-orange);
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--sol-muted);
    letter-spacing: 0.05em;
    font-weight: 500;
}

@keyframes trustScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scrollWheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}


/* ─────────────────────────────────────────────────────────────────
   4. SECTION UTILITIES
   ───────────────────────────────────────────────────────────────── */

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--sol-orange);
    display: block;
    margin-bottom: 20px;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sol-white);
    margin-bottom: 20px;
}

.section-headline .muted {
    color: var(--sol-dim);
}

.section-headline .accent {
    color: var(--sol-orange);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--sol-muted);
    max-width: 500px;
}

.section-header {
    margin-bottom: 64px;
}


/* ─────────────────────────────────────────────────────────────────
   5. REALITY SECTION - DIAGNOSTIC DASHBOARD
   ───────────────────────────────────────────────────────────────── */

.reality-section {
    border-bottom: 1px solid var(--sol-border);
}

.reality-header {
    margin-bottom: 48px;
}

/* Dashboard Layout */
.diagnostic-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

/* Terminal */
.dashboard-terminal {
    height: 100%;
}

.terminal {
    background: #000;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #111;
    padding: 14px 18px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: #444;
}

.terminal-body {
    padding: 24px;
    font-size: 0.85rem;
    line-height: 1.8;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-body .line {
    opacity: 0;
    animation: terminalLine 0.3s ease forwards;
}

.terminal-body .prompt {
    color: var(--sol-green);
}

.terminal-body .command {
    color: var(--sol-white);
}

.terminal-body .output {
    color: #666;
}

.terminal-body .error {
    color: var(--sol-red);
}

.terminal-body .success {
    color: var(--sol-green);
}

.terminal-body .warning {
    color: var(--sol-orange);
}

@keyframes terminalLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

/* Diagnostic Cards */
.dashboard-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diagnostic-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 20px;
    border-radius: 12px;
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    transition: border-color 0.3s ease;
}

.diagnostic-card:hover {
    border-color: var(--sol-border-hover);
}

.diagnostic-card.diag-bad {
    background: linear-gradient(135deg, var(--sol-red-subtle), transparent);
    border-color: rgba(255, 75, 75, 0.15);
}

.diagnostic-card.diag-good {
    background: linear-gradient(135deg, var(--sol-green-subtle), transparent);
    border-color: rgba(0, 255, 157, 0.15);
}

.diag-icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.diag-bad .diag-icon {
    background: var(--sol-red-subtle);
    color: var(--sol-red);
}

.diag-good .diag-icon {
    background: var(--sol-green-subtle);
    color: var(--sol-green);
}

.diag-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diag-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sol-dim);
}

.diag-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sol-white);
    line-height: 1;
}

.diag-context {
    font-size: 0.8rem;
    color: var(--sol-muted);
}

.diag-bar {
    grid-column: 2;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.diag-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 1.5s var(--ease-expo);
}

.diagnostic-card.visible .diag-fill {
    width: var(--fill-width);
}

.diag-fill.bad {
    background: var(--sol-red);
}

.diag-fill.good {
    background: var(--sol-green);
}

/* Reality Difference Strip */
.reality-difference {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 48px;
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    border-radius: 16px;
}

.diff-item {
    text-align: center;
}

.diff-item.highlight {
    padding: 24px 48px;
    background: var(--sol-orange-subtle);
    border: 1px solid rgba(243, 112, 33, 0.2);
    border-radius: 12px;
}

.diff-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-muted);
    margin-bottom: 8px;
}

.diff-time {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.diff-time.bad {
    color: var(--sol-red);
}

.diff-time.good {
    color: var(--sol-green);
}

.diff-detail {
    font-size: 0.85rem;
    color: var(--sol-dim);
}

.diff-arrow {
    color: var(--sol-dim);
}


/* ─────────────────────────────────────────────────────────────────
   6. METRICS SECTION (REPLACES CAPABILITIES)
   ───────────────────────────────────────────────────────────────── */

.metrics-section {
    background: var(--sol-surface);
    border-bottom: 1px solid var(--sol-border);
}

/* Bento Layout */
.metrics-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
}

/* Card Sizes */
.metric-large {
    grid-column: span 2;
    grid-row: span 2;
}

.metric-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.metric-small {
    grid-column: span 1;
    grid-row: span 1;
}

.metric-wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Base Card Style */
.metric-card {
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    border-radius: 20px;
    overflow: hidden;
    transition:
        border-color 0.4s var(--ease-out),
        transform 0.4s var(--ease-out);
    position: relative;
}

.metric-card:hover {
    border-color: var(--sol-border-hover);
    transform: translateY(-4px);
    z-index: 2;
}

.metric-card-inner {
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.metric-large .metric-card-inner {
    padding: 36px;
}

/* Card Header */
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-muted);
}

.metric-icon {
    color: var(--sol-orange);
    opacity: 0.7;
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sol-green);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.status-dot.pulse {
    animation: statusPulse 2s ease infinite;
}

.status-dot.green {
    background: var(--sol-green);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sol-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes statusPulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Visualization: Ring Chart (Performance) */
.metric-visual-ring {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}

.ring-svg {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--sol-orange);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327;
    /* 2 * PI * 52 */
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 12px rgba(243, 112, 33, 0.4));
}

.metric-card.visible .ring-fill {
    stroke-dashoffset: 6.5;
    /* 98% filled */
}

.ring-center {
    position: absolute;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.ring-value {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--sol-white);
    line-height: 1;
}

.ring-unit {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sol-muted);
    margin-left: 4px;
}

/* Visualization: Mini Bars (Revenue) */
.metric-chart-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 16px 0;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    width: 100%;
}

.mini-bars .bar {
    flex: 1;
    background: linear-gradient(to top, rgba(243, 112, 33, 0.3), var(--sol-orange));
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.metric-card.visible .mini-bars .bar {
    opacity: 1;
    transform: scaleY(1);
}

.mini-bars .bar:nth-child(1) {
    transition-delay: 0.1s;
}

.mini-bars .bar:nth-child(2) {
    transition-delay: 0.15s;
}

.mini-bars .bar:nth-child(3) {
    transition-delay: 0.2s;
}

.mini-bars .bar:nth-child(4) {
    transition-delay: 0.25s;
}

.mini-bars .bar:nth-child(5) {
    transition-delay: 0.3s;
}

.mini-bars .bar:nth-child(6) {
    transition-delay: 0.35s;
}

.mini-bars .bar:nth-child(7) {
    transition-delay: 0.4s;
}

.mini-bars .bar:nth-child(8) {
    transition-delay: 0.45s;
}

/* Visualization: ROAS Bars */
.roas-value {
    margin-bottom: 24px;
}

.roas-comparison {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roas-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.roas-before,
.roas-after {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--sol-muted);
}

.bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.bar-track .bar-fill {
    height: 100%;
    width: 0;
    background: var(--sol-dim);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.bar-track .bar-fill.highlight {
    background: var(--sol-orange);
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.4);
}

.metric-card.visible .bar-fill {
    width: var(--width);
}


/* Visualization: Uptime Grid */
.uptime-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 20px 0;
    flex: 1;
}

.uptime-grid .cell {
    aspect-ratio: 1;
    background: var(--sol-green);
    border-radius: 2px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.uptime-grid .cell:hover {
    opacity: 1;
    box-shadow: 0 0 5px var(--sol-green);
}

.uptime-grid .cell.incident {
    background: var(--sol-orange);
    opacity: 0.8;
}

/* Visualization: Speed Gauge */
.speed-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.speed-gauge {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gauge-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--sol-green), var(--sol-orange));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card.visible .gauge-fill {
    width: 20%;
    /* Super fast */
}

/* Visualization: Retention Avatars */
.retention-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.retention-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.retention-right {
    display: flex;
    align-items: center;
}

.retention-avatars {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.avatar-stack {
    display: flex;
    padding-left: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sol-panel);
    border: 2px solid var(--sol-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sol-muted);
    margin-left: -12px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.avatar:nth-child(1) {
    background: #1a1a1a;
    color: var(--sol-white);
}

.avatar:nth-child(2) {
    background: #222;
    color: var(--sol-white);
}

.avatar:nth-child(3) {
    background: #2a2a2a;
    color: var(--sol-white);
}

.avatar:nth-child(4) {
    background: var(--sol-orange);
    color: #000;
}

.avatar-text {
    font-size: 0.75rem;
    color: var(--sol-dim);
}


/* Common Metric Typography */
.metric-big-value {
    display: flex;
    align-items: baseline;
}

.big-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--sol-white);
    line-height: 1;
}

.big-unit {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sol-muted);
    margin-left: 4px;
}

.metric-small .big-num {
    font-size: 2.25rem;
}

.metric-small .big-unit {
    font-size: 1rem;
}

.metric-context {
    font-size: 0.85rem;
    color: var(--sol-dim);
    margin-top: 4px;
}

.metric-footer {
    text-align: center;
    margin-top: auto;
}

.metric-title {
    display: block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sol-white);
    margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   GLOBAL SECTION HEADERS (Strict Reference Match)
   ───────────────────────────────────────────────────────────────── */

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-orange);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--sol-white);
    margin: 0 0 24px 0;
}

.section-title .grey {
    color: var(--sol-muted);
}

.section-title .accent {
    color: var(--sol-orange);
}

/* ─────────────────────────────────────────────────────────────────
   THE GAP SECTION (Replaces Reality Section)
   ───────────────────────────────────────────────────────────────── */

.gap-section {
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
    background: var(--sol-bg);
    /* PERFORMANCE: Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.services-section {
    /* PERFORMANCE: Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Subtle background gradient */
.gap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at top center, rgba(243, 112, 33, 0.03), transparent 60%);
    pointer-events: none;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--sol-white);
}

.section-headline .strike {
    position: relative;
    font-style: italic;
    color: var(--sol-muted);
}

.section-headline .strike::after {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    top: 55%;
    height: 3px;
    background: var(--sol-orange);
    transform: rotate(-1deg);
    border-radius: 2px;
}

.section-subtext {
    font-size: 1.15rem;
    color: var(--sol-muted);
    max-width: 580px;
    margin: 0 auto;
}

.section-subtext strong {
    color: var(--sol-white);
    font-weight: 600;
}

/* Part 1: The Comparison */
.comparison-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 80px;
}

/* Comparison Card */
.compare-card {
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

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

/* Bad Card Styling */
.compare-card.bad::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 75, 75, 0.08), transparent 60%);
    pointer-events: none;
}

/* Good Card Styling */
.compare-card.good {
    border-color: rgba(0, 255, 157, 0.15);
}

.compare-card.good::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(0, 255, 157, 0.08), transparent 60%);
    pointer-events: none;
}

.compare-card.good::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sol-green), rgba(0, 255, 157, 0.3));
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sol-white);
}

.card-name .spark {
    color: var(--sol-orange);
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.badge-slow {
    background: rgba(255, 75, 75, 0.1);
    color: var(--sol-red);
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.badge-fast {
    background: rgba(0, 255, 157, 0.1);
    color: var(--sol-green);
    border: 1px solid rgba(0, 255, 157, 0.2);
}

/* Card Time */
.card-time-display {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.time-value {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.compare-card.bad .time-value {
    color: var(--sol-red);
}

.compare-card.good .time-value {
    color: var(--sol-green);
}

.time-label {
    font-size: 0.9rem;
    color: var(--sol-muted);
    margin-top: 4px;
}

/* Progress Bar */
.card-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.5s var(--ease-out);
}

.compare-card.bad .bar-fill {
    background: linear-gradient(90deg, var(--sol-red), #ff7070);
    box-shadow: 0 0 20px rgba(255, 75, 75, 0.4);
}

.compare-card.good .bar-fill {
    background: linear-gradient(90deg, var(--sol-green), #50ffb0);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

/* Animation State */
.comparison-block.visible .compare-card.bad .bar-fill {
    width: 88%;
}

.comparison-block.visible .compare-card.good .bar-fill {
    width: 12%;
}

/* Card Stats */
.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--sol-border);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.compare-card.bad .stat-value {
    color: var(--sol-red);
}

.compare-card.good .stat-value {
    color: var(--sol-green);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--sol-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* VS Divider */
.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 8px;
}

.vs-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, transparent, var(--sol-border), transparent);
}

.vs-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--sol-dim);
    background: var(--sol-bg);
    padding: 8px 12px;
    border: 1px solid var(--sol-border);
    border-radius: 6px;
}

/* Part 2: Pain Points We Understand */
.pain-block {
    background: var(--sol-surface);
    border: 1px solid var(--sol-border);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.pain-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(243, 112, 33, 0.12), transparent 70%);
    pointer-events: none;
}

.pain-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.pain-title-group {
    max-width: 450px;
}

.pain-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sol-orange);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pain-label .dot {
    width: 6px;
    height: 6px;
    background: var(--sol-orange);
    border-radius: 50%;
    animation: statusPulse 2s ease infinite;
}

.pain-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--sol-white);
}

.pain-title em {
    font-style: italic;
    color: var(--sol-muted);
}

.pain-context {
    font-size: 0.95rem;
    color: var(--sol-dim);
    max-width: 280px;
    text-align: right;
}

/* Pain Points Grid */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.pain-card {
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.pain-card:hover {
    border-color: var(--sol-border-hover);
    transform: translateY(-4px);
    background: var(--sol-panel-hover);
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-accent, var(--sol-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.pain-card[data-severity="critical"] {
    --card-accent: var(--sol-red);
}

.pain-card[data-severity="warning"] {
    --card-accent: #ffb020;
}

.pain-card[data-severity="moderate"] {
    --card-accent: var(--sol-orange);
}

.pain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sol-border);
    transition: all 0.3s var(--ease-out);
}

.pain-card:hover .pain-icon {
    background: var(--card-accent);
    border-color: var(--card-accent);
}

.pain-icon svg {
    color: var(--card-accent);
    transition: color 0.3s ease;
}

.pain-card:hover .pain-icon svg {
    color: var(--sol-bg);
}

.pain-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--sol-white);
}

.pain-card-stat {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--card-accent);
    margin-bottom: 8px;
}

.pain-card-desc {
    font-size: 0.85rem;
    color: var(--sol-muted);
    line-height: 1.5;
}

/* Bottom Punchline */
.punchline {
    margin-top: 48px;
    text-align: center;
}

.punchline-text {
    font-size: 1.1rem;
    color: var(--sol-muted);
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.punchline-text strong {
    color: var(--sol-white);
    font-weight: 600;
}

.punchline-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--sol-border);
    border-radius: 100px;
    color: var(--sol-white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.punchline-cta:hover {
    background: var(--sol-white);
    color: var(--sol-bg);
    border-color: var(--sol-white);
}

.punchline-cta svg {
    transition: transform 0.3s var(--ease-out);
}

.punchline-cta:hover svg {
    transform: translateX(4px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.d1 {
    transition-delay: 0.1s;
}

.fade-in.d2 {
    transition-delay: 0.2s;
}

.fade-in.d3 {
    transition-delay: 0.3s;
}

/* Staggered card animation */
.pain-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.pain-grid.visible .pain-card {
    opacity: 1;
    transform: translateY(0);
}

.pain-grid.visible .pain-card:nth-child(1) {
    transition-delay: 0.1s;
}

.pain-grid.visible .pain-card:nth-child(2) {
    transition-delay: 0.2s;
}

.pain-grid.visible .pain-card:nth-child(3) {
    transition-delay: 0.3s;
}

.pain-grid.visible .pain-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .comparison-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vs-divider {
        flex-direction: row;
        padding: 16px 0;
    }

    .vs-line {
        height: 1px;
        width: auto;
        flex: 1;
    }

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

    .pain-header {
        flex-direction: column;
        gap: 16px;
    }

    .pain-context {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .gap-section {
        padding: 80px 0 100px;
    }

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

    .pain-block {
        padding: 32px 24px;
    }

    /* Fix shading cutoff on mobile */
    .pain-block::before {
        width: 100%;
        background: linear-gradient(180deg, rgba(243, 112, 33, 0.08) 0%, transparent 100%);
        height: 60%;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .punchline-text {
        flex-direction: column;
        gap: 16px;
    }

    .punchline-cta {
        margin-left: 0;
    }
}

/* ─────────────────────────────────────────────────────────────────
   7. SERVICES VIEWER - CINEMA STYLE (Replaced)
   ───────────────────────────────────────────────────────────────── */

.services-viewer {
    display: flex;
    background: var(--sol-panel);
    border: 1px solid var(--sol-border);
    border-radius: 24px;
    overflow: hidden;
    min-height: 560px;
}

.services-nav {
    flex: 0 0 300px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--sol-border);
    padding: 24px 0;
    position: sticky;
    top: 24px;
    height: 100%;
    max-height: 560px;
}

.service-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    cursor: pointer;
    border: none;
    border-left: 2px solid transparent;
    transition: all 0.3s var(--ease-out);
    width: 100%;
    background: transparent;
    color: inherit;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.02);
}

.service-tab.active {
    background: linear-gradient(90deg, rgba(243, 112, 33, 0.1) 0%, transparent 100%);
    border-left-color: var(--sol-orange);
}

.service-tab-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-tab-icon {
    width: 20px;
    height: 20px;
    color: var(--sol-dim);
    transition: color 0.3s ease;
}

.service-tab:hover .service-tab-icon,
.service-tab.active .service-tab-icon {
    color: var(--sol-orange);
}

.service-tab-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sol-muted);
    transition: color 0.3s ease;
}

.service-tab:hover .service-tab-name,
.service-tab.active .service-tab-name {
    color: var(--sol-white);
}

.service-tab-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border: 1px solid var(--sol-border);
    border-radius: 100px;
    color: var(--sol-dim);
    transition: all 0.3s ease;
}

.service-tab.active .service-tab-badge {
    border-color: var(--sol-orange);
    color: var(--sol-orange);
    background: rgba(243, 112, 33, 0.1);
}

.services-content {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.service-pane {
    display: none;
    /* Handled by JS toggling 'hidden' attribute or style, but we'll use display none/block based on logic */
}

/* Logic for non-hidden panes */
.service-pane:not([hidden]) {
    display: block;
    animation: paneFadeIn 0.4s var(--ease-out);
}

@keyframes paneFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.service-kicker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-dim);
    margin-bottom: 16px;
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 300;
    color: var(--sol-white);
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.service-body {
    font-size: 1.05rem;
    color: var(--sol-muted);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

.deliverables-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-dim);
    margin-bottom: 16px;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    margin-bottom: 32px;
}

.deliverable-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--sol-muted);
}

.deliverable-item svg {
    color: var(--sol-orange);
    flex-shrink: 0;
}

.tech-row {
    padding-top: 24px;
    border-top: 1px solid var(--sol-border);
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-dim);
    margin-bottom: 16px;
}

.tech-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-icon {
    width: 80px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--sol-border);
    border-radius: 10px;
    padding: 8px 12px;
    transition: transform 0.3s var(--ease-out);
}

.tech-icon:hover {
    transform: translateY(-2px);
}

.tech-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-fallback {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
}

@media (max-width: 900px) {
    .services-viewer {
        flex-direction: column;
    }

    .services-nav {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--sol-border);
        padding: 16px 0;
        position: relative;
        height: auto;
        overflow-x: auto;
        display: flex;
        gap: 8px;
    }

    .service-tab {
        width: auto;
        padding: 12px 16px;
        flex-shrink: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
    }

    .service-tab.active {
        background: rgba(243, 112, 33, 0.1);
        border-bottom-color: var(--sol-orange);
        border-left-color: transparent;
    }

    .service-tab-badge {
        display: none;
    }

    .services-content {
        padding: 32px 24px;
    }

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


/* ─────────────────────────────────────────────────────────────────
   8. PROCESS - HORIZONTAL GRID
   ───────────────────────────────────────────────────────────────── */

.process-section {
    background: var(--sol-surface);
    border-bottom: 1px solid var(--sol-border);
    /* PERFORMANCE: Skip rendering until near viewport */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--sol-border);
    border-bottom: 1px solid var(--sol-border);
}

.process-step {
    padding: 48px 32px;
    border-right: 1px solid var(--sol-border);
    position: relative;
    transition: background 0.3s var(--ease-out);
}

.process-step:last-child {
    border-right: none;
}

.process-step:hover {
    background: var(--sol-panel);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 24px;
    right: 24px;
    font-weight: 700;
    line-height: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--sol-white);
}

.step-desc {
    font-size: 0.9rem;
    color: var(--sol-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.step-duration {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sol-orange);
    padding: 6px 12px;
    background: var(--sol-orange-subtle);
    border-radius: 4px;
    display: inline-block;
}


/* ─────────────────────────────────────────────────────────────────
   9. CTA SECTION
   ───────────────────────────────────────────────────────────────── */

.cta-section {
    padding: var(--section-gap) var(--container-pad);
    /* Gradient background behind the glass card */
    background:
        radial-gradient(ellipse at 40% 50%, rgba(243, 112, 33, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(140, 40, 20, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--sol-body) 0%, #1a0b10 100%);
    border-top: 1px solid var(--sol-border);
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind card */
.cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.2) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

.cta-block {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 80px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;

    /* Glass Card Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-block::before {
    /* Inner highlight at top edge */
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.cta-kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sol-orange);
    display: block;
    margin-bottom: 20px;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-headline .accent {
    color: var(--sol-orange);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--sol-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 450px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: var(--sol-white);
    color: #000;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 18px 32px;
    border: 1px solid var(--sol-border);
    border-radius: 100px;
    color: var(--sol-white);
    font-size: 1rem;
    transition: background 0.3s var(--ease-out);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cta-visual {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-stat-value {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--sol-white);
    line-height: 1;
}

.cta-stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sol-muted);
}


/* ─────────────────────────────────────────────────────────────────
   10. REVEAL ANIMATIONS
   ───────────────────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}


/* ─────────────────────────────────────────────────────────────────
   11. RESPONSIVE
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .diagnostic-dashboard {
        grid-template-columns: 1fr;
    }

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

    .metric-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .metric-wide {
        grid-column: span 2;
    }

    .viewer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .viewer-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        margin: 0 -24px;
        padding: 0 24px 8px;
    }

    .service-tab {
        white-space: nowrap;
        padding: 14px 20px;
    }

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

    .process-step {
        border-bottom: 1px solid var(--sol-border);
    }

    .process-step:nth-child(2),
    .process-step:nth-child(4) {
        border-right: none;
    }

    .cta-block {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 64px 32px;
    }

    .cta-text {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .proof-bar {
        flex-direction: column;
        gap: 24px;
        padding: 24px 32px;
    }

    .proof-divider {
        width: 40px;
        height: 1px;
    }

    .metrics-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .metric-large,
    .metric-medium,
    .metric-small,
    .metric-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .metric-card-inner {
        padding: 24px;
    }

    .ring-svg {
        width: 140px;
        height: 140px;
    }

    .ring-value {
        font-size: 3rem;
    }

    .retention-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .retention-avatars {
        align-items: center;
    }

    .reality-difference {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
    }

    .diff-arrow {
        transform: rotate(90deg);
    }

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

    .process-step {
        border-right: none;
        border-bottom: 1px solid var(--sol-border);
    }

    .process-step:last-child {
        border-bottom: none;
    }

    .section-headline {
        font-size: 2rem;
    }

    .pane-title {
        font-size: 2rem;
    }

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


/* ─────────────────────────────────────────────────────────────────
   12. SCROLLBAR
   ───────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sol-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}


/* ─────────────────────────────────────────────────────────────────
   13. REDUCED MOTION & ACCESSIBILITY
   ───────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

    /* Disable animations for users who prefer reduced motion */
    .hero-headline .line,
    .hero-subtext,
    .status-bar,
    .pain-card,
    .compare-card,
    .capability-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Hide animated elements */
    .activity-bars,
    .pulse-dot,
    .scroll-cue {
        display: none !important;
    }

    /* Skip Three.js canvas entirely */
    #mesh-canvas {
        display: none !important;
    }
}