/* =============================================
   SIGNSENSE — SIGNAL STUDIO AESTHETIC
   Brutalist · Editorial · No Templates
   ============================================= */

/* === TOKENS === */
:root {
    --bg: #0c0c0b;
    --surface: #111110;
    --surface-2: #161615;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);

    --accent: #c8f135;          /* electric lime — the single bold color */
    --accent-dim: rgba(200,241,53,0.12);
    --accent-dim2: rgba(200,241,53,0.06);

    --text-1: #f2f0eb;          /* warm off-white */
    --text-2: #8a8880;          /* muted stone */
    --text-3: #4a4845;          /* very muted */

    --mono: 'Space Mono', monospace;
    --sans: 'Space Grotesk', sans-serif;
    --display: 'Syne', sans-serif;

    --nav-h: 64px;
    --ticker-h: 32px;
    --content-offset: calc(var(--nav-h) + var(--ticker-h));
}

[data-theme="light"] {
    --bg: #f5f3ee;
    --surface: #ffffff;
    --surface-2: #edecea;
    --border: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.16);
    --text-1: #111110;
    --text-2: #6b6a68;
    --text-3: #a8a7a5;
    --accent-dim: rgba(80,120,0,0.08);
    --accent-dim2: rgba(80,120,0,0.04);
}

[data-theme="light"] .noise { opacity: 0.025; }
[data-theme="light"] .hero-score-block { background: var(--surface); }
[data-theme="light"] .outcome-card { background: var(--surface); }
[data-theme="light"] .demo-info-col .info-block { background: var(--surface); }

/* === RESET === */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text-1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* replaced by custom cursor */
    transition: background 0.4s, color 0.4s;
}

/* === CUSTOM CURSOR === */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%,-50%);
    transition: transform 0.05s linear, width 0.2s, height 0.2s;
    will-change: transform;
    opacity: 0;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: width 0.22s ease, height 0.22s ease, opacity 0.2s, border-radius 0.22s;
    will-change: transform;
    mix-blend-mode: difference;
}

.cursor-ring.visible {
    opacity: 0.9;
}

.cursor-ring.hover {
    width: 52px; height: 52px;
    opacity: 1 !important;
}

/* === NOISE TEXTURE === */
.noise {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9990;
    will-change: auto;
}

/* === TOP NAV === */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.top-nav.scrolled {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    font-size: 20px;
    animation: logo-wave 3s ease-in-out infinite;
    display: inline-block;
    transform-origin: bottom right;
}

@keyframes logo-wave {
    0%,100% { transform: rotate(0deg); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(6deg); }
}

.logo-name {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-1);
}

/* Nav pills */
.nav-pills {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 4px;
}

.pill {
    background: transparent;
    border: none;
    color: var(--text-2);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--sans);
    cursor: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.pill:hover {
    color: var(--text-1);
    background: var(--surface-2);
}

.pill.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.live-dot {
    width: 6px; height: 6px;
    background: #00e676;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Nav end */
.nav-end {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    font-size: 16px;
    cursor: none;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-1);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

/* === TICKER === */
.ticker-wrap {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: var(--ticker-h);
    z-index: 99;
    background: var(--accent);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker span {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #000;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* === MAIN CONTENT === */
.main {
    margin-top: var(--content-offset);
    padding: 0 40px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* === PAGES === */
.page {
    display: none;
    padding-top: 60px;
    padding-bottom: 120px;
    animation: page-reveal 0.45s cubic-bezier(0.16,1,0.3,1);
}

.page.active { display: block; }

@keyframes page-reveal {
    from { opacity:0; transform: translateY(24px); }
    to   { opacity:1; transform: translateY(0); }
}

/* === SECTION RULE === */
.section-rule {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 80px 0 48px;
    overflow: hidden;
}

.rule-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-3);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.rule-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===================== HOME PAGE ===================== */

/* === HERO === */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - var(--content-offset) - 60px);
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.kicker-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.kicker-line {
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--border-strong);
}

.kicker-stat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-3);
}

