:root {
  --bg: #0f1623;
  --surface: #1a2435;
  --surface-2: #1f2d42;
  --border: #2a3a52;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --fg-dim: #64748b;
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --green: #22c55e;
  --green-dim: #16a34a;
  --nav-height: 64px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 22, 35, 0.92);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 300;
  letter-spacing: 0.2px;
}

/* ─── HERO ─── */
.hero {
  padding: 80px 24px 72px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-stacks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stacks-label {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  margin-right: 4px;
}
.stack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* ─── DASHBOARD FRAME ─── */
.dashboard-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.frame-top {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.frame-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }
.frame-title { font-size: 12px; color: var(--fg-dim); font-weight: 500; }
.frame-body { display: flex; min-height: 340px; }
.frame-sidebar {
  width: 140px;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  cursor: default;
}
.sidebar-item.active {
  background: var(--surface-2);
  color: var(--fg);
}
.si-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.si-muted { background: var(--border); }
.frame-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.frame-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fh-text { font-size: 13px; font-weight: 600; color: var(--fg); }
.fh-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.fh-badge.green { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.workflow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin-bottom: 8px;
}
.workflow-step.done { border-color: rgba(34, 197, 94, 0.2); }
.workflow-step.running { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.05); }
.ws-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.workflow-step.done .ws-num { background: var(--green-dim); color: white; }
.workflow-step.running .ws-num { background: var(--accent); color: #0f1623; }
.ws-content { flex: 1; }
.ws-title { font-size: 12px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.ws-meta { font-size: 11px; color: var(--fg-dim); }
.ws-status { flex-shrink: 0; }
.pulse { animation: spin-slow 2s linear infinite; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.frame-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.fstat { flex: 1; }
.fstat-val { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--fg); }
.fstat-label { font-size: 11px; color: var(--fg-dim); margin-top: 2px; }

/* ─── STATS ROW ─── */
.stats-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 24px;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-item {
  flex: 1;
  padding: 0 40px;
  text-align: center;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── HOW IT WORKS ─── */
.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hiw-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 580px;
}
.hiw-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.flow-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.flow-icon { margin-bottom: 20px; }
.flow-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.flow-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

/* ─── FEATURES ─── */
.features { background: var(--bg); padding: 80px 24px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 48px;
  max-width: 520px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface-2); }
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* ─── PROOF ─── */
.proof {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 80px 24px;
}
.proof-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.proof-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  line-height: 1.3;
}
.proof-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-change {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.proof-cost {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.proof-net {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.proof-calc { font-size: 14px; color: var(--fg-dim); }
.proof-vs {
  font-size: 22px;
  color: var(--fg-dim);
  font-weight: 300;
}
.proof-item.highlight .proof-calc { color: var(--fg-muted); }
.proof-closing {
  font-size: 15px;
  color: var(--fg-muted);
  font-style: italic;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── CLOSING ─── */
.closing { padding: 80px 24px 96px; background: var(--bg); }
.closing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.closing-detail {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg-muted);
}
.footer-meta { font-size: 13px; color: var(--fg-dim); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-content { text-align: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stacks { justify-content: center; }
  .stats-row { flex-direction: column; gap: 32px; }
  .stat-item { padding: 0; }
  .stat-divider { width: 60px; height: 1px; }
  .hiw-flow { flex-direction: column; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .proof-breakdown { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-tagline { display: none; }
  .frame-sidebar { display: none; }
  .proof-breakdown { gap: 12px; }
}

/* ─── DEMO SECTION ─── */
.demo-section {
  background: var(--bg);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.demo-inner { max-width: 1200px; margin: 0 auto; }
.demo-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 12px;
  max-width: 520px;
}
.demo-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 48px;
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.flow-connector {
  width: 2px;
  height: 20px;
  background: var(--border);
  margin: 4px auto;
  border-radius: 1px;
}
.timeline-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.timeline-event {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  position: relative;
}
.timeline-event:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid var(--surface);
  position: relative;
  z-index: 1;
}
.tl-dot.missed { background: #ef4444; }
.tl-dot.sms { background: var(--accent); }
.tl-dot.crm { background: #8b5cf6; }
.tl-dot.email { background: #06b6d4; }
.tl-dot.convert { background: var(--green); }
.tl-content { flex: 1; padding-bottom: 24px; }
.tl-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.tl-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.tl-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }
.tl-code {
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.5;
  white-space: pre-line;
}
.demo-cta { margin-top: 32px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0f1623;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dim); }
.cta-note { font-size: 12px; color: var(--fg-dim); margin-top: 10px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-content { text-align: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stacks { justify-content: center; }
  .stats-row { flex-direction: column; gap: 32px; }
  .stat-item { padding: 0; }
  .stat-divider { width: 60px; height: 1px; }
  .hiw-flow { flex-direction: column; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .proof-breakdown { flex-direction: column; gap: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .demo-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-tagline { display: none; }
  .frame-sidebar { display: none; }
  .proof-breakdown { gap: 12px; }
  .demo-section { padding: 48px 20px; }
}

/* ─── FONT FALLBACK OVERRIDE ─── */
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1, h2, h3 { font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
