/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --midnight: #0c0f1e;
  --deep-blue: #111827;
  --surface: #1a2035;
  --surface-2: #222840;
  --amber: #f59e0b;
  --amber-dim: #d97706;
  --teal: #06d6a0;
  --off-white: #f8f6f0;
  --text-primary: #f0ece4;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --chat-green: #25d366;
  --chat-bg: #0b1120;
  --radius: 12px;
  --radius-lg: 20px;
}

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

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

body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--midnight); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-blue); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ─── NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,15,30,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text { }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--off-white);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.headline-accent {
  color: var(--amber);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

/* ─── CHAT WIDGET ────────────────────────────────────── */
.hero-widget { }
.chat-window {
  background: var(--chat-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.05);
}
.chat-header {
  background: var(--surface);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.agent-avatar {
  width: 38px; height: 38px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--midnight);
  flex-shrink: 0;
}
.agent-meta { display: flex; flex-direction: column; }
.agent-name { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--off-white); }
.agent-status { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.green { background: var(--teal); }
.chat-body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 340px;
}
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-text {
  max-width: 80%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--surface);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-text {
  background: rgba(245,158,11,0.15);
  color: var(--off-white);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot.resolved .msg-text { background: rgba(6,214,160,0.1); border: 1px solid rgba(6,214,160,0.2); }
.chat-footer {
  padding: 0.6rem 1.2rem;
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-btns { font-size: 0.7rem; color: var(--teal); font-weight: 600; letter-spacing: 0.05em; }

/* ─── STATS STRIP ────────────────────────────────────── */
.stats-strip {
  background: var(--deep-blue);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.35rem;
  max-width: 150px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.06);
}

/* ─── PROBLEM ────────────────────────────────────────── */
.problem {
  padding: 7rem 2rem;
  background: var(--midnight);
}
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--off-white);
  max-width: 680px;
  margin-bottom: 0.75rem;
}
.problem-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 3.5rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: rgba(245,158,11,0.2); }
.problem-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.problem-card h3 {
  font-size: 1rem;
  color: var(--off-white);
  margin-bottom: 0.5rem;
}
.problem-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.problem-cost {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,158,11,0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

/* ─── AGENTS GRID ────────────────────────────────────── */
.agents {
  padding: 7rem 2rem;
  background: var(--deep-blue);
}
.agents-inner { max-width: 1200px; margin: 0 auto; }
.agents-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--off-white);
  max-width: 620px;
  margin-bottom: 0.75rem;
}
.agents-sub { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 3.5rem; }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.agent-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.agent-card:hover { border-color: rgba(245,158,11,0.15); transform: translateY(-2px); }
.agent-card.enterprise { border-color: rgba(6,214,160,0.15); background: linear-gradient(135deg, var(--surface) 0%, rgba(6,214,160,0.03) 100%); }
.agent-icon { font-size: 1.5rem; flex-shrink: 0; }
.agent-body h3 { font-size: 0.95rem; color: var(--off-white); margin-bottom: 0.4rem; }
.agent-body p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1rem; }
.agent-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.agent-price { font-size: 0.75rem; font-weight: 600; color: var(--amber); }
.agent-speed { font-size: 0.7rem; color: var(--teal); font-weight: 500; }

/* ─── PROCESS ─────────────────────────────────────────── */
.process { padding: 7rem 2rem; background: var(--midnight); }
.process-inner { max-width: 1200px; margin: 0 auto; }
.process-headline { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--off-white); max-width: 580px; margin-bottom: 0.75rem; }
.process-sub { font-size: 1rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 3.5rem; }
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step { position: relative; }
.step-number {
  width: 44px; height: 44px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--midnight);
  margin-bottom: 1.25rem;
}
.process-step h3 { font-size: 0.95rem; color: var(--off-white); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── MANIFESTO ──────────────────────────────────────── */
.manifesto { padding: 7rem 2rem; background: var(--deep-blue); }
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-quote {
  border-left: 3px solid var(--amber);
  padding-left: 2rem;
  margin-bottom: 3.5rem;
}
.quote-text { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-style: italic; color: var(--off-white); line-height: 1.5; }
.manifesto-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.m-stat {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 2rem;
}
.m-number { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--teal); display: block; }
.m-label { font-size: 0.85rem; color: var(--text-secondary); display: block; margin-top: 0.4rem; }

/* ─── CLOSING ─────────────────────────────────────────── */
.closing { padding: 7rem 2rem; background: var(--midnight); text-align: center; }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--off-white); margin-bottom: 1rem; }
.closing-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.7; }
.closing-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cta-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.cta-slots { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.slot-dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; display: inline-block; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer { padding: 2rem; background: var(--deep-blue); border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--amber); letter-spacing: 0.08em; }
.footer-tagline { font-size: 0.75rem; color: var(--text-muted); margin-left: 1rem; }
.footer-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-widget { display: none; }
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .stat-item { padding: 0 1.5rem; }
  .stat-divider { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .manifesto-stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .process-timeline { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-tagline { display: none; }
}