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

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-dim: #71717a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 8px;
  --radius-lg: 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;
}

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

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

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

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links a:not(.btn) {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-link-subtle { opacity: 0.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  background: var(--border);
  color: var(--text);
}

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--surface); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover { background: var(--surface); }

.btn-block { width: 100%; }

/* ── Hero ── */
.hero {
  padding: 140px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ── Terminal ── */
.demo {
  padding: 0 0 80px;
}

.terminal {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }

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

.terminal-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

.t-prompt { color: var(--green); }
.t-cmd { color: var(--text); font-weight: 500; }
.t-dim { color: var(--text-dim); }
.t-section { color: var(--text); font-weight: 600; font-size: 0.875rem; }
.t-label { color: var(--accent); font-weight: 500; }
.t-finding { color: var(--yellow); font-weight: 500; }
.t-file { color: var(--text-secondary); }
.t-code { color: var(--green); }
.t-impact { color: var(--green); }
.t-success { color: var(--green); font-weight: 500; }


.r-dim {
  color: var(--text-dim);
}

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

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

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step { position: relative; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Grid & Cards ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Framework tags ── */
.framework-logos {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.framework-tag {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
}

/* ── Pricing ── */
.pricing-grid { align-items: start; }

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}

.price-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.price-features {
  list-style: none;
  margin: 24px 0;
}

.price-features li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Quickstart ── */
.quickstart {
  max-width: 600px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.quickstart-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
}

.quickstart-step .step-num {
  flex-shrink: 0;
}

.quickstart-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 36px;
}

.quickstart-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.quickstart-content .btn {
  margin-bottom: 4px;
}

.quickstart-code {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}

.quickstart-code pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── CTA ── */
.section-cta {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand { flex-shrink: 0; }

.footer-tagline {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

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

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
}

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

.footer-copy {
  margin-top: 48px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .steps,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero { padding: 120px 0 40px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .nav-links a:not(.btn) { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links { gap: 32px; }

  .terminal-body { font-size: 0.6875rem; }
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
