:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ec;
  --fg-muted: #8a8a9a;
  --fg-dim: #55556a;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --accent-glow: rgba(245, 166, 35, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(245, 166, 35, 0.2);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hex-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.hex-pattern svg {
  width: 100%;
  height: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  margin-bottom: 32px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

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

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* ============ AGENTS ============ */
.agents {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agents h2,
.how h2,
.scale h2,
.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-intro {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 56px;
}

.agent-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 12px;
}

.agent-card {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.agent-card:hover {
  border-color: var(--border-accent);
}

.agent-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
}

.agent-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agent-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.agent-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ============ HOW ============ */
.how {
  padding: 100px 24px;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.how-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.how-text strong {
  color: var(--fg);
}

.how-text em {
  color: var(--accent);
  font-style: normal;
}

.how-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-col {
  padding: 24px;
  border-radius: var(--radius);
}

.compare-col.old {
  background: rgba(255, 50, 50, 0.04);
  border: 1px solid rgba(255, 50, 50, 0.1);
}

.compare-col.new {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.compare-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--fg-dim);
}

.compare-col.new h4 {
  color: var(--accent);
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-col li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.compare-col.old li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: rgba(255, 50, 50, 0.4);
}

.compare-col.new li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============ SCALE ============ */
.scale {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.platform-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.platform-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.platform-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ============ CLOSING ============ */
.closing {
  padding: 120px 24px;
  text-align: center;
}

.closing-content {
  max-width: 720px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing-text {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-stats {
    gap: 32px;
  }

  .agent-pipeline {
    flex-direction: column;
    gap: 12px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    justify-content: center;
    padding: 4px 0;
  }

  .agent-card {
    min-width: auto;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how-comparison {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-inner {
    padding: 0 20px;
  }

  .agents,
  .how,
  .scale {
    padding: 64px 20px;
  }

  .closing {
    padding: 80px 20px;
  }
}