/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080C14;
  --surface: #0D1526;
  --surface-2: #121D32;
  --border: rgba(255,255,255,0.07);
  --teal: #00D4B4;
  --teal-dim: rgba(0,212,180,0.12);
  --teal-glow: rgba(0,212,180,0.08);
  --text: #E8F0E8;
  --text-dim: rgba(232,240,232,0.55);
  --text-muted: rgba(232,240,232,0.3);
  --resolved: #22C55E;
  --resolved-dim: rgba(34,197,94,0.15);
  --draft: #F59E0B;
  --draft-dim: rgba(245,158,11,0.15);
  --escalate: #EF4444;
  --escalate-dim: rgba(239,68,68,0.15);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(8,12,20,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.nav-tagline { font-size: 0.8125rem; color: var(--text-dim); }

/* === HERO === */
.hero { padding: 80px 0 60px; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 20px; }

.hero-headline { font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: var(--text); margin-bottom: 24px; }

.hero-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--text-dim); max-width: 480px; margin-bottom: 32px; }

.hero-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; background: var(--teal-dim); border: 1px solid rgba(0,212,180,0.2); font-size: 0.8125rem; color: var(--teal); font-weight: 500; }

/* === INBOX PANEL === */
.inbox-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 32px 64px rgba(0,0,0,0.5); }

.inbox-panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); }
.inbox-panel-title { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--text); }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--resolved); }
.inbox-dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.4; } }
.inbox-status { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--resolved); background: var(--resolved-dim); padding: 3px 10px; border-radius: 100px; }

.inbox-list { padding: 4px 0; }

.inbox-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.inbox-row:last-child { border-bottom: none; }
.inbox-row:hover { background: rgba(255,255,255,0.02); }

.inbox-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.inbox-subject { font-size: 0.8125rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }

.inbox-row-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.time { font-size: 0.6875rem; color: var(--text-muted); }

.badge { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.badge--auto { background: var(--teal-dim); color: var(--teal); }
.badge--draft { background: var(--draft-dim); color: var(--draft); }
.badge--escalate { background: var(--escalate-dim); color: var(--escalate); }

.resolved-tag { font-size: 0.6875rem; color: var(--resolved); background: var(--resolved-dim); padding: 2px 8px; border-radius: 4px; }
.draft-tag { font-size: 0.6875rem; color: var(--draft); background: var(--draft-dim); padding: 2px 8px; border-radius: 4px; }
.escalate-tag { font-size: 0.6875rem; color: var(--escalate); background: var(--escalate-dim); padding: 2px 8px; border-radius: 4px; }

.inbox-panel-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.stat-row { display: flex; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.agent-indicator { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-left: 4px; font-size: 0.8125rem; color: var(--text-dim); }
.agent-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }

/* === SECTIONS === */
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 48px; }

/* === HOW IT WORKS === */
.howitworks { padding: 80px 0; border-top: 1px solid var(--border); }
.howitworks-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.step-number { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 12px; font-family: monospace; }
.step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: 0.9375rem; color: var(--text-dim); line-height: 1.65; }
.step-divider { width: 48px; display: flex; align-items: start; justify-content: center; padding-top: 28px; }
.step-divider::after { content: ''; display: block; width: 100%; height: 1px; background: var(--border); }

/* === FEATURES === */
.features { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feature-card { background: var(--surface); padding: 32px; transition: background 0.2s; }
.feature-card:hover { background: var(--surface-2); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-dim); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 20px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.9375rem; color: var(--text-dim); line-height: 1.65; }

/* === METRICS === */
.metrics { padding: 80px 0; }
.metrics-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 0; }
.metric-block { flex: 1; text-align: center; padding: 0 40px; }
.metric-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }
.metric-number { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: var(--text); letter-spacing: -0.03em; margin-bottom: 8px; }
.metric-desc { font-size: 0.875rem; color: var(--text-dim); line-height: 1.5; }

/* === MANIFESTO === */
.manifesto { padding: 80px 0; background: var(--surface); border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 800px; margin: 0 auto; padding: 0 32px; text-align: center; }
.manifesto blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.625rem); font-style: italic; font-weight: 400; line-height: 1.5; color: var(--text); margin-bottom: 20px; }
.manifesto-source { font-size: 0.8125rem; color: var(--text-muted); }

/* === CLOSING === */
.closing { padding: 80px 0 100px; }
.closing-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; text-align: center; }
.closing-headline { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; }
.closing-sub { font-size: 1.0625rem; color: var(--text-dim); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* === FOOTER === */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; }
.footer-note { font-size: 0.8125rem; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-inner { flex-direction: column; gap: 32px; }
  .metric-divider { display: none; }
  .metric-block { padding: 0; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner, .howitworks-inner, .features-inner, .metrics-inner, .manifesto-inner, .closing-inner, .footer-inner { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .inbox-subject { max-width: 160px; }
  .stat-row { gap: 16px; }
}