/* =========================================================================
   Remote Revenue - Landing
   Design read: AI/automation agency, dark premium high-tech, LatAm + US.
   Dials: VARIANCE 8 / MOTION 6 / DENSITY 3. Dark theme lock.
   Accent lock: electric lime. Radius lock: btn pill / card 16 / input 10.
   ========================================================================= */

/* ---------- Fonts (self-hosted, swap) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #131619;
  --surface-2: #181c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f5f7;
  --text-soft: #c2c7cf;
  --text-mute: #8b929c;

  --accent: #c4f042;          /* electric lime - locked single accent */
  --accent-bright: #d4fb5e;
  --accent-dim: rgba(196, 240, 66, 0.14);
  --accent-line: rgba(196, 240, 66, 0.35);
  --on-accent: #0a0b0d;       /* dark text on lime - WCAG AA pass */

  --r-btn: 999px;
  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 999px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 18px 50px -16px rgba(196, 240, 66, 0.28);

  --container: 1200px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg, canvas { display: block; max-width: 100%; }
/* Icons/logos reference symbols via <use>; bind their fill to text color so they inherit color.
   Scoped away from .brand__mark, .flowmap (own fills) and .flag (multi-color flags keep theirs). */
svg:has(> use):not(.flag) { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-line); flex: 0 0 auto; }
.eyebrow--lead { text-transform: none; letter-spacing: 0.005em; font-size: 0.95rem; font-weight: 600; line-height: 1.45; max-width: 40ch; align-items: flex-start; }
.eyebrow--lead::before { margin-top: 0.72em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; overflow-wrap: break-word; }
.h-sec { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--text-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-btn);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1;
  white-space: nowrap; transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); animation: ctaPulse 2.8s ease-in-out infinite; }
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-2px); animation-play-state: paused; }
.btn--primary:active { transform: translateY(0) scale(0.98); }
@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-accent), 0 0 0 0 rgba(196, 240, 66, 0); }
  50% { box-shadow: var(--shadow-accent), 0 0 20px 1px rgba(196, 240, 66, 0.38); }
}
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(0.98); }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 68px; display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand b { color: var(--accent); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.93rem; color: var(--text-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 16px; }

/* Language switcher */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px;
  font-family: var(--font-display);
}
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--text-mute);
  transition: background 0.2s, color 0.2s;
}
.lang__btn .flag { width: auto; height: 13px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.14); }
.lang__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.nav__links-cta { display: none; }
.nav__menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav__menu-btn svg { width: 20px; height: 20px; }

/* ---------- Background glow (single, subtle, not AI-purple) ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(196,240,66,0.10), transparent 65%);
  filter: blur(20px);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.04;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- HERO (asymmetric split) ---------- */
.hero { min-height: 100dvh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 56px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__copy { max-width: 640px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin: 22px 0 0; }
.hero h1 .hl { color: var(--accent); }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--text-soft); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__logos { position: absolute; inset: 0; pointer-events: none; }
.hero__logo {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(44px, 8.5vw, 58px); height: clamp(44px, 8.5vw, 58px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 15px; background: rgba(20, 24, 29, 0.82); backdrop-filter: blur(5px);
  border: 1px solid var(--line-strong); color: #e2e7ed; box-shadow: var(--shadow);
  pointer-events: auto; cursor: default;
  transform: translate(-50%, -50%);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  animation: heroFloat var(--d) ease-in-out var(--t) infinite;
}
.hero__logo svg { width: 52%; height: 52%; transition: transform 0.2s var(--ease); }
.hero__logo::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  color: var(--on-accent); background: var(--accent); padding: 3px 9px; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.hero__logo:hover { color: #fff; border-color: var(--accent); background: #1d2228; box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(196,240,66,0.4); animation-play-state: paused; }
.hero__logo:hover svg { transform: scale(1.16); }
.hero__logo:hover::after { opacity: 1; }
@keyframes heroFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 9px)); }
}

/* ---------- Stat band ---------- */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.statband__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 0; }
.stat { }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.stat__label { margin-top: 8px; font-size: 0.92rem; color: var(--text-soft); }
.statband__note { padding-bottom: 22px; font-size: 0.78rem; color: var(--text-mute); }

