/* ============================================================
   Werif.ai — Landing page  ·  premium-fintech refresh
   Design tokens in OKLCH; light + dark themes (toggleable).
   ============================================================ */

/* ---------- Fonts ---------- */
:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

/* ---------- Brand ---------- */
:root {
  --brand: #D6182B;
  --accent: #FFC222;
  --brand-press: color-mix(in oklab, var(--brand) 82%, black);
  --brand-soft: color-mix(in oklab, var(--brand) 11%, transparent);
  --accent-deep: color-mix(in oklab, var(--accent) 64%, black);
  --accent-soft: color-mix(in oklab, var(--accent) 24%, transparent);
}

/* ---------- Light theme (warm) ---------- */
:root,
:root[data-theme="light"] {
  --bg: oklch(0.987 0.004 80);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.972 0.006 80);
  --surface-3: oklch(0.955 0.008 78);
  --ink: oklch(0.235 0.012 55);
  --ink-soft: oklch(0.42 0.012 55);
  --muted: oklch(0.56 0.01 60);
  --line: oklch(0.235 0.012 55 / 0.10);
  --line-soft: oklch(0.235 0.012 55 / 0.06);
  --shadow-sm: 0 1px 2px oklch(0.235 0.03 55 / .06), 0 2px 6px oklch(0.235 0.03 55 / .05);
  --shadow-md: 0 4px 14px oklch(0.235 0.05 55 / .08), 0 12px 34px oklch(0.235 0.05 55 / .07);
  --shadow-lg: 0 10px 30px oklch(0.235 0.06 55 / .12), 0 30px 70px oklch(0.235 0.06 55 / .12);
  --on-brand: oklch(0.99 0.01 90);
  --grain: oklch(0.235 0.012 55 / 0.022);
}

/* ---------- Dark theme (warm charcoal) ---------- */
:root[data-theme="dark"] {
  --bg: oklch(0.205 0.012 55);
  --surface: oklch(0.245 0.013 55);
  --surface-2: oklch(0.275 0.014 55);
  --surface-3: oklch(0.305 0.015 55);
  --ink: oklch(0.965 0.006 80);
  --ink-soft: oklch(0.84 0.008 80);
  --muted: oklch(0.70 0.01 70);
  --line: oklch(0.97 0.01 80 / 0.12);
  --line-soft: oklch(0.97 0.01 80 / 0.07);
  --brand-soft: color-mix(in oklab, var(--brand) 22%, transparent);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-deep: color-mix(in oklab, var(--accent) 88%, white);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / .3), 0 2px 6px oklch(0 0 0 / .25);
  --shadow-md: 0 4px 14px oklch(0 0 0 / .4), 0 12px 34px oklch(0 0 0 / .35);
  --shadow-lg: 0 10px 30px oklch(0 0 0 / .5), 0 30px 70px oklch(0 0 0 / .45);
  --on-brand: oklch(0.99 0.01 90);
  --grain: oklch(1 0 0 / 0.025);
}

/* ---------- Shape tokens ---------- */
:root {
  --r-card: 22px;
  --r-sm: 14px;
  --r-btn: 999px;
  --r-pill: 999px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* subtle film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 100;
  will-change: transform;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  body { font-size: 17px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.section-head { max-width: 680px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-soft); max-width: 600px; }
.center { text-align: center; }
.center .section-head { margin: 0 auto; }

/* highlight marker */
.hl {
  position: relative;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0 .22em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.text-brand { color: var(--brand); }

/* animated gradient accent word */
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent-deep) 45%, var(--brand) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-pan 6s ease-in-out infinite;
}
@keyframes grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-press); box-shadow: var(--shadow-md), 0 8px 30px var(--brand-soft); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / .35), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-soft); }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  box-shadow: 0 8px 30px oklch(0 0 0 / .04);
}
.nav-in { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--ink); }
.brand .mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 24% 16%, color-mix(in oklab, var(--brand) 72%, white) 0%, transparent 46%),
    linear-gradient(155deg, color-mix(in oklab, var(--brand) 88%, white) 0%, var(--brand) 44%, var(--brand-press) 100%);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / .45),
    inset 0 -6px 12px oklch(0 0 0 / .20),
    0 4px 12px var(--brand-soft),
    0 2px 5px oklch(0 0 0 / .16);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand .mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, oklch(1 0 0 / .42) 0%, oklch(1 0 0 / .08) 32%, transparent 52%);
}
.brand .mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 140%;
  height: 90%;
  z-index: 0;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 55%, transparent), transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.brand:hover .mark { transform: translateY(-1px) scale(1.04); }
