/* ---------- TOKENS ---------- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #131826;
  --bg-tertiary: #1a2033;
  --bg-elevated: #1d2438;

  --text: #e8ecf3;
  --text-muted: #8b94a8;
  --text-dim: #5a6478;

  --accent-h: 239;          /* hue (indigo default — controlled by Tweaks) */
  --accent-s: 84%;
  --accent-l: 67%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-hi: hsl(var(--accent-h), var(--accent-s), 76%);
  --accent-lo: hsl(calc(var(--accent-h) + 8), 76%, 56%);
  --accent-deep: hsl(calc(var(--accent-h) - 8), 64%, 42%);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --border: #232a3d;
  --border-hover: #2f3850;

  --r-card: 18px;
  --r-button: 12px;
  --r-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 8px 30px hsla(var(--accent-h), var(--accent-s), 50%, 0.4);

  --maxw: 1200px;
  --section-pad: clamp(48px, 6vw, 88px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, hsla(var(--accent-h), 70%, 30%, 0.18), transparent 60%),
    var(--bg-primary);
  min-height: 100vh;
  position: relative;
}

::selection { background: hsla(var(--accent-h), 80%, 60%, 0.35); color: white; }

/* ---------- ATMOSPHERE: grain + mesh ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  /* blur replaced by pre-blurred radial-gradients below — no GPU filter cost */
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  /* mix-blend-mode removed — was forcing extra compositor passes */
  will-change: auto;
}

.mesh-blob--1 {
  width: 700px; height: 700px;
  left: -15%; top: -10%;
  background: radial-gradient(circle, hsla(var(--accent-h), 80%, 55%, 0.28), transparent 65%);
}

.mesh-blob--2 {
  width: 800px; height: 800px;
  right: -20%; top: 5%;
  background: radial-gradient(circle, hsla(calc(var(--accent-h) + 30), 75%, 55%, 0.22), transparent 65%);
}

.mesh-blob--3 {
  width: 600px; height: 600px;
  left: 30%; bottom: -15%;
  background: radial-gradient(circle, hsla(calc(var(--accent-h) - 20), 70%, 50%, 0.18), transparent 65%);
}

/* ---------- BASE ---------- */
#root { position: relative; z-index: 2; }

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hi);
  background: hsla(var(--accent-h), 80%, 60%, 0.08);
  border: 1px solid hsla(var(--accent-h), 80%, 60%, 0.22);
  border-radius: var(--r-pill);
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1, h2, h3, h4 {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

h2.section {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); line-height: 1.55; max-width: 580px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 45%, hsl(calc(var(--accent-h) - 30), 84%, 70%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: 'Geist Mono', monospace; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-button);
  cursor: pointer;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: white;
  box-shadow: var(--shadow-cta), inset 0 1px 0 hsla(0, 0%, 100%, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px hsla(var(--accent-h), var(--accent-s), 50%, 0.55), inset 0 1px 0 hsla(0, 0%, 100%, 0.22);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, hsla(0, 0%, 100%, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-hover); background: hsla(0, 0%, 100%, 0.02); }

.btn--small { padding: 10px 16px; font-size: 14px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: hsla(225, 36%, 7%, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms, background 240ms;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: hsla(225, 36%, 7%, 0.85);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a { transition: color 200ms; }
.nav__links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px hsla(var(--accent-h), 80%, 60%, 0.35), inset 0 1px 0 hsla(0, 0%, 100%, 0.25);
}
.logo__mark svg { width: 18px; height: 18px; color: white; }
.logo__words { display: flex; flex-direction: column; line-height: 1.05; }
.logo__words .top { font-weight: 600; font-size: 14px; color: var(--text-muted); }
.logo__words .bot { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -0.015em; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero__copy { max-width: 620px; }

.hero__title {
  margin-top: 24px;
  margin-bottom: 24px;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: hero-word 900ms var(--ease-out) forwards;
}
@keyframes hero-word {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__sub { margin-bottom: 36px; }

.hero__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: var(--r-button);
  border: 1px solid var(--border);
  transition: border-color 200ms, box-shadow 200ms;
}
.hero__form:focus-within {
  border-color: hsla(var(--accent-h), 80%, 60%, 0.5);
  box-shadow: 0 0 0 4px hsla(var(--accent-h), 80%, 60%, 0.1);
}
.hero__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  padding: 8px 14px;
  font-size: 15px;
}
.hero__form input::placeholder { color: var(--text-dim); }

.hero__formfoot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero__formfoot .check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__formfoot svg { width: 14px; height: 14px; color: var(--success); }

/* ---------- STATS STRIP ---------- */
.stats {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, hsla(225, 36%, 7%, 0.4), transparent);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.stat__value {
  font-family: 'Geist', sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- SECTION SHELL ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section__head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section__head .lead { margin-top: 14px; }
.section__head h2.section { margin-top: 14px !important; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- CARDS GENERIC ---------- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 280ms, transform 380ms var(--ease-out), background 280ms;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), hsla(var(--accent-h), 80%, 65%, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 320ms;
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* ---------- PROBLEMS ---------- */
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .problems__grid { grid-template-columns: 1fr; }
}
.problem .ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: hsla(var(--accent-h), 60%, 50%, 0.12);
  border: 1px solid hsla(var(--accent-h), 60%, 50%, 0.22);
  display: grid; place-items: center;
  color: var(--accent-hi);
  margin-bottom: 22px;
}
.problem h3 { margin-bottom: 10px; }
.problem p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0; }
.problem__stat {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.problem__stat .num {
  font-family: 'Geist', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-hi);
}
.problem__stat .lbl { font-size: 12px; color: var(--text-dim); font-family: 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- FEATURES ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .features__grid { grid-template-columns: 1fr; }
}
.feature {
  padding: 32px;
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, hsla(var(--accent-h), 80%, 60%, 0.18), hsla(var(--accent-h), 80%, 60%, 0.06));
  border: 1px solid hsla(var(--accent-h), 80%, 60%, 0.22);
  display: grid; place-items: center;
  color: var(--accent-hi);
  margin-bottom: 24px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- COMPARISON ---------- */
.compare {
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
}
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
}
.compare__head {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}
.compare__head > div {
  padding: 20px 24px;
  font-size: 13px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.compare__head .col-our { color: var(--accent-hi); }
.compare__row {
  border-bottom: 1px solid var(--border);
  transition: background 200ms;
}
.compare__row:last-child { border-bottom: none; }
.compare__row:hover { background: hsla(var(--accent-h), 50%, 50%, 0.04); }
.compare__row > div {
  padding: 22px 24px;
  font-size: 15px;
}
.compare__row .label { color: var(--text); font-weight: 500; }
.compare__row .manual { color: var(--text-muted); }
.compare__row .ours { color: var(--text); font-weight: 600; }
.compare__row .ours strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-hi);
}
@media (max-width: 720px) {
  .compare__head, .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__head .col-label, .compare__row .label { display: none; }
}

