/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1e1e2a;
  --border: #2a2a3a;
  --accent: #00c8a0;
  --accent-hover: #00e0b4;
  --text: #f0f0f5;
  --muted: #8888a8;
  --green: #22c55e;
  --radius: 12px;
  --max-w: 900px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.nav .logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #00c8a0, #00e0b4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,200,160,0.12), transparent);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 24px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}


h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 540px;
}

/* ── Email capture form ────────────────────────────────── */
.capture-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 14px;
}

.capture-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.capture-form input[type="email"]:focus { border-color: var(--accent); }
.capture-form input[type="email"]::placeholder { color: var(--muted); }

.capture-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.capture-form button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.capture-form button:active { transform: translateY(0); }

.incentive {
  font-size: 13px;
  color: var(--muted);
}

/* ── Demo Player ────────────────────────────────────────── */
.demo-section {
  padding: 0 24px 64px;
  background: transparent;
}

.demo-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,200,160,0.2);
  box-shadow: 0 0 60px rgba(0,200,160,0.1);
}

/* ── How it works ──────────────────────────────────────── */
.how-it-works {
  padding: 48px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 60px;
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.step-arrow {
  font-size: 18px;
  color: var(--border);
  flex-shrink: 0;
  align-self: center;
}

/* ── Social Proof ──────────────────────────────────────── */
.social-proof {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.proof-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.logos {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.logo-placeholder {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Waitlist CTA ──────────────────────────────────────── */
.waitlist {
  padding: 48px 0;
  text-align: center;
}

.waitlist h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.waitlist > .container > p {
  color: var(--muted);
  margin-bottom: 36px;
}

.capture-form--large {
  max-width: 560px;
  margin: 0 auto 14px;
}

.capture-form--large input[type="email"],
.capture-form--large button {
  padding: 16px 22px;
  font-size: 16px;
}

.success-msg {
  margin-top: 16px;
  color: var(--green);
  font-weight: 600;
  font-size: 16px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover { color: var(--text); }

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .capture-form {
    flex-direction: column;
  }

  .capture-form button {
    width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step {
    max-width: 100%;
  }

  .nav .logo { font-size: 18px; }
}

/* ── Scarcity Bar ──────────────────────────────────────── */
.scarcity-bar-wrap {
  margin: 12px auto 20px;
  max-width: 400px;
}

.scarcity-bar {
  height: 8px;
  background: var(--surface2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.scarcity-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.scarcity-fill.urgent { background: #f59e0b; }

.scarcity-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.scarcity-label.urgent { color: #f59e0b; }

/* ── Sticky Bar ────────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-bar.visible { transform: translateY(0); }

.sticky-bar-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-form {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.sticky-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.sticky-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.sticky-form button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sticky-form button:hover { background: var(--accent-hover); }

.sticky-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}

.sticky-dismiss:hover { color: var(--text); }

@media (max-width: 600px) {
  .sticky-bar-label { display: none; }
  .sticky-form input { font-size: 16px; }
}

/* ── Activity Toast ─────────────────────────────────────── */
.activity-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  z-index: 99;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.activity-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Before / After Block ───────────────────────────────── */
.before-after {
  padding: 36px 24px;
  background: var(--surface);
}

.before-after h2 {
  text-align: center;
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 32px;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 32px;
}

.ba-card {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.ba-before { border-color: #ef444440; background: rgba(239,68,68,0.05); }
.ba-after  { border-color: #22c55e40; background: rgba(34,197,94,0.05); }

.ba-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ba-label--before { color: #f87171; }
.ba-label--after  { color: #4ade80; }

.ba-code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.ba-code--broken { color: #fca5a5; }
.ba-code--passing { color: #86efac; }

.ba-quote {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-code { font-size: 12px; }
}

/* ── Step code snippet ──────────────────────────────────── */
.step-code {
  margin-top: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #00c8a0;
  text-align: left;
  white-space: pre-wrap;
  line-height: 1.5;
}

.step-result {
  margin-top: 12px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}
