/* ============================================
   Harness Page — Inference Orchestration Engine
   Each section has its own visual structure
   ============================================ */

/* Nav active state now in index-lab.css */


/* ============================================
   1. HERO — mirrors index-lab layout
   ============================================ */
.uv-h-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-top: 1px solid var(--border);
}
.uv-h-hero-text {
    padding: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}
.uv-h-hero-text .uv-subtitle {
    max-width: 440px;
    margin-bottom: 24px;
    font-weight: 500;
    color: var(--text-2);
    text-wrap: wrap;
}
.uv-h-hero .uv-hero-cta { justify-content: flex-start; }
.uv-h-hero .uv-hero-cta a:only-child {
    background: var(--inverse);
    color: var(--bg1);
    border: none;
}
.uv-h-hero .uv-hero-cta a:only-child:hover {
    background: var(--accent);
}

/* ---- Hero visual — murmuration canvas (identical to index-lab) ---- */
.uv-h-hero-visual {
    position: relative;
    min-height: clamp(300px, 50vh, 500px);
    background: var(--bg1);
    overflow: hidden;
}
.uv-h-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.uv-h-hero-visual canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}


/* ============================================
   HERO — Event stream terminal
   ============================================ */
.uv-h-stream {
    background: #1a1a1a;
    border-radius: 10px;
    max-height: 440px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.25),
        0 8px 24px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}
.uv-h-stream-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.uv-h-stream-bar > span:nth-child(-n+3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.uv-h-stream-title {
    margin-left: auto;
    font: 500 10px/1 var(--mono);
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.02em;
}
.uv-h-stream-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    animation: streamPulse 2s ease-in-out infinite;
    margin-left: 6px;
}
@keyframes streamPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.uv-h-stream-body {
    margin: 0;
    padding: 16px 20px;
    font: 400 11.5px/1.9 var(--mono);
    color: rgba(255,255,255,0.2);
    white-space: pre;
    overflow-x: hidden;
}
.uv-h-stream-fade {
    position: sticky;
    bottom: 0;
    height: 60px;
    margin-top: -60px;
    background: linear-gradient(transparent, #1a1a1a);
    pointer-events: none;
    z-index: 2;
}
/* Event lines */
.uv-h-ev {
    display: block;
    transition: color 0.2s ease;
}
.uv-h-ev--signal {
    color: rgba(78,205,196,0.85);
    text-shadow: 0 0 12px rgba(78,205,196,0.2);
}
.uv-h-ev-tag {
    font-weight: 500;
    color: var(--mint);
    background: rgba(78,205,196,0.1);
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 4px;
    font-size: 10px;
}

/* ---- Dashboard terminal ---- */
.uv-h-dash {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #151515;
    border-color: rgba(255,255,255,0.08);
    box-shadow:
        0 28px 80px rgba(0,0,0,0.28),
        0 8px 24px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* LIVE indicator */
.uv-h-dash-live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font: 500 9px/1 var(--mono);
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.uv-h-dash-live span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mint);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 transparent; }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(78,205,196,0.3); }
}

/* Status strip */
.uv-h-dash-status {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
    gap: 0;
}
.uv-h-dash-stat {
    flex: 1;
    font: 400 10px/1 var(--mono);
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 0.02em;
}
.uv-h-dash-val {
    color: var(--mint);
    font-weight: 500;
    margin-right: 4px;
}
.uv-h-dash-val--good { color: var(--mint); }
.uv-h-dash-sep {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* Body */
.uv-h-dash-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}
.uv-h-dash-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, #151515);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 10px 10px;
}

