  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --accent: #F5A623;
    --accent2: #1A1A1A;
    --text: #0A0A0A;
    --text2: #6B7280;
    --border: #E5E7EB;
    --teal: #00C9A7;
    --muted-bg: #F9FAFB;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

  /* ── NAV ── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(249,248,246,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
    transition: box-shadow .3s;
  }
  nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
  .nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 18px; font-weight: 800;
    color: var(--text); text-decoration: none;
  }
  .nav-logo .play-icon {
    width: 28px; height: 28px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .nav-logo .play-icon svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
  .nav-logo span b { font-weight: 800; }
  .nav-right { display: flex; align-items: center; gap: 24px; }
  .nav-right a.login { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
  .nav-right a.login:hover { color: var(--text); }
  .btn-primary {
    background: var(--accent); color: #fff; border: none;
    padding: 9px 20px; border-radius: 999px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
    transition: background .2s, transform .15s, box-shadow .2s;
  }
  .btn-primary:hover { background: #e0961a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,166,35,.35); }
  .btn-secondary {
    background: transparent; color: var(--text); border: 1.5px solid var(--border);
    padding: 9px 20px; border-radius: 999px;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
    transition: border-color .2s, transform .15s;
  }
  .btn-secondary:hover { border-color: var(--text2); transform: translateY(-1px); }

  @media (max-width: 420px) {
    nav { padding: 0 14px; }
    .nav-logo { font-size: 16px; gap: 6px; }
    .nav-logo .play-icon { width: 24px; height: 24px; }
    .nav-right { gap: 10px; }
    .nav-right a.login { display: none; }
    .btn-primary { padding: 8px 14px; font-size: 13px; }
  }

  /* ── HERO ── */
  .hero {
    min-height: calc(100vh - 60px);
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px;
    padding: 80px 80px 60px;
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 70% 40%, rgba(245,166,35,.07) 0%, transparent 70%),
      radial-gradient(ellipse 40% 60% at 20% 80%, rgba(0,201,167,.05) 0%, transparent 60%);
    pointer-events: none;
  }
  /* grain */
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    pointer-events: none; opacity: .5;
  }
  .hero-text { position: relative; z-index: 1; }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 12px;
    font-size: 12px; font-weight: 500; color: var(--text2);
    margin-bottom: 28px;
  }
  .hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
  h1 {
    font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
    font-weight: 800; line-height: 1.08; letter-spacing: -1.5px;
    color: var(--text); margin-bottom: 24px;
  }
  h1 em { font-style: normal; color: var(--accent); }
  .hero-sub {
    font-size: 17px; color: var(--text2); max-width: 460px; line-height: 1.7;
    margin-bottom: 40px;
  }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-stats {
    display: flex; gap: 32px; margin-top: 52px;
    padding-top: 28px; border-top: 1px solid var(--border);
  }
  .hero-stat-num {
    font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text);
  }
  .hero-stat-label { font-size: 12px; color: var(--text2); margin-top: 2px; }

  /* HERO VISUAL */
  .hero-visual { position: relative; z-index: 1; }
  .app-preview-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    border: 1px solid var(--border);
    background: var(--surface);
    aspect-ratio: 4/3;
  }
  .app-preview-inner {
    display: flex; height: 100%;
  }
  /* mini app preview */
  .mini-left {
    background: #111; width: 38%; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  }
  .mini-left-hdr { display: flex; align-items: center; gap: 6px; }
  .mini-logo-sm { display: flex; align-items: center; gap: 5px; }
  .mini-logo-sm .pi { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .mini-logo-sm .pi svg { width: 8px; height: 8px; fill: #fff; margin-left: 1px; }
  .mini-logo-sm span { font-family: var(--font-display); font-size: 11px; font-weight: 800; color: #fff; }
  .mini-sep { flex: 1; }
  .mini-online { display: flex; align-items: center; gap: 4px; font-size: 9px; color: #4ade80; font-weight: 600; }
  .mini-online::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
  .mini-agent-row { display: flex; align-items: center; gap: 8px; padding: 8px; background: rgba(255,255,255,.05); border-radius: 8px; }
  .mini-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
  .mini-agent-info { }
  .mini-agent-name { font-size: 10px; font-weight: 700; color: #fff; }
  .mini-agent-sub { font-size: 8px; color: #888; }
  .mini-bubble-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
  .mini-bubble { background: rgba(255,255,255,.08); border-radius: 6px; padding: 8px 9px; }
  .mini-bubble-label { font-size: 8px; font-weight: 700; color: var(--accent); margin-bottom: 4px; font-family: var(--font-mono); }
  .mini-bubble-text { font-size: 9px; color: #ccc; line-height: 1.5; }
  .mini-input-row { display: flex; gap: 5px; align-items: center; background: rgba(255,255,255,.07); border-radius: 6px; padding: 6px 8px; }
  .mini-input-text { flex: 1; font-size: 9px; color: #666; font-family: var(--font-body); }
  .mini-send { width: 18px; height: 18px; background: var(--accent); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
  .mini-send svg { width: 8px; height: 8px; fill: #fff; }
  .mini-right { background: #fff; flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .mini-right-hdr { font-size: 10px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
  .mini-right-hdr .diamond { color: var(--accent); }
  .mini-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .mini-kpi { background: #f9f8f6; border-radius: 5px; padding: 6px 7px; border: 1px solid #e5e3dc; }
  .mini-kpi-label { font-size: 7px; color: #888; text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-mono); }
  .mini-kpi-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
  .mini-chart-wrap { flex: 1; }
  .mini-chart-label { font-size: 7px; color: #888; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
  .mini-bars { display: flex; flex-direction: column; gap: 4px; }
  .mini-bar-row { display: flex; align-items: center; gap: 5px; }
  .mini-bar-title { font-size: 7.5px; color: #555; width: 80px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-bar-track { flex: 1; height: 8px; background: #f0ede6; border-radius: 3px; overflow: hidden; }
  .mini-bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }
  .mini-bar-val { font-family: var(--font-mono); font-size: 7.5px; color: var(--text); font-weight: 600; width: 28px; text-align: right; flex-shrink: 0; }

  /* floating badges */
  .badge {
    position: absolute;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    white-space: nowrap;
    animation: float 4s ease-in-out infinite;
  }
  .badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; }
  .badge-1 { top: -16px; right: 20%; animation-delay: 0s; }
  .badge-2 { bottom: 20%; right: -18px; animation-delay: 1.3s; }
  .badge-3 { bottom: -14px; left: 15%; animation-delay: .65s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* ── SECTION COMMON ── */
  section { padding: 100px 80px; }
  .section-eyebrow {
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    color: var(--accent); text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 16px;
  }
  h2 {
    font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 800; line-height: 1.1; letter-spacing: -1px;
    color: var(--text); margin-bottom: 16px;
  }
  .section-sub { font-size: 17px; color: var(--text2); max-width: 520px; line-height: 1.7; margin-bottom: 60px; }

  /* ── FEATURES ── */
  .features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; transition: box-shadow .2s, transform .2s;
  }
  .feature-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.07); transform: translateY(-2px); }
  .feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; background: var(--muted-bg);
  }
  .feature-icon svg { width: 22px; height: 22px; }
  .feature-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.5px; }
  .feature-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }

  /* ── DEMO SECTION ── */
  .demo-section { background: var(--bg); }
  .demo-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0,0,0,.10), 0 4px 20px rgba(0,0,0,.05);
    display: flex;
    min-height: 500px;
  }

  /* DEMO LEFT – CHAT */
  .demo-left {
    width: 360px; flex-shrink: 0;
    background: #111;
    display: flex; flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .demo-left-hdr {
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; gap: 10px;
  }
  .flux-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .flux-avatar svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
  .flux-hdr-info { flex: 1; }
  .flux-name { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
  .online-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(74,222,128,.15); color: #4ade80; font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
  .online-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
  .flux-sub { font-size: 11px; color: #666; margin-top: 2px; }
  .chat-messages { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
  .chat-msg { display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
  .chat-msg.visible { opacity: 1; transform: none; }
  .chat-msg-label { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
  .chat-bubble {
    background: rgba(255,255,255,.07); border-radius: 10px; border-radius: 4px 10px 10px 10px;
    padding: 12px 14px; font-size: 13px; color: #ddd; line-height: 1.6;
  }
  .chat-bubble.user {
    background: rgba(245,166,35,.12); border-radius: 10px 4px 10px 10px;
    color: #f5a623; align-self: flex-end;
  }
  .typing-dots { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
  .typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: #555;
    animation: pulse 1.2s ease-in-out infinite;
  }
  .typing-dots span:nth-child(2) { animation-delay: .2s; }
  .typing-dots span:nth-child(3) { animation-delay: .4s; }
  @keyframes pulse { 0%,80%,100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
  .typing-wrap { background: rgba(255,255,255,.07); border-radius: 4px 10px 10px 10px; display: inline-block; }

  .quick-pills { padding: 10px 20px; display: flex; gap: 6px; flex-wrap: wrap; }
  .quick-pill {
    background: rgba(255,255,255,.08); color: #aaa; font-size: 11px; font-weight: 500;
    padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.1);
    white-space: nowrap; transition: background .2s;
  }
  .quick-pill:hover { background: rgba(255,255,255,.14); color: #fff; }
  .quick-pill.accent { color: var(--accent); border-color: rgba(245,166,35,.3); }
  .demo-input-row {
    padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; gap: 8px; align-items: center;
  }
  .demo-input {
    flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: 10px 12px;
    font-size: 13px; color: #888; font-family: var(--font-body);
    outline: none; cursor: default;
  }
  .demo-send { width: 34px; height: 34px; background: var(--accent); border-radius: 7px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
  .demo-send:hover { background: #e0961a; }
  .demo-send svg { width: 14px; height: 14px; fill: #fff; }

  /* DEMO RIGHT – DASHBOARD */
  .demo-right {
    flex: 1; background: #fff; display: flex; flex-direction: column; overflow: hidden;
  }
  .dash-hdr {
    padding: 18px 24px; border-bottom: 1px solid #f0ede6;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .dash-hdr-title { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
  .diamond-icon { color: var(--accent); font-size: 14px; }
  .dash-hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .dash-badge { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text2); }
  .dash-badge .star { color: var(--accent); }
  .live-badge { background: #dcfce7; color: #16a34a; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: var(--font-mono); }

  .dash-channel-row {
    padding: 14px 24px; border-bottom: 1px solid #f0ede6;
    display: flex; align-items: center; gap: 12px;
  }
  .ch-avatar { width: 36px; height: 36px; border-radius: 50%; background: #6366f1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
  .ch-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
  .ch-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
  .ch-sub { font-size: 11px; color: var(--text2); }

  .dash-kpi-row {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
    border-bottom: 1px solid #f0ede6;
  }
  .dash-kpi {
    padding: 14px 18px; border-right: 1px solid #f0ede6; border-bottom: 1px solid #f0ede6;
  }
  .dash-kpi:nth-child(3n) { border-right: none; }
  .dash-kpi:nth-last-child(-n+3) { border-bottom: none; }
  .dash-kpi-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); margin-bottom: 4px; }
  .dash-kpi-val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--text); }
  .dash-kpi-sub { font-size: 10px; color: var(--text2); margin-top: 2px; }

  /* Dashboard panels that swap */
  .dash-content { flex: 1; position: relative; overflow: hidden; }
  .dash-panel {
    position: absolute; inset: 0;
    padding: 20px 24px;
    transition: opacity .5s, transform .5s;
  }
  .dash-panel.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
  .dash-panel.visible { opacity: 1; transform: none; }
  .dash-panel-title { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text2); margin-bottom: 16px; }

  /* line chart (initial panel) */
  .line-chart-wrap { height: 160px; position: relative; }
  .line-chart-wrap svg { width: 100%; height: 100%; }

  /* bar chart (RPM panel) */
  .bar-rows { display: flex; flex-direction: column; gap: 10px; }
  .bar-row { display: flex; align-items: center; gap: 10px; }
  .bar-title { font-size: 12px; color: var(--text2); width: 160px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-val { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text); width: 44px; flex-shrink: 0; }
  .bar-track { flex: 1; height: 12px; background: #f0ede6; border-radius: 4px; overflow: hidden; }
  .bar-fill {
    height: 100%; background: var(--teal); border-radius: 4px;
    width: 0; transition: width 1s cubic-bezier(.22,1,.36,1);
  }
  .mini-stats-row { display: flex; gap: 10px; margin-top: 18px; }
  .mini-stat-card {
    flex: 1; background: var(--muted-bg); border-radius: 10px; padding: 12px 14px;
    border: 1px solid var(--border);
  }
  .mini-stat-card-label { font-size: 10px; color: var(--text2); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .5px; }
  .mini-stat-card-val { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text); margin-top: 4px; }

  /* demo hint */
  .demo-hint {
    text-align: center; margin-top: 24px;
    font-family: var(--font-mono); font-size: 12px; color: var(--text2);
  }

  /* Flux hidden toggle (top-right of app window) */
  .app-flux {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #8a8a92;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    padding: 4px 9px; border-radius: 999px; cursor: pointer;
    transition: color .15s, background .15s;
  }
  .app-flux:hover { color: #d4d4d8; background: rgba(255,255,255,.07); }
  .app-flux-ic { color: var(--accent); font-size: 11px; line-height: 1; }
  .app-flux-sw {
    width: 20px; height: 11px; border-radius: 999px;
    background: rgba(255,255,255,.14); position: relative; flex-shrink: 0;
  }
  .app-flux-sw::after {
    content: ''; position: absolute; top: 1.5px; left: 1.5px;
    width: 8px; height: 8px; border-radius: 50%; background: #8a8a92;
  }

  /* ── FINAL CTA ── */
  .final-cta {
    background: #111; padding: 120px 80px;
    text-align: center; position: relative; overflow: hidden;
  }
  .final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245,166,35,.08) 0%, transparent 70%);
    pointer-events: none;
  }
  .final-cta h2 { color: #fff; max-width: 600px; margin: 0 auto 16px; }
  .final-cta .section-eyebrow { color: var(--accent); }
  .final-cta p { color: #888; font-size: 17px; margin-bottom: 40px; }

  /* ── FOOTER ── */
  footer {
    background: #111; border-top: 1px solid rgba(255,255,255,.07);
    padding: 24px 80px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  }
  .footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .footer-logo .play-icon { width: 22px; height: 22px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .footer-logo .play-icon svg { width: 9px; height: 9px; fill: #fff; margin-left: 1px; }
  .footer-logo span { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #fff; }
  .footer-copy { font-size: 12px; color: #555; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { font-size: 12px; color: #555; text-decoration: none; transition: color .2s; }
  .footer-links a:hover { color: #aaa; }

  /* ── RESPONSIVE ── */
  @media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; padding: 60px 40px; gap: 40px; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    section { padding: 80px 40px; }
    footer { padding: 24px 40px; }
    .final-cta { padding: 80px 40px; }
    nav { padding: 0 24px; }
  }
  @media (max-width: 768px) {
    .hero { padding: 40px 20px; }
    h1 { font-size: 38px; letter-spacing: -1.5px; }
    section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    nav { padding: 0 16px; }
    footer { padding: 20px; flex-direction: column; align-items: flex-start; }
    .final-cta { padding: 60px 20px; }
  }

  /* ── TIME TOGGLE ── */
  .dash-time-row { padding: 10px 20px; border-bottom: 1px solid #f0ede6; display: flex; gap: 6px; flex-shrink: 0; }
  .time-btn { font-family: var(--font-body); font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: none; color: var(--text2); cursor: pointer; transition: all .15s; }
  .time-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

  /* ── STAT CARDS ── */
  .dash-stat-cards { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid #f0ede6; flex-shrink: 0; }
  .dash-stat-card { padding: 14px 16px; border-right: 1px solid #f0ede6; }
  .dash-stat-card:last-child { border-right: none; }
  .stat-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-val { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); }
  .stat-label { font-size: 10px; color: var(--text2); margin-top: 2px; margin-bottom: 8px; }
  .stat-bar-track { height: 3px; background: #f0ede6; border-radius: 2px; margin-bottom: 5px; }
  .stat-bar-fill { height: 100%; border-radius: 2px; }
  .stat-sub { font-size: 9px; font-family: var(--font-mono); }

  /* ── TREND CHARTS ── */
  .dash-charts-row { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
  .dash-chart-box { padding: 14px 16px; border-right: 1px solid #f0ede6; overflow: hidden; display: flex; flex-direction: column; }
  .dash-chart-box:last-child { border-right: none; }
  .chart-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; flex-shrink: 0; }
  .chart-title { font-size: 11px; font-weight: 700; color: var(--text); }
  .chart-period { font-size: 9px; color: var(--text2); margin-top: 2px; }
  .chart-legend { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
  .legend-item { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--text2); }
  .legend-line { display: inline-block; width: 14px; height: 2px; border-radius: 1px; flex-shrink: 0; }
  .legend-dashed { width: 14px; height: 0; border-top: 2px dashed #ccc; flex-shrink: 0; }
  .trend-svg { width: 100%; flex: 1; display: block; min-height: 0; }
  .chart-x-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 7px; color: #bbb; margin-top: 4px; flex-shrink: 0; }

  /* ── VIDEO TABLE ── */
  .vid-table-hdr { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
  .vid-table-sub { font-size: 10px; color: var(--text2); margin-bottom: 10px; }
  .vid-table-scroll { overflow-y: auto; flex: 1; }
  .vid-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .vid-table th { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); padding: 5px 8px; border-bottom: 1px solid #f0ede6; text-align: left; white-space: nowrap; position: sticky; top: 0; background: #fff; }
  .vid-table td { padding: 7px 8px; border-bottom: 1px solid #f8f7f5; white-space: nowrap; }
  .vid-table tr:last-child td { border-bottom: none; }
  .vid-title-cell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--text); }
  .td-muted { color: var(--text2); font-size: 10px; }
  .td-green { color: var(--teal); font-family: var(--font-mono); font-weight: 600; }
  .td-mono { font-family: var(--font-mono); }
  .td-rpm { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
  .td-row-anim { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
  .td-row-anim.vis { opacity: 1; transform: none; }

  /* ══ DARK APP WINDOW (3-tab demo) ══ */
  .demo-right.app-window { background: #0d0d0f; color: #f4f4f5; }
  .app-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0; flex-wrap: wrap;
  }
  .app-brand { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 13px; font-weight: 800; color: #fff; }
  .app-logo { width: 18px; height: 18px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .app-logo svg { width: 8px; height: 8px; fill: #fff; margin-left: 1px; }
  .app-tabs { display: flex; gap: 4px; margin-left: 6px; }
  .app-tab {
    font-family: var(--font-body); font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 999px; border: none; background: none;
    color: #8a8a92; cursor: pointer; transition: background .15s, color .15s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  }
  .app-tab:hover { color: #d4d4d8; background: rgba(255,255,255,.05); }
  .app-tab.active { background: rgba(245,166,35,.14); color: var(--accent); }
  .app-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .app-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #d4d4d8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 3px 9px; border-radius: 999px; }
  .app-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

  .app-body { flex: 1; }
  .app-panel { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
  .app-panel.hidden { display: none; }
  .app-panel.visible { display: flex; animation: panelfade .4s ease; }
  @keyframes panelfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .app-phdr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .app-ptitle { font-size: 14px; font-weight: 700; color: #fff; }
  .app-pill { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: #a1a1aa; background: rgba(255,255,255,.06); padding: 2px 8px; border-radius: 999px; }
  .app-pmeta { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #71717a; }
  .app-psub { font-size: 10px; color: #71717a; margin-top: -6px; }

  /* Overview */
  .app-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
  .app-stat { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 11px; }
  .app-stat-label { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .6px; color: #71717a; }
  .app-stat-val { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: #fff; margin: 3px 0 6px; }
  .app-stat-delta { font-family: var(--font-mono); font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
  .app-stat-delta.down { color: #f87171; }
  .app-stat-delta.up { color: #4ade80; }
  .app-stat-delta.flat { color: #71717a; }

  .app-trend { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 11px 13px; }
  .app-trend-hdr { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
  .app-trend-title { font-size: 11px; font-weight: 700; color: #fff; }
  .app-trend-note { font-size: 9px; color: #71717a; }
  .app-peak { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--accent); }
  .app-spark { width: 100%; height: 44px; display: block; }
  .app-spark.xl { height: 90px; }
  .app-spark-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; color: #71717a; margin-top: 5px; }

  .app-words-title { font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 2px; }
  .app-words-note { font-size: 9px; color: #71717a; margin-bottom: 8px; }
  .app-word-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
  .app-word-name { width: 74px; flex-shrink: 0; font-size: 11px; font-weight: 600; color: #e4e4e7; }
  .app-word-name small { display: block; font-family: var(--font-mono); font-size: 8px; font-weight: 400; color: #71717a; }
  .app-bar-track { flex: 1; height: 9px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
  .app-bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .9s cubic-bezier(.22,1,.36,1); }
  .app-bar-fill.teal { background: var(--teal); }
  .app-word-val { width: 62px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: #fff; }
  .app-word-val .up { color: #4ade80; font-size: 9px; margin-left: 4px; }

  /* Compare */
  .app-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-group { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); }
  .app-group.b { border-left-color: var(--teal); }
  .app-group-tag { font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .6px; color: var(--accent); }
  .app-group.b .app-group-tag { color: var(--teal); }
  .app-group-name { font-size: 12px; font-weight: 700; color: #fff; margin: 2px 0; }
  .app-group-kw { font-size: 9px; color: #71717a; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-group-stats { display: flex; gap: 14px; }
  .app-group-stat-label { font-family: var(--font-mono); font-size: 7.5px; text-transform: uppercase; letter-spacing: .5px; color: #71717a; }
  .app-group-stat-val { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #fff; }
  .app-metrics { display: flex; flex-direction: column; gap: 9px; }
  .app-metric-row { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 10px; }
  .app-metric-name { font-size: 10px; color: #a1a1aa; }
  .app-metric-name b { display: block; color: #e4e4e7; font-size: 10.5px; font-weight: 700; }
  .app-abbars { display: flex; flex-direction: column; gap: 4px; }
  .app-abbar { display: flex; align-items: center; gap: 7px; }
  .app-abbar-tag { font-family: var(--font-mono); font-size: 8px; color: #71717a; width: 8px; }
  .app-abbar .app-bar-track { height: 7px; }
  .app-abbar-val { font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: #d4d4d8; width: 40px; text-align: right; }
  .app-lead { font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
  .app-lead.a { color: var(--accent); background: rgba(245,166,35,.14); }
  .app-lead.b { color: var(--teal); background: rgba(0,201,167,.14); }
  .app-lead.tie { color: #71717a; background: rgba(255,255,255,.06); }

  /* Predict */
  .app-pred-banner {
    background: linear-gradient(120deg, #1a1305 0%, #17171a 55%); border: 1px solid rgba(245,166,35,.18);
    border-radius: 12px; padding: 14px 16px;
  }
  .app-pred-cap { font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 1px; color: #a1a1aa; text-transform: uppercase; }
  .app-pred-top { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
  .app-pred-big { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
  .app-pred-range { font-size: 10px; color: #a1a1aa; }
  .app-pred-range b { color: #e4e4e7; }
  .app-pred-pills { margin-left: auto; display: flex; gap: 6px; }
  .app-pred-pill { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 5px 9px; text-align: center; }
  .app-pred-pill-label { font-family: var(--font-mono); font-size: 7px; letter-spacing: .5px; color: #71717a; text-transform: uppercase; }
  .app-pred-pill-val { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #fff; margin-top: 1px; }
  .app-pred-track2 { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 10px; font-weight: 600; color: #4ade80; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2); padding: 4px 10px; border-radius: 999px; }
  .app-pred-track2::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
  .app-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-demo-card { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; }
  .app-demo-title { font-size: 10px; font-weight: 700; color: #fff; margin-bottom: 8px; }
  .app-demo-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .app-demo-lab { width: 52px; flex-shrink: 0; font-size: 9px; color: #a1a1aa; }
  .app-demo-row .app-bar-track { height: 7px; }
  .app-demo-val { width: 44px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: #e4e4e7; }

  /* ── HERO app dashboard (full Overview) ── */
  .app-preview-wrap.tall { aspect-ratio: auto; }
  .hero-app .app-body { position: static; overflow: visible; }
  .hero-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
  .app-ov-note { font-size: 9.5px; color: #71717a; line-height: 1.4; }
  .app-card { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 12px 13px; }
  /* stat card "Recent uploads trend" sub-box */
  .app-stat-trend {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px; padding: 5px 8px; margin-top: 8px;
  }
  .app-stat-trend-label { font-size: 7.5px; color: #8a8a92; }
  .app-stat-trend-val { font-family: var(--font-mono); font-size: 9px; font-weight: 700; white-space: nowrap; }
  .app-stat-trend-val.down { color: #f87171; }
  .app-stat-trend-val.up { color: #4ade80; }
  .app-spark.lg { height: 58px; }
  /* bottom row: title words + side cards */
  .hero-ov-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
  .app-words-note2 { font-size: 8.5px; color: #71717a; margin: 2px 0 9px; }
  .hero-app .app-word-name { width: 66px; }
  .app-word-thumb {
    width: 38px; height: 26px; border-radius: 5px; flex-shrink: 0;
    background: linear-gradient(135deg, #8a1a22, #c81e2b);
    display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .app-word-thumb svg { width: 9px; height: 10px; }
  .app-word-val .up {
    color: #4ade80; font-size: 8px; margin-left: 5px;
    background: rgba(74,222,128,.12); padding: 1px 5px; border-radius: 999px;
  }
  .hero-ov-side { display: flex; flex-direction: column; gap: 10px; }
  .app-cta-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #fff; }
  .app-cta-desc { font-size: 9.5px; color: #8a8a92; line-height: 1.5; margin: 6px 0 11px; }
  .app-cta-btn { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 10.5px; font-weight: 600; padding: 8px 13px; border-radius: 8px; }
  .app-cta-btn.primary { background: var(--accent); color: #111; }
  .app-cta-btn.ghost { background: rgba(255,255,255,.05); color: #e4e4e7; border: 1px solid rgba(255,255,255,.1); }

  @media (max-width: 560px) {
    .app-stat-cards { grid-template-columns: repeat(2,1fr); }
    .app-pred-pills { margin-left: 0; width: 100%; }
    .app-pred-big { font-size: 28px; }
    .app-tabs { order: 3; width: 100%; margin-left: 0; }
    .hero-ov-bottom { grid-template-columns: 1fr; }
    .app-cmp-cols, .app-cmp-results-groups { grid-template-columns: 1fr; }
    .app-cmp-setup-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  }

  /* ── COMPARE section: input + results ── */
  #demo .demo-wrap { min-height: 660px; }

  /* setup card (Match by / Compare against) */
  .app-cmp-setup { padding: 0; }
  .app-cmp-setup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; }
  .app-cmp-setup-row + .app-cmp-setup-row { border-top: 1px solid rgba(255,255,255,.06); }
  .app-cmp-lbl { font-family: var(--font-mono); font-size: 8px; letter-spacing: .8px; color: #71717a; }
  .app-cmp-sub { font-size: 11px; color: #e4e4e7; margin-top: 3px; }
  .app-seg { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 2px; gap: 2px; flex-shrink: 0; }
  .app-seg-btn { font-size: 10px; font-weight: 600; color: #8a8a92; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
  .app-seg-btn.on { background: rgba(245,166,35,.16); color: var(--accent); }

  /* group setup columns */
  .app-cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-cmp-group { border-top: 2px solid var(--accent); }
  .app-cmp-group.b { border-top-color: var(--teal); }
  .app-cmp-ghdr { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
  .app-cmp-badge { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; flex-shrink: 0; }
  .app-cmp-badge.a { background: rgba(245,166,35,.16); color: var(--accent); }
  .app-cmp-badge.b { background: rgba(0,201,167,.16); color: var(--teal); }
  .app-cmp-gname { font-size: 12px; font-weight: 700; color: #fff; }
  .app-cmp-gsub { font-size: 9px; color: #71717a; }
  .app-fld { margin-bottom: 9px; }
  .app-fld-lbl { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .6px; color: #71717a; margin-bottom: 4px; }
  .app-input { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 7px; padding: 8px 10px; font-size: 11px; color: #f4f4f5; font-weight: 500; }
  .app-fld-help { font-size: 8.5px; color: #71717a; margin: 1px 0 10px; }
  .app-fld-lbl2 { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .6px; color: #71717a; margin-bottom: 6px; }
  .app-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .app-chip2 { font-size: 9px; color: #a1a1aa; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
  .app-cmp-cta { margin-top: 12px; }

  /* results: group tiles + example matches */
  .app-cmp-results-groups { align-items: start; }
  .app-group-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .app-cmp-avatar {
    width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  }
  .app-cmp-avatar.a { background: linear-gradient(135deg,#4f6bed,#3b4fd6); }
  .app-cmp-avatar.b { background: linear-gradient(135deg,#12b8a0,#0e9c88); }
  .app-match-badge { margin-left: auto; font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
  .app-match-badge.a { color: var(--accent); background: rgba(245,166,35,.14); }
  .app-match-badge.b { color: var(--teal); background: rgba(0,201,167,.14); }
  .app-group-stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 9px 0 11px; }
  .app-gstat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 8px 10px; }
  .app-ex-title { font-size: 10px; font-weight: 700; color: #e4e4e7; margin-bottom: 4px; }
  .app-ex-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
  .app-ex-thumb {
    width: 34px; height: 22px; border-radius: 4px; flex-shrink: 0;
    background: linear-gradient(135deg,#8a1a22,#c81e2b);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .app-ex-thumb svg { width: 8px; height: 9px; }
  .app-ex-info { min-width: 0; }
  .app-ex-name { font-size: 9.5px; font-weight: 600; color: #d4d4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-ex-meta { font-family: var(--font-mono); font-size: 8px; color: #71717a; margin-top: 1px; }

  /* head-to-head metrics */
  .app-h2h { margin-top: 11px; }
  .app-h2h-hdr { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
  .app-h2h-title { font-size: 12px; font-weight: 700; color: #fff; }
  .app-h2h-note { font-size: 9px; color: #71717a; }
  .app-h2h-cols { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8px; letter-spacing: .5px; color: #71717a; margin-bottom: 4px; }
  .app-h2h-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 4px 0; border-top: 1px solid rgba(255,255,255,.06); }
  .app-h2h-tile { background: #17171a; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 7px; text-align: center; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: #cfcfd4; }
  .app-h2h-tile.lead { background: rgba(245,166,35,.12); border-color: rgba(245,166,35,.32); color: var(--accent); }
  .app-h2h-mid { text-align: center; min-width: 92px; }
  .app-h2h-metric { font-size: 10px; font-weight: 700; color: #e4e4e7; }
  .app-h2h-sub { font-size: 8px; color: #71717a; margin: 1px 0 4px; }

  /* "populate" reveal when results appear */
  .app-panel[data-panel="results"].visible .app-h2h-row { animation: h2hpop .5s both; }
  .app-panel[data-panel="results"].visible .app-h2h-row:nth-child(4) { animation-delay: .07s; }
  .app-panel[data-panel="results"].visible .app-h2h-row:nth-child(5) { animation-delay: .14s; }
  .app-panel[data-panel="results"].visible .app-h2h-row:nth-child(6) { animation-delay: .21s; }
  @keyframes h2hpop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* ── PREDICT: input form + live typing ── */
  .app-vf-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 13px; }
  .app-vf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-vf-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .app-input.with-icon { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .app-vf-icon { width: 13px; height: 13px; color: #71717a; flex-shrink: 0; }
  .app-vf-filerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .app-vf-filebtn { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #e4e4e7; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 7px 12px; border-radius: 7px; white-space: nowrap; }
  .app-vf-filebtn svg { width: 12px; height: 12px; }
  .app-vf-filenote { font-size: 9.5px; color: #71717a; }
  .app-cta-btn.light { background: #f4f4f5; color: #111; }
  .app-cta-btn.light svg { width: 12px; height: 12px; }
  .app-vf-disclosure { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 3px; border-top: 1px solid rgba(255,255,255,.06); }
  .app-vf-disclosure-label { font-size: 11px; font-weight: 700; color: #e4e4e7; }
  .app-vf-disclosure-val { font-size: 9.5px; color: #71717a; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .app-vf-disclosure-val svg { width: 10px; height: 10px; }
  .app-caret { display: inline-block; width: 1.5px; height: 12px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: caretblink 1s steps(1) infinite; }
  .app-caret.idle { animation: none; opacity: 0; }
  @keyframes caretblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

  /* mobile stacking (placed after base rules so it wins the cascade) */
  @media (max-width: 620px) {
    .app-cmp-cols, .app-cmp-results-groups { grid-template-columns: 1fr; }
    .app-cmp-setup-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .app-h2h-row { gap: 8px; }
    .app-h2h-tile { font-size: 13px; padding: 8px 6px; }
    .app-h2h-mid { min-width: 74px; }
    .app-vf-row2, .app-vf-row3 { grid-template-columns: 1fr; }
    #demo .demo-wrap { min-height: 0; }
  }

  /* ── FAQ ── */
  .faq-section { background: var(--muted-bg); }
  .faq-breadcrumb { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
  .faq-breadcrumb a { color: var(--text2); text-decoration: none; }
  .faq-breadcrumb a:hover { color: var(--accent); }
  .faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--border); }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-item > summary {
    list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
    font-family: var(--font-display); font-size: clamp(16px, 2vw, 19px); font-weight: 700;
    color: var(--text); letter-spacing: -.3px; line-height: 1.4;
    transition: color .15s;
  }
  .faq-item > summary::-webkit-details-marker { display: none; }
  .faq-item > summary:hover { color: var(--accent); }
  .faq-item > summary::after {
    content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 24px; font-weight: 400; color: var(--accent);
    transition: transform .2s; line-height: 1;
  }
  .faq-item[open] > summary::after { content: '−'; }
  .faq-a { padding: 0 44px 24px 0; font-size: 15px; color: var(--text2); line-height: 1.75; }
  .faq-cta { text-align: center; margin-top: 44px; font-size: 15px; color: var(--text2); }
  .faq-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }
  .faq-cta a:hover { text-decoration: underline; }

  /* reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .badge { animation: none; }
    .chat-msg { transition: none; }
    .bar-fill, .app-bar-fill { transition: none; }
    .typing-dots span { animation: none; opacity: 1; }
    .faq-item > summary::after { transition: none; }
    .app-caret { animation: none; opacity: 1; }
  }
