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

:root {
  --bg:        #0d1117;
  --surface:   #161b27;
  --surface2:  #1e2538;
  --accent:    #F59E0B;
  --accent2:   #fbbf24;
  --green:     #22c55e;
  --blue:      #3b82f6;
  --text:      #e8eaf0;
  --muted:     #8892a4;
  --border:    rgba(255,255,255,0.07);
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Navbar ────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-head);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Hero Surface / Chat Widget ───────────────────────────────────── */
.hero-surface {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.8rem;
}

.surface-card--lead {
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.08);
}

.sc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

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

.sc-dot--green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.sc-dot--amber   { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.sc-dot--blue    { background: var(--blue); box-shadow: 0 0 6px var(--blue); }

.sc-label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.sc-time {
  color: var(--muted);
  font-size: 0.75rem;
}

.sc-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sc-body--compact {
  gap: 0.4rem;
  padding: 0.75rem 1rem;
}

.sc-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  line-height: 1.5;
}

.sc-msg--inbound {
  background: var(--surface2);
  color: var(--text);
  border-bottom-left-radius: 2px;
}

.sc-msg--agent {
  background: rgba(245,158,11,0.12);
  color: var(--accent2);
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(245,158,11,0.15);
}

.sc-footer {
  padding: 0.5rem 1rem 0.75rem;
}

.sc-status {
  font-size: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green);
}

.sc-event {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.surface-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── Agents Section ───────────────────────────────────────────────── */
.agents {
  padding: 5rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.agents-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.agents-header .section-sub {
  margin: 0 auto;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.agent-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-3px);
}

.agent-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  font-family: var(--font-head);
}

.agent-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.agent-card--lead .agent-icon { background: rgba(34,197,94,0.12); color: var(--green); }
.agent-card--ops .agent-icon  { background: rgba(59,130,246,0.12); color: var(--blue); }
.agent-card--inv .agent-icon  { background: rgba(245,158,11,0.12); color: var(--accent); }
.agent-card--fin .agent-icon  { background: rgba(168,85,247,0.12); color: #a855f7; }

.agent-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.agent-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}

.agent-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Workflow ─────────────────────────────────────────────────────── */
.workflow {
  padding: 5rem 2.5rem;
  background: var(--surface);
}

.workflow-header {
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0;
}

.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  flex: 1;
}

.wf-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(245,158,11,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.wf-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  color: var(--text);
}

.wf-content p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.wf-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), rgba(245,158,11,0.3), var(--border));
  margin-top: 1.8rem;
  min-width: 60px;
}

/* ─── Manifesto ────────────────────────────────────────────────────── */
.manifesto {
  padding: 6rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.manifesto-quote {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.mq-mark {
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 1.5rem;
}

blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  font-style: normal;
  margin-bottom: 1.5rem;
}

.mq-attribution {
  font-size: 1rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
}

/* ─── Closing ─────────────────────────────────────────────────────── */
.closing {
  padding: 5rem 2.5rem 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem 2rem;
  }

  .hero-headline br { display: none; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .surface-cards-row {
    grid-template-columns: 1fr;
  }

  .agents-grid { grid-template-columns: 1fr; }

  .workflow-steps {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .wf-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }

  .wf-step { max-width: 100%; }

  .navbar { padding: 1rem 1.5rem; }

  .agents, .manifesto, .closing { padding: 3rem 1.5rem; }
  .workflow { padding: 3rem 1.5rem; }
}
