/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --border: #222222;
  --fg: #f0f0f0;
  --fg-dim: #888;
  --fg-muted: #555;
  --accent: #00e5ff;
  --accent-dim: #00e5ff33;
  --green: #00d97e;
  --red: #ff4d4d;
  --yellow: #ffd60a;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d0d0dee;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

/* === HERO === */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: left;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.badge-sep { color: var(--fg-muted); font-size: 12px; }
.badge-text { color: var(--fg-dim); font-size: 13px; }

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-sub code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero-actions { margin-bottom: 28px; }

.code-block {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius);
  letter-spacing: 0;
}

.code-block.large { font-size: 16px; padding: 14px 22px; }

.code-dim { color: var(--fg-muted); margin-right: 8px; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.proof-sep { color: var(--fg-muted); }

/* === HERO EMAIL CAPTURE === */
.hero-capture {
  margin-top: 20px;
}

.capture-form { width: 100%; }

.capture-row {
  display: flex;
  gap: 8px;
  max-width: 520px;
}

.capture-row input[type="email"] {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.capture-row input[type="email"]:focus {
  border-color: var(--accent);
}

.capture-row input[type="email"]::placeholder {
  color: var(--fg-muted);
}

.capture-row button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.capture-row button:hover { opacity: 0.85; }
.capture-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.capture-msg {
  margin-top: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  min-height: 20px;
}

.capture-msg.success { color: var(--green); }
.capture-msg.error   { color: var(--red); }

/* === FOOTER CTA === */
.footer-cta {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-elevated);
}

.footer-cta h3 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-cta h3 .accent { color: var(--accent); }

.footer-cta p {
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta .capture-row { margin: 0 auto; max-width: 480px; }

.footer-capture-msg {
  margin-top: 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  min-height: 20px;
}

.footer-capture-msg.success { color: var(--green); }
.footer-capture-msg.error   { color: var(--red); }

/* === DEMO SECTION === */
.demo-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.demo-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px #00000055, 0 0 0 1px #ffffff05;
}

.demo-titlebar {
  background: #1e1e1e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.demo-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.demo-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
  flex: 1;
}

.demo-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms {
  font-size: 11px;
  color: var(--fg-dim);
}

.demo-body {
  display: flex;
  height: 380px;
}

.demo-sidebar {
  width: 220px;
  border-right: 1px solid var(--border);
  padding: 12px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-item {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.1s;
}

.sidebar-item:hover { background: #1a1a1a; }
.sidebar-item.active { background: var(--accent-dim); }

.method {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  width: 36px;
  text-align: center;
}

.method.get { background: #00d97e22; color: var(--green); }
.method.post { background: #0066ff22; color: #4d9fff; }
.method.put { background: #ffd60a22; color: var(--yellow); }

.path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  flex-shrink: 0;
}

.tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.demo-code {
  flex: 1;
  padding: 16px;
  overflow: auto;
}

.code-line {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  gap: 12px;
}

.line-num { color: var(--fg-muted); min-width: 20px; user-select: none; }
.key { color: #4ec9b0; }
.val { color: #ce9178; }
.gap-line { height: 10px; }

.demo-metrics {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.metric {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
}

.metric:last-child { border-right: none; }

.metric-label { display: block; font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; font-family: var(--font-mono); }
.metric-val { font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.metric-val.accent { color: var(--accent); }
.metric-val.ok { color: var(--green); }

.demo-caption {
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 16px;
  font-family: var(--font-mono);
}

/* === SHARED SECTION STYLES === */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-headline .accent { color: var(--accent); }

.section-sub {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 48px;
}

/* === FEATURES === */
.features {
  background: var(--bg-elevated);
  padding: 100px 24px;
}

.features .section-label,
.features .section-headline,
.features .section-sub {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.features .section-label { margin-bottom: 16px; }

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-card:hover { background: #1e1e1e; }

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

.feature-card p em { font-style: italic; color: var(--fg); }

.feature-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* === HOW IT WORKS === */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: left;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}

.step-content h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-connector {
  width: 40px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.cli-demo {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.cli-line { display: flex; gap: 0; }
.cli-prompt { color: var(--accent); margin-right: 10px; }
.cli-cmd { color: var(--fg); }
.cli-line.dim { color: var(--fg-muted); }
.cli-line.accent { color: var(--accent); margin-top: 4px; }

/* === TESTIMONIALS === */
.testimonials {
  background: var(--bg-elevated);
  padding: 100px 24px;
}

.testimonials .section-label,
.testimonials .section-headline,
.testimonials-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials .section-label { margin-bottom: 16px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}

.testimonial p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial p::before { content: '\201C'; }
.testimonial p::after { content: '\201D'; }

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--font-mono);
}

.testimonial-source {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.closing .section-headline {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
}

.closing p {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
}

.closing-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closing-note { font-size: 13px; color: var(--fg-muted); font-family: var(--font-mono); }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 12px; font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

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

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.footer-yc {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .hero { padding: 60px 20px 60px; }
  .hero-headline { font-size: 36px; }
  
  .demo-sidebar { display: none; }
  .demo-body { height: 280px; }
  
  .features-grid { grid-template-columns: 1fr; }
  
  .steps { flex-direction: column; align-items: flex-start; }
  .step-connector { display: none; }
  
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 8px; }
}