/* ---- Active trade + trace waterfall ---- */
.uv-h-dash-active {
    padding: 0 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 8px;
}
.uv-h-dt {
    font: 500 14px/1.6 var(--mono);
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.uv-h-dt--impact {
    animation: dtImpact 0.22s ease-out;
}
@keyframes dtImpact {
    0% { opacity: 0; transform: translateX(-6px); }
    100% { opacity: 1; transform: translateX(0); }
}
.uv-h-dt-agent { color: rgba(255,255,255,0.35); font-weight: 400; font-size: 0.8em; }
.uv-h-dt-sym { color: #fff; font-weight: 700; }
.uv-h-dt--long, .uv-h-dt--add { color: var(--mint); font-weight: 600; }
.uv-h-dt--short { color: #e88c5a; font-weight: 600; }
.uv-h-dt--close { color: rgba(255,255,255,0.6); font-weight: 600; }
.uv-h-dt-size { color: rgba(255,255,255,0.7); }
.uv-h-dt-price { color: rgba(255,255,255,0.3); font-size: 0.85em; }
.uv-h-dt-pnl--pos { color: var(--mint); font-weight: 700; }
.uv-h-dt-pnl--neg { color: #e88c5a; font-weight: 700; }

/* Trace waterfall steps */
.uv-h-trace {
    padding-top: 8px;
}
.uv-h-trace-step {
    font: 400 10px/2.1 var(--mono);
    color: rgba(255,255,255,0.3);
    padding-left: 16px;
    display: flex;
    white-space: nowrap;
    opacity: 0;
    animation: traceIn 0.12s ease-out forwards;
}
@keyframes traceIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}
.uv-h-trace-stage {
    width: 72px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.22);
}
.uv-h-trace-desc {
    flex: 1;
    color: rgba(255,255,255,0.45);
}
.uv-h-trace-time {
    text-align: right;
    color: rgba(255,255,255,0.18);
    min-width: 48px;
    padding-right: 4px;
}
/* Stage color accents */
.uv-h-trace--inf .uv-h-trace-desc { color: rgba(78,205,196,0.6); }
.uv-h-trace--pol .uv-h-trace-desc { color: rgba(78,205,196,0.7); }
.uv-h-trace--exe .uv-h-trace-desc { color: rgba(255,255,255,0.75); }
.uv-h-trace--exe .uv-h-trace-time { color: rgba(78,205,196,0.4); }

/* ---- History ---- */
.uv-h-dash-hist {
    padding: 0 20px;
    overflow: hidden;
}
.uv-h-dh {
    font: 400 10px/2.3 var(--mono);
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    transition: opacity 0.3s ease;
    letter-spacing: 0.01em;
}
.uv-h-dh--enter {
    animation: dhEnter 0.2s ease-out;
}
@keyframes dhEnter {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.uv-h-dh-sym { font-weight: 500; color: rgba(255,255,255,0.45); }
.uv-h-dh--long, .uv-h-dh--add { color: rgba(78,205,196,0.5); }
.uv-h-dh--short { color: rgba(232,140,90,0.5); }
.uv-h-dh--close { color: rgba(255,255,255,0.35); }
.uv-h-dh-pnl--pos { color: rgba(78,205,196,0.5); }
.uv-h-dh-pnl--neg { color: rgba(232,140,90,0.5); }

/* Shake */
@keyframes dashShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-1.5px); }
    40% { transform: translateX(1.5px); }
    65% { transform: translateX(-0.8px); }
}
.uv-h-dash--shake {
    animation: dashShake 0.14s ease-out;
}



/* ============================================
   2. METRICS BAR — Standalone dark strip
   ============================================ */
.uv-h-metrics {
    margin: 0 56px 32px;
    border-radius: 4px;
}




/* ============================================
   4. ARCHITECTURE — Connected pipeline with depth
   ============================================ */
.uv-h-pipeline {
    display: flex;
    align-items: stretch;
    margin-top: 48px;
}

