/* ============================================================
   Kova. — Digital Presence Management
   Built on the Web Design library tokens (bone + lime palette).
   ============================================================ */

:root {
  --bg:      #0b0d0c;
  --ink:     #eceee8;
  --accent:  #c6f27e;
  --muted:   #8b928a;
  --hairline:#262b27;

  /* chart tokens */
  --data:        #a4d96c; /* single data hue (validated) */
  --data-wash:   rgba(164, 217, 108, 0.12);
  --data-muted:  #575c53; /* de-emphasis series */
  --delta-up:    #a4d96c;

  --font: "Inter", system-ui, -apple-system, sans-serif;

  --fs-xs:  0.875rem;
  --fs-sm:  1rem;
  --fs-md:  1.25rem;
  --fs-lg:  1.5rem;
  --fs-xl:  2rem;
  --fs-2xl: 3rem;
  --hero:   clamp(3rem, 11vw, 10.5rem);

  --lh-tight: 1.02;
  --lh-body:  1.55;
  --measure:  62ch;

  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --section-y: clamp(72px, 12vw, 160px);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-pill: 999px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   0.4s;
  --dur-base:   0.6s;
  --dur-slow:   1s;
  --travel:     24px;
  --stagger:    0.08s;
}

* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}
h1, h2, h3 { line-height: var(--lh-tight); letter-spacing: -0.03em; margin: 0; }
p { margin: 0; max-width: var(--measure); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }

.accent-dot { color: transparent; position: relative; }
.accent-dot::after {
  content: "."; color: var(--accent); position: absolute; left: 0;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
}

/* ---- Eyebrow ------------------------------------------------ */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-6);
}
.eyebrow__num {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-right: var(--sp-3);
}

/* ---- CTA ---------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
/* shine sweep across the pill on hover */
.cta::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }
.cta:hover::before { transform: translateX(420%) skewX(-20deg); }
.cta--big { font-size: var(--fs-lg); padding: 20px 40px; }

/* Underline-sweep + arrow-slide CTA (adapted from the UI library, MIT) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: bottom left; }
.link-arrow svg { fill: currentColor; transform: translateX(-6px); transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(0); }

/* ---- Preloader ---------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity var(--dur-base) var(--ease-inout), visibility var(--dur-base);
}
.preloader__word {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--bg);
  opacity: 0; transform: translateY(16px);
  animation: preloadIn 0.7s var(--ease-out) 0.1s forwards;
}
.preloader__word .accent-dot::after { -webkit-text-stroke: 0; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes preloadIn { to { opacity: 1; transform: none; } }

/* ---- Nav ---------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--sp-4);
}
.nav__logo { font-weight: 800; font-size: var(--fs-md); letter-spacing: -0.02em; }
.nav__links { display: flex; gap: var(--sp-8); }
.nav__links a {
  font-size: var(--fs-xs); font-weight: 500; color: var(--muted);
  transition: color var(--dur-fast);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 10px 22px; font-size: var(--fs-xs); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---- Hero --------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--sp-24) + 40px) var(--sp-16);
}

/* Slot-machine word roller (after the slot text motion reference) */
.slot {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.02em;
  transition: width 0.6s var(--ease-inout);
}
.slot__track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.7s var(--ease-inout);
}
.slot__track span {
  display: block;
  height: 1.02em;
  line-height: 1.02;
  white-space: nowrap;
}
.hero__eyebrow { margin-bottom: var(--sp-8); }
.hero__title {
  font-size: var(--hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: none;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
body.is-loaded .hero__title .line:nth-child(1) .line__inner { transition-delay: 0.05s; }
body.is-loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.15s; }
body.is-loaded .hero__title .line:nth-child(3) .line__inner { transition-delay: 0.25s; }
body.is-loaded .hero__title .line__inner { transform: none; }
.hero__foot {
  margin-top: var(--sp-12);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-8); flex-wrap: wrap;
}
.hero__support { max-width: 46ch; font-size: var(--fs-md); color: var(--muted); }
.hero__actions { display: flex; align-items: center; gap: var(--sp-8); }

