/* TestivAI Landing Page v3 Theme */
:root {
  --navy:       #08111f;
  --navy2:      #0d1a2e;
  --navy3:      #112236;
  --navy4:      #172d44;
  --border:     rgba(0,180,220,0.1);
  --border2:    rgba(255,255,255,0.06);
  --text:       #f0f6ff;
  --text2:      #cad8ee;
  --muted:      #6b8aaa;
  --cyan:       #00d4ff;
  --cyan2:      #00a8e8;
  --cyan3:      #0090cc;
  --cyan-glow:  rgba(0,212,255,0.15);
  --grad:       linear-gradient(135deg, #00d4ff, #00a8e8);
  --grad-text:  linear-gradient(135deg, #00d4ff 0%, #00a8e8 60%, #0090cc 100%);
  --green:      #00e5b0;
  --red:        #ff5577;
  --font:       'Plus Jakarta Sans', sans-serif;
  --mono:       'Fira Code', monospace;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan3); border-radius: 4px; }

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: rgba(8,17,31,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

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

/* SVG code icon from the logo */
.logo-icon {
  width: 32px; height: 32px;
}

.logo-text {
  font-family: var(--font); font-weight: 800; font-size: 1.2rem;
  color: var(--text); letter-spacing: -0.02em;
}
.logo-text span { 
  background: var(--grad-text); 
  background-clip: text;
  color: transparent; 
}

.nav-links { 
  display: flex; gap: 32px; list-style: none; 
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right { 
  display: flex; gap: 10px; align-items: center; 
}

.btn-ghost {
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text2); font-family: var(--font); font-size: 1rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { 
  border-color: rgba(0,212,255,0.3); 
  color: var(--cyan); 
}

.btn-grad {
  padding: 9px 22px; border-radius: 8px;
  background: var(--grad); color: var(--navy);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,180,220,0.25);
}
.btn-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,180,220,0.4);
  filter: brightness(1.08);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 52px 72px;
  position: relative; overflow: hidden;
  text-align: center;
}

/* Large blurred orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,144,204,0.06) 0%, transparent 70%);
  bottom: 0; right: -100px;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 70%);
  bottom: 100px; left: -80px;
}

/* Grid lines */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px; padding: 6px 14px;
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  color: var(--cyan); letter-spacing: 0.04em;
  margin-bottom: 28px;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.5s ease 0.1s forwards;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.2); }
}

h1 {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.0; letter-spacing: -0.04em;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.6s ease 0.2s forwards;
  max-width: 900px;
}

.h1-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.h1-muted {
  color: rgba(255,255,255,0.25);
}

.hero-p {
  margin-top: 24px; max-width: 500px;
  font-size: 1.05rem; color: var(--text2); font-weight: 400; line-height: 1.75;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.6s ease 0.35s forwards;
}

.hero-btns {
  margin-top: 38px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.5s ease 0.48s forwards;
}

.btn-grad-lg {
  padding: 14px 34px; border-radius: 10px;
  background: var(--grad); color: var(--navy);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 4px 28px rgba(0,180,220,0.3);
  display: flex; align-items: center; gap: 8px;
}
.btn-grad-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,180,220,0.5);
  filter: brightness(1.07);
}

.btn-ghost-lg {
  padding: 14px 34px; border-radius: 10px;
  border: 1px solid var(--border2); background: rgba(255,255,255,0.03);
  color: var(--text2); font-family: var(--font); font-size: 1rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.btn-ghost-lg:hover {
  border-color: rgba(0,212,255,0.3); color: var(--cyan);
  background: rgba(0,212,255,0.04);
}

.hero-trust {
  margin-top: 20px;
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.5s ease 0.58s forwards;
}

.trust-item {
  font-family: var(--mono); font-size: 1rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.trust-item::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); opacity: 0.6;
}

/* ── SPLIT VISUAL ── */
.split-visual {
  margin-top: 64px; width: 100%; max-width: 960px;
  position: relative; z-index: 1;
  opacity: 0; animation: rise 0.9s ease 0.7s forwards;
}

/* Glow border trick */
.split-glow-wrap {
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(0,144,204,0.1), rgba(0,212,255,0.3));
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,212,255,0.06);
}

