/* ============================================================
   MachineZen AI — modern dark SaaS redesign
   ============================================================ */

:root {
  --bg: #0d0a15;
  --bg2: #120e1d;
  --surface: #171224;
  --surface2: #1d1730;
  --border: #2a2140;
  --border-soft: #221a36;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-dim: rgba(139, 92, 246, 0.14);
  --mint: #2ee6a8;
  --mint-dim: rgba(46, 230, 168, 0.12);
  --pink: #e57cd8;
  --amber: #fbbf24;
  --red: #f87171;
  --text: #f5f3ff;
  --muted: #a89fc7;
  --muted2: #6f648f;
  --radius: 18px;
  --radius-lg: 26px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --display: "Space Grotesk", "Inter", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #fff; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 5.2vw + 0.8rem, 4.9rem); }
h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 3.3rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.5rem); line-height: 1.2; }

.grad-text {
  background: linear-gradient(100deg, var(--accent-bright) 10%, var(--pink) 55%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.lead { font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem); color: var(--muted); line-height: 1.55; }

/* ---------- Layout ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-top: var(--section); padding-bottom: var(--section); position: relative; }
.section-light { background: #100c1b; }

.sec-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 0 26px;
  height: 54px;
  font-size: 15.5px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(139, 92, 246, 0.75); }
.btn:hover svg { transform: translateX(3px); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-dim); transform: translateY(-2px); }

.btn.mint { background: var(--mint); color: #06281c; box-shadow: 0 8px 30px -8px rgba(46, 230, 168, 0.5); }
.btn.mint:hover { background: #5df0c0; box-shadow: 0 14px 40px -8px rgba(46, 230, 168, 0.65); }

.btn.sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.microcopy { font-size: 13px; color: var(--muted2); }
.microcopy b { color: var(--muted); font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.35s, box-shadow 0.35s;
}
.site-header.hidden { transform: translateY(-110%); }
.site-header.scrolled {
  background: rgba(13, 10, 21, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-family: var(--body); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 550; color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
@media (max-width: 880px) { .main-nav { display: none; } }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(7.5rem, 11vw, 10rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(46, 230, 168, 0.1), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 30rem; }
.hero .microcopy { margin-top: 16px; }
.hero .microcopy svg { display: inline; width: 13px; height: 13px; vertical-align: -2px; color: var(--mint); margin-right: 5px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* dashboard */
.dash-wrap { position: relative; min-width: 0; }
.dash-frame {
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 55%, var(--mint) 130%);
  box-shadow: 0 40px 90px -30px rgba(139, 92, 246, 0.45);
  min-width: 0;
}
.dash {
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  font-size: 12.5px;
  min-width: 0;
}
.dash-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg2); border-bottom: 1px solid var(--border-soft); }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; }
.dash-bar i:nth-child(1) { background: #f87171; } .dash-bar i:nth-child(2) { background: #fbbf24; } .dash-bar i:nth-child(3) { background: #34d399; }
.dash-url { margin-left: 8px; font-size: 10.5px; color: var(--muted2); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px 12px; }
.dash-body { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.dash-side { background: var(--bg2); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--border-soft); }
.dash-side .ds-brand { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 13px; padding: 4px 8px 14px; }
.dash-side .ds-brand svg { width: 18px; height: 18px; }
.ds-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 550; color: var(--muted); }
.ds-item svg { width: 13px; height: 13px; flex: none; }
.ds-item.active { background: var(--accent-dim); color: var(--accent-bright); }
.ds-badge { margin-left: auto; background: var(--mint); color: #06281c; font-size: 9px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.dash-main { padding: 14px 16px 16px; min-width: 0; }
.dm-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.dm-head strong { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.dm-head span { font-size: 10px; color: var(--muted2); }
.roi-card {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(139,92,246,0.22), rgba(46,230,168,0.12));
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.roi-card .rc-label { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 9px; display: flex; justify-content: space-between; }
.roi-card .rc-label em { font-style: normal; color: var(--muted2); letter-spacing: 0; text-transform: none; font-weight: 600; }
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rc-stat b { font-family: var(--display); font-size: 18px; display: block; line-height: 1.1; letter-spacing: -0.02em; }
.rc-stat span { font-size: 9px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.3; }
.rc-stat .up { color: var(--mint); }
.dm-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.dm-cols > * { min-width: 0; }
.dm-panel { border: 1px solid var(--border-soft); border-radius: 11px; padding: 11px 12px; background: var(--bg2); min-width: 0; overflow: hidden; }
.dm-panel h5 { font-size: 9px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.call-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border-soft); }
.call-row:first-of-type { border-top: none; }
.call-av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-bright); font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.call-info { min-width: 0; flex: 1; }
.call-info b { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-info span { font-size: 9.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 8.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex: none; letter-spacing: 0.02em; }
.chip.lead-c { background: var(--mint-dim); color: var(--mint); }
.chip.svc { background: rgba(251,191,36,0.14); color: var(--amber); }
.chip.spam { background: rgba(248,113,113,0.14); color: var(--red); }
.chip.cust { background: var(--accent-dim); color: var(--accent-bright); }
.pulse-item { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border-soft); align-items: flex-start; }
.pulse-item:first-of-type { border-top: none; }
.p-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; flex: none; }
.p-dot.urgent { background: var(--red); box-shadow: 0 0 8px rgba(248,113,113,0.7); }
.p-dot.action { background: var(--amber); }
.p-dot.watch { background: var(--mint); }
.pulse-item p { font-size: 10px; line-height: 1.45; color: var(--muted); }
.pulse-item p b { color: var(--text); }

