:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --fg: #e8e6e3;
  --fg-muted: #8a8697;
  --fg-dim: #5a5669;
  --accent: #00e5a0;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-soft: #00c98c;
  --warning: #f5a623;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== HERO ========== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 780px;
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* ========== STATS BAR ========== */
.stats-bar {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 80px auto;
  max-width: 720px;
}

.stat-item {
  flex: 1;
  background: var(--bg-surface);
  padding: 32px 20px;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.stat-item .label {
  font-size: 13px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* ========== PHILOSOPHY ========== */
.philosophy {
  padding: 100px 0;
  position: relative;
}

.philosophy::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.philosophy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 48px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.principle {
  background: var(--bg-surface);
  padding: 40px 36px;
}

.principle-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.principle p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ========== ARCHITECTURE ========== */
.architecture {
  padding: 100px 0;
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.arch-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  position: relative;
}

.agent-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.agent-node {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  transition: border-color 0.3s;
}

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

.agent-node.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.arch-connector {
  text-align: center;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 0;
  position: relative;
}

.arch-connector::before {
  content: '';
  display: block;
  width: 1px;
  height: 16px;
  background: var(--accent);
  margin: 0 auto 4px;
  opacity: 0.4;
}

.arch-hub {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: var(--radius);
  margin-top: 8px;
}

.arch-hub span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.arch-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

.arch-text .highlight {
  color: var(--accent);
  font-weight: 500;
}

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

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.closing p {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.footer-brand span {
  color: var(--fg-dim);
  font-weight: 400;
  font-size: 13px;
  margin-left: 12px;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-bar {
    flex-direction: column;
  }

  .stat-item {
    padding: 24px 20px;
  }

  .hero {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .principle {
    padding: 28px 24px;
  }

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