.split-inner {
  display: grid; grid-template-columns: 1fr 48px 1fr;
  background: var(--navy2); border-radius: 13px; overflow: hidden;
}

.sp-header {
  padding: 10px 16px; border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 1rem;
}

.sp-dot { width: 8px; height: 8px; border-radius: 50%; }

.sp-ci { background: var(--navy3); }
.sp-ci .sp-header { background: rgba(0,229,176,0.04); }
.sp-ci .sp-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.sp-ci .sp-title { color: var(--green); }

.sp-bug { background: var(--navy3); }
.sp-bug .sp-header { background: rgba(255,85,119,0.04); }
.sp-bug .sp-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.sp-bug .sp-title { color: var(--red); }

.sp-divider {
  background: var(--navy2);
  border-left: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.sp-div-icon {
  width: 28px; height: 28px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1rem; color: var(--cyan);
}

.sp-body {
  padding: 18px; font-family: var(--mono); font-size: 1rem; line-height: 2;
}

.ln-g { color: var(--green); }
.ln-r { color: var(--red); }
.ln-m { color: rgba(255,255,255,0.15); }
.ln-c { color: rgba(255,255,255,0.2); font-style: italic; }

/* broken UI */
.ui-sim { padding: 14px; }
.ui-row { height: 8px; border-radius: 2px; margin-bottom: 8px; }
.ur-dim { background: rgba(255,255,255,0.06); }
.ur-mid { background: rgba(255,255,255,0.1); width: 65%; }

.invis-btn {
  margin: 10px 0; height: 34px; border-radius: 7px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,85,119,0.35);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.invis-btn span { font-family: var(--mono); font-size: 1rem; color: rgba(255,255,255,0.06); }

.bug-chip {
  position: absolute; top: -10px; right: -6px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.04em;
  animation: chipglow 2s ease infinite;
}
@keyframes chipglow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,85,119,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(255,85,119,0); }
}

.bug-msg {
  font-family: var(--mono); font-size: 1rem; color: var(--red);
  margin-top: 10px; display: flex; align-items: center; gap: 6px;
  opacity: 0.9;
}

/* blinking cursor */
.cur {
  display: inline-block; width: 7px; height: 13px;
  background: var(--cyan); opacity: 0.7;
  vertical-align: middle; margin-left: 2px;
  animation: blink 1s step-end infinite; border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── STATS ── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-box {
  padding: 40px 0; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden; cursor: default;
  transition: background 0.3s;
}
.stat-box:hover { background: rgba(0,212,255,0.03); }
.stat-box:last-child { border-right: none; }

.stat-box::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--grad);
  transition: width 0.4s ease;
}
.stat-box:hover::after { width: 60%; }

.sn {
  font-family: var(--font); font-weight: 800;
  font-size: 3rem; line-height: 1; letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.sl {
  margin-top: 6px; font-family: var(--mono);
  font-size: 1rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── SHARED SECTION ── */
section { 
  padding: 96px 52px; 
  position: relative; 
}
.inner { 
  max-width: 1100px; 
  margin: 0 auto; 
}

.stag {
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.ssub {
  color: var(--text2); font-size: 1rem;
  font-weight: 400; max-width: 480px; line-height: 1.75;
}

/* ── PROBLEM ── */
.prob-bg { background: var(--navy2); }

.prob-2col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 52px;
}

.prob-copy p {
  color: var(--text2); font-size: 1rem; font-weight: 400;
  line-height: 1.85; margin-bottom: 16px;
}
.prob-copy strong { color: var(--text); font-weight: 600; }

/* Code window */
.cwin {
  border: 1px solid var(--border2); border-radius: 10px; overflow: hidden;
  background: rgba(8,17,31,0.7);
}

.cwin-bar {
  background: rgba(255,255,255,0.03); padding: 9px 14px;
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; gap: 7px;
}
.cd { width: 9px; height: 9px; border-radius: 50%; }
.cd-r { background: rgba(255,95,87,0.7); }
.cd-y { background: rgba(254,188,46,0.7); }
.cd-g { background: rgba(40,200,64,0.7); }
.cwin-file { margin-left: 4px; font-family: var(--mono); font-size: 1rem; color: var(--muted); }

.cwin-body {
  padding: 20px; font-family: var(--mono); font-size: 1rem; line-height: 2.1;
}
.cg { color: var(--green); }
.cr { color: var(--red); }
.cc { color: rgba(255,255,255,0.15); font-style: italic; }

/* ── LAYERS ── */
.layers-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; margin-top: 52px;
}

.lcard {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 12px; padding: 26px 22px;
  position: relative; overflow: hidden;
  transition: all 0.3s; cursor: default;
}
.lcard:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.06);
}

