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

:root {
  --bg: #0e0e16;
  --surface: #16162a;
  --border: rgba(255,255,255,0.06);
  --accent: #ff5757;
  --accent-dim: rgba(255,87,87,0.12);
  --text: #f0f0f5;
  --text-dim: rgba(240,240,245,0.5);
  --text-mid: rgba(240,240,245,0.75);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(14,14,22,0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.hero-bg-texture {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(255,87,87,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* PROOF */
.proof {
  padding: 96px 48px;
  border-top: 1px solid var(--border);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.proof-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

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

.proof-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.proof-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.proof-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* SECTION SHARED */
.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 600px;
}

/* HOW */
.how {
  padding: 96px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}

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

.step-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,87,87,0.15);
  letter-spacing: -2px;
  display: block;
  margin-bottom: 20px;
}

.step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* COMPARISON */
.comparison {
  padding: 96px 48px;
}

.comparison-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child {
  border-bottom: none;
}

.comp-header {
  background: rgba(255,255,255,0.03);
  padding: 16px 28px;
}

.comp-col-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.comp-col-label.comp-highlight {
  color: var(--accent);
}

.comp-metric {
  font-size: 14px;
  color: var(--text-dim);
}

.comp-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.comp-val.comp-green {
  color: #4ade80;
}

.comparison-footnote {
  font-size: 12px;
  color: var(--text-dim);
}

/* PRICING */
.pricing {
  padding: 96px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pricing-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  max-width: 480px;
}

.pricing-tier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.tier-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
}

.price-period {
  font-size: 18px;
  color: var(--text-dim);
}

.tier-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}

.pricing-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* CLOSING */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

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

.closing-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

/* FOOTER */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* DEMO */
.demo {
  padding: 96px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.demo-subhead {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  max-width: 760px;
}

.demo-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.demo-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

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

.demo-input:focus {
  border-color: rgba(255,87,87,0.4);
}

.demo-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.demo-btn:hover { opacity: 0.88; }
.demo-btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

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

.demo-output-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.demo-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.demo-output-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.demo-timer {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

.demo-output {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  min-height: 80px;
}

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255,87,87,0.07);
  border-top: 1px solid rgba(255,87,87,0.15);
  flex-wrap: wrap;
}

.demo-cta-text {
  font-size: 14px;
  color: var(--text-mid);
}

.demo-cta-stat {
  margin-right: 4px;
}

.demo-cta-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.demo-cta-btn:hover { opacity: 0.88; }

.demo-error {
  background: rgba(255,87,87,0.1);
  border: 1px solid rgba(255,87,87,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: #ff8888;
  margin-bottom: 16px;
}

.demo-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .hero { padding: 100px 24px 60px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-sep { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .comparison, .how, .proof, .pricing, .closing, .demo { padding: 64px 24px; }
  .nav { padding: 0 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .comp-row { padding: 14px 20px; }
  .demo-input-row { flex-direction: column; }
  .demo-btn { width: 100%; justify-content: center; }
  .demo-card { padding: 24px; }
  .demo-cta { flex-direction: column; align-items: flex-start; }
}