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

:root {
  --bg: #0d0d10;
  --surface: #15161a;
  --surface-hover: #1a1b20;
  --border: #23242a;
  --border-hover: #2e2f37;

  --text: #e4e4e7;
  --text-secondary: #9c9ca6;
  --text-tertiary: #5c5c66;

  --accent: #6366f1;
  --accent-muted: #6366f122;
  --accent-border: #6366f144;

  --success: #22c55e;
  --success-muted: #22c55e1a;

  --danger: #ef4444;
  --danger-muted: #ef44441a;

  --warning: #eab308;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; }

/* HERO */
.hero {
  padding: 9rem 0 5rem;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}
h1.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
h1.hero-title span { color: var(--text-tertiary); }
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--surface); }
.hero-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* TERMINAL DEMO */
.demo-wrap { padding: 1rem 0 5rem; }
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.tdot { width: 9px; height: 9px; border-radius: 50%; }
.tdot.r { background: #ff5f57; }
.tdot.y { background: #febc2e; }
.tdot.g { background: #28c840; }
.terminal-title {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0 auto;
}
.terminal-body { padding: 1.5rem; font-size: 0.8125rem; }
.log-line {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.35rem 0;
  font-family: 'JetBrains Mono', monospace;
}
.log-time { color: var(--text-tertiary); flex-shrink: 0; }
.log-method { color: #818cf8; flex-shrink: 0; width: 3rem; }
.log-path { color: var(--text-secondary); flex: 1; }
.log-status { flex-shrink: 0; font-weight: 600; }
.s-ok { color: var(--success); }
.s-fail { color: var(--danger); }
.s-pending { color: var(--warning); }
.log-divider { border: none; border-top: 1px solid var(--border); margin: 0.6rem 0; }
.log-forward {
  font-size: 0.75rem;
  color: var(--success);
}

/* SECTION SHARED */
.section { padding: 5rem 0; }
.section-eyebrow {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 620px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.65;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
}
.feature {
  background: var(--surface);
  padding: 2rem;
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* STEPS */
.steps { margin-top: 3rem; }
.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--text);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.highlight { border-color: var(--accent-border); }
.popular-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 0.6875rem;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-weight: 600;
}
.plan-name { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 1rem; }
.plan-price { margin-bottom: 1.75rem; }
.plan-price .num { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .per { font-size: 0.875rem; color: var(--text-tertiary); margin-left: 0.3rem; }
.plan-features { flex: 1; margin-bottom: 1.75rem; }
.plan-features div {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.4rem 0; font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5;
}
.plan-features span.check { color: var(--success); flex-shrink: 0; }
.plan-cta {
  width: 100%; text-align: center; padding: 0.7rem;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; text-decoration: none; display: block;
}
.price-card.highlight .plan-cta { background: var(--accent); border-color: var(--accent); color: #fff; }

.enterprise-bar {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--surface);
  margin-top: 1rem;
}
.enterprise-bar a {
  padding: 0.6rem 1.25rem; background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; font-size: 0.8125rem; font-weight: 600; text-decoration: none;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-weight: 700; font-size: 0.9375rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.8125rem;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-note { font-size: 0.8125rem; color: var(--text-tertiary); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 7rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}