/* ---------- Problem (offset list, full-width band) ---------- */
.problem { background: var(--bg); }
.problem__head { max-width: 720px; margin-bottom: 52px; }
.problem__head h2 { margin-top: 18px; }
.problem__head p { margin-top: 18px; }
.pain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pain__item {
  display: flex; gap: 16px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.pain__item:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.pain__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.pain__ic svg { width: 22px; height: 22px; color: var(--accent); }
.pain__item h3 { font-size: 1.12rem; }
.pain__item p { margin-top: 7px; font-size: 0.95rem; color: var(--text-mute); }

/* ---------- Solution (split text + visual) ---------- */
.solution__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.solution__panel {
  border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: 8px; box-shadow: var(--shadow);
}
.flowmap { width: 100%; height: auto; border-radius: 12px; }

/* Integrations orbit hub (replaces static flow diagram) */
.orbit { position: relative; container-type: size; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin: 0 auto; display: grid; place-items: center; border-radius: 12px; }
.orbit__deco { position: absolute; inset: 0; pointer-events: none; }
.orbit__deco span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255,255,255,0.08); }
.orbit__deco span:nth-child(1) { width: 60cqmin; height: 60cqmin; }
.orbit__deco span:nth-child(2) { width: 88cqmin; height: 88cqmin; border-color: rgba(196,240,66,0.1); }
.orbit__core { position: relative; z-index: 4; width: 32cqmin; height: 32cqmin; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(196,240,66,0.18), rgba(196,240,66,0.04)); border: 1.5px solid var(--accent); box-shadow: 0 0 40px rgba(196,240,66,0.25), inset 0 0 20px rgba(196,240,66,0.1); }
.orbit__core b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--accent); line-height: 1; }
.orbit__core small { font-family: var(--font-body); font-size: 0.68rem; color: var(--text-mute); margin-top: 2px; }
.orbit__item {
  position: absolute; top: 50%; left: 50%;
  width: var(--chip); height: var(--chip);
  margin: calc(var(--chip) / -2) 0 0 calc(var(--chip) / -2);
  transform: rotate(calc(var(--step) * var(--i))) translateX(var(--r)) rotate(calc(-1 * var(--step) * var(--i)));
  --chip: clamp(40px, 12cqmin, 56px);
}
.orbit__item--in { --r: 29cqmin; --dur: 36s; --step: 72deg; }
.orbit__item--out { --r: 43cqmin; --dur: 52s; --step: 60deg; }
.orbit__chip {
  position: relative;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-strong);
  color: #dfe4ea; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.orbit__chip svg { width: 54%; height: 54%; }
.orbit__chip::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: var(--r-pill);
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.orbit__chip:hover { color: #fff; border-color: var(--accent); background: #1d2128; box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(196,240,66,0.35); }
.orbit__chip:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .orbit__item { animation: orbit var(--dur) linear infinite; animation-delay: calc(var(--dur) / var(--n) * var(--i) * -1); }
  .orbit__item--in { --n: 5; }
  .orbit__item--out { --n: 6; animation-direction: reverse; }
  .orbit:hover .orbit__item { animation-play-state: paused; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
.solution h2 { margin-top: 18px; }
.solution__list { margin-top: 26px; display: grid; gap: 14px; }
.solution__list li { display: flex; gap: 14px; align-items: center; color: var(--text-soft); }
.solution__list svg { flex: 0 0 auto; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* ---------- How it works (numbered rail) ---------- */
.steps__head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 56px; }
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 36px 28px; border-right: 1px solid var(--line); position: relative; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-right: 0; }
.step__n { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.step__bar { height: 2px; background: var(--line); margin: 16px 0 22px; position: relative; overflow: hidden; }
.step__bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); transition: width 0.9s var(--ease); }
.step.in .step__bar::after { width: 100%; }
.step h3 { font-size: 1.22rem; }
.step p { margin-top: 12px; font-size: 0.94rem; color: var(--text-mute); }