/* ---- Marquee ------------------------------------------------ */
.marquee {
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  padding-block: var(--sp-4);
  background: var(--ink);
  color: var(--bg);
}
.marquee__track {
  display: flex; align-items: center; gap: var(--sp-8);
  width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 600; font-size: var(--fs-md);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: 0.5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---- Statement ---------------------------------------------- */
.statement__text {
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 28ch;
}
.statement__text em {
  font-style: normal;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 68%;
  background-size: 0% 32%;
  transition: background-size 0.9s var(--ease-out) 0.35s;
}
.statement__text.is-in em { background-size: 100% 32%; }

/* ---- Section titles ---------------------------------------- */
.section__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: var(--sp-16);
}

/* ---- Services ----------------------------------------------- */
.services__list { border-top: 1px solid var(--hairline); }
.service {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: var(--sp-8);
  align-items: baseline;
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--hairline);
  transition: padding-left var(--dur-fast) var(--ease-out);
}
.service:hover { padding-left: var(--sp-3); }
.service__arrow {
  font-size: var(--fs-lg);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.service:hover .service__arrow { opacity: 1; transform: none; }
.service__num { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.service__body h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.service__body p { color: var(--muted); max-width: 52ch; }
.service__tag {
  font-size: var(--fs-xs); font-weight: 500; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 4px 14px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .service { grid-template-columns: 48px 1fr; }
  .service__tag, .service__arrow { display: none; }
}

/* ---- Results / charts --------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
@media (max-width: 1000px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .kpi-row { grid-template-columns: 1fr; } }

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.stat-tile__label { font-size: var(--fs-xs); color: var(--muted); }
.stat-tile__value { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-tile__delta { font-size: var(--fs-xs); color: var(--muted); }
.stat-tile__delta--up { color: var(--delta-up); font-weight: 500; }
.stat-tile__spark { width: 120px; height: 36px; margin-top: auto; }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 1000px) { .charts { grid-template-columns: 1fr; } }

.chart-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.chart-card__title { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; }
.chart-card__sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.chart { margin-top: var(--sp-6); }
.chart svg { width: 100%; height: auto; }

.chart-legend {
  display: flex; gap: var(--sp-6);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs); color: var(--muted);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch--data  { background: var(--data); }
.swatch--muted { background: var(--data-muted); }

.chart-data { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }
.chart-data summary { cursor: pointer; font-weight: 500; }
.chart-data table { border-collapse: collapse; margin-top: var(--sp-3); width: 100%; max-width: 360px; }
.chart-data th, .chart-data td {
  text-align: left; padding: 4px 12px 4px 0;
  border-bottom: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}

.results__note { margin-top: var(--sp-8); font-size: var(--fs-xs); color: var(--muted); }

.chart-tooltip {
  position: fixed; z-index: 60;
  pointer-events: none;
  background: #080a09; color: var(--ink);
  font-size: var(--fs-xs); font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
  opacity: 0; transform: translate(-50%, -130%);
  transition: opacity 0.15s var(--ease-out);
  white-space: nowrap;
}
.chart-tooltip.is-on { opacity: 1; }

/* ---- Process ------------------------------------------------ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}
@media (max-width: 1000px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .process__grid { grid-template-columns: 1fr; } }
.process__step {
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-6);
}
.process__num { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.process__step h3 { font-size: var(--fs-lg); font-weight: 600; margin-block: var(--sp-3) var(--sp-3); }
.process__step p { font-size: var(--fs-xs); color: var(--muted); }

/* ---- Plans -------------------------------------------------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
@media (max-width: 1000px) { .plans__grid { grid-template-columns: 1fr; max-width: 480px; } }
.plan {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-8);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.plan--featured { background: #080a09; color: var(--ink); border-color: var(--ink); }
/* Rotating light border (adapted from the UI library's rotating-light pricing card, MIT) */
.plan--featured > :not(.plan__beam) { position: relative; z-index: 1; }
.plan__beam {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
}
.plan__beam::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 220%; height: 10rem;
  transform: translate(-50%, -50%) rotate(0deg);
  background: linear-gradient(0deg,
    transparent 0%,
    var(--accent) 40%,
    var(--accent) 60%,
    transparent 100%);
  animation: beam-rotate 7s linear infinite;
}
.plan__beam::after {
  content: "";
  position: absolute; inset: 2px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink);
}
@keyframes beam-rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
.plan__badge {
  position: absolute; top: calc(-1 * var(--sp-3)); left: var(--sp-8);
  background: var(--accent); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 14px; border-radius: var(--radius-pill);
}
.plan__name { font-size: var(--fs-lg); font-weight: 600; }
.plan__price { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; margin-top: var(--sp-4); }
.plan__price span { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan--featured .plan__price span { color: #9aa096; }
.plan__blurb { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.plan--featured .plan__blurb { color: #9aa096; }
.plan__list { margin-block: var(--sp-6); display: grid; gap: var(--sp-3); flex: 1; }
.plan__list li {
  font-size: var(--fs-xs);
  padding-left: 22px;
  position: relative;
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
}
.plan__cta {
  display: block; text-align: center;
  font-weight: 600; font-size: var(--fs-xs);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 12px 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.plan__cta:hover { background: #080a09; color: var(--ink); }
.plan__cta--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.plan__cta--accent:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.plans__note { margin-top: var(--sp-8); font-size: var(--fs-xs); color: var(--muted); }

/* ---- FAQ ---------------------------------------------------- */
.faq__list { display: grid; gap: var(--sp-3); }
.faq__item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--sp-6);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-weight: 400; font-size: var(--fs-lg); color: var(--muted);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin-top: var(--sp-4); color: var(--muted); }

/* ---- Contact ------------------------------------------------ */
.contact { text-align: center; }
.contact .eyebrow { display: flex; justify-content: center; }
.contact__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-inline: auto;
  max-width: 16ch;
}
.contact__sub { margin: var(--sp-6) auto 0; color: var(--muted); max-width: 46ch; }
.contact__actions { margin-top: var(--sp-12); }

/* ---- Footer ------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding-top: var(--sp-24);
  overflow: hidden;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-8); flex-wrap: wrap;
  padding-bottom: var(--sp-24);
}
.footer__links { display: flex; gap: var(--sp-8); flex-wrap: wrap; }
.footer__links a { font-size: var(--fs-xs); color: #9aa096; transition: color var(--dur-fast); }
.footer__links a:hover { color: var(--bg); }
.footer__meta { font-size: var(--fs-xs); color: #9aa096; text-align: right; }
.footer__wordmark {
  font-size: clamp(4rem, 17.5vw, 15.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding-top: 0.08em; /* room for the rising letters */
}
.footer__wordmark .ltr {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i) * 0.05s);
}
.footer__wordmark.is-in .ltr { transform: none; }
.footer__wordmark .accent-dot::after { -webkit-text-stroke: 0; }
.footer__legal { font-size: var(--fs-xs); color: #6f756b; padding-block: var(--sp-6) var(--sp-8); }

/* ---- Reveal pattern ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--travel));
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Reduced motion ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero__title .line__inner, .footer__wordmark .ltr { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .plan__beam::before { animation: none; }
  .statement__text em { background-size: 100% 32%; }
}

/* ============================================================
   v3 — bento visuals, shift, who
   ============================================================ */

:root { --surface: #141815; --elev: #1b201c; --on-accent: #10140f; }

/* ---- Bento grid ---- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4); margin-top: var(--sp-12);
}
.bcard {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: var(--sp-4); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              border-color 0.3s, box-shadow 0.3s;
  transition-delay: calc(var(--i) * 0.06s);
}
.bcard.go { opacity: 1; transform: none; }
.bcard:hover { border-color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.bcard--web { grid-column: span 2; grid-row: span 2; }
.bcard--chat, .bcard--content, .bcard--search { grid-column: span 2; }
.bviz {
  flex: 1; display: grid; place-items: center;
  padding: var(--sp-4); min-height: 150px;
}
.bcard--web .bviz { min-height: 320px; }
.bcap { margin: 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.bcap b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard--web { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bcard, .bcard--web, .bcard--chat, .bcard--content, .bcard--search { grid-column: span 1; grid-row: span 1; }
}

/* ---- Browser / wireframe ---- */
.browser {
  width: 100%; max-width: 420px; background: var(--bg);
  border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.browser__bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px; border-bottom: 1px solid var(--hairline);
}
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); }
.browser__url {
  margin-left: 8px; font-size: 10px; color: var(--muted);
  background: var(--surface); border-radius: 99px; padding: 3px 10px;
}
.browser__page { padding: 12px; }
.wf { background: var(--hairline); border-radius: 4px; opacity: 0; transform: translateY(8px); }
.viz.go .wf { animation: wfIn 0.5s var(--ease-out) forwards; }
.wf-nav { display: flex; gap: 6px; background: none; padding: 0 0 10px; }
.wf-nav span { width: 34px; height: 6px; border-radius: 3px; background: var(--hairline); }
.wf-hero { height: 74px; background: var(--accent); animation-delay: 0.15s !important; }
.wf-line { height: 8px; margin-top: 8px; }
.wf-line.w60 { width: 60%; animation-delay: 0.3s !important; }
.wf-line.w40 { width: 40%; animation-delay: 0.4s !important; }
.wf-cols { display: flex; gap: 8px; margin-top: 10px; }
.wf-col { flex: 1; height: 44px; }
.wf-cols .wf-col:nth-child(1) { animation-delay: 0.5s !important; }
.wf-cols .wf-col:nth-child(2) { animation-delay: 0.6s !important; }
.wf-cols .wf-col:nth-child(3) { animation-delay: 0.7s !important; }
.wf-cta {
  display: inline-block; margin-top: 12px; background: var(--ink); color: var(--accent);
  font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 99px;
  animation-delay: 0.85s !important;
}
@keyframes wfIn { to { opacity: 1; transform: none; } }

