:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00e87b;
  --accent-dim: #00c966;
  --loss: #ff4d6a;
  --saved: #00e87b;
  --border: #222233;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* ─── SITE NAV ─── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.site-nav-brand span { color: var(--accent); }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav-links a {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav-links a:hover { color: var(--fg); }

@media (max-width: 480px) {
  .site-nav { padding: 14px 20px; }
  .site-nav-links { gap: 16px; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 232, 123, 0.08), transparent);
}

.hero-inner {
  max-width: 720px;
  text-align: center;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

.lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Phone mockup */
.hero-visual {
  max-width: 380px;
  width: 100%;
}

.phone-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  position: relative;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.msg-missed {
  background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.2);
  color: var(--loss);
  text-align: center;
  font-weight: 500;
}

.msg-icon {
  margin-right: 6px;
}

.msg-ai {
  background: rgba(0, 232, 123, 0.08);
  border: 1px solid rgba(0, 232, 123, 0.15);
  color: var(--fg);
  align-self: flex-start;
  max-width: 90%;
}

.msg-reply {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--fg);
  align-self: flex-end;
  max-width: 75%;
}

.msg-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.msg-ai .msg-label { color: var(--accent-dim); }

.phone-timer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

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

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

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
}

.problem-stat {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--loss);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── HOW IT WORKS ─── */
.how {
  padding: 100px 24px;
}

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

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.how-sub {
  text-align: center;
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 56px;
}

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}

.step:hover {
  border-color: var(--accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── NUMBERS ─── */
.numbers {
  padding: 100px 24px;
  background: var(--bg-subtle);
}

.numbers-inner {
  max-width: 600px;
  margin: 0 auto;
}

.numbers h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

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

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.math-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.math-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.math-value.loss { color: var(--loss); }
.math-value.saved { color: var(--saved); }

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

.math-row.result {
  padding-top: 16px;
}

.numbers-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ─── CLOSING ─── */
.closing {
  padding: 120px 24px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(0, 232, 123, 0.06), transparent);
}

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

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.closing p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 20px 40px;
  }
}

/* ─── CTA BUTTON ─── */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ─── DEMO SECTION ─── */
.demo-section {
  padding: 100px 24px;
  background: var(--bg);
}

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

.demo-heading {
  text-align: center;
  margin-bottom: 64px;
}

.demo-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demo-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.demo-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

/* Two-column layout */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Phone mockup ── */
.demo-phone-wrap {
  display: flex;
  justify-content: center;
}

.demo-phone {
  background: #1a1a2e;
  border: 1px solid var(--border);
  border-radius: 28px;
  width: 100%;
  max-width: 360px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  position: relative;
}

.demo-phone-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.demo-phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.demo-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 14px;
}

.demo-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-contact-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}

.demo-contact-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 1px;
}

.demo-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep scroll */
.demo-messages::-webkit-scrollbar { width: 0; }

.demo-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 88%;
  animation: msgPop 0.2s ease-out;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-msg-system {
  background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.2);
  color: var(--loss);
  text-align: center;
  font-weight: 500;
  align-self: center;
  max-width: 96%;
  font-size: 0.78rem;
}

.demo-msg-ai {
  background: rgba(0, 232, 123, 0.08);
  border: 1px solid rgba(0, 232, 123, 0.15);
  color: var(--fg);
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
}

.demo-msg-user {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--fg);
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}

/* Typing indicator */
.demo-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 8px 12px;
  margin-top: 4px;
}

.demo-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: typingBounce 1s infinite ease-in-out;
}

.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.30s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* Replay button */
.demo-replay-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.demo-replay-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-family: var(--font-body);
  padding: 6px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ── Live form card ── */
.demo-live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}

.demo-live-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.demo-live-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.demo-live-card > p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.demo-live-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.demo-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.demo-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.demo-field input,
.demo-field select {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.demo-field input::placeholder { color: var(--fg-muted); }
.demo-field select option { background: var(--bg-card); }

.demo-field input:focus,
.demo-field select:focus {
  border-color: var(--accent);
}

.demo-submit-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}

.demo-submit-btn:hover { background: var(--accent-dim); }
.demo-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.demo-rate-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Success state */
.demo-success {
  text-align: center;
}

.demo-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 232, 123, 0.1);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.demo-success h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-success p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Error */
.demo-error {
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.25);
  border-radius: 8px;
  color: var(--loss);
  font-size: 0.85rem;
  padding: 12px 16px;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .demo-phone-wrap {
    order: 1;
  }
  .demo-live-wrap {
    order: 2;
  }
}

@media (max-width: 480px) {
  .demo-live-card {
    padding: 24px 20px;
  }
  .demo-phone {
    max-width: 100%;
  }
}