/* ---------- Use cases (interactive cards) ---------- */
.cases__head { max-width: 720px; margin-bottom: 48px; }
.cases__head h2 { margin-top: 18px; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); padding: 28px; position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.case::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.3s var(--ease);
}
.case:hover, .case.open { border-color: var(--accent-line); transform: translateY(-3px); }
.case.open::after { transform: scaleY(1); }
.case__top { display: flex; align-items: center; gap: 14px; }
.case__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.case__ic svg { width: 24px; height: 24px; color: var(--accent); }
.case h3 { font-size: 1.18rem; }
.case__hint { margin-top: 14px; font-size: 0.92rem; color: var(--text-mute); }
.case__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.case__body > div { overflow: hidden; }
.case.open .case__body { grid-template-rows: 1fr; }
.case__body ul { margin-top: 18px; display: grid; gap: 11px; }
.case__body li { display: flex; gap: 11px; align-items: center; font-size: 0.92rem; color: var(--text-soft); }
.case__body li svg { flex: 0 0 auto; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.case__plus { position: absolute; top: 26px; right: 26px; width: 26px; height: 26px; color: var(--accent); opacity: 0.65; transition: transform 0.3s var(--ease), opacity 0.2s; }
.case:hover .case__plus { opacity: 1; }
.case.open .case__plus { transform: rotate(45deg); opacity: 1; }

/* ---------- Benefits (bento with rhythm) ---------- */
.benefits__head { max-width: 680px; margin-bottom: 48px; }
.benefits__head h2 { margin-top: 18px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 18px; }
.bcell { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 28px; position: relative; overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease); }
.bcell:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.bcell h3 { font-size: 1.15rem; margin-top: 16px; }
.bcell p { margin-top: 9px; font-size: 0.92rem; color: var(--text-mute); }
.bcell__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.bcell__ic svg { width: 22px; height: 22px; color: var(--accent); }
.bcell--wide { grid-column: span 4; }
.bcell--mid { grid-column: span 3; }
.bcell--third { grid-column: span 2; }
.bcell--feature { grid-column: span 4; grid-row: span 2; background: linear-gradient(155deg, var(--accent-dim), var(--surface) 55%); display: flex; flex-direction: column; justify-content: space-between; }
.bcell--feature .big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.bcell--dark { grid-column: span 2; background: var(--bg-2); }

/* ---------- Proof: before/after comparator ---------- */
.proof__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.proof h2 { margin-top: 18px; }
.proof p.lead { margin-top: 18px; }
.proof__stats { margin-top: 28px; display: grid; gap: 14px; }
.proof__stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.proof__stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); min-width: 92px; }
.proof__stat span { font-size: 0.95rem; color: var(--text-soft); }