/* floating cards */
.float-card {
  position: absolute;
  background: rgba(23, 18, 36, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6);
  animation: floaty 6s ease-in-out infinite;
  z-index: 3;
}
.float-card b { font-family: var(--display); font-size: 15px; display: block; letter-spacing: -0.01em; }
.float-card span { color: var(--muted); font-size: 11px; }
.float-card .fc-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.float-card .fc-ico svg { width: 16px; height: 16px; }
.fc1 { top: -26px; right: -14px; }
.fc1 .fc-ico { background: var(--mint-dim); color: var(--mint); }
.fc2 { bottom: 32px; left: -30px; animation-delay: -3s; }
.fc2 .fc-ico { background: var(--accent-dim); color: var(--accent-bright); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .fc1 { right: 0; } .fc2 { left: -6px; } }
@media (max-width: 620px) { .float-card { display: none; } }

@media (max-width: 640px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; overflow-x: auto; padding: 8px; border-right: none; border-bottom: 1px solid var(--border-soft); }
  .dash-side .ds-brand { padding: 4px 8px; }
  .ds-badge { display: none; }
  .dm-cols { grid-template-columns: 1fr; }
  .rc-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Stats bar ---------- */

.stats-bar { padding: 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.8rem, 3vw, 3rem) 1.5rem; text-align: center; border-left: 1px solid var(--border-soft); }
.stat:first-child { border-left: none; }
.stat b {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  background: linear-gradient(100deg, var(--accent-bright), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); } }

/* ---------- Logos / towns ---------- */

.towns { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.towns-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 36px; }
.towns span { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted2); letter-spacing: 0.02em; }
.towns i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.towns .t-note { width: 100%; text-align: center; font-size: 12px; color: var(--muted2); margin-bottom: 4px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Problem ---------- */

.pains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pain {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--surface);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.pain:hover { border-color: var(--accent); transform: translateY(-3px); }
.pain svg { width: 22px; height: 22px; color: var(--red); flex: none; }
@media (max-width: 820px) { .pains-grid { grid-template-columns: 1fr; } }
.pain-answer { margin-top: 26px; font-size: clamp(1.05rem, 1vw + 0.9rem, 1.3rem); color: var(--muted); max-width: 640px; }
.pain-answer b { color: var(--text); }

/* ---------- Tabs (What we build) ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; background: var(--bg2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 6px; width: fit-content; max-width: 100%; }
.tab-btn {
  border: none; background: transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px rgba(139,92,246,0.6); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: 14px; }
.tab-panel .lead { margin-bottom: 22px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); align-items: flex-start; line-height: 1.45; }
.check-list li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 1px; }
.check-list li b { color: var(--text); font-weight: 600; }
@media (max-width: 880px) { .tab-panel.active { grid-template-columns: 1fr; } .tabs { border-radius: var(--radius); } }

/* tab visual: mini UI cards */
.tab-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--surface2), var(--surface));
  padding: 22px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.tv-row { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; }
.tv-row .tv-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.tv-row .tv-dot svg { width: 17px; height: 17px; }
.tv-row b { font-size: 13px; display: block; }
.tv-row span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }
.tv-row .tv-right { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 14px; flex: none; }
.tv-bar { height: 8px; border-radius: 8px; background: var(--bg2); overflow: hidden; margin-top: 4px; }
.tv-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--mint)); }

