/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d0d12;
  --surface: #16161f;
  --surface2: #1e1e2a;
  --accent: #b8ff57;
  --accent-dim: #8dbd3d;
  --violet: #a78bfa;
  --text: #f5f5f0;
  --text-muted: #8a8a9a;
  --text-dim: #5a5a6a;
  --border: #2a2a38;
  --radius: 12px;
  --radius-sm: 8px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
a { color: var(--accent); text-decoration: none; }

/* ─── Layout Helpers ─── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 620px;
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 28px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(13,13,18,0.95) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 28px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(168,139,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(184,255,87,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(184,255,87,0.1);
  border: 1px solid rgba(184,255,87,0.2);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-vs { margin-top: 4px; }
.hero-vs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 10px; }
.hero-vs-items { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-tag {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ─── Agent Widget ─── */
.agent-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,255,87,0.05);
}
.agent-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
}
.agent-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.agent-status-text { font-size: 12px; color: var(--accent); font-weight: 500; }
.agent-stream-name {
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.agent-clip-feed { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.agent-clip {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.agent-clip.done { opacity: 0.7; }
.agent-clip.active { background: rgba(184,255,87,0.05); border: 1px solid rgba(184,255,87,0.12); }
.agent-clip.queued { opacity: 0.35; }
.agent-clip-marker {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; margin-top: 4px;
  background: var(--border);
}
.agent-clip.active .agent-clip-marker.active-marker { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.agent-clip-label {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.agent-clip-time { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
.agent-clip-meta { display: flex; align-items: center; gap: 10px; }
.clip-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; letter-spacing: 0.05em;
}
.clip-badge.ok { background: rgba(184,255,87,0.12); color: var(--accent); }
.clip-badge.loading {
  background: rgba(168,139,250,0.15); color: var(--violet);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.clip-views { font-size: 11px; color: var(--text-dim); }

/* ─── How It Works ─── */
.how {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how .section-headline { max-width: 100%; }
.how-steps {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px;
  padding: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 12px;
}
.step-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.step-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow { flex-shrink: 0; opacity: 0.4; }

/* ─── Features ─── */
.features { padding: 100px 0; }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(184,255,87,0.2); }
.feature-icon { margin-bottom: 20px; }
.feature-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ─── Real-time ─── */
.realtime {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.realtime-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.realtime-content { max-width: 700px; }
.realtime-body { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 48px; max-width: 520px; }
.realtime-comparison { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comp-row {
  display: grid; grid-template-columns: 1fr 80px 80px;
  align-items: center; gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.comp-row:last-child { border-bottom: none; }
.comp-feature { color: var(--text-muted); }
.comp-us, .comp-them { display: flex; align-items: center; justify-content: center; }
.comp-row:nth-child(1) { background: var(--surface2); }
.comp-row:nth-child(1) .comp-feature { font-weight: 700; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── Closing ─── */
.closing {
  padding: 120px 28px;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}
.closing-body {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.closing-statement {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ─── Footer ─── */
.footer { padding: 40px 28px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Syne', sans-serif; font-weight: 700; color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 2.4rem; }
  .how-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .section-headline { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .comp-row { grid-template-columns: 1fr 60px 60px; font-size: 12px; }
}