@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-dim: #8888a0;
  --fg-muted: #55556a;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --red: #ff4466;
  --amber: #ffaa00;
  --blue: #4488ff;
  --border: #222233;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .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;
  max-width: 800px;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

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

.hero .lede {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--fg-dim);
  max-width: 560px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ===== TERMINAL SECTION ===== */
.terminal-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.r { background: var(--red); }
.terminal-dot.y { background: var(--amber); }
.terminal-dot.g { background: var(--accent); }

.terminal-title {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: auto;
  margin-right: auto;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--fg-dim);
}

.terminal-body .prompt {
  color: var(--accent);
}

.terminal-body .cmd {
  color: var(--fg);
}

.terminal-body .output {
  color: var(--fg-muted);
  padding-left: 1em;
}

.terminal-body .status {
  color: var(--accent);
}

/* ===== AGENTS GRID ===== */
.agents-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 600px;
}

.section-desc {
  color: var(--fg-dim);
  max-width: 500px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

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

.agent-card {
  background: var(--bg-elevated);
  padding: 2rem 1.5rem;
  transition: background 0.2s;
}

.agent-card:hover {
  background: var(--bg-card);
}

.agent-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.agent-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.agent-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.agent-icon.green { background: rgba(0,255,136,0.12); color: var(--accent); }
.agent-icon.blue { background: rgba(68,136,255,0.12); color: var(--blue); }
.agent-icon.red { background: rgba(255,68,102,0.12); color: var(--red); }
.agent-icon.amber { background: rgba(255,170,0,0.12); color: var(--amber); }

/* ===== SPECS ===== */
.specs-section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.spec {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

.spec .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.spec .label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 0.3rem;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  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%);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.closing p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

footer a {
  color: var(--fg-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}