.lcard-glow {
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  transition: opacity 0.3s; opacity: 0;
}
.lcard:hover .lcard-glow { opacity: 1; }

.lc-n {
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px; letter-spacing: 0.06em;
}

.lc-t {
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  margin-bottom: 10px; color: var(--text);
}

.lc-d { color: var(--muted); font-size: 1rem; line-height: 1.65; }

.lc-s {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border2);
  font-family: var(--mono); font-size: 1rem; color: var(--muted);
}
.lc-s strong { color: var(--cyan); }

/* ── DEMO ── */
.demo-bg { background: var(--navy2); }

.demo-frame {
  margin-top: 52px;
  border: 1px solid var(--border2); border-radius: 12px; overflow: hidden;
  background: rgba(8,17,31,0.8);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.demo-tabs {
  display: flex; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border2);
}

.dtab {
  padding: 13px 22px; background: transparent; border: none;
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  color: var(--muted); cursor: pointer; letter-spacing: 0.05em;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.dtab:hover { color: var(--text2); }
.dtab.active {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  border-bottom-color: var(--cyan); background-color: rgba(0,212,255,0.04);
  /* fallback for non-webkit */
  color: var(--cyan);
}

.demo-body { padding: 32px; }
.dpane { display: none; }
.dpane.active { display: block; }

/* DB mockup */
.db-mock {
  border: 1px solid var(--border2); border-radius: 10px; overflow: hidden;
}

.db-chrome {
  background: rgba(255,255,255,0.02); padding: 9px 16px;
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; gap: 10px;
}

.dbc-dots { display: flex; gap: 6px; }
.dbc-d { width: 9px; height: 9px; border-radius: 50%; }
.dbc-r { background: rgba(255,95,87,0.5); }
.dbc-y { background: rgba(254,188,46,0.5); }
.dbc-g { background: rgba(40,200,64,0.5); }

.dbc-url {
  flex: 1; font-family: var(--mono); font-size: 1rem;
  color: var(--muted); text-align: center;
}

.db-body { padding: 22px; }

/* Shimmer */
.sh {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: sh 2s linear infinite;
  border-radius: 3px;
}
@keyframes sh { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.rrow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rrow:last-of-type { border-bottom: none; }
.rr-n { flex: 1; height: 10px; border-radius: 2px; }
.rr-b { width: 140px; height: 10px; border-radius: 2px; }
.rr-s { font-family: var(--mono); font-size: 1rem; font-weight: 600; width: 58px; text-align: right; }
.rs-p { color: var(--green); }
.rs-r { color: var(--red); }

.kpis { display: flex; gap: 12px; margin-top: 20px; }

.kpi {
  flex: 1; background: rgba(255,255,255,0.02); border: 1px solid var(--border2);
  border-radius: 8px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.kpi:hover { border-color: rgba(0,212,255,0.2); }

.kpi-l { font-family: var(--mono); font-size: 1rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi-v { font-family: var(--font); font-weight: 800; font-size: 1.7rem; }
.kvg { color: var(--green); }
.kvr { color: var(--red); }
.kvc { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kvm { color: var(--muted); font-size: 1.1rem; }

.mock-note {
  padding: 10px 14px; text-align: center;
  font-family: var(--mono); font-size: 1rem; color: rgba(255,255,255,0.12);
  border-top: 1px dashed var(--border2); font-style: italic;
}

/* Diff cols */
.diff-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.dc-label { font-family: var(--mono); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.dcl-g { color: var(--green); }
.dcl-r { color: var(--red); }
.dcl-c { color: var(--cyan); }

.dbox {
  border-radius: 8px; height: 164px; border: 1px solid;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.dbox-g { border-color: rgba(0,229,176,0.2); background: rgba(0,229,176,0.04); }
.dbox-r { border-color: rgba(255,85,119,0.2); background: rgba(255,85,119,0.04); }
.dbox-c { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.04); }

.verdict-box { font-family: var(--mono); font-size: 1rem; line-height: 1.75; color: var(--muted); }
.vb-label { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600; display: block; margin-bottom: 6px; }
.vb-conf { color: rgba(255,255,255,0.2); font-size: 1rem; display: block; margin-top: 10px; }

/* Code tab */
.setup-code {
  background: rgba(8,17,31,0.8); border: 1px solid var(--border2);
  border-radius: 10px; padding: 26px;
  font-family: var(--mono); font-size: 1rem; line-height: 2;
}
.sk { color: var(--cyan); }
.ss { color: #7ec8a0; }
.sv { color: #f0c27f; }
.sc { color: rgba(255,255,255,0.2); }

/* ── STEPS ── */
.steps-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 52px;
}

.step {
  background: var(--navy2);
  border: 1px solid var(--border2); border-radius: 12px; padding: 30px 26px;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.step:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.step-bg-n {
  position: absolute; bottom: -10px; right: 10px;
  font-family: var(--font); font-weight: 800; font-size: 6rem;
  line-height: 1; letter-spacing: -0.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.06;
}

.step-t { font-family: var(--font); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.step-d { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.step-c {
  background: rgba(8,17,31,0.8); border: 1px solid var(--border2);
  border-radius: 6px; padding: 10px 14px;
  font-family: var(--mono); font-size: 1rem; color: var(--cyan);
}

/* ── TABLE ── */
.tbl-wrap {
  margin-top: 52px; border: 1px solid var(--border2);
  border-radius: 12px; overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--navy2); border-bottom: 1px solid var(--border2); }
th {
  padding: 14px 20px; text-align: left;
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}
th.hl { background: rgba(0,212,255,0.04); }

/* Gradient text on highlight column header */
.th-grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

td {
  padding: 13px 20px; font-size: 1rem; font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text2);
}
td.hl { background: rgba(0,212,255,0.03); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
tr:hover td.hl { background: rgba(0,212,255,0.05); }

.td-f { color: var(--muted); font-size: 1rem; }
.td-v { font-family: var(--mono); font-size: 1rem; }
.ck { color: var(--cyan); font-weight: 600; }
.cx { color: rgba(255,255,255,0.15); }
.tc-good { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

/* ── CTA ── */
.cta-sec {
  text-align: center; padding: 110px 52px;
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}

.cta-orb {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-sec h2 { max-width: 640px; margin: 0 auto 16px; position: relative; z-index: 1; }
.cta-sec .ssub { margin: 0 auto 40px; text-align: center; max-width: 440px; position: relative; z-index: 1; }
.cta-btns { display: flex; gap: 14px; justify-content: center; position: relative; z-index: 1; }

/* ── FOOTER ── */
footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}

.footer-logo {
  font-family: var(--font); font-weight: 800; font-size: 1.1rem;
  text-decoration: none; color: var(--muted);
  letter-spacing: -0.02em;
}
.footer-logo span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono); font-size: 1rem; color: var(--muted);
  text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-copy { font-family: var(--mono); font-size: 1rem; color: rgba(255,255,255,0.2); }

/* ── DASHBOARD DEMO ENHANCEMENTS ── */
.test-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border2);
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(10px);
}

.test-row.animate-in {
  animation: fadeInUp 0.4s ease forwards;
  animation-delay: var(--delay, 0s);
}

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

.test-row:hover {
  background: rgba(0,212,255,0.02);
}

.test-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.test-col-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test-name {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

.test-branch {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.4;
}

.test-layer {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.test-time {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.test-duration {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text2);
  flex-shrink: 0;
  margin-top: 2px;
}

.test-status {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-pass {
  color: var(--text);
}

.status-review {
  color: #ffa500;
}

/* Diff viewer enhancements */
.diff-panel {
  opacity: 0;
  transform: translateY(20px);
}

.diff-panel[data-animate="baseline"].animate-in {
  animation: fadeInUp 0.5s ease 0.2s forwards;
}

.diff-panel[data-animate="candidate"].animate-in {
  animation: slideIn 0.5s ease 0.5s forwards;
}

.diff-panel[data-animate="verdict"].animate-in {
  animation: fadeInUp 0.5s ease 0.8s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ui-mockup {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ui-header {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
}

.ui-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.ui-button-good {
  background: var(--grad);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0,212,255,0.2);
}

.ui-button-broken {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,85,119,0.4);
  position: relative;
  animation: bugPulse 2s ease infinite;
}

@keyframes bugPulse {
  0%, 100% { 
    border-color: rgba(255,85,119,0.4);
    box-shadow: 0 0 0 0 rgba(255,85,119,0.3);
  }
  50% { 
    border-color: rgba(255,85,119,0.6);
    box-shadow: 0 0 0 6px rgba(255,85,119,0);
  }
}

.bug-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ui-text {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
}

/* AI Verdict */
.ai-verdict {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.layer-badge-sm {
  font-family: var(--mono);
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.2);
}

.confidence-badge {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(0,229,176,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,229,176,0.2);
}

.verdict-text {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text2);
  min-height: 60px;
  word-wrap: break-word;
}

.verdict-text.typing {
  opacity: 0;
  animation: fadeInText 0.8s ease 0.3s forwards;
}

@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.verdict-footer {
  display: flex;
  justify-content: flex-end;
}

.analysis-time {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
}

/* ── SCROLL ANIM ── */
.fu { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fu.vis { opacity: 1; transform: translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  .fu { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .test-row, .diff-panel { opacity: 1; transform: none; }
  .test-row.animate-in, .diff-panel.animate-in { animation: none; }
  .status-dot, .ui-button-broken, .bug-indicator { animation: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .hero { padding: 88px 24px 60px; }
  .prob-2col { grid-template-columns: 1fr; gap: 40px; }
  .layers-grid { grid-template-columns: 1fr 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
  .diff-3 { grid-template-columns: 1fr; }
  .split-inner { grid-template-columns: 1fr; }
  .sp-divider { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(90deg, var(--cyan3), var(--cyan2));
  color: white;
  padding: 8px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.announce-bar.ab-hidden {
  transform: translateY(-100%);
}

.ab-sparkle {
  font-size: 1.1rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.ab-highlight {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ab-cta {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ab-cta:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.ab-close {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ab-close:hover { opacity: 1; }

/* Adjust nav when announcement bar is present */
body.has-announce-bar nav {
  top: 40px;
}

/* Early Bird Modal */
.eb-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}

.eb-overlay.eb-open {
  opacity: 1; visibility: visible;
}

.eb-modal {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px; width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.eb-overlay.eb-open .eb-modal {
  transform: scale(1);
}

.eb-close {
  position: absolute; right: 16px; top: 16px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.5rem; cursor: pointer;
  transition: color 0.2s;
}

.eb-close:hover { color: var(--text); }

.eb-badge {
  background: var(--grad);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

.eb-modal h3 {
  font-size: 1.8rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.eb-modal h3 span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eb-sub {
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.eb-perks {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}

.eb-perk {
  display: flex; align-items: center; gap: 12px;
  color: var(--text2);
}

.eb-perk-icon {
  font-size: 1.2rem;
}

.eb-form {
  display: flex; gap: 8px;
  margin-bottom: 12px;
}

.eb-form input {
  flex: 1;
  background: var(--navy3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.eb-form input::placeholder {
  color: var(--muted);
}

.eb-form button {
  background: var(--grad);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.eb-form button:hover {
  transform: translateY(-1px);
}

.eb-form button:disabled {
  opacity: 0.7; cursor: not-allowed;
  transform: none;
}

.eb-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.eb-success {
  text-align: center;
  padding: 20px 0;
}

.eb-success-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.eb-success h4 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.eb-success p {
  color: var(--text2);
  line-height: 1.6;
}