.compare { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); user-select: none; background: var(--surface); aspect-ratio: 4 / 3; touch-action: pan-y; }
.compare__pane { position: absolute; inset: 0; padding: 28px 30px; display: flex; flex-direction: column; }
.compare__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-pill); }
.compare__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.compare__after { background: linear-gradient(160deg, #11160c, var(--bg-2)); }
.compare__after .compare__tag { color: var(--accent); background: var(--accent-dim); }
.compare__after .compare__tag::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.compare__before { background: linear-gradient(160deg, #1c1414, #16100f); clip-path: inset(0 50% 0 0); z-index: 2; }
.compare__before .compare__tag { color: #f0a3a3; background: rgba(224,99,99,0.14); }
.compare__before .compare__tag::before { background: #e06363; }
.compare__rows { margin-top: 20px; display: grid; gap: 12px; }
.crow { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; color: var(--text-soft); opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.compare.in .crow { opacity: 1; transform: none; }
.compare.in .compare__after .crow:nth-child(2) { transition-delay: 0.1s; }
.compare.in .compare__after .crow:nth-child(3) { transition-delay: 0.18s; }
.compare.in .compare__after .crow:nth-child(4) { transition-delay: 0.26s; }
.compare.in .compare__after .crow:nth-child(5) { transition-delay: 0.34s; }
.crow svg { width: 22px; height: 22px; flex: 0 0 auto; padding: 4px; border-radius: 50%; }
.compare__before .crow svg { color: #e06363; background: rgba(224,99,99,0.12); }
.compare__after .crow svg { color: var(--accent); background: var(--accent-dim); }
.compare__foot { margin-top: auto; padding-top: 16px; }
.compare__metric { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
.compare__metric .v { font-size: 1.5rem; }
.compare__metric .l { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; letter-spacing: 0; text-transform: none; margin-top: 3px; }
.compare__before .compare__metric .v { color: #e98686; }
.compare__after .compare__metric .v { color: var(--accent); }
.compare__metric .l { color: var(--text-mute); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); z-index: 3; transform: translateX(-1px); box-shadow: 0 0 14px rgba(196,240,66,0.5); }
.compare__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-accent); }
.compare__grip svg { width: 22px; height: 22px; }
.compare:not(.touched) .compare__grip { animation: gripPulse 1.8s var(--ease) infinite; }
@keyframes gripPulse { 0%,100% { box-shadow: var(--shadow-accent), 0 0 0 0 rgba(196,240,66,0.5); } 50% { box-shadow: var(--shadow-accent), 0 0 0 12px rgba(196,240,66,0); } }
.compare__hint { position: absolute; left: 50%; top: calc(50% + 38px); transform: translateX(-50%); z-index: 5; white-space: nowrap; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: var(--r-pill); pointer-events: none; transition: opacity 0.3s; }
.compare.touched .compare__hint { opacity: 0; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* ---------- Calculator ---------- */
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.calc__inputs { padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--line); }
.calc__inputs h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.calc__inputs p { margin-top: 12px; font-size: 0.95rem; color: var(--text-mute); }
.field { margin-top: 26px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-soft); margin-bottom: 9px; }
.field__row { display: flex; align-items: center; gap: 14px; }
.field input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--surface-2); }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-dim); }
.field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--accent); cursor: pointer; }
.field__val { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; min-width: 78px; text-align: right; }
.calc__out { padding: clamp(28px, 4vw, 48px); background: linear-gradient(165deg, var(--bg-2), var(--surface)); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.calc__metric { }
.calc__metric .k { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mute); }
.calc__metric .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--accent); letter-spacing: -0.02em; line-height: 1.05; }
.calc__metric .v small { font-size: 0.42em; color: var(--text-soft); font-weight: 500; letter-spacing: 0; }
.calc__disclaimer { font-size: 0.78rem; color: var(--text-mute); line-height: 1.5; }