/* ---------- ROI CALCULATOR ---------- */
.roi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-elevated));
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.roi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at top right, hsla(var(--accent-h), 80%, 60%, 0.10), transparent 60%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .roi { grid-template-columns: 1fr; padding: 28px; }
}

.roi__controls > * { position: relative; }

.roi__slider {
  margin-top: 18px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--bg-tertiary) var(--fill, 50%), var(--bg-tertiary) 100%);
  outline: none;
  cursor: pointer;
}
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 4px hsla(var(--accent-h), 80%, 60%, 0.3), 0 4px 12px rgba(0,0,0,0.3);
  cursor: grab;
  transition: transform 160ms;
}
.roi__slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.roi__slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(0.95); }
.roi__slider::-moz-range-thumb {
  width: 22px; height: 22px; border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 4px hsla(var(--accent-h), 80%, 60%, 0.3), 0 4px 12px rgba(0,0,0,0.3);
  cursor: grab;
}

.roi__results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.roi__metric { display: flex; flex-direction: column; gap: 4px; }
.roi__metric .v {
  font-family: 'Geist', sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  display: flex; align-items: baseline; gap: 8px;
}
.roi__metric .v .unit {
  font-size: 0.5em;
  color: var(--text-muted);
  font-weight: 500;
}
.roi__metric .l { font-size: 13px; color: var(--text-muted); font-family: 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.roi__metric.hi .v { color: var(--accent-hi); }

/* ---------- SECURITY ---------- */
.sec__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .sec__grid { grid-template-columns: 1fr; }
}
.sec__item {
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.sec__item .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: hsla(160, 60%, 50%, 0.12);
  border: 1px solid hsla(160, 60%, 50%, 0.22);
  color: var(--success);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sec__item h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.sec__item p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq__list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 200ms, background 200ms;
}
.faq__item.open { border-color: var(--border-hover); background: var(--bg-tertiary); }
.faq__q {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
}
.faq__plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  transition: transform 320ms var(--ease-out);
}
.faq__plus::before, .faq__plus::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 320ms var(--ease-out), background 200ms;
}
.faq__plus::before { top: 10px; left: 4px; right: 4px; height: 2px; }
.faq__plus::after { left: 10px; top: 4px; bottom: 4px; width: 2px; }
.faq__item.open .faq__plus { transform: rotate(180deg); }
.faq__item.open .faq__plus::after { transform: scaleY(0); }
.faq__item.open .faq__plus::before { background: var(--accent-hi); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 420ms var(--ease-out);
}
.faq__a-inner {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq__item.open .faq__a { max-height: 800px; }
.faq__item.reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
.faq__q { cursor: pointer; }

/* ---------- BOTTOM CTA ---------- */
.cta {
  position: relative;
  padding: clamp(60px, 8vw, 100px);
  border-radius: 28px;
  background: linear-gradient(135deg, hsla(var(--accent-h), 70%, 30%, 0.7) 0%, hsla(calc(var(--accent-h) + 24), 70%, 28%, 0.6) 100%);
  border: 1px solid hsla(var(--accent-h), 80%, 65%, 0.25);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 30% -20%, hsla(var(--accent-h), 90%, 70%, 0.4), transparent 50%),
    radial-gradient(600px circle at 80% 120%, hsla(calc(var(--accent-h) + 30), 80%, 65%, 0.3), transparent 50%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.cta p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: hsla(0, 0%, 100%, 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  background: hsla(225, 40%, 8%, 0.6);
  padding: 8px;
  border-radius: var(--r-button);
  border: 1px solid hsla(0, 0%, 100%, 0.12);
}
.cta__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font: inherit;
  padding: 8px 14px;
  font-size: 15px;
}
.cta__form input::placeholder { color: hsla(0, 0%, 100%, 0.5); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--text-muted); }

