/* ============================================================
   ScaleX — Conversion Landing Page (dark)
   ============================================================ */
:root {
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --bg: #09090f;
  --bg-2: #0c0c14;
  --panel: #11111c;
  --panel-2: #14141f;
  --ink: #f4f2f8;
  --ink-2: #cfcbdb;
  --muted: #938fa6;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.13);

  --violet: oklch(0.56 0.19 278);
  --violet-2: oklch(0.74 0.14 282);
  --violet-soft: oklch(0.5 0.17 280 / 0.13);
  --aura-1: oklch(0.5 0.2 278 / 0.5);
  --aura-2: oklch(0.45 0.16 262 / 0.45);
  --green: oklch(0.8 0.16 155);
  --green-soft: oklch(0.55 0.13 158 / 0.14);

  --maxw: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---- shared atoms ---- */
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--violet-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 14px var(--violet-2); }
.kicker.green { color: var(--green); }
.kicker.green .dot { background: var(--green); box-shadow: 0 0 14px var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; border-radius: 11px; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--violet); color: #0a0a10; padding: 16px 26px; box-shadow: 0 14px 40px oklch(0.5 0.2 285 / 0.4); }
body.grad-on .btn-primary { background: linear-gradient(135deg, var(--violet-2), var(--violet)); }
.btn-primary:hover { box-shadow: 0 18px 50px oklch(0.5 0.2 295 / 0.55); }
.btn-ghost { color: var(--ink); padding: 16px 22px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--violet); }
.btn-lg { padding: 19px 34px; font-size: 17px; }

.section { padding: 120px 0; position: relative; }
.section.tight { padding: 92px 0; }
.section-head { max-width: 740px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: 52px; font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 0; text-wrap: balance; }
.section-head .lead { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 20px 0 0; }
.section-head .lead b { color: var(--ink-2); font-weight: 600; }

.eyebrow-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }

/* metric atoms */
.metric-num-inner { font-variant-numeric: tabular-nums; }

/* ---- reveal on scroll ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .reveal.d4 { transition-delay: .32s; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: oklch(0.1 0.02 290 / 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { font-weight: 900; letter-spacing: -0.01em; font-size: 22px; display: flex; align-items: center; gap: 9px; }
.nav-logo .glyph { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; font-weight: 900; background: var(--violet); color: #0a0a10; }
.nav-logo .logo-mark { height: 22px; width: auto; display: block; }
.footer .f-logo .logo-mark { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a.lnk { color: var(--muted); transition: color .15s; }
.nav-links a.lnk:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; }
@media (max-width: 860px) { .nav-links .lnk { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 150px 0 0; position: relative; overflow: hidden; }
.hero .aura { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(100px); opacity: 0.55; z-index: 0; }
.hero .aura-1 { width: 760px; height: 540px; left: -180px; top: -120px; background: radial-gradient(ellipse, var(--aura-1), transparent 70%); }
.hero .aura-2 { width: 600px; height: 480px; right: -160px; top: 60px; background: radial-gradient(ellipse, var(--aura-2), transparent 70%); }
.hero .wrap { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.guarantee-pill {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--green-soft); border: 1px solid oklch(0.6 0.13 158 / 0.3);
  color: var(--green); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 100px;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.guarantee-pill .gp-ico { font-size: 13px; }
.hero h1 { font-size: 76px; font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; margin: 24px 0 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--violet-2); }
body.grad-on .hero h1 em { background: linear-gradient(102deg, var(--violet-2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .thin { font-weight: 500; }
.hero .sub { font-size: 20px; line-height: 1.55; color: var(--muted); font-weight: 400; max-width: 520px; margin: 26px 0 0; }
.hero .sub b { color: var(--ink); font-weight: 600; }
.hero .cta-row { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hero .faces { display: flex; align-items: center; flex: none; }
.hero .faces image-slot { margin-left: -11px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); }
.hero .faces image-slot:first-child { margin-left: 0; }
.avstack { display: flex; align-items: center; }
.avstack .av { width: 38px; height: 38px; border-radius: 50%; margin-left: -11px; background-size: cover; box-shadow: 0 0 0 2px var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 800; background: linear-gradient(140deg, oklch(0.55 0.16 295), oklch(0.4 0.12 265)); color: #fff; }
.avstack .av:first-child { margin-left: 0; }
.hero .trust .t-txt { font-size: 14px; color: var(--muted); }
.hero .trust .t-txt b { color: var(--ink); }

/* dashboard */
.dash { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 40px 90px rgba(0,0,0,0.55); align-self: center; width: 100%; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-top .dt-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.dash-top .live { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--green); display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.dash-top .live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.kpi { background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi .k-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi .k-num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-top: 7px; font-variant-numeric: tabular-nums; }
.kpi .k-num .u { color: var(--violet-2); font-size: 22px; }
.kpi .k-delta { font-family: var(--font-mono); font-size: 11px; color: var(--green); margin-top: 4px; }
.chart { background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 12px; }
.chart .c-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.chart .c-head .ct { font-size: 13px; font-weight: 700; }
.chart .c-head .cs { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; }
.bar { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--violet-2), oklch(0.5 0.18 298)); transform-origin: bottom; }
.bar.peak { background: linear-gradient(180deg, var(--green), oklch(0.6 0.13 160)); }
.bar-labels { display: flex; gap: 10px; margin-top: 8px; }
.bar-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.feed { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.feed-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.feed-row .fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.feed-row .fname { font-weight: 600; }
.feed-row .frole { color: var(--muted); font-size: 12px; }
.feed-row .fstat { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--violet-2); text-transform: uppercase; letter-spacing: 0.05em; }
@media (prefers-reduced-motion: no-preference) {
  .bar { animation: grow 0.9s cubic-bezier(.2,.8,.2,1) backwards; }
  @keyframes grow { from { transform: scaleY(0); } }
}

/* ============================================================
   PROOF BAND
   ============================================================ */
.proof { margin-top: 100px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 40px 0; padding-right: 28px; border-right: 1px solid var(--line); }
.metric:not(:first-child) { padding-left: 28px; }
.metric:last-child { border-right: none; }
.metric .m-num { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.metric .m-num .u { color: var(--violet-2); }
.metric .m-label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; line-height: 1.5; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.logos { border-top: 1px solid var(--line); padding: 30px 0; display: flex; flex-direction: column; gap: 18px; }
.logos .lead { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee-track.anim { animation: marq 40s linear infinite; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-mark { font-weight: 700; font-size: 18px; color: var(--ink-2); opacity: 0.5; padding: 0 34px; white-space: nowrap; transition: opacity .2s; }
.client-mark:hover { opacity: 1; }
.logostrip { padding: 60px 0; background: none; overflow: hidden; }
.logostrip-title { text-align: center; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 54px; color: var(--ink); text-wrap: balance; }
.logostrip .hl { color: #fff; padding: 2px 12px; border-radius: 6px; background: var(--violet); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.grad-on .logostrip .hl { background: linear-gradient(100deg, var(--violet-2), var(--violet)); }
.logo-marquee { padding: 0; }
.logo-cell { display: flex; align-items: center; justify-content: center; padding: 0 30px; flex: none; }
.logo-img { height: 168px; width: 168px; object-fit: contain; opacity: 0.85; transition: opacity .2s; }
.logo-cell:hover .logo-img { opacity: 1; }
@media (max-width: 760px) {
  .logostrip-title { font-size: 28px; margin-bottom: 38px; }
  .logo-img { height: 116px; width: 116px; }
  .logo-cell { padding: 0 16px; }
}