/* ---------- Why us (split header replaced with stacked + grid) ---------- */
.why__head { max-width: 720px; margin-bottom: 48px; }
.why__head h2 { margin-top: 18px; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why__item { display: flex; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.why__item .n { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 1.1rem; flex: 0 0 auto; }
.why__item h3 { font-size: 1.12rem; }
.why__item p { margin-top: 8px; font-size: 0.93rem; color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.faq__head h2 { margin-top: 18px; }
.faq__head p { margin-top: 18px; }
.faq__list { display: grid; gap: 0; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; transition: color 0.2s; }
.qa__q:hover { color: var(--accent); }
.qa__q svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent); transition: transform 0.3s var(--ease); }
.qa.open .qa__q svg { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a p { padding-bottom: 24px; color: var(--text-mute); font-size: 0.97rem; max-width: 65ch; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final__card {
  border: 1px solid var(--accent-line); border-radius: 24px;
  background: linear-gradient(165deg, var(--accent-dim), var(--bg-2) 60%);
  padding: clamp(48px, 8vw, 96px) 24px; position: relative; overflow: hidden;
}
.final h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; margin: 0 auto; }
.final p { margin: 22px auto 0; max-width: 52ch; color: var(--text-soft); font-size: 1.1rem; }
.final__cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final__micro { margin-top: 20px; font-size: 0.85rem; color: var(--text-mute); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; margin: 38px auto 0; text-align: left; }
.cf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf__field { display: flex; flex-direction: column; gap: 8px; }
.cf__field--full { grid-column: 1 / -1; }
.cf__field label { font-size: 0.88rem; font-weight: 500; color: var(--text-soft); }
.cf__field label .opt { color: var(--text-mute); font-weight: 400; }
.cf__field input, .cf__field textarea {
  font: inherit; color: var(--text); background: rgba(10,11,13,0.5);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.cf__field input::placeholder, .cf__field textarea::placeholder { color: var(--text-mute); }
.cf__field input:focus, .cf__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.cf__field input[aria-invalid="true"], .cf__field textarea[aria-invalid="true"] { border-color: #e06363; }
.cf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf__submit { width: 100%; margin-top: 18px; }
.cf__submit[data-loading="true"] { opacity: 0.7; pointer-events: none; }
.cf__status { margin-top: 16px; text-align: center; font-size: 0.92rem; min-height: 1.2em; }
.cf__status[data-state="success"] { color: var(--accent); }
.cf__status[data-state="error"] { color: #e98686; }
@media (max-width: 540px) { .cf__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; font-size: 0.9rem; color: var(--text-mute); max-width: 38ch; }
.footer h4 { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mute); margin-bottom: 16px; }
.footer ul { display: grid; gap: 11px; }
.footer a { font-size: 0.92rem; color: var(--text-soft); transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-mute); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 640px; margin-inline: auto; text-align: left; }
  .hero__visual { max-width: 420px; margin-inline: auto; order: 0; }
  .solution__grid, .proof__grid, .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .step:first-child { padding-left: 0; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 26px; }
  .step:nth-child(even) { padding-left: 26px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bcell--feature { grid-column: span 4; grid-row: span 1; }
  .bcell--wide, .bcell--mid { grid-column: span 4; }
  .bcell--third, .bcell--dark { grid-column: span 2; }
}

/* Nav: switch to hamburger at/below lg so tablet portrait never overflows the bar */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__cta { display: none; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 14px 22px 22px;
    background: rgba(10,11,13,0.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links a:not(.nav__links-cta) { padding: 13px 0; width: 100%; }
  .nav.open .nav__links-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 10px; }
}

@media (max-width: 768px) {
  .statband__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; padding: 36px 0; }
  .pain, .why__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__inputs { border-right: none; border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Hero: text first, compact visual below */
  .hero { padding-top: 88px; padding-bottom: 40px; min-height: auto; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.7rem); }
  .hero__sub { font-size: 1.02rem; }
  .hero__visual { max-width: 340px; }

  /* Right-size section headings for phones */
  .h-sec { font-size: clamp(1.6rem, 6.4vw, 2.3rem); }
  .final h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .calc__inputs h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Comparator taller so the stacked content breathes */
  .compare { aspect-ratio: 4 / 5; }
  .compare__pane { padding: 22px 22px; }
  .crow { font-size: 0.84rem; gap: 9px; }
  .compare__metric .v { font-size: 1.25rem; }

  .proof__stat b { font-size: 1.4rem; min-width: 78px; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .steps__grid { grid-template-columns: 1fr; }
  .step:nth-child(odd) { border-right: none; padding-right: 0; }
  .step:nth-child(even) { padding-left: 0; }
  .bento { grid-template-columns: 1fr; }
  .bcell, .bcell--wide, .bcell--mid, .bcell--third, .bcell--dark, .bcell--feature { grid-column: span 1; }

  /* Hero CTAs stack full-width for tap targets */
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  .eyebrow--lead { font-size: 0.9rem; }

  /* Hero logos: smaller, fewer to avoid crowding */
  .hero__visual { max-width: 300px; }
  .hero__logo { width: 42px; height: 42px; }
  .hero__logo:nth-child(5), .hero__logo:nth-child(6) { display: none; }

  /* Orbit: smaller chips + radii so nothing clips/overlaps */
  .orbit { max-width: 320px; }
  .orbit__item { --chip: clamp(34px, 13cqmin, 44px); }
  .orbit__item--in { --r: 27cqmin; }
  .orbit__item--out { --r: 40cqmin; }
  .orbit__core b { font-size: 1.4rem; }

  .final__card { padding: 40px 20px; }
  .section { padding: clamp(56px, 16vw, 90px) 0; }
}

@media (max-width: 400px) {
  .brand { font-size: 1.02rem; }
  .brand__mark { width: 26px; height: 26px; }
  .lang__btn { padding: 6px 8px; font-size: 0.74rem; }
  .nav__right { gap: 10px; }
  .statband__grid { gap: 18px 14px; }
  .hero h1 { font-size: 1.72rem; }
  .stat__num { font-size: 1.7rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .step__bar::after { transition: none; }
  .btn--primary, .hero__logo, .orbit__item, .compare__grip { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.05ms !important; }
}
