/* ─── Variables ───────────────────────────────────────────── */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F0EDE6;
  --fg: #0F0F0F;
  --accent: #B4FF00;
  --accent-dark: #8FCC00;
  --secondary: #1A1A2E;
  --muted: #6B6B78;
  --border: #E2DDD6;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ─── Reset & Base ────────────────────────────────────────── */
*, *::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: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 80px 32px 72px;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 120px;
  line-height: 1.4;
}

/* ─── Agent Widget ─────────────────────────────────────────── */
.agent-widget {
  background: var(--secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,15,15,0.18), 0 0 0 1px rgba(255,255,255,0.05);
}

.widget-header {
  background: #12122A;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.widget-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.widget-dot.green { background: #4CAF50; }
.widget-dot.yellow { background: #FFC107; }
.widget-dot.red { background: #F44336; }

.widget-title {
  font-family: 'DM Sans', monospace;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.widget-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.msg-row.outgoing {
  align-items: flex-end;
}

.bubble {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 88%;
  line-height: 1.4;
}

.incoming-bubble {
  background: #2A2A4A;
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 3px;
}

.outgoing-bubble {
  background: var(--accent);
  color: #0F0F0F;
  font-weight: 600;
  border-bottom-right-radius: 3px;
}

.system-bubble {
  background: #1E1E38;
  color: var(--accent);
  border: 1px solid rgba(180,255,0,0.2);
  font-size: 0.75rem;
  font-weight: 500;
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  background: rgba(180,255,0,0.08);
  border: 1px solid rgba(180,255,0,0.15);
  border-radius: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Proof / Stats Bar ─────────────────────────────────────── */
.proof {
  background: var(--secondary);
  padding: 56px 32px;
}

.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.proof-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 32px;
}

.proof-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.proof-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 48px;
}

.proof-item:first-child { padding-left: 0; }

.proof-big {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-small {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

.proof-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ─── Features ──────────────────────────────────────────────── */
.features {
  padding: 96px 32px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  padding: 40px 40px 40px 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: #F5F1EB;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F0F0F;
  flex-shrink: 0;
}

.feature-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── How It Works ─────────────────────────────────────────── */
.how {
  background: var(--bg-alt);
  padding: 96px 32px;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 56px;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(180,255,0,0.15);
  border: 1px solid rgba(180,255,0,0.25);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  color: var(--border);
  flex-shrink: 0;
  margin-top: 16px;
}

/* ─── Closing ───────────────────────────────────────────────── */
.closing {
  padding: 112px 32px;
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.closing-statement {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.5;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  max-width: 800px;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--secondary);
  padding: 56px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
  max-width: 440px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 16px 20px; }
  .nav-tagline { display: none; }

  .hero { padding: 56px 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { gap: 28px; }
  .hero-sub { max-width: 100%; }

  .proof { padding: 48px 20px; }
  .proof-grid { flex-direction: column; gap: 32px; }
  .proof-divider { width: 40px; height: 1px; }
  .proof-item { padding: 0; }

  .features { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 28px; }

  .how { padding: 64px 20px; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { transform: rotate(90deg); }

  .closing { padding: 72px 20px; }

  .footer { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.25rem; }
  .proof-big { font-size: 2rem; }
  .closing-headline { font-size: 1.75rem; }
}