/* ---------- Ladder ---------- */

.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--accent); }
.tier.featured {
  background: linear-gradient(160deg, #221840, #171224 70%);
  border-color: var(--accent);
  box-shadow: 0 30px 70px -25px rgba(139, 92, 246, 0.5);
}
.t-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--pink));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 16px; white-space: nowrap;
}
.tier .t-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 10px; }
.tier h3 { font-size: 24px; margin-bottom: 6px; }
.tier .t-tag { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; min-height: 40px; }
.tier .t-price { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.tier .t-price b { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.tier .t-price b small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tier .t-price span { display: block; font-size: 12.5px; color: var(--muted2); margin-top: 3px; }
.tier ul { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.tier ul li { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); align-items: flex-start; line-height: 1.4; }
.tier ul li svg { width: 16px; height: 16px; color: var(--mint); flex: none; margin-top: 1px; }
.tier ul li.t-all { color: var(--text); font-weight: 600; padding-bottom: 9px; border-bottom: 1px dashed var(--border-soft); }
.tier ul li.t-all svg { color: var(--accent-bright); }
.tier .btn { margin-top: auto; justify-content: center; }
@media (max-width: 920px) { .ladder { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Pulse strip ---------- */

.pulse-strip {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 240px at 85% 0%, rgba(46, 230, 168, 0.12), transparent 60%),
    var(--surface);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.pulse-strip h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 12px; }
.pulse-strip .lead { margin-bottom: 20px; }
.prio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prio-row span { font-size: 11.5px; font-weight: 750; border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 7px; background: var(--bg2); border: 1px solid var(--border-soft); }
.prio-row i { width: 7px; height: 7px; border-radius: 50%; }
.prio-row .u i { background: var(--red); } .prio-row .a i { background: var(--amber); }
.prio-row .w i { background: var(--mint); } .prio-row .n i { background: var(--muted2); }
.pulse-demo { display: grid; gap: 10px; }
.pd-row { display: flex; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.pd-row .p-dot { margin: 0; }
.pd-row p { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; }
.pd-row p b { color: var(--text); display: block; font-size: 13px; }
.pd-row .pd-act { font-size: 11px; font-weight: 700; color: var(--accent-bright); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; white-space: nowrap; flex: none; }
@media (max-width: 880px) { .pulse-strip { grid-template-columns: 1fr; } }

/* ---------- Trust row ---------- */

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.trust:hover { border-color: var(--mint); transform: translateY(-4px); }
.trust .tr-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mint-dim); color: var(--mint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.trust .tr-ico svg { width: 21px; height: 21px; }
.trust h4 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.trust p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 820px) { .trust-row { grid-template-columns: 1fr; } }

/* ---------- Assessment ---------- */

.assessment-band {
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(139, 92, 246, 0.28), transparent 65%),
    radial-gradient(500px 300px at 90% 100%, rgba(46, 230, 168, 0.1), transparent 60%),
    var(--bg2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.assessment-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -35px rgba(0,0,0,0.8);
}
.as-progress { display: flex; gap: 6px; padding: 20px 30px 0; }
.as-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--border-soft); transition: background 0.4s; }
.as-progress i.on { background: linear-gradient(90deg, var(--accent), var(--mint)); }
.as-body { padding: 26px 30px 32px; min-height: 360px; }
@media (max-width: 640px) { .as-body { padding: 20px 18px 24px; } .as-progress { padding: 16px 18px 0; } }

.as-step-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 10px; }
.as-q { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.as-hint { font-size: 13.5px; color: var(--muted2); margin-bottom: 22px; }
.as-options { display: flex; flex-wrap: wrap; gap: 9px; }
.as-chip {
  border: 1.5px solid var(--border);
  background: var(--bg2);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.as-chip .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border); transition: all 0.2s; flex: none; }
.as-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.as-chip.sel { border-color: var(--accent); background: var(--accent-dim); }
.as-chip.sel .dot { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 10px var(--accent); animation: pulse-dot 0.45s var(--ease); }
@keyframes pulse-dot { 0% { transform: scale(0.4); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }
.as-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.as-back { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--muted2); display: inline-flex; align-items: center; gap: 7px; padding: 10px 6px; transition: color 0.2s; }
.as-back:hover { color: var(--text); }
.as-back svg { width: 15px; height: 15px; }
.as-note { font-size: 12px; color: var(--muted2); margin-top: 18px; text-align: center; }