.hero-h1 {
    font-family: var(--display);
    font-size: clamp(52px, 6.5vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    color: var(--text-1);
    margin-bottom: 28px;
}

.accent-word {
    color: var(--accent);
    font-style: italic;
}

.hero-p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sans);
    cursor: none;
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.btn-primary:hover {
    background: #d8ff3a;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-strong);
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: none;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--text-2);
}

/* Hero right: score block */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-score-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

.hero-score-block::before {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(200,241,53,0.08), transparent 70%);
    pointer-events: none;
}

.score-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.score-num {
    font-family: var(--display);
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -6px;
    color: var(--accent);
    margin-bottom: 0;
}

.score-pct {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 20px;
}

.score-bar-wrap {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
}

.score-sub {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* Meta row */
.hero-meta-row {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.meta-item {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--border);
}

.meta-item:last-child { border-right: none; }

.meta-num {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-1);
}

.meta-label {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-sep { display: none; }

/* === PROBLEM SECTION === */
.problem-section {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: 80px;
    align-items: start;
}

.big-number {
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 20px;
}

.num-val {
    font-family: var(--display);
    font-size: clamp(80px, 10vw, 140px);
    font-weight: 900;
    letter-spacing: -5px;
    color: var(--text-1);
    line-height: 1;
}

.num-unit {
    font-family: var(--display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: var(--accent);
    margin-left: 4px;
    line-height: 1;
}

.big-number-label {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.section-h2 {
    font-family: var(--display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-1);
    margin-bottom: 20px;
    line-height: 1.15;
}

.problem-text-col p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.problem-text-col p strong { color: var(--text-1); }

.proof-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.proof-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-2);
    background: var(--surface);
    transition: border-color 0.2s;
}

.proof-chip:hover {
    border-color: var(--border-strong);
}

.chip-icon {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
    font-weight: 700;
}

/* === HOW IT WORKS === */
.how-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.how-step {
    flex: 1;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--surface);
    transition: all 0.2s;
    animation: reveal-step 0.4s ease calc(var(--delay) + 0.1s) both;
}

.how-step:first-child { border-radius: 4px 0 0 4px; }
.how-step:last-child  { border-right: 1px solid var(--border); border-radius: 0 4px 4px 0; }

.how-step:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    z-index: 1;
}

@keyframes reveal-step {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-num {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.step-body h3 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-1);
}

.step-body p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.step-connector {
    color: var(--text-3);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0 -1px;
    position: relative;
    z-index: 2;
}

/* Pipeline image */
.pipeline-block { margin-bottom: 60px; }

.full-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: block;
    transition: border-color 0.2s;
}

.full-img:hover { border-color: var(--border-strong); }

/* ===================== DEMO PAGE ===================== */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.demo-header {
    margin-bottom: 20px;
}

.demo-h2 {
    font-family: var(--display);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text-1);
    margin-bottom: 6px;
}

.demo-header p {
    font-size: 14px;
    color: var(--text-2);
    font-family: var(--mono);
    letter-spacing: 1px;
}

/* Camera stage */
.cam-stage {
    position: relative;
    aspect-ratio: 16/9;
    background: #050505;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    overflow: hidden;
}

/* Corner markers */
.corner {
    position: absolute;
    width: 16px; height: 16px;
    border-color: var(--accent);
    border-style: solid;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
}
.corner.tl { top:8px; left:8px; border-width: 2px 0 0 2px; }
.corner.tr { top:8px; right:8px; border-width: 2px 2px 0 0; }
.corner.bl { bottom:8px; left:8px; border-width: 0 0 2px 2px; }
.corner.br { bottom:8px; right:8px; border-width: 0 2px 2px 0; }

.output_canvas {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Idle screen */
.cam-idle {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px;
    transition: opacity 0.3s;
}

.cam-idle.hidden { opacity: 0; pointer-events: none; }

.idle-hand {
    font-size: 56px;
    animation: float-hand 4s ease-in-out infinite;
    filter: grayscale(0.3);
}

@keyframes float-hand {
    0%,100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.idle-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-3);
    text-transform: uppercase;
}

/* Prediction overlay */
.cam-prediction {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: none;
}

