/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #080c10;
  --surface: #0d1117;
  --surface2: #161b22;
  --border: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #484f58;
  --accent: #ffb400;
  --accent-dim: #9a7400;
  --accent-glow: rgba(255, 180, 0, 0.15);
  --mono: 'DM Mono', monospace;
  --head: 'Syne', sans-serif;
  --body: 'Figtree', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--head); font-weight: 700; }
/* === NAV === */
.nav { border-bottom: 1px solid var(--border); padding: 1.25rem 2rem; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: baseline; gap: 1rem; }
.nav-logo { font-family: var(--mono); font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; color: var(--text); }
.nav-tagline { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
/* === HERO === */
.hero { padding: 6rem 2rem 5rem; max-width: 1100px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-label { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-headline { font-family: var(--head); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--text); }
.hero-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 420px; margin-bottom: 2.5rem; line-height: 1.65; }
.hero-cta-row { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--text-muted); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-note { font-size: 0.8125rem; color: var(--text-dim); font-family: var(--mono); }
/* === SCANNER VISUAL === */
.hero-visual { display: flex; justify-content: center; }
.scanner-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 0 1px rgba(255,180,0,0.05), 0 32px 80px rgba(0,0,0,0.6);
  position: relative;
}
.browser-chrome {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chrome-dots { display: flex; gap: 5px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.chrome-url { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.2rem 0.6rem; flex: 1; }
.page-content { padding: 1.5rem; position: relative; overflow: hidden; min-height: 260px; }
.page-lines { display: flex; flex-direction: column; gap: 8px; }
.line { height: 8px; background: var(--surface2); border-radius: 4px; }
.line-h1 { width: 55%; height: 14px; }
.line-h2 { width: 40%; height: 10px; }
.line-text { width: 85%; }
.line-code { width: 65%; background: var(--accent-dim); opacity: 0.3; }
.line.short { width: 55%; }
.page-lines.below { margin-top: 12px; }
.scan-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  top: 30%;
  animation: scan 3s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent);
}
@keyframes scan { 0% { top: 15%; opacity: 0; } 20% { opacity: 0.7; } 80% { opacity: 0.7; } 100% { top: 80%; opacity: 0; } }
.diff-zone {
  position: absolute;
  top: 32%;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  animation: diff-appear 3s ease-in-out infinite;
}
@keyframes diff-appear { 0%, 55% { opacity: 0; transform: translateY(4px); } 65%, 95% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
.diff-label { font-family: var(--mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.diff-line.highlighted { width: 40%; height: 10px; background: rgba(255,180,0,0.25); border: 1px solid var(--accent-dim); border-radius: 4px; }
.alert-popup {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 1.5rem 1.5rem;
  opacity: 0;
  animation: alert-appear 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes alert-appear { 0%, 60% { opacity: 0; transform: translateY(8px); } 72%, 92% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
.alert-header { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.6875rem; color: var(--accent); margin-bottom: 0.4rem; }
.alert-body { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.alert-time { font-family: var(--mono); font-size: 0.625rem; color: var(--text-dim); margin-top: 0.5rem; }
/* === DIVIDER === */
.section-divider { display: flex; align-items: center; gap: 1.5rem; padding: 0 2rem; max-width: 1100px; margin: 0 auto; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim); text-align: center; white-space: nowrap; }
/* === HOW IT WORKS === */
.howitworks { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3rem; }
.section-num { font-family: var(--mono); font-size: 0.6875rem; color: var(--accent); }
.section-title { font-family: var(--head); font-size: 1.75rem; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.step { }
.step-number { font-family: var(--head); font-size: 3rem; font-weight: 800; color: var(--surface2); line-height: 1; margin-bottom: 1rem; }
.step-body h3 { font-family: var(--head); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.step-body p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.step-meta { font-family: var(--mono); font-size: 0.6875rem; color: var(--accent-dim); }
.step-connector { width: 60px; display: flex; align-items: center; justify-content: center; padding-top: 1.5rem; }
.step-connector::after { content: ''; display: block; width: 100%; height: 1px; background: var(--border); }
/* === USE CASES === */
.usecases { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); }
.usecases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.usecase-card { background: var(--surface); padding: 2rem; }
.usecase-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-glow); border: 1px solid var(--accent-dim); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.usecase-card h3 { font-family: var(--head); font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.75rem; }
.usecase-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.usecase-selector-example { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.875rem; }
.use-sel-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dim); background: var(--accent-glow); border: 1px solid rgba(255,180,0,0.15); padding: 0.15rem 0.4rem; border-radius: 3px; }
.usecase-selector-example code { font-family: var(--mono); font-size: 0.76rem; color: var(--accent); letter-spacing: 0.02em; }
/* === MANIFESTO === */
.manifesto { padding: 5rem 2rem; border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 680px; margin: 0 auto; }
.manifesto-label { font-family: var(--mono); font-size: 0.6875rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.manifesto-text { font-size: 1.25rem; line-height: 1.7; color: var(--text-muted); }
.manifesto-text em { color: var(--text); font-style: normal; font-weight: 500; }
/* === CLOSING === */
.closing { padding: 5rem 2rem; }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.closing-rule { width: 48px; height: 3px; background: var(--accent); margin: 0 auto 3rem; border-radius: 2px; }
.closing-headline { font-family: var(--head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.closing-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 520px; margin: 0 auto 3rem; line-height: 1.65; }
.closing-tagline { display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
.tag-sep { color: var(--border); }
.tag-block { color: var(--text-muted); }
/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { font-family: var(--mono); font-weight: 500; font-size: 0.9375rem; }
.footer-slash { font-family: var(--mono); color: var(--accent); }
.footer-desc { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
.footer-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }
/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .scanner-frame { max-width: 100%; }
  .hero-headline { font-size: 2.25rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step-connector { display: none; }
  .usecases-grid { grid-template-columns: 1fr; }
  .section-divider { padding: 0 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .livefeed { padding: 3rem 1.5rem; }
  .livefeed-card { padding: 1rem; }
  .livefeed-diff { flex-direction: column; }
  .livefeed-logos { gap: 0.5rem; }
}
/* === LIVE FEED === */
.livefeed { padding: 5rem 2rem; border-top: 1px solid var(--border); }
.livefeed-inner { max-width: 800px; margin: 0 auto; }
.livefeed-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.livefeed-pulse { display: flex; align-items: center; }
.livefeed-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: livefeed-ping 1.8s ease-in-out infinite;
}
@keyframes livefeed-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,0,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,180,0,0); }
}
.livefeed-title { font-family: var(--head); font-size: 1.5rem; font-weight: 700; }
.livefeed-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.livefeed-loading { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-dim); padding: 1.5rem 0; }
.livefeed-empty { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-dim); padding: 1.5rem 0; }
.livefeed-list { display: flex; flex-direction: column; gap: 1px; }
.livefeed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}
.livefeed-card:hover { border-color: var(--accent-dim); }
.livefeed-card-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.625rem; flex-wrap: wrap; }
.livefeed-favicon { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.livefeed-host { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.livefeed-page-title { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.livefeed-page-title::before { content: '·'; margin-right: 0.4rem; color: var(--text-dim); }
.livefeed-time { font-family: var(--mono); font-size: 0.6875rem; color: var(--text-dim); margin-left: auto; }
.livefeed-summary { font-size: 0.9rem; color: var(--text); line-height: 1.55; margin-bottom: 0.75rem; }
.livefeed-summary--generated { color: var(--text-muted); }
.livefeed-diff-chars { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-dim); }
.livefeed-diff { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.livefeed-diff-before,
.livefeed-diff-after {
  flex: 1; border-radius: 4px; padding: 0.5rem 0.625rem; overflow: hidden;
}
.livefeed-diff-before { background: rgba(248, 81, 73, 0.08); border: 1px solid rgba(248,81,73,0.2); }
.livefeed-diff-after  { background: rgba(63, 185, 80, 0.08); border: 1px solid rgba(63,185,80,0.2); }
.livefeed-diff-before code,
.livefeed-diff-after  code {
  font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted);
  white-space: pre-wrap; word-break: break-word; display: block;
}
.livefeed-diff-label {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.07em;
  text-transform: uppercase; display: block; margin-bottom: 0.3rem;
}
.livefeed-diff-label--before { color: #f85149; }
.livefeed-diff-label--after  { color: #3fb950; }
/* empty state logos */
.livefeed-logos-label { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.livefeed-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.livefeed-logo-chip {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 0.35rem 0.75rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted);
}
.livefeed-logo-favicon { width: 14px; height: 14px; border-radius: 2px; }
/* CTA */
.livefeed-cta { margin-top: 2rem; font-size: 0.9375rem; color: var(--text-muted); }
.livefeed-cta-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.livefeed-cta-link:hover { text-decoration: underline; }
/* === POPULAR USE CASES STRIP === */
.use-cases-strip { padding: 2rem 2rem 2.5rem; border-top: 1px solid var(--border); }
.use-cases-strip-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.use-cases-strip-label { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.use-cases-strip-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.use-cases-strip-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0.3rem 0.75rem; text-decoration: none; font-family: var(--mono); font-size: 0.725rem; color: var(--text-muted); letter-spacing: 0.01em; transition: border-color 0.15s, color 0.15s; }
.use-cases-strip-chip:hover { border-color: var(--accent-dim); color: var(--accent); }
.ucstrip-icon { display: flex; align-items: center; flex-shrink: 0; }
@media (max-width: 768px) { .use-cases-strip-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; } }