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

:root {
  --midnight: #0f1b2d;
  --midnight-light: #162338;
  --surface: #1a2d47;
  --teal: #06d3b8;
  --teal-dim: rgba(6, 211, 184, 0.15);
  --teal-glow: rgba(6, 211, 184, 0.4);
  --cream: #fafaf7;
  --cream-dark: #f0f0eb;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --green: #34d399;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(6, 211, 184, 0.3);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 64px 100px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 90vh;
}

.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  width: fit-content;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal-glow);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.hero-headline em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--teal);
  color: var(--midnight);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--text-primary); }

/* === PAYMENT MONITOR === */
.hero-right { display: flex; justify-content: flex-end; }

.payment-monitor {
  background: var(--midnight-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(6,211,184,0.08) inset;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.monitor-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.stripe-icon {
  width: 22px; height: 22px;
  background: #635bff;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.live-badge {
  background: var(--teal-dim);
  border: 1px solid var(--border-accent);
  color: var(--teal);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 4px;
}

.monitor-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.stat-row.highlight { border-color: rgba(6,211,184,0.25); background: var(--teal-dim); }

.stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); font-family: 'DM Sans', sans-serif; }
.stat-value.pulse { color: var(--cream); }
.stat-value.recovered { color: var(--teal); }

.divider { height: 1px; background: var(--border); margin: 4px 0; }

.failure-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600; padding: 0 4px;
}

.failure-list { display: flex; flex-direction: column; gap: 6px; }

.failure-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  animation: row-appear 0.4s ease-out backwards;
}
.failure-row:nth-child(1) { animation-delay: 0.1s; }
.failure-row:nth-child(2) { animation-delay: 0.25s; }
.failure-row:nth-child(3) { animation-delay: 0.4s; }
.failure-row:nth-child(4) { animation-delay: 0.55s; }
@keyframes row-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.failure-row.recovering { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.05); }
.failure-row.recovered-inline { border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.05); }
.failure-row.warning { border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.05); }

.failure-left { display: flex; align-items: center; gap: 10px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px rgba(251,191,36,0.6); }
.status-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(52,211,153,0.6); }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 6px rgba(251,146,60,0.6); }

.customer-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.failure-reason { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.amount { font-size: 14px; font-weight: 700; color: var(--text-secondary); font-family: 'DM Sans', sans-serif; }
.recovered-amount { color: var(--green); }

.monitor-footer {
  display: flex; justify-content: space-around;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.footer-label { font-size: 11px; color: var(--text-muted); }
.footer-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.footer-value.green { color: var(--green); }

/* === MANIFESTO === */
.manifesto {
  background: var(--cream);
  padding: 100px 64px;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,211,184,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-inner { max-width: 720px; margin: 0 auto; }

.manifesto-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); font-weight: 600; margin-bottom: 20px;
}
.manifesto-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--midnight);
  margin-bottom: 28px;
}
.manifesto-body {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #4a5568;
  margin-bottom: 48px;
}
.manifesto-stat {
  display: flex; align-items: baseline; gap: 16px;
  padding: 24px 28px;
  background: var(--midnight);
  border-radius: 12px;
  width: fit-content;
}
.manifesto-number {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
}
.manifesto-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
  line-height: 1.5;
}

/* === HOW IT WORKS === */
.howitworks {
  background: var(--midnight);
  padding: 100px 64px;
}
.howitworks-inner { max-width: 1000px; margin: 0 auto; }

.section-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); font-weight: 600; margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 64px;
  line-height: 1.15;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 32px 28px;
  background: var(--midnight-light);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.step-connector {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--teal) 0%, transparent 100%);
  margin: 50px 0 0;
  flex-shrink: 0;
}
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  opacity: 0.7;
}
.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === STATS === */
.stats {
  background: var(--surface);
  padding: 80px 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.stat-block { flex: 1; text-align: center; padding: 20px; }
.stat-divider-v {
  width: 1px; height: 80px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-figure {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.stat-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* === CLOSING === */
.closing {
  background: var(--midnight);
  padding: 120px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,211,184,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 760px; margin: 0 auto; position: relative; }
.closing-headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.closing-highlight { color: var(--teal); font-style: italic; }
.closing-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  background: var(--midnight-light);
  border-top: 1px solid var(--border);
  padding: 48px 64px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-tagline { font-size: 0.9rem; color: var(--text-secondary); }
.footer-meta { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 60px 32px 80px; }
  .hero-right { justify-content: flex-start; }
  .payment-monitor { max-width: 100%; }
  .steps { flex-direction: column; gap: 16px; }
  .step-connector { width: 40px; height: 20px; margin: 0; background: linear-gradient(180deg, var(--teal) 0%, transparent 100%); }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider-v { width: 60px; height: 1px; }
  .manifesto, .howitworks, .stats, .closing, .footer { padding-left: 32px; padding-right: 32px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-meta { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .manifesto-number { font-size: 2.2rem; }
  .stat-figure { font-size: 2rem; }
}