/* ---------- HERO MOCKUP ---------- */
.mock {
  position: relative;
  perspective: 2000px;
}
.mock__shadow {
  position: absolute;
  inset: 8% -6% -8% 6%;
  background: radial-gradient(closest-side, hsla(var(--accent-h), 80%, 50%, 0.18), transparent 70%);
  z-index: 0;
}
.mock__panel {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.06);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg) translateZ(0);
  transform-style: preserve-3d;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: hsla(225, 36%, 8%, 0.6);
  border-bottom: 1px solid var(--border);
}
.mock__dot { width: 11px; height: 11px; border-radius: 50%; }
.mock__dot.r { background: #ff5f57; }
.mock__dot.y { background: #febc2e; }
.mock__dot.g { background: #28c840; }
.mock__title {
  margin-left: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.mock__head {
  padding: 20px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
}
.mock__brand .markdot {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
}
.mock__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--success);
  padding: 4px 8px;
  background: hsla(160, 60%, 45%, 0.1);
  border: 1px solid hsla(160, 60%, 45%, 0.25);
  border-radius: 999px;
}
.mock__status .pdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
.mock__counters {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin: 12px 0;
}
.mock__counter {
  background: var(--bg-secondary);
  padding: 14px 18px;
}
.mock__counter .v {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-family: 'Geist', sans-serif;
}
.mock__counter .l {
  font-size: 10.5px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'Geist Mono', monospace;
  margin-top: 4px;
}
.mock__feed {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.mock__feed .lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.evt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: hsla(225, 36%, 12%, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  animation: evt-in 460ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.evt.fresh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsla(var(--accent-h), 80%, 60%, 0.16), transparent);
  animation: evt-shine 1200ms var(--ease-out);
}
@keyframes evt-shine { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }
@keyframes evt-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.evt .ava {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(calc(var(--accent-h) + var(--seed, 0)), 60%, 60%), hsl(calc(var(--accent-h) - var(--seed, 0) + 60), 70%, 50%));
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: white;
}
.evt .who { font-weight: 600; }
.evt .what { color: var(--text-muted); margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 11px; }
.evt.sent .what { color: var(--success); }
.evt.processing .what { color: var(--warning); }
.evt .what .glyph { display: inline-block; width: 10px; }
.evt .spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid hsla(40, 90%, 60%, 0.3);
  border-top-color: var(--warning);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* small floating sub-card hovering near hero panel */
.mock__bubble {
  position: absolute;
  z-index: 3;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.mock__bubble--top {
  top: -28px; right: -32px;
}
.mock__bubble--bot {
  bottom: -36px; left: -28px;
  animation-delay: -2.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mock__bubble .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.mock__bubble .ico svg { width: 18px; height: 18px; }
.mock__bubble .t { font-size: 13px; font-weight: 600; line-height: 1.2; }
.mock__bubble .s { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---------- TWEAKS PANEL TWEAKS ---------- */
.tweak-swatch-row { display: flex; gap: 10px; }
.tweak-swatch {
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 200ms, border-color 200ms;
}
.tweak-swatch:hover { transform: scale(1.08); }
.tweak-swatch.active { border-color: var(--text); }

/* ---------- DEMO ---------- */
.demo {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .demo { grid-template-columns: 1fr; }
}
.demo__steps { display: flex; flex-direction: column; gap: 10px; }
.demo__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: border-color 240ms, background 240ms, transform 240ms var(--ease-out);
}
.demo__step:hover { border-color: var(--border-hover); }
.demo__step.active {
  border-color: hsla(var(--accent-h), 80%, 60%, 0.4);
  background: linear-gradient(180deg, var(--bg-secondary), hsla(var(--accent-h), 70%, 30%, 0.08));
}
.demo__step-num {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-weight: 500;
  padding-top: 2px;
}
.demo__step.active .demo__step-num { color: var(--accent-hi); }
.demo__step-t { font-weight: 600; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.demo__step-s { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.demo__step-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}
.demo__step.active .demo__step-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  animation: demo-bar 3.2s linear forwards;
  transform-origin: left;
}
@keyframes demo-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.demo__viz {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.demo__viz::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at top right, hsla(var(--accent-h), 70%, 50%, 0.08), transparent 60%);
  pointer-events: none;
}

.dstage { position: relative; min-height: 320px; }
.dscene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  pointer-events: none;
}
.dscene.on { opacity: 1; transform: translateY(0); pointer-events: auto; }

.scene { display: flex; flex-direction: column; gap: 16px; height: 100%; }

/* scene--follow */
.scene__chip {
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}
.scene__chip strong { color: var(--text); }
.scene__followcard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.scene__followcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsla(var(--accent-h), 80%, 60%, 0.12), transparent);
  transform: translateX(-100%);
  animation: scan-shine 2.6s ease-in-out infinite;
}
@keyframes scan-shine {
  0%, 30% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.ava-big {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--accent-h), 60%, 60%), hsl(calc(var(--accent-h) + 60), 70%, 50%));
  display: grid; place-items: center;
  font-weight: 700; color: white; font-size: 16px;
  flex-shrink: 0;
}
.scene__name { font-weight: 600; font-size: 15px; }
.scene__handle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.scene__followpill {
  padding: 6px 12px;
  background: hsla(var(--accent-h), 70%, 60%, 0.15);
  border: 1px solid hsla(var(--accent-h), 70%, 60%, 0.3);
  color: var(--accent-hi);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.scene__scan {
  margin-top: auto;
  padding: 16px;
  background: hsla(225, 36%, 8%, 0.5);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.scene__scanbar {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}
.scene__scanbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  width: 30%;
  animation: scan-loop 1.6s linear infinite;
}
@keyframes scan-loop {
  from { transform: translateX(-100%); }
  to { transform: translateX(400%); }
}

/* scene--compose */
.scene--compose { gap: 14px; }
.scene__tpl, .scene__rendered {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.scene__tpllabel {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.scene__tplbody { font-size: 14px; line-height: 1.55; color: var(--text); }
.scene__tplbody .tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: hsla(var(--accent-h), 80%, 60%, 0.18);
  color: var(--accent-hi);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
}
.scene__arrow { font-size: 18px; color: var(--text-dim); align-self: center; }
.scene__rendered { border-color: hsla(var(--accent-h), 80%, 60%, 0.3); background: linear-gradient(180deg, var(--bg-tertiary), hsla(var(--accent-h), 70%, 30%, 0.08)); }
.scene__renderedbody {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  min-height: 60px;
}
.caret {
  display: inline-block;
  width: 1px;
  margin-left: 1px;
  color: var(--accent-hi);
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* scene--send */
.scene--send { gap: 18px; }
.scene__chat {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
}
.scene__chatbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--accent-h), 60%, 60%), hsl(calc(var(--accent-h) + 60), 70%, 50%));
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.scene__chatbody {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bubble {
  padding: 12px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
  align-self: flex-end;
  animation: bubble-in 600ms var(--ease-out);
}
.bubble--out {
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  color: white;
  box-shadow: 0 8px 24px hsla(var(--accent-h), 80%, 50%, 0.35);
}
.bubble__time {
  margin-top: 6px;
  font-size: 10.5px;
  opacity: 0.8;
  font-family: 'Geist Mono', monospace;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.scene__check {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: hsla(160, 60%, 45%, 0.08);
  border: 1px solid hsla(160, 60%, 45%, 0.25);
  border-radius: 12px;
}
.scene__checkico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: hsla(160, 60%, 45%, 0.18);
  color: var(--success);
  display: grid; place-items: center;
}

/* ---------- ROI EXTRA ---------- */
.roi__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.roi__label { font-size: 13px; color: var(--text-muted); font-family: 'Geist Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.roi__bigval { font-size: 24px; color: var(--text); font-weight: 600; }
.roi__scale {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.roi__split {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) { .roi__split { grid-template-columns: 1fr; } }
.roi__splithead {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.roi__splitline {
  display: flex; justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
}
.roi__splitline span { color: var(--text-muted); }
.roi__splitline b { color: var(--text); font-weight: 600; }
.roi__disc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
