/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-dark: #08080d;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #34d399;
  --border: #1e1e2e;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a5b4fc; }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Pipeline ── */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: visible;
  padding-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pipeline-step {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.pipeline-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.pipeline-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-timing {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.pipeline-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  color: var(--text-muted);
  padding-top: 60px;
  flex-shrink: 0;
}

.code-block {
  margin-top: 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
}

/* ── Bar Comparisons ── */
.bar-comparisons {
  max-width: 680px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bar-metric {
  font-size: 0.95rem;
  font-weight: 600;
}

.bar-delta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}

.bar-delta-neutral {
  color: var(--text-muted);
}

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

.bar-track {
  height: 32px;
  position: relative;
}

.bar {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  white-space: nowrap;
}

.bar-comparisons.visible .bar {
  width: var(--pct);
}

.bar span {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--mono);
}

.baseline-bar {
  background: rgba(136, 136, 160, 0.2);
  border: 1px solid rgba(136, 136, 160, 0.15);
}
.baseline-bar span { color: var(--text-muted); }

.si-bar {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.si-bar span { color: var(--accent-light); }

.si-bar-full {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.si-bar-full span { color: var(--green); }

/* ── Model Cost Cards ── */
.model-costs {
  max-width: 680px;
  margin: 48px auto 32px;
  text-align: center;
}

.model-costs h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.model-costs-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

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

.model-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

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

.model-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.model-baseline {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.model-save {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

.model-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

.delta-good {
  color: var(--green);
  font-weight: 600;
}

.results-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Terminal dots (shared) ── */
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.5);
  transition: border-color 0.3s, transform 0.3s;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
  background: var(--bg-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Benchmark Section ── */
.benchmark-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.bench-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

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

.bench-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bench-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Demo Terminal ── */
.demo-wrapper {
  margin-bottom: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.demo-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.demo-terminal {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0b0b12;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.demo-terminal .terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(30, 30, 46, 0.6);
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.demo-body {
  padding: 16px;
  min-height: 120px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.demo-body::-webkit-scrollbar {
  width: 4px;
}
.demo-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.demo-line {
  transition: opacity 0.2s ease;
  white-space: pre;
}

.demo-cmd {
  color: var(--green);
  font-weight: 500;
}

.demo-cmd::after {
  content: '▊';
  animation: blink-cursor 0.7s step-end infinite;
  color: var(--accent-light);
  margin-left: 1px;
}

.demo-out {
  color: var(--text-muted);
}

.demo-head {
  color: var(--accent-light);
  font-weight: 600;
}

.demo-file {
  color: #e2e8f0;
  font-weight: 600;
}

.demo-func {
  color: var(--text-muted);
}

.demo-blank {
  height: 0.5em;
}

.demo-green {
  color: var(--green);
  font-weight: 600;
}

.demo-stat {
  color: var(--text-muted);
}

.demo-save {
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
}

.demo-claude-think {
  color: #c4b5fd;
  font-style: italic;
}

.demo-claude-tool {
  color: var(--accent-light);
  font-weight: 600;
}

.demo-si-highlight {
  color: #f87171;
  font-weight: 700;
}

.demo-claude-sub {
  color: var(--green);
  font-size: 0.78rem;
  opacity: 0.9;
}

.demo-claude-diff {
  color: var(--green);
  opacity: 0.8;
}

.demo-claude-pass {
  color: var(--green);
  font-weight: 600;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

.demo-replay {
  margin-top: 16px;
  font-size: 0.85rem;
}

/* ── Bar Legend ── */
.bar-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-swatch {
  width: 16px;
  height: 10px;
  border-radius: 3px;
}

.baseline-swatch {
  background: rgba(136, 136, 160, 0.3);
  border: 1px solid rgba(136, 136, 160, 0.2);
}

.si-swatch {
  background: rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* ── Waitlist / CTA Section ── */
.section-cta {
  text-align: center;
  padding: 80px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.section-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.form-fields input,
.form-fields select,
.form-fields textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-fields input::placeholder,
.form-fields textarea::placeholder {
  color: var(--text-muted);
}

.form-fields select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888a0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-fields select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-fields input:focus,
.form-fields select:focus,
.form-fields textarea:focus {
  border-color: var(--accent);
}

.form-fields textarea {
  resize: vertical;
  min-height: 70px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.waitlist-success {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.waitlist-success p {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

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

.footer-brand {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep { color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.8rem; }

  .section { padding: 60px 0; }

  .pipeline { flex-direction: column; }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding-top: 0;
    justify-content: center;
    width: 100%;
  }

  .model-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .bar-legend { gap: 16px; }

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