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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-terminal: #0c0c0c;
  --cyan: #00d4ff;
  --cyan-dim: #0090aa;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --white: #f0f0f0;
  --gray: #888888;
  --gray-dim: #555555;
  --border: #222222;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --font: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Menlo', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo { font-family: var(--font); font-weight: 700; color: var(--cyan); font-size: 1.1em; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--gray); font-size: 0.9em; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--cyan); color: var(--bg) !important; padding: 6px 16px;
  border-radius: 6px; font-weight: 600; font-size: 0.85em;
}
.nav-cta:hover { background: #33ddff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5em; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,212,255,0.04) 0%, transparent 50%);
}
.hero-content { position: relative; text-align: center; }
.hero-ascii {
  font-family: var(--font);
  font-size: clamp(0.55rem, 2vw, 1.1rem);
  color: var(--cyan);
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(0,212,255,0.3);
}
.hero-tagline {
  font-size: clamp(1.3em, 3vw, 1.8em);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-sub {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05em;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  font-family: var(--font-body);
  font-size: 1em;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--cyan); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: #33ddff; text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--cyan); border: 1px solid var(--cyan-dim); }
.btn-secondary:hover { background: var(--cyan-glow); text-decoration: none; }

/* ── Terminal ── */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 80px rgba(0,212,255,0.06);
}
.hero-terminal { max-width: 680px; margin: 0 auto; }
.demo-terminal { max-width: 760px; margin: 0 auto; }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }
.terminal-title { font-family: var(--font); font-size: 0.75em; color: var(--gray-dim); margin-left: 8px; }
.terminal-body {
  font-family: var(--font);
  font-size: 0.85em;
  line-height: 1.7;
  padding: 20px 24px;
  min-height: 200px;
  color: var(--white);
  overflow-x: auto;
}
.terminal-body .prompt { color: var(--cyan); }
.terminal-body .agent { color: var(--cyan); font-weight: bold; }
.terminal-body .tool { color: var(--gray-dim); font-style: italic; }
.terminal-body .output { color: var(--gray); }
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 1em;
  background: var(--cyan); margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-inline {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0;
}
.terminal-inline code { background: none; padding: 0; font-size: 1em; }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-dark { background: #080808; }
.section-title {
  font-size: clamp(1.5em, 3.5vw, 2.2em);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.section-sub { color: var(--gray); text-align: center; margin-bottom: 48px; font-size: 1.05em; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--cyan-dim); transform: translateY(-2px); }
.feature-icon { font-size: 2em; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15em; margin-bottom: 8px; color: var(--white); }
.feature-card p { color: var(--gray); font-size: 0.95em; }

/* ── Steps ── */
.steps { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; flex: 1; min-width: 240px; max-width: 320px; }
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2em;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.2em; }
.step p { color: var(--gray); font-size: 0.95em; }
.step code { font-size: 0.85em; }

/* ── Capabilities ── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.cap-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.cap-group h3 { font-size: 1em; margin-bottom: 12px; }
.cap-group ul { list-style: none; }
.cap-group li { padding: 4px 0; color: var(--gray); font-size: 0.9em; }
.cap-group li code { font-size: 0.85em; }

/* ── Compare ── */
.compare-table { overflow-x: auto; }
.compare-table table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9em;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th { color: var(--gray-dim); font-weight: 600; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; }
.compare-table th.highlight { color: var(--cyan); }
.compare-table td.highlight { color: var(--white); font-weight: 500; }
.compare-table td.yes { color: var(--green); }
.compare-table td.no { color: var(--gray-dim); }
.compare-table td.partial { color: var(--yellow); }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Architecture ── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.arch-label { color: var(--cyan); font-family: var(--font); font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.arch-value { font-weight: 600; font-size: 1.05em; margin-bottom: 6px; }
.arch-desc { color: var(--gray); font-size: 0.9em; }

/* ── CTA ── */
.cta-section { text-align: center; }
.cta-terminal {
  display: inline-block;
  background: var(--bg-terminal);
  border: 1px solid var(--cyan-dim);
  border-radius: 10px;
  padding: 20px 32px;
  margin: 32px 0 16px;
  box-shadow: 0 0 40px var(--cyan-glow);
}
.cta-terminal code { background: none; padding: 0; font-size: 1.1em; color: var(--cyan); }
.cta-sub { color: var(--gray); margin-bottom: 24px; }
.cta-links { display: flex; gap: 24px; justify-content: center; }
.cta-links a { color: var(--gray); font-size: 0.95em; }
.cta-links a:hover { color: var(--cyan); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font); font-weight: 700; color: var(--cyan); }
.footer-tagline { color: var(--gray-dim); font-size: 0.9em; margin-left: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--gray-dim); font-size: 0.9em; }
.footer-links a:hover { color: var(--white); }

/* ── Reveal Animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-ascii { font-size: 0.45rem; }
  .hero-terminal, .demo-terminal { margin-left: -12px; margin-right: -12px; border-radius: 0; }
  .terminal-body { padding: 16px; font-size: 0.75em; }
  .steps { flex-direction: column; align-items: center; }
  .compare-table { font-size: 0.8em; }
  .footer-inner { flex-direction: column; text-align: center; }
}