.pred-sign {
    font-family: var(--display);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    line-height: 1;
    animation: sign-pop 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes sign-pop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.pred-bar-wrap {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    margin: 10px 0 6px;
    overflow: hidden;
}

.pred-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.35s ease;
    border-radius: 1px;
}

.pred-conf {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

/* Camera status */
.cam-status {
    position: absolute;
    top: 12px; right: 12px;
    display: flex; align-items: center; gap: 7px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-led {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.status-led.on {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: led-blink 2s ease-in-out infinite;
}

@keyframes led-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* Frame collector */
.frame-collector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-top: 4px;
}

.fc-label {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    flex-shrink: 0;
}

.fc-bar {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.fc-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.08s linear;
    border-radius: 1px;
}

.fc-pct {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

/* Toggle button */
.cam-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    cursor: none;
    transition: all 0.2s;
    margin-top: 16px;
    letter-spacing: -0.2px;
}

.cam-toggle-btn:hover {
    background: #d8ff3a;
    transform: translateY(-1px);
}

.cam-toggle-btn.active {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-strong);
}

.cam-toggle-btn.active:hover {
    background: var(--surface);
}

.ctb-icon { font-size: 16px; }

/* Demo info column */
.demo-info-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
}

.ib-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ib-title {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    text-transform: uppercase;
}

.log-count {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

/* Log list */
.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
}

.log-empty {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
    padding: 16px 0;
    font-family: var(--mono);
}

.log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 2px;
    animation: log-in 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes log-in {
    from { opacity:0; transform: translateX(8px); }
    to   { opacity:1; transform: translateX(0); }
}

.log-word {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-1);
}

.log-conf {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

/* Quick start steps */
.qs-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qs-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
    transition: color 0.2s;
}

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

.qs-step.done { color: var(--text-3); }

.qs-num {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    flex-shrink: 0;
    width: 20px;
}

.qs-text { flex: 1; }

.qs-check {
    font-size: 14px;
    color: var(--text-3);
    transition: all 0.3s;
    flex-shrink: 0;
}

.qs-check.done {
    color: var(--accent);
    font-size: 12px;
}

/* Tip block */
.tip-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--accent-dim2);
    border-color: rgba(200,241,53,0.15);
}

.tip-accent {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

.tip-block p {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ===================== IMPACT PAGE ===================== */
.impact-lead {
    margin-bottom: 56px;
}

.impact-h2 {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.95;
    color: var(--text-1);
    margin-bottom: 16px;
}

.impact-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 540px;
    line-height: 1.65;
}

/* Outcomes grid */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 80px;
}

.outcome-card {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.2s;
    position: relative;
}

.outcome-card:last-child { border-right: none; }

.outcome-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--c, transparent);
    transition: opacity 0.3s;
    opacity: 0.6;
}

.outcome-card:hover { background: var(--surface-2); }
.outcome-card:hover::before { opacity: 1; }

.oc-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.oc-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    text-transform: uppercase;
}

.oc-val {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--c, var(--text-1));
}

.outcome-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* Use cases */
.use-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 80px;
}

.use-case-item {
    display: flex;
    gap: 20px;
    padding: 28px 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background 0.2s;
    align-items: flex-start;
}

.use-case-item:nth-child(2n) { border-right: none; }
.use-case-item:nth-child(3),
.use-case-item:nth-child(4) { border-bottom: none; }
.use-case-item:hover { background: var(--surface-2); }

.uc-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-top: 2px;
}

.uc-body h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: var(--text-1);
}

.uc-body p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ===================== RESULTS PAGE ===================== */
.results-lead { margin-bottom: 48px; }

/* Model table */
.model-table {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 60px;
    background: var(--surface);
}

.mt-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    padding: 12px 24px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-3);
    text-transform: uppercase;
}

.mt-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-2);
    align-items: center;
    transition: background 0.15s;
}

.mt-row:last-child { border-bottom: none; }
.mt-row:hover { background: var(--surface-2); }

.mt-row.champion {
    background: var(--accent-dim);
    color: var(--text-1);
}