/* ---- Chat ---- */
.chat { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.chat__meta { margin: 0 0 2px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4;
  opacity: 0; transform: scale(0.9) translateY(6px);
}
.viz.go .bubble { animation: popIn 0.45s var(--ease-out) forwards; }
.bubble--in { background: var(--bg); border: 1px solid var(--hairline); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--out {
  background: #080a09; color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end;
  animation-delay: 0.5s !important;
}
.chat__badge {
  align-self: flex-end; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--delta-up); opacity: 0;
}
.viz.go .chat__badge { animation: wfIn 0.4s var(--ease-out) 1s forwards; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* ---- Film strip / chips ---- */
.strip { display: flex; gap: 8px; width: 100%; max-width: 380px; }
.frame {
  flex: 1; aspect-ratio: 3 / 4; background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 6px; opacity: 0; transform: translateY(10px);
}
.viz.go .frame { animation: wfIn 0.5s var(--ease-out) forwards; }
.strip .frame:nth-child(2) { animation-delay: 0.1s; }
.strip .frame:nth-child(3) { animation-delay: 0.2s; }
.strip .frame:nth-child(4) { animation-delay: 0.3s; }
.strip .frame:nth-child(5) { animation-delay: 0.4s; }
.frame--play { background: var(--ink); display: grid; place-items: center; }
.frame--play i {
  width: 0; height: 0; border-left: 10px solid var(--accent);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center; }
.chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--hairline); color: var(--muted);
  opacity: 0;
}
.viz.go .chip { animation: wfIn 0.4s var(--ease-out) forwards; }
.chips .chip:nth-child(1) { animation-delay: 0.5s; }
.chips .chip:nth-child(2) { animation-delay: 0.6s; }
.chips .chip:nth-child(3) { animation-delay: 0.7s; }
.chips .chip:nth-child(4) { animation-delay: 0.85s; }
.chip--lime { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---- Doc / quote / invoice ---- */
.doc {
  width: 100%; max-width: 190px; background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 14px; position: relative;
}
.doc__line { height: 7px; border-radius: 3px; background: var(--hairline); margin-bottom: 8px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.doc__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--hairline); margin-top: 10px; padding-top: 8px;
}
.doc__total span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.doc__total b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.doc__foot { margin-top: 8px; font-size: 10px; color: var(--delta-up); font-weight: 600; }
.stamp {
  position: absolute; right: 8px; bottom: 10px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.12em; color: var(--delta-up);
  border: 2.5px solid var(--delta-up); border-radius: 6px; padding: 2px 8px;
  transform: rotate(-12deg) scale(2.4); opacity: 0;
}
.viz.go .stamp { animation: stampIn 0.35s var(--ease-out) 0.4s forwards; }
@keyframes stampIn { to { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* ---- Calendar ---- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: 100%; max-width: 200px; }
.cal i {
  aspect-ratio: 1; border-radius: 5px; background: var(--bg); border: 1px solid var(--hairline);
  font-style: normal; display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.cal i.on { background: var(--accent); border-color: var(--accent); opacity: 0; transform: scale(0.6); }
.viz.go .cal i.on { animation: popIn 0.3s var(--ease-out) forwards; }
.cal .d1 { animation-delay: 0.10s !important; } .cal .d2 { animation-delay: 0.22s !important; }
.cal .d3 { animation-delay: 0.34s !important; } .cal .d4 { animation-delay: 0.46s !important; }
.cal .d5 { animation-delay: 0.58s !important; } .cal .d6 { animation-delay: 0.70s !important; }
.cal .d7 { animation-delay: 0.82s !important; } .cal .d8 { animation-delay: 0.94s !important; }

/* ---- Search / AI ---- */
.bcard--search .bviz { flex-direction: column; display: flex; gap: 10px; align-items: stretch; justify-content: center; }
.sbar {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 99px;
  padding: 9px 16px; color: var(--muted); font-size: 13px;
}
.sbar__text { white-space: nowrap; overflow: hidden; }
.caret { width: 1.5px; height: 14px; background: var(--ink); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sanswer {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; max-width: 360px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px;
  opacity: 0; transform: translateY(8px);
}
.viz.go .sanswer { animation: wfIn 0.5s var(--ease-out) 1.6s forwards; }
.sanswer__spark { color: var(--data); font-size: 15px; }
.sanswer > div { flex: 1; }
.sanswer__hit { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--accent); display: inline-block; padding: 2px 8px; border-radius: 4px; }

/* ---- Dashboard ---- */
.dash { width: 100%; max-width: 190px; display: flex; flex-direction: column; gap: 10px; }
.bars { display: flex; gap: 7px; align-items: flex-end; height: 68px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--ink); height: 0; }
.bars i:last-child { background: var(--data); }
.viz.go .bars i { animation: barUp 0.7s var(--ease-out) forwards; }
.bars i:nth-child(2) { animation-delay: 0.08s; } .bars i:nth-child(3) { animation-delay: 0.16s; }
.bars i:nth-child(4) { animation-delay: 0.24s; } .bars i:nth-child(5) { animation-delay: 0.32s; }
.bars i:nth-child(6) { animation-delay: 0.40s; }
@keyframes barUp { to { height: var(--h); } }
.spark { width: 100%; }
.spark polyline { stroke: var(--data); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 140; stroke-dashoffset: 140; }
.viz.go .spark polyline { animation: sparkDraw 1s var(--ease-out) 0.5s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

/* ---- Social posts ---- */
.posts { position: relative; width: 120px; height: 130px; }
.post {
  position: absolute; inset: 0; border-radius: 10px; background: var(--bg);
  border: 1px solid var(--hairline); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.post.p3 { transform: rotate(-7deg) translateY(10px); }
.post.p2 { transform: rotate(4deg) translateY(4px); }
.post.p1 { display: grid; place-items: center; }
.viz.go .post.p3 { animation: fan3 0.6s var(--ease-out) forwards; }
.viz.go .post.p2 { animation: fan2 0.6s var(--ease-out) 0.1s forwards; }
@keyframes fan3 { to { transform: rotate(-10deg) translate(-10px, 12px); } }
@keyframes fan2 { to { transform: rotate(6deg) translate(10px, 5px); } }
.heart { color: var(--ink); font-size: 26px; opacity: 0; transform: scale(0.4); }
.viz.go .heart { animation: heartPop 0.45s var(--ease-out) 0.5s forwards; }
@keyframes heartPop { 60% { transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }

/* ---- Mail ---- */
.mail { position: relative; width: 130px; }
.mail svg { width: 100%; }
.mail rect, .mail path { stroke: var(--ink); stroke-width: 2.5; }
.mail__flap { stroke-dasharray: 130; stroke-dashoffset: 130; }
.viz.go .mail__flap { animation: sparkDraw 0.9s var(--ease-out) 0.2s forwards; }
.mail__dot {
  position: absolute; top: -10px; right: -22px;
  background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
  opacity: 0; transform: scale(0.6);
}
.viz.go .mail__dot { animation: popIn 0.4s var(--ease-out) 0.8s forwards; }

/* ---- Shift ---- */
.shift__rows { margin-top: var(--sp-8); border-top: 1px solid var(--hairline); }
.shift__row {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-4); align-items: baseline;
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--hairline);
}
.shift__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.shift__swap {
  margin: 0; display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap;
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.shift__swap s { color: var(--muted); text-decoration-thickness: 3px; text-decoration-color: var(--ink); opacity: 0.55; }
.shift__swap svg { width: 34px; fill: var(--ink); align-self: center; flex: none; }
.shift__swap em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
}
.shift__note {
  max-width: var(--measure); color: var(--muted); font-size: var(--fs-sm);
  margin-top: var(--sp-8); padding-left: var(--sp-4); border-left: 3px solid var(--accent);
}
@media (max-width: 700px) { .shift__row { grid-template-columns: 1fr; gap: 6px; } }

/* ---- Who ---- */
.who__line {
  max-width: 46ch; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45;
  margin: var(--sp-8) 0 0; letter-spacing: -0.01em;
}
.who__names {
  display: flex; gap: var(--sp-4); align-items: baseline; margin-top: var(--sp-8);
  font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.01em;
}
.who__names i { color: var(--accent); font-style: normal; font-weight: 800; }

/* ============================================================
   v4 — dark fintech pass, live tiles, process stepper
   ============================================================ */

/* On-accent text: anything sitting on lime stays near-black */
.cta { color: var(--on-accent); }
.wf-cta { background: var(--accent); color: var(--on-accent); }
.sanswer__hit { color: var(--on-accent); }
.chip--lime { color: var(--on-accent); }
.cal i.on { color: var(--on-accent); }

/* Preloader + marquee on deep ground */
.preloader { background: #080a09; }
.preloader__word { color: var(--accent); }
.marquee { border-block: 1px solid var(--hairline); }

/* Hero ambience: one slow lime glow, one faint drift */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,242,126,0.14), transparent 65%);
  top: -240px; right: -160px;
  animation: glowDrift 16s var(--ease-inout) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-140px, 120px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

/* Cards: raised dark surfaces, lime-tinged hover */
.bcard { background: var(--surface); border-color: var(--hairline); }
.bcard:hover {
  border-color: rgba(198, 242, 126, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 44px rgba(198, 242, 126, 0.05);
}
.browser, .doc, .post, .cal i, .bubble--in, .chip, .frame { background: var(--elev); }
.sbar, .sanswer { background: var(--elev); }
.browser__url { background: var(--surface); }
.wf { background: #2a302b; }
.wf-nav span { background: #2a302b; }
.wf-hero { background: var(--accent); }
.doc__line { background: #2a302b; }
.frame--play { background: #080a09; }
.bubble--out { background: var(--accent); color: var(--on-accent); }
.bars i { background: #3a4038; }
.bars i:last-child { background: var(--accent); }
.spark polyline { stroke: var(--accent); }
.stamp { color: var(--accent); border-color: var(--accent); }
.mail rect, .mail path { stroke: var(--ink); }

/* Chat live loop */
.chat { transition: opacity 0.35s var(--ease-out); }
.chat.is-swapping { opacity: 0; }
.bubble--typing { display: inline-flex; gap: 4px; align-items: center; min-width: 0; }
.bubble--typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: typeDot 1s ease-in-out infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typeDot { 40% { transform: translateY(-4px); opacity: 1; } 80% { opacity: 0.4; } }

/* Search live loop: class-driven, not delay-driven */
.viz.go .sanswer { animation: none; }
.sanswer {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.sanswer.on { opacity: 1; transform: none; }

/* Dashboard live bars */
.bars i { transition: height 0.9s var(--ease-inout); }

/* Shift: bigger */
.shift__label { font-size: 0.95rem; }
.shift__swap { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.shift__swap svg { width: 44px; }

/* Process: stepper with sweeping lime bars */
.process__grid.viz .process__step { opacity: 0; transform: translateY(18px); border-top: 0; }
.process__grid.viz.go .process__step {
  animation: wfIn 0.6s var(--ease-out) forwards;
  animation-delay: calc(var(--s) * 0.35s);
}
.process__step { position: relative; padding-top: var(--sp-6); transition: transform 0.3s var(--ease-out); }
.process__step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--hairline);
}
.process__step::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.process__grid.viz.go .process__step::after {
  animation: sweep 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--s) * 0.35s + 0.15s);
}
@keyframes sweep { to { transform: scaleX(1); } }
.process__step:hover { transform: translateY(-5px); }
.process__step:hover .process__num { color: var(--accent); }
.process__num { transition: color 0.3s; }

/* Who: statement band */
.who__line {
  max-width: 34ch; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600;
  line-height: 1.3; letter-spacing: -0.02em; margin-top: var(--sp-8);
}
.who__names { font-size: var(--fs-md); color: var(--muted); font-weight: 600; }
.who__names span { color: var(--ink); }

/* cascade fixes: keep lime where lime belongs */
.marquee { background: #080a09; color: var(--ink); }
.wf.wf-cta { background: var(--accent); color: var(--on-accent); }
.chip.chip--lime { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.shift__swap em { background: none; color: var(--accent); }
.mail { margin: 12px 20px 0 0; }
.mail__dot { top: -8px; right: -14px; }

/* ============================================================
   v5 — stats band, steady tile heights, content playhead
   ============================================================ */

/* Fixed viz heights so live loops never shift the layout */
.bviz { min-height: 0; }
.bcard--web .bviz { height: 400px; overflow: hidden; }
.bcard--chat .bviz {
  display: flex; align-items: flex-start; justify-content: center;
  height: 240px; overflow: hidden;
}
.bcard--content .bviz { height: 240px; overflow: hidden; }
.bcard--search .bviz { height: 240px; overflow: hidden; }
.bcard:not(.bcard--web):not(.bcard--chat):not(.bcard--content):not(.bcard--search) .bviz {
  height: 190px; overflow: hidden;
}

/* Content playhead */
.frame { position: relative; display: grid; place-items: center; transition: background 0.35s, border-color 0.35s; }
.frame i {
  width: 0; height: 0; border-left: 10px solid var(--accent);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.frame.is-active { background: #080a09; border-color: rgba(198, 242, 126, 0.55); }
.frame.is-active i { opacity: 1; transform: scale(1); }
.frame--play { background: var(--elev); }

/* Stats band */
.stats { padding-block: calc(var(--section-y) * 0.55); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline); border-block: 1px solid var(--hairline);
}
.stat {
  background: var(--bg); padding: var(--sp-8) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.stat__num {
  font-size: clamp(2.6rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat__num b { font-weight: 800; }
.stat__label { font-size: var(--fs-xs); color: var(--muted); max-width: 24ch; }
.stats__note {
  margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--muted);
  padding-left: var(--sp-4); border-left: 3px solid var(--accent);
}
@media (max-width: 900px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr; } }
