/* ── Tokens ── */
:root {
  --bg: #111112;
  --surface: #19191B;
  --surface2: #222225;
  --fg: #F2F2F0;
  --fg-muted: #8A8A8E;
  --accent: #F59E0B;
  --accent-dim: #B47208;
  --red: #EF4444;
  --green: #22C55E;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(17,17,18,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-tagline { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.03em; text-transform: uppercase; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-head);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ── Dashboard Mockup ── */
.hero-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.08);
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.dash-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
}
.dash-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  letter-spacing: 0.02em;
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.dash-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dash-alert {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.dash-alert.new { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.04); }
.dash-alert.flagged { border-color: rgba(239,68,68,0.2); }
.alert-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.alert-source { font-size: 11px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.alert-text { font-size: 14px; color: var(--fg); font-style: italic; line-height: 1.4; margin-bottom: 6px; }
.alert-meta { font-size: 11px; color: var(--fg-muted); }
.dash-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  gap: 8px;
}
.dash-metric { display: flex; flex-direction: column; gap: 2px; }
.metric-num { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1; }
.metric-lbl { font-size: 11px; color: var(--fg-muted); }

/* ── Overview ── */
.overview {
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.overview-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 16px;
}
.overview-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  max-width: 480px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.overview-card {
  background: var(--surface);
  padding: 40px 36px;
}
.card-icon { margin-bottom: 20px; }
.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.card-desc { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

/* ── How It Works ── */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
.hiw-left { }
.hiw-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-head);
  margin-bottom: 16px;
}
.hiw-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hiw-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.hiw-proof {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.proof-item { display: flex; flex-direction: column; gap: 4px; }
.proof-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.proof-label { font-size: 13px; color: var(--fg-muted); }

/* ── Comparison ── */
.comparison-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.comp-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.comp-title {
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-head);
}
.comp-title.active { color: var(--accent); }
.comp-items { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.comp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.comp-item.before { background: rgba(255,255,255,0.02); color: var(--fg-muted); }
.comp-item.after { color: var(--fg); }
.comp-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-badge.no { background: rgba(239,68,68,0.12); color: var(--red); }
.comp-badge.yes { background: rgba(34,197,94,0.12); color: var(--green); }

/* ── Why Now ── */
.why-now {
  padding: 64px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.wn-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.wn-quote {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.wn-attr { font-size: 13px; color: var(--fg-muted); font-style: italic; }

/* ── Closing ── */
.closing {
  padding: 80px 48px 96px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.footer-tagline { font-size: 13px; color: var(--fg-muted); }

/* ── Nav links ── */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link:hover { color: var(--fg); }
.nav-link--ghost { color: var(--fg-muted); }
.nav-link--ghost:hover { color: var(--fg); }

/* ── Buttons ── */
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary-sm:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-primary { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--surface2); color: var(--fg); border-color: var(--fg-muted); }

/* ── Page layout ── */
.page-container { max-width: 1100px; margin: 0 auto; padding: 40px 48px; }
.page-header { margin-bottom: 36px; }
.page-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page-subtitle { font-size: 15px; color: var(--fg-muted); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; }

/* ── Review list ── */
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.review-item.escalated { border-color: rgba(239,68,68,0.2); }
.review-item.escalated.new { border-color: rgba(245,158,11,0.25); }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.review-author { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.review-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.star { width: 14px; height: 14px; color: var(--accent); }
.star.empty { color: var(--surface2); }
.review-text { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin: 10px 0; font-style: italic; }
.review-meta { font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 12px; }
.review-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
}
.badge-escalated { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-new { background: rgba(245,158,11,0.12); color: var(--accent); }
.badge-published { background: rgba(34,197,94,0.12); color: var(--green); }
.badge-draft { background: rgba(255,255,255,0.06); color: var(--fg-muted); }

/* ── AI Response block ── */
.response-block {
  background: var(--surface2);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
}
.response-label { font-size: 11px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-family: var(--font-head); }
.response-text { font-size: 14px; color: var(--fg); line-height: 1.6; }
.response-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 6px; font-family: var(--font-head); }
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-error { font-size: 13px; color: var(--red); margin-top: 4px; }

/* ── Toggle switch ── */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-info { display: flex; flex-direction: column; gap: 2px; }
.toggle-title { font-size: 14px; font-weight: 600; }
.toggle-desc { font-size: 12px; color: var(--fg-muted); }
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--fg-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #000; }

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.stat-cell {
  background: var(--surface);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-cell-value { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.stat-cell-label { font-size: 12px; color: var(--fg-muted); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.pagination a { background: var(--surface); border: 1px solid var(--border); color: var(--fg-muted); transition: all 0.2s; }
.pagination a:hover { background: var(--surface2); color: var(--fg); }
.pagination .current { background: var(--accent); color: #000; font-weight: 700; }

/* ── Auth pages ── */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 28px; }
.auth-footer { margin-top: 20px; font-size: 14px; color: var(--fg-muted); text-align: center; }
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 24px; color: var(--fg-muted); }
.empty-state-icon { margin: 0 auto 16px; opacity: 0.4; }
.empty-state-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }

/* ── Error page ── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 24px 40px; gap: 40px; }
  .hero-right { display: none; }
  .overview { padding: 60px 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .how-it-works { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .closing { padding: 60px 24px 80px; }
  .nav { padding: 16px 24px; }
  .footer { padding: 24px; }
}