.brand .mark svg { position: relative; z-index: 2; width: 26px; height: 26px; filter: drop-shadow(0 1px 1px oklch(0 0 0 / .22)); }
.brand .ai { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav-links a { position: relative; font-size: 15.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--brand); border-radius: 2px; transition: width .22s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: background .18s, border-color .18s, transform .18s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--ink-soft); }
.icon-btn:active { transform: scale(.94); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .signin { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 560px) {
  .nav-cta .btn { display: none; }
}

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto;
  z-index: 49;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 32px; font-size: 17px; font-weight: 600; color: var(--ink-soft); }
.mobile-menu a:active { background: var(--surface-2); }
.mobile-menu .btn { margin: 14px 32px 0; display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 72px; padding-bottom: 96px; }

/* aurora / mesh background */
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: 0; pointer-events: none; filter: blur(40px); opacity: .9; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: normal; will-change: transform; }
.aurora .a1 { width: 520px; height: 440px; left: 60%; top: -12%; background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 480px; height: 420px; left: -6%; top: 2%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 420px; height: 360px; left: 28%; top: 48%; background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 14%, transparent), transparent 70%); animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -26px) scale(1.1); }
  66% { transform: translate(-22px, 20px) scale(.93); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-30px, 24px) scale(1.08); }
  72% { transform: translate(22px, -18px) scale(.95); }
}

/* faint dotted grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.hero-in { position: relative; z-index: 2; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px 7px 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-pill .tag { background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; }
.hero-sub { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 540px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-trust .compliance { display: flex; align-items: center; gap: 14px; }
.hero-trust .compliance b { color: var(--ink-soft); font-weight: 600; }
.hero-trust .sep { width: 1px; height: 16px; background: var(--line); }

.hero-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: 1.05fr 0.95fr; }
.hero-copy { text-align: left; }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .eyebrow + h1 { margin-top: 20px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; justify-items: start; }
  .hero-visual { width: 100%; }
}

/* ---------- Score card ---------- */
.hero-visual { position: relative; }
.score-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  max-width: 430px;
  margin: 0 auto;
}
.score-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.score-emp { display: flex; align-items: center; gap: 13px; }
.score-emp .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--ink-soft); font-family: var(--font-display); }
.score-emp .nm { font-weight: 700; font-size: 16px; font-family: var(--font-display); }
.score-emp .rl { font-size: 13px; color: var(--muted); }
.badge-verified { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }

