:root {
  --bg: #0d0f1a;
  --surface: #151829;
  --surface-2: #1e2135;
  --fg: #f0f2f8;
  --fg-muted: #8891aa;
  --lime: #c8f135;
  --lime-dim: #a8cc2c;
  --border: #252840;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

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

html { font-size: 16px; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tag {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 5rem 1.5rem 4rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text {}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 42ch;
  line-height: 1.65;
}

/* Page mockup */
.hero-visual { display: flex; justify-content: flex-end; }
.page-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,241,53,0.08);
}
.mockup-bar {
  background: var(--surface-2);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.dot:first-child { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.mockup-content { padding: 1.75rem; }
.m-headline {
  height: 20px; width: 65%;
  background: var(--lime);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.m-sub {
  height: 10px; width: 90%;
  background: var(--surface-2);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.m-row { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.m-card {
  flex: 1; height: 60px;
  background: var(--surface-2);
  border-radius: 6px;
}
.m-card-alt { background: rgba(200,241,53,0.12); border: 1px solid rgba(200,241,53,0.2); }
.m-cta {
  height: 28px; width: 50%;
  background: var(--lime);
  border-radius: 6px;
}

/* Stats */
.hero-stats {
  max-width: 1100px;
  margin: 3.5rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 3rem;
}
.stat {}
.stat-val {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* Section eyebrow */
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
}

/* How it works */
.hiw { padding: 5rem 1.5rem; }
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.hiw-step {}
.step-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}
.step-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.step-body { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* Features */
.features { padding: 5rem 1.5rem; background: var(--surface); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feat {}
.feat-icon {
  width: 40px; height: 40px;
  background: rgba(200,241,53,0.1);
  border: 1px solid rgba(200,241,53,0.2);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.feat-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.feat-body { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.65; }

/* Output */
.output { padding: 5rem 1.5rem; }
.output-inner { max-width: 1100px; margin: 0 auto; }
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.out-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}
.out-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--lime);
  color: #0d0f1a;
  margin-bottom: 1rem;
}
.out-badge--lime { background: var(--lime); color: #0d0f1a; }
.out-badge--outline { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.out-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.out-body { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }

/* Closing */
.closing { padding: 6rem 1.5rem 7rem; background: var(--surface); }
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 55ch;
  margin: 0 auto;
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}
.footer-copy { font-size: 0.78rem; color: var(--fg-muted); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--lime);
  color: #0d0f1a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--lime-dim); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Generate page */
.generate-wrap { min-height: 100vh; background: var(--bg); }
.generate-container { max-width: 700px; margin: 0 auto; padding: 4rem 1.5rem; }
.generate-header { margin-bottom: 3rem; }
.generate-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.generate-sub { font-size: 1rem; color: var(--fg-muted); line-height: 1.6; }
.generate-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--lime); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--fg-muted); }
.generate-submit { align-self: flex-start; }
.generate-status { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; font-size: 0.9rem; }
.status-success { background: rgba(200,241,53,0.1); border: 1px solid rgba(200,241,53,0.3); color: var(--lime); }
.status-error { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3); color: #ff8080; }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(13,15,26,0.3);
  border-top-color: #0d0f1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-content: flex-start; }
  .page-mockup { max-width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-div { display: none; }
  .hiw-steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .output-grid { grid-template-columns: 1fr; }
  .closing-headline { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}