.champ-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    margin-right: 10px;
    vertical-align: middle;
}

.base-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    background: var(--surface-2);
    color: var(--text-3);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.acc {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.acc-5 {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
}

.tag-live {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tag-eval {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.chart-block {}

.chart-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===================== TOUR ===================== */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.tour-overlay.active {
    display: flex;
    animation: overlay-fade 0.3s ease;
}

@keyframes overlay-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
}

.tour-modal {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    width: 460px;
    max-width: 92vw;
    padding: 36px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    animation: modal-spring 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modal-spring {
    from { opacity:0; transform: scale(0.88) translateY(24px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}

.tour-step-icon {
    font-size: 48px;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    animation: step-float 3s ease-in-out infinite;
}

@keyframes step-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.tour-step-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-transform: uppercase;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.tour-step-h {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
    color: var(--text-1);
    margin-bottom: 12px;
}

.tour-step-p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 16px;
}

.tour-highlight {
    background: var(--accent-dim);
    border: 1px solid rgba(200,241,53,0.2);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--accent);
    text-align: center;
    font-weight: 600;
    margin-top: 4px;
}

.vol-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    height: 40px;
}

.vol-bars i {
    display: block;
    width: 6px;
    border-radius: 2px;
    background: var(--accent);
    animation: vol-dance 0.8s ease-in-out infinite alternate;
    font-style: normal;
}

.vol-bars i:nth-child(1) { height: 12px; animation-delay: 0s; }
.vol-bars i:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.vol-bars i:nth-child(3) { height: 36px; animation-delay: 0.2s; }
.vol-bars i:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.vol-bars i:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes vol-dance {
    from { opacity: 0.3; transform: scaleY(0.5); }
    to   { opacity: 1;   transform: scaleY(1); }
}

.tour-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tour-dots {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    cursor: none;
    transition: all 0.2s;
}

.t-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
}

.tour-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

#tour-skip {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 13px;
    cursor: none;
    font-family: var(--sans);
    padding: 8px 12px;
    border-radius: 2px;
    transition: color 0.2s;
}

#tour-skip:hover { color: var(--text-2); }

.tour-cta {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--sans);
    cursor: none;
    transition: all 0.2s;
    letter-spacing: -0.2px;
}

.tour-cta:hover {
    background: #d8ff3a;
    transform: translateY(-1px);
}

/* ===================== VOLUME BAR ===================== */
.vol-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--accent);
    color: #000;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.vol-bar.visible {
    transform: translateY(0);
}

.vol-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    flex-shrink: 0;
}

.vol-eq i {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: #000;
    font-style: normal;
    animation: eq-move 0.6s ease-in-out infinite alternate;
}

.vol-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.vol-eq i:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.vol-eq i:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.vol-eq i:nth-child(4) { height: 10px; animation-delay: 0.3s; }
.vol-eq i:nth-child(5) { height: 6px;  animation-delay: 0.4s; }

@keyframes eq-move {
    from { transform: scaleY(0.4); }
    to   { transform: scaleY(1); }
}

.vol-text {
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.2px;
}

#vol-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: #000;
    font-size: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    font-family: var(--sans);
    flex-shrink: 0;
}

#vol-close:hover { background: rgba(0,0,0,0.25); }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 60px; }
    .problem-section { grid-template-columns: 1fr; }
    .how-section { grid-template-columns: 1fr; }
    .outcomes-grid { grid-template-columns: 1fr 1fr; }
    .charts-row { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .main { padding: 0 20px; }
    .top-nav { padding: 0 20px; }
    .vol-bar { padding: 10px 20px; }
    .demo-layout { grid-template-columns: 1fr; }
    .use-cases { grid-template-columns: 1fr; }
    .outcomes-grid { grid-template-columns: 1fr; }
    .how-steps { flex-direction: column; }
    .how-step { border-right: 1px solid var(--border); border-bottom: none; }
    .how-step:first-child { border-radius: 4px 4px 0 0; }
    .how-step:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 4px 4px; }
    .step-connector { transform: rotate(90deg); }
    .nav-pills { display: none; }
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}