.gauge-row { display: flex; align-items: center; gap: 24px; padding: 6px 0 18px; }
.gauge {
  --pct: 0;
  position: relative;
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 70%, transparent 71% 100%),
    conic-gradient(var(--brand) calc(var(--pct)*1%), var(--accent) calc(var(--pct)*1%) calc(var(--pct)*1% + 2%), var(--surface-3) 0);
}
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.gauge .num b { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .num span { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.gauge-legend { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.gauge-legend .gl { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.gauge-legend .gl b { margin-left: auto; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gl .gd { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.score-checks { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.score-checks .sc { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 14.5px; }
.score-checks .sc .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.sc .ico.ok { background: var(--brand-soft); color: var(--brand); }
.sc .ico.pend { background: var(--accent-soft); color: var(--accent-deep); }
.score-checks .sc .lbl { font-weight: 600; }
.score-checks .sc .st { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sc .st.done { color: var(--brand); }

.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 3;
}
.float-chip .fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.float-chip.tl { top: -22px; left: -30px; animation: chip-float 4.2s ease-in-out infinite; }
.float-chip.br { bottom: 34px; right: -34px; animation: chip-float 5.4s ease-in-out infinite .9s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (max-width: 1080px) { .float-chip { display: none; } }

/* ---------- Logos marquee ---------- */
.proof { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.proof-in { padding: 28px 0; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.proof-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--muted); opacity: .65; letter-spacing: -0.02em; transition: opacity .2s, color .2s; white-space: nowrap; }
.logo-word:hover { opacity: 1; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-4 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* cursor spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--brand) 30%, var(--line)); }
.card > * { position: relative; }
.card .ci { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; background: var(--brand-soft); color: var(--brand); }
.card .ci svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.card .meta { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.card .meta .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }

/* ---------- Workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; position: relative; }
.flow .step { position: relative; padding: 0 18px; text-align: center; }
.flow .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  right: -1px;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px);
  z-index: 0;
}
.flow .node {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.flow .step.alt .node { background: var(--brand); color: var(--on-brand); }
.flow .step h4 { font-size: 16px; margin-bottom: 6px; }
.flow .step p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow .step { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 0; }
  .flow .step .node { margin: 0; flex: none; }
  .flow .step:not(:last-child)::after { display: none; }
}

/* split block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-media { order: 0; } }
.feat-list { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.feat-list .fl { display: flex; gap: 14px; align-items: flex-start; }
.feat-list .fl .fk { width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.feat-list .fl h4 { font-size: 17px; margin-bottom: 3px; }
.feat-list .fl p { font-size: 15px; color: var(--ink-soft); }

.tenant-stack { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tenant-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.tenant-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.tenant-row .tlogo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--on-brand); flex: none; }
.tenant-row .tn { font-weight: 700; font-size: 15.5px; font-family: var(--font-display); }
.tenant-row .tm { font-size: 13px; color: var(--muted); }
.tenant-row .tbar { margin-left: auto; display: flex; flex-direction: column; gap: 5px; width: 120px; }
.tbar .bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.tbar .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent-deep)); }

/* ---------- Dashboard ---------- */
.dash-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 48px; }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.dash-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.dash-bar .durl { margin-left: 14px; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-family: var(--font-body); }
.dash-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.dash-side { border-right: 1px solid var(--line-soft); padding: 18px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.dash-side .si { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.dash-side .si.on { background: var(--brand-soft); color: var(--brand); }
.dash-side .si .sq { width: 16px; height: 16px; border-radius: 5px; background: currentColor; opacity: .5; }
.dash-main { padding: 24px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 16px; }
.stat .sk { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .sv { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .sd { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--brand); }
.stat .sd.up { color: oklch(0.6 0.15 150); }
.dash-table { border: 1px solid var(--line-soft); border-radius: var(--r-sm); overflow: hidden; }
.dash-table .tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 8px; padding: 13px 16px; font-size: 13.5px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.dash-table .tr.head { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dash-table .tr:last-child { border-bottom: 0; }
.dash-table .tr:not(.head):hover { background: var(--surface-2); }
.dash-table .tr .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dash-table .who .ta { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); flex: none; }
.pill-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-stat.green { background: oklch(0.6 0.15 150 / .14); color: oklch(0.5 0.13 150); }
.pill-stat.amber { background: var(--accent-soft); color: var(--accent-deep); }
.scoredot { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-table .tr { grid-template-columns: 1.4fr 1fr 0.7fr; }
  .dash-table .tr .col-hide { display: none; }
}

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 26px auto 0; }
.price-toggle button { border: 0; background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: .18s; }
.price-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 11px; color: var(--brand); font-weight: 700; margin-left: 5px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.plan:hover:not(.feat) { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan.feat { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
@media (max-width: 900px) { .plan.feat { transform: none; } }
.plan .tag-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.plan .pdesc { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 40px; }
.plan .pprice { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 4px; }
.plan .pprice .cur { font-size: 22px; font-weight: 600; color: var(--ink-soft); }
.plan .pprice .amt { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.plan .pprice .per { font-size: 14px; color: var(--muted); }
.plan .pnote { font-size: 13px; color: var(--muted); min-height: 18px; }
.plan .btn { margin: 22px 0; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.plan li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); border-radius: var(--r-card); padding: 68px 56px; text-align: center; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% -20%, oklch(1 0 0 / .18), transparent 60%),
    radial-gradient(500px 300px at 10% 120%, var(--accent), transparent 55%);
  opacity: .5;
  mix-blend-mode: overlay;
}
.cta-band .ci2 { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 52px); color: var(--on-brand); }
.cta-band p { margin: 16px auto 0; max-width: 520px; font-size: 19px; opacity: .92; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }
.cta-band .shimmer-line {
  position: absolute;
  inset-block: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent 0%, oklch(1 0 0 / .22) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  transform: translateX(-120%) skewX(-18deg);
  animation: cta-shimmer 4s ease-in-out infinite 1.8s;
}
@keyframes cta-shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(360%) skewX(-18deg); }
}
@media (max-width: 600px) { .cta-band { padding: 48px 24px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 68px 0 40px; background: var(--surface-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.foot-brand p { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 260px; }
.foot-col h5 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 12px; transition: color .15s; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.foot-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-badges .fb { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; }
:root[data-anim="on"] .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
:root[data-anim="on"] .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  :root[data-anim="on"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aurora span, .float-chip, .grad, .marquee-track, .cta-band .shimmer-line { animation: none !important; }
}