/* Stage cards */
.uv-h-pipe-stage {
    flex: 1;
    padding: 28px 24px 22px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    text-align: center;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.uv-h-pipe-stage:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Core stages — harness-owned, teal treatment */
.uv-h-pipe-stage--core {
    border-color: rgba(24,119,140,0.2);
    background:
        radial-gradient(ellipse at 50% 100%, rgba(24,119,140,0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(24,119,140,0.04) 0%, transparent 100%);
    box-shadow: 0 0 30px rgba(24,119,140,0.05);
}
.uv-h-pipe-stage--core:hover {
    border-color: rgba(24,119,140,0.35);
    box-shadow: 0 4px 30px rgba(24,119,140,0.12);
}
.uv-h-pipe-stage--core h4 {
    color: var(--mint);
}
.uv-h-pipe-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font: 500 8px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    background: var(--accent);
    color: rgba(255,255,255,0.9);
    border-radius: 2px;
}
.uv-h-pipe-num {
    display: block;
    font: 500 10px/1 var(--mono);
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.12);
    margin-bottom: 14px;
}
.uv-h-pipe-stage--core .uv-h-pipe-num {
    color: rgba(78,205,196,0.25);
}
.uv-h-pipe-stage h4 {
    font: 500 15px/1.25 var(--sans);
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px;
}
.uv-h-pipe-stage p {
    font: 300 13px/1.55 var(--sans);
    color: rgba(255,255,255,0.45);
    margin: 0 0 14px;
    letter-spacing: 0.015em;
}
.uv-h-pipe-vol {
    display: block;
    font: 500 9px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.18);
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.uv-h-pipe-stage--core .uv-h-pipe-vol {
    color: rgba(78,205,196,0.3);
    border-top-color: rgba(24,119,140,0.12);
}

/* Connectors — line + chevron */
.uv-h-pipe-connector {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.uv-h-pipe-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(78,205,196,0.2), rgba(255,255,255,0.08));
}
.uv-h-pipe-chevron {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(78,205,196,0.4);
    border-bottom: 1.5px solid rgba(78,205,196,0.4);
    transform: rotate(-45deg);
}


/* ============================================
   5. CAPABILITIES — 2x2 card grid with expand
   ============================================ */
