:root {
  --bg-deep: #080b14;
  --bg-surface: #0d1221;
  --bg-card: #131a2e;
  --bg-card-hover: #1a2340;
  --fg: #e8eaf0;
  --fg-muted: #8b92a8;
  --fg-dim: #5a6178;
  --accent: #ff4d4d;
  --accent-glow: rgba(255, 77, 77, 0.15);
  --gold: #ffd700;
  --gold-muted: rgba(255, 215, 0, 0.12);
  --coral: #ff6b6b;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #ff6060;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 77, 77, 0.3);
}

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

.hero-inner {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold-muted);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Hero CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.hero-btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 24px rgba(255, 77, 77, 0.3);
}

.hero-btn-primary:hover {
  background: #ff6060;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 77, 77, 0.4);
}

.hero-btn-icon {
  font-size: 20px;
}

.hero-btn-secondary {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.hero-btn-secondary:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ===== SECTIONS SHARED ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===== AGENTS ===== */
.agents {
  padding: 120px 0;
  background: var(--bg-surface);
}

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

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.agent-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 77, 77, 0.15);
  transform: translateY(-2px);
}

.agent-card-featured {
  border-color: rgba(255, 77, 77, 0.3);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 77, 77, 0.05) 100%);
}

.agent-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.agent-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-stack {
  font-size: 12px;
  color: var(--fg-dim);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 100px;
  display: inline-block;
}

/* ===== PLAYBOOK ===== */
.playbook {
  padding: 120px 0;
  background: var(--bg-deep);
}

.playbook-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.playbook-step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.playbook-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 77, 77, 0.15);
  line-height: 1;
  min-width: 100px;
}

.step-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ===== FLYWHEEL ===== */
.flywheel {
  padding: 120px 0;
  background: var(--bg-surface);
  text-align: center;
}

.flywheel .section-label,
.flywheel .section-title {
  text-align: center;
}

.flywheel .section-title {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.flywheel-visual {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 64px;
}

.flywheel-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.flywheel-node {
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
}

.node-top { top: -8px; left: 50%; }
.node-right { top: 50%; left: calc(100% + 8px); }
.node-bottom { top: calc(100% + 8px); left: 50%; }
.node-left { top: 50%; left: -8px; }

.node-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.node-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}

.flywheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flywheel-center-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.flywheel-tiers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  min-width: 200px;
}

.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tier-arrow {
  font-size: 24px;
  color: var(--fg-dim);
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(255, 77, 77, 0.03) 100%);
}

.manifesto-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.manifesto-text {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-highlight {
  color: var(--fg);
  font-weight: 500;
  font-size: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  text-align: left;
  margin: 32px 0;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeInUp 0.6s ease both; }
.hero-title { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-lede { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-cta-row { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-stats { animation: fadeInUp 0.6s ease 0.4s both; }

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

  .hero-cta-row {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

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

  .playbook-step {
    flex-direction: column;
    gap: 16px;
  }

  .step-number {
    font-size: 40px;
    min-width: auto;
  }

  .flywheel-visual {
    width: 260px;
    height: 260px;
  }

  .flywheel-tiers {
    flex-direction: column;
    align-items: center;
  }

  .tier-arrow {
    transform: rotate(90deg);
  }

  .tier {
    width: 100%;
    max-width: 300px;
  }

  .manifesto-highlight {
    font-size: 17px;
  }

  .nav-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .stat-number {
    font-size: 36px;
  }
}