.as-teaser { text-align: center; padding: 14px 0 4px; }
.as-teaser .t-count {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, var(--accent-bright), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.as-teaser h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 12px 0 8px; }
.as-teaser p { color: var(--muted); font-size: 14px; max-width: 400px; margin: 0 auto 24px; }
.blurred-preview { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.blurred-preview span { border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; filter: blur(4px); user-select: none; color: var(--muted); }
.gate-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.gate-form input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
  padding: 0 20px;
  font-size: 14px;
  font-family: inherit;
  height: 50px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.gate-form input::placeholder { color: var(--muted2); }
.gate-form input:focus { border-color: var(--accent); }
.gate-form input.err { border-color: var(--red); }
.gate-btn {
  border: none; background: var(--accent); color: #fff;
  border-radius: 999px; height: 50px; padding: 0 20px;
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 0.25s; flex: none;
}
.gate-btn:hover { background: var(--accent-bright); }
.gate-btn svg { width: 15px; height: 15px; }
.gate-btn .dots { display: none; gap: 5px; }
.gate-btn .dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot-b 0.8s infinite; }
.gate-btn .dots i:nth-child(2) { animation-delay: -0.26s; }
.gate-btn .dots i:nth-child(3) { animation-delay: -0.53s; }
@keyframes dot-b { 0%, 100% { transform: scale(0.75); opacity: 0.4; } 50% { transform: scale(1); opacity: 1; } }
.gate-btn.loading .dots { display: inline-flex; }
.gate-btn.loading .g-label, .gate-btn.loading > svg { display: none; }
.gate-error { color: var(--red); font-size: 12.5px; margin-top: 10px; display: none; }
.gate-error.show { display: block; }