/* Capabilities */
.uv-h-capabilities .uv-subtitle {
    max-width: 440px;
}
.uv-h-caps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}
.uv-h-cap {
    padding: 24px 48px 24px 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg0);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.uv-h-cap:hover {
    border-color: rgba(24,119,140,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.uv-h-cap.is-open {
    background: var(--inverse);
    border-color: rgba(24,119,140,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
/* Head row: icon + title + stat */
.uv-h-cap-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding-left: 58px;
}
.uv-h-cap-icon {
    position: absolute;
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: top 0.3s ease, transform 0.3s ease;
}
.uv-h-cap.is-open .uv-h-cap-icon {
    top: 28px;
    transform: none;
}
.uv-h-cap-head h3 {
    font: 500 16px/1.2 var(--sans);
    margin: 0;
    flex: 1;
    color: var(--text);
    transition: color 0.2s ease;
}
.uv-h-cap.is-open .uv-h-cap-head h3 {
    color: var(--mint);
}
/* Short text — aligned with title (icon width + gap) */
.uv-h-cap-short {
    font: 500 13px/1.55 var(--sans);
    color: var(--text-2);
    margin: 0;
    padding-left: 58px;
    transition: color 0.2s ease;
}
.uv-h-cap.is-open .uv-h-cap-short {
    color: rgba(255,255,255,0.6);
}
/* Hide short text when open */
.uv-h-cap.is-open .uv-h-cap-short {
    display: none;
}

/* Expanded detail */
.uv-h-cap-detail {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.uv-h-cap.is-open .uv-h-cap-detail {
    height: auto;
    opacity: 1;
    margin-top: 14px;
    padding-left: 58px;
}
.uv-h-cap-detail p {
    font: 500 14px/1.65 var(--sans);
    color: rgba(255,255,255,0.7);
    margin: 0;
    letter-spacing: 0.02em;
}
/* Toggle — vertically centered */
.uv-h-cap-toggle {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font: 300 18px/1 var(--sans);
    color: var(--text-3);
    transition: transform 0.2s ease, color 0.2s ease;
}
.uv-h-cap.is-open .uv-h-cap-toggle {
    top: 24px;
    transform: rotate(45deg);
    color: var(--mint);
}


/* ============================================
   6. INTEGRATION — Code + text two-column
   ============================================ */
.uv-h-int-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
/* Terminal card */
.uv-h-terminal {
    border-radius: 10px;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 24px 80px rgba(0,0,0,0.18),
        0 8px 24px rgba(0,0,0,0.1);
}
.uv-h-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.uv-h-terminal-bar > span:nth-child(-n+3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.uv-h-terminal-filename {
    margin-left: auto;
    font: 500 10px/1 var(--mono);
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.02em;
}
.uv-h-terminal pre {
    margin: 0;
    padding: 20px 24px;
}
.uv-h-terminal code {
    font: 400 13px/1.7 var(--mono);
    color: rgba(255,255,255,0.5);
    white-space: pre;
    display: block;
}
/* Syntax highlighting */
.uv-h-kw { color: #7cacb5; }
.uv-h-kw-hi { color: var(--mint); }
.uv-h-str { color: #b5896a; }
.uv-h-comment { color: rgba(255,255,255,0.3); font-style: italic; }
.uv-h-comment-hi { color: rgba(255,255,255,0.65); }
.uv-h-num { color: #a3be98; }
.uv-h-str-hi { color: var(--mint); font-weight: 500; }

/* Text column */
.uv-h-int-text .uv-heading {
    margin-bottom: 16px;
}
.uv-h-int-text .uv-subtitle {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Terminal on dark — subtler shadow */
.uv-h-integration .uv-h-terminal {
    background: #141414;
    border-color: rgba(255,255,255,0.08);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.3),
        0 4px 16px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Integration tier cards */
.uv-h-int-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}
.uv-h-int-tier {
    padding: 20px 24px 20px 22px;
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    position: relative;
    transition: border-color 0.2s ease, border-left-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.uv-h-int-tier:hover {
    border-color: rgba(255,255,255,0.1);
    border-left-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    transform: translateX(3px);
}

/* Active tier — mint accent + glow */
.uv-h-int-tier--active {
    border-color: rgba(24,119,140,0.15);
    border-left: 3px solid var(--mint);
    background: rgba(24,119,140,0.06);
    box-shadow: 0 0 24px rgba(24,119,140,0.06);
}
.uv-h-int-tier--active:hover {
    border-color: rgba(24,119,140,0.25);
    border-left-color: var(--mint);
    background: rgba(24,119,140,0.08);
    transform: translateX(3px);
    box-shadow: 0 0 32px rgba(24,119,140,0.1);
}

/* Tier numbering */
.uv-h-int-tier::after {
    position: absolute;
    top: 20px;
    right: 20px;
    font: 500 9px/1 var(--mono);
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.1);
}
.uv-h-int-tier:nth-child(1)::after { content: '01'; }
.uv-h-int-tier:nth-child(2)::after { content: '02'; }
.uv-h-int-tier:nth-child(3)::after { content: '03'; }
.uv-h-int-tier--active::after { color: rgba(78,205,196,0.25); }

/* Tier typography */
.uv-h-int-tier h4 {
    font: 500 15px/1 var(--sans);
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px;
}
.uv-h-int-tier--active h4 {
    color: var(--mint);
}
.uv-h-int-tier p {
    font: 500 13.5px/1.6 var(--sans);
    color: rgba(255,255,255,0.5);
    margin: 0;
    letter-spacing: 0.02em;
}
.uv-h-int-tier--active p {
    color: rgba(255,255,255,0.65);
}
.uv-h-int-tier-link {
    color: var(--mint);
    font-weight: 500;
    font-size: 13px;
    transition: opacity 0.2s ease;
}
.uv-h-int-tier-link:hover { opacity: 0.7; }



/* ============================================
   7. COMPARISON — Build vs. Buy (mesh gradient card)
   ============================================ */

/* Card container — mesh gradient card */
.uv-h-cmp-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 40px 44px;
    background:
        radial-gradient(ellipse at 50% 130%, rgba(26,143,168,0.35), transparent 50%),
        #1a2f35;
    box-shadow:
        0 8px 32px rgba(24,119,140,0.15),
        0 2px 8px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.06);
}
.uv-h-cmp-card > * {
    position: relative;
    z-index: 1;
}

/* Animated mesh orbs */
.uv-h-cmp-card::before,
.uv-h-cmp-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.uv-h-cmp-card::before {
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(24,119,140,0.7), transparent 70%);
    top: -50%;
    left: -5%;
    animation: cmpOrbA 10s ease-in-out infinite alternate;
}
.uv-h-cmp-card::after {
    width: 45%;
    height: 140%;
    background: radial-gradient(circle, rgba(78,205,196,0.2), transparent 70%);
    bottom: -40%;
    right: -5%;
    animation: cmpOrbB 8s ease-in-out infinite alternate;
}
@keyframes cmpOrbA {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 10%) scale(1.1); }
}
@keyframes cmpOrbB {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -8%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
    .uv-h-cmp-card::before,
    .uv-h-cmp-card::after { animation: none; }
}

/* Dark text overrides for heading inside the card */
.uv-h-cmp-card .uv-eyebrow { color: var(--accent-light); }
.uv-h-cmp-card .uv-heading { color: rgba(255,255,255,0.95); }
.uv-h-cmp-card .uv-heading em {
    background: none;
    -webkit-text-fill-color: var(--mint);
    color: var(--mint);
}
.uv-h-cmp-card .uv-subtitle {
    color: rgba(255,255,255,0.7);
    max-width: 440px;
}

/* Table — tighter integration with heading */
.uv-h-cmp-table {
    margin-top: 16px;
}

/* Header row */
.uv-h-cmp-header {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.uv-h-cmp-header .uv-h-cmp-label {
    padding: 18px 0;
}
.uv-h-cmp-header .uv-h-cmp-col {
    padding: 18px 24px;
    font: 500 12px/1 var(--mono);
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.65);
    text-align: center;
}
.uv-h-cmp-col--uv {
    color: var(--mint) !important;
}

/* Data rows */
.uv-h-cmp-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.uv-h-cmp-row:last-child {
    border-bottom: none;
}

/* Row label */
.uv-h-cmp-row .uv-h-cmp-label {
    padding: 20px 0;
    font: 500 12px/1.4 var(--sans);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
}

/* Cells */
.uv-h-cmp-cell {
    padding: 20px 24px;
    font: 500 13px/1.4 var(--sans);
    color: rgba(255,255,255,0.5);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uv-h-cmp-cell--good {
    color: var(--mint);
    font: 500 14px/1.4 var(--mono);
    letter-spacing: -0.01em;
}
.uv-h-cmp-cell--bad {}

/* Checkmark */
.uv-h-cmp-check {
    color: var(--mint);
    margin-right: 6px;
    font-size: 14px;
}


/* ============================================
   8. FAQ — Asymmetric: heading left, list right
   ============================================ */
.uv-h-faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}
.uv-h-faq-left .uv-heading {
    margin-bottom: 0;
}

/* FAQ styles now in index-lab.css */


/* ============================================
   9. CTA — Atmospheric single-focus conversion
   ============================================ */
.uv-h-cta {
    padding: 120px 56px 100px;
    overflow: hidden;
}

/* Atmospheric glow */
.uv-h-cta-glow {
    position: absolute;
    width: 800px;
    height: 600px;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -40%);
    background:
        radial-gradient(ellipse, rgba(24,119,140,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 45% 65%, rgba(78,205,196,0.08) 0%, transparent 45%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: hCtaBreath 10s ease-in-out infinite alternate;
}
@keyframes hCtaBreath {
    0%   { opacity: 0.7; transform: translate(-50%, -40%) scale(1); }
    100% { opacity: 1;   transform: translate(-50%, -40%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .uv-h-cta-glow { animation: none; opacity: 0.8; }
}

/* Credibility metric */
.uv-h-cta-metric {
    display: block;
    font: 500 10px/1 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(78,205,196,0.4);
    margin-bottom: 18px;
}

/* Heading override */
.uv-h-cta h2 {
    font-size: clamp(40px, 5.5vw, 64px);
    margin-bottom: 20px;
}

/* Animated border angle */
@property --h-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Button shell */
.uv-h-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 64px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 28px;
    border: none;
    cursor: pointer;
    background: transparent;
    box-shadow:
        0 0 0 1px rgba(78,205,196,0.1),
        0 0 40px rgba(24,119,140,0.1),
        0 0 80px rgba(24,119,140,0.04),
        0 4px 20px rgba(0,0,0,0.4);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    animation: hBtnGlow 4s ease-in-out infinite alternate;
}
@keyframes hBtnGlow {
    0%   { box-shadow: 0 0 0 1px rgba(78,205,196,0.08), 0 0 40px rgba(24,119,140,0.08), 0 0 80px rgba(24,119,140,0.03), 0 4px 20px rgba(0,0,0,0.4); }
    100% { box-shadow: 0 0 0 1px rgba(78,205,196,0.13), 0 0 50px rgba(24,119,140,0.18), 0 0 100px rgba(24,119,140,0.06), 0 4px 20px rgba(0,0,0,0.4); }
}
.uv-h-cta-btn:hover {
    transform: translateY(-2px);
    animation: none;
    box-shadow:
        0 0 0 1px rgba(78,205,196,0.2),
        0 0 60px rgba(24,119,140,0.3),
        0 0 120px rgba(24,119,140,0.1),
        0 8px 28px rgba(0,0,0,0.35);
}

/* Rotating conic gradient border */
.uv-h-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--h-border-angle),
        transparent 0%,
        #4ecdc4 10%,
        rgba(78,205,196,0.2) 22%,
        transparent 30%,
        transparent 45%,
        #18778C 52%,
        rgba(24,119,140,0.15) 62%,
        transparent 70%,
        transparent 82%,
        rgba(78,205,196,0.25) 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    z-index: 0;
    animation: hBorderRotate 7s linear infinite;
}
@keyframes hBorderRotate {
    to { --h-border-angle: 360deg; }
}
.uv-h-cta-btn:hover::before {
    animation-duration: 4s;
    background: conic-gradient(
        from var(--h-border-angle),
        transparent 0%,
        #4ecdc4 10%,
        rgba(78,205,196,0.35) 22%,
        transparent 30%,
        transparent 45%,
        #1a8fa8 52%,
        rgba(24,119,140,0.25) 62%,
        transparent 70%,
        transparent 82%,
        rgba(78,205,196,0.4) 90%,
        transparent 100%
    );
}

/* Inner fill */
.uv-h-cta-btn-fill {
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(78,205,196,0.06) 0%, transparent 50%),
        linear-gradient(180deg, #1f3540, #142430);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
    z-index: 1;
    transition: background 0.3s ease;
}
.uv-h-cta-btn:hover .uv-h-cta-btn-fill {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(78,205,196,0.1) 0%, transparent 50%),
        linear-gradient(180deg, #243d4a, #172a36);
}

/* Button text */
.uv-h-cta-btn-label {
    position: relative;
    z-index: 3;
    font: 500 14px/1 var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 0 24px rgba(78,205,196,0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .uv-h-cta-btn, .uv-h-cta-btn::before { animation: none; }
    .uv-h-cta-btn::before {
        background: conic-gradient(
            from 45deg,
            rgba(78,205,196,0.4),
            transparent 30%,
            rgba(24,119,140,0.3) 50%,
            transparent 80%,
            rgba(78,205,196,0.2)
        );
    }
}

/* Academic note */
.uv-cta p.uv-h-cta-note {
    font: 300 13px/1.5 var(--sans);
    color: rgba(255,255,255,0.45);
    margin: 0 auto;
    max-width: none;
    letter-spacing: 0.03em;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .uv-h-hero {
        grid-template-columns: 1fr;
    }
    .uv-h-hero-text {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .uv-h-pipeline {
        flex-direction: column;
        gap: 0;
    }
    .uv-h-pipe-arrow {
        flex: 0 0 32px;
        transform: rotate(90deg);
    }
    .uv-h-int-grid { grid-template-columns: 1fr; gap: 32px; }
    .uv-h-terminal code { font-size: 12px; white-space: pre-wrap; }
    .uv-h-faq-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .uv-h-caps { grid-template-columns: 1fr; }
    .uv-h-cmp-card { padding: 32px 28px; }
    .uv-h-cmp-header,
    .uv-h-cmp-row { grid-template-columns: 140px 1fr 1fr; }
    .uv-h-cmp-row .uv-h-cmp-label { font-size: 10px; }
    .uv-h-cmp-cell--good { font-size: 13px; }
    .uv-h-metrics { margin: 0 40px; }
    .uv-h-cta { padding: 100px 40px 80px; }
    .uv-h-cta-glow { width: 500px; height: 400px; }
}

@media (max-width: 600px) {
    .uv-h-hero-text { padding: 32px 24px; }
    .uv-h-stream-body { font-size: 9.5px; }
    .uv-placeholder { min-height: 200px; }
    .uv-h-pipe-connector { flex: 0 0 24px; }
    .uv-h-pipe-chevron { transform: rotate(45deg); }
    .uv-h-terminal code { font-size: 11px; }
    .uv-h-metrics {
        margin: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        padding: 28px 24px;
    }
    .uv-h-metrics .uv-metric { text-align: center; }
    .uv-h-metrics .uv-metric-sep { display: none; }
    .uv-h-cta { padding: 80px 24px 64px; }
    .uv-h-cta-glow { width: 350px; height: 300px; }

    /* Comparison table — stacked + centered */
    .uv-h-compare { text-align: center; }
    .uv-h-cmp-card { padding: 24px 20px; }
    .uv-h-cmp-card .uv-subtitle { margin-left: auto; margin-right: auto; }
    .uv-h-cmp-header { display: none; }
    .uv-h-cmp-row {
        grid-template-columns: 80px 1fr 1fr;
        gap: 0 12px;
        padding: 14px 0;
    }
    .uv-h-cmp-row .uv-h-cmp-label {
        padding: 0;
        font-size: 10px;
    }
    .uv-h-cmp-cell {
        padding: 0;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .uv-h-cmp-cell::before {
        font: 500 9px/1 var(--mono);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        display: block;
    }
    .uv-h-cmp-cell--good::before { content: 'UV Harness'; color: rgba(78,205,196,0.5); }
    .uv-h-cmp-cell--bad::before { content: 'In-House'; color: rgba(255,255,255,0.25); }
    .uv-h-cmp-cell--good { font-size: 13px; }

    /* Hero canvas — hide on mobile */
    .uv-h-hero-visual { display: none; }

    /* Capability cards — tighten icon */
    .uv-h-cap { padding-left: 20px; }
    .uv-h-cap-icon { left: 20px; width: 36px; height: 36px; }
    .uv-h-cap-head { padding-left: 48px; }
    .uv-h-cap-short { padding-left: 48px; }
    .uv-h-cap.is-open .uv-h-cap-detail { padding-left: 48px; }

    /* Code block — wrap on mobile, scroll as fallback */
    .uv-h-terminal code { white-space: pre-wrap; word-break: break-all; }
    .uv-h-terminal pre { overflow-x: auto; }

    /* CTA button — reduce padding */
    .uv-h-cta-btn { padding: 20px 36px; }
}
