:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #181824;
  --fg: #e8e8ef;
  --fg-muted: #8888a0;
  --fg-dim: #555570;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-bright: #60a5fa;
  --green: #22c55e;
  --red: #ef4444;
  --border: #2a2a3a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Hero ── */
.hero {
  padding: 120px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #8888a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-bright);
}

.stat-label {
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── Problem ── */
.problem {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.problem-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.problem-label,
.features-label,
.how-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.problem h2,
.features h2,
.how h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.problem-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Features ── */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: none;
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── How / Comparison ── */
.how {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.how-desc {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.how-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.how-col {
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--border);
}

.how-old {
  background: var(--bg-card);
}

.how-new {
  background: var(--accent-glow);
  border-color: rgba(59, 130, 246, 0.3);
}

.how-col-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.how-old .how-col-label {
  color: var(--fg-dim);
}

.how-new .how-col-label {
  color: var(--accent-bright);
}

.how-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-col li {
  font-size: 15px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.how-old li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 12px;
}

.how-new li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 14px;
}

/* ── Closing ── */
.closing {
  padding: 120px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #8888a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-dim);
}

/* ── Demo Section ── */
.demo {
  padding: 100px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.demo-inner {
  max-width: 760px;
  margin: 0 auto;
}

.demo-header {
  margin-bottom: 48px;
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--green);
  display: block;
  margin-bottom: 16px;
}

.demo-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #8888a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
}

.demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 32px;
}

.demo-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.demo-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 14px;
  transition: border-color 0.2s ease;
}

.demo-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.demo-input-icon {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-dim);
  margin-right: 10px;
  flex-shrink: 0;
}

.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px 0;
  width: 100%;
}

.demo-input::placeholder {
  color: var(--fg-dim);
}

.demo-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-btn:hover:not(:disabled) {
  background: #2563eb;
}

.demo-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.demo-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.demo-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-hint {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 12px;
  font-family: var(--font-mono);
}

/* Output */
.demo-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-bright);
  padding: 8px 0;
}

.demo-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

.demo-analysis {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-analysis-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-analysis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--fg-dim);
}

.demo-analysis-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.demo-pain {
  color: #f59e0b;
}

.demo-email-card {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.demo-email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
}

.demo-email-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent-bright);
}

.demo-copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.demo-email-subject-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.demo-email-field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  flex-shrink: 0;
}

.demo-email-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.demo-email-body-wrap {
  padding: 20px;
  min-height: 80px;
}

.demo-email-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
  white-space: pre-wrap;
  display: inline;
}

.demo-cursor {
  display: inline;
  color: var(--accent-bright);
  font-weight: 300;
  animation: blink 0.9s step-start infinite;
}

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

/* Waitlist CTA */
.demo-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.demo-cta-lead {
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.demo-cta-form {
  display: flex;
  gap: 10px;
}

.demo-cta-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.demo-cta-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.demo-cta-input::placeholder {
  color: var(--fg-dim);
}

.demo-cta-submit {
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.demo-cta-submit:hover:not(:disabled) {
  background: #16a34a;
}

.demo-cta-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.demo-cta-fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-mono);
}

/* Error */
.demo-error {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
  padding: 12px 0;
  font-family: var(--font-mono);
}

.demo-error-icon {
  font-size: 16px;
}

/* ── Hero inline demo box ── */
.hero-demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
}

.hero-demo-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}

.hero-demo-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.hero-demo-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  transition: border-color 0.2s ease;
}

.hero-demo-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.hero-demo-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-dim);
  margin-right: 8px;
  flex-shrink: 0;
}

.hero-demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 0;
  width: 100%;
}

.hero-demo-input::placeholder {
  color: var(--fg-dim);
}

.hero-demo-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-demo-btn:hover:not(:disabled) {
  background: #2563eb;
}

.hero-demo-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-demo-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-demo-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.hero-demo-hint {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 10px;
  font-family: var(--font-mono);
}

.hero-demo-output {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.hero-demo-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-demo-email-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.hero-demo-email-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  display: inline;
}

.hero-demo-cursor {
  display: inline;
  color: var(--accent-bright);
  animation: blink 0.9s step-start infinite;
}

.hero-demo-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  font-family: var(--font-mono);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
  }

  .hero-demo-row {
    flex-direction: column;
  }

  .hero-demo-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    flex-direction: column;
    gap: 16px;
  }

  .how-comparison {
    grid-template-columns: 1fr;
  }

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

  .demo-input-row {
    flex-direction: column;
  }

  .demo-btn {
    width: 100%;
    justify-content: center;
  }

  .demo-cta-form {
    flex-direction: column;
  }

  .demo-cta-submit {
    width: 100%;
  }
}