.as-results .r-head { text-align: center; margin-bottom: 24px; }
.as-results .r-head .chk { width: 50px; height: 50px; margin: 0 auto 16px; }
.as-results .r-head .chk circle, .as-results .r-head .chk path { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.as-results .r-head .chk circle { stroke-dasharray: 155; stroke-dashoffset: 155; animation: draw 0.6s var(--ease) forwards; }
.as-results .r-head .chk path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.r-roi {
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  background: linear-gradient(120deg, rgba(139,92,246,0.25), rgba(46,230,168,0.12));
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.r-roi .rr-main b { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.r-roi .rr-main span, .r-roi .rr-sub span { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; line-height: 1.4; }
.r-roi .rr-sub b { font-family: var(--display); font-size: 19px; font-weight: 700; display: block; }
.r-roi .rr-sub { border-left: 1px solid var(--border); padding-left: 18px; }
@media (max-width: 620px) { .r-roi { grid-template-columns: 1fr; } .r-roi .rr-sub { border-left: none; padding-left: 0; } }
.r-opp { border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; background: var(--bg2); }
.r-opp h4 { font-size: 15px; font-weight: 700; font-family: var(--display); letter-spacing: -0.01em; }
.r-opp p { font-size: 12.5px; color: var(--muted); line-height: 1.5; grid-column: 1; }
.r-opp .r-rec { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.r-opp .r-rec .pill { display: inline-block; background: var(--mint); color: #06281c; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 5px 13px; white-space: nowrap; }
.r-opp .r-rec span { display: block; font-size: 11px; color: var(--muted2); margin-top: 5px; white-space: nowrap; }
@media (max-width: 560px) { .r-opp { grid-template-columns: 1fr; } .r-opp .r-rec { grid-column: 1; grid-row: auto; text-align: left; margin-top: 8px; } }
.r-assump { font-size: 11.5px; color: var(--muted2); text-align: center; margin: 16px 0 22px; line-height: 1.5; }
.r-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Proof: demo call player ---------- */

.proof { background: #100c1b; overflow: hidden; }
.proof::before {
  content: "";
  position: absolute;
  right: -10%; top: 50%;
  width: 700px; height: 700px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent);
  pointer-events: none;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
.proof-copy .lead { margin: 14px 0 24px; }
.proof-copy .check-list { margin-bottom: 22px; }
.proof-note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; }

.player {
  position: relative;
  border-radius: 24px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent) 0%, var(--pink) 55%, var(--mint) 100%) border-box;
  padding: 22px 24px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(139, 92, 246, 0.12);
}
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.pl-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pl-live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pl-blink 2.2s ease-in-out infinite;
}
@keyframes pl-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pl-dur {
  font-size: 12px; font-weight: 700; color: var(--accent-bright);
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.pl-main { display: flex; align-items: center; gap: 18px; }
.pl-btn {
  position: relative;
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pl-btn:hover { transform: scale(1.06); box-shadow: 0 12px 34px rgba(139, 92, 246, 0.6); }
.pl-btn svg { width: 26px; height: 26px; }
.pl-btn .ic-pause { display: none; }
.player.playing .pl-btn .ic-play { display: none; }
.player.playing .pl-btn .ic-pause { display: block; }
.pl-btn::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.55);
  animation: pl-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.player.playing .pl-btn::after { animation-play-state: paused; opacity: 0; }
@keyframes pl-ring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
.pl-body { flex: 1; min-width: 0; }
.pl-body > b { display: block; font-size: 15.5px; margin-bottom: 12px; }
.pl-wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-bottom: 10px; }
.pl-wave i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent), var(--accent-bright));
  transform: scaleY(0.3);
  transform-origin: center;
  opacity: 0.85;
}
.pl-wave i:nth-child(3n) { transform: scaleY(0.55); }
.pl-wave i:nth-child(4n) { transform: scaleY(0.75); }
.pl-wave i:nth-child(5n) { transform: scaleY(0.45); }
.pl-wave i:nth-child(7n) { transform: scaleY(0.9); }
.pl-wave i:nth-child(11n) { transform: scaleY(0.6); }
.player.playing .pl-wave i { animation: pl-wave 1.1s ease-in-out infinite; }
.player.playing .pl-wave i:nth-child(2n) { animation-duration: 0.9s; animation-delay: 0.12s; }
.player.playing .pl-wave i:nth-child(3n) { animation-duration: 1.3s; animation-delay: 0.24s; }
.player.playing .pl-wave i:nth-child(5n) { animation-duration: 0.8s; animation-delay: 0.06s; }
.player.playing .pl-wave i:nth-child(7n) { animation-duration: 1.4s; animation-delay: 0.3s; }
@keyframes pl-wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.pl-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--border-soft);
  cursor: pointer;
}
.pl-track:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }
.pl-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--pink));
}
.pl-fill::after {
  content: "";
  position: absolute; right: -6px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(229, 124, 216, 0.8);
}
.pl-time {
  display: flex; justify-content: space-between;
  margin-top: 9px;
  font-size: 12px; color: var(--muted2);
  font-variant-numeric: tabular-nums;
}
.pl-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.player + .player { margin-top: 14px; }
.pl-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-bright);
}
.pl-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.player[data-call="sales"] .pl-kind { color: var(--mint); }
.player[data-call="sales"] .pl-kind::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.pl-outcome {
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.pl-outcome b {
  display: inline-block; margin-right: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint);
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-copy .lead { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .player { padding: 18px 16px 16px; }
  .pl-main { gap: 14px; }
  .pl-btn { width: 54px; height: 54px; }
}

/* ---------- Final CTA ---------- */

.final-cta { text-align: center; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: -40%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.25), transparent);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); max-width: 820px; margin: 16px auto 18px; }
.final-cta .lead { max-width: 480px; margin: 0 auto 32px; }
.final-cta .btn-row { justify-content: center; }
.final-cta .microcopy { display: block; margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border-soft); padding: clamp(2.5rem, 4vw, 4rem) 0 2rem; background: var(--bg2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-mark { display: block; width: 100%; margin-top: 8px; opacity: 0.9; }
.footer-mark text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 148px;
  letter-spacing: -0.04em;
  fill: none;
  stroke: var(--border);
  stroke-width: 1.2;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted2); border-top: 1px solid var(--border-soft); padding-top: 22px; }

/* ---------- Mobile nav (Phase 1) ---------- */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; color: var(--text); width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--border-soft); background: var(--bg2); }
.mobile-nav a { padding: 12px 6px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border-soft); }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .mn-cta { color: var(--mint); border-bottom: none; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-inner .btn.sm { display: none; }
  .mobile-nav:not([hidden]) { display: flex; }
}
/* Turnstile inside the gate form */
.gate-turnstile { margin: 10px 0 4px; min-height: 0; }
.gate-form.stacked { flex-wrap: wrap; }
