/* ============================================================================
   REPER — site de marketing
   Sistem de design: paleta aplicației (graphite + lime), scara tipografică și
   ritmul unei pagini editoriale pe grilă de 1440. Secțiunile alternează
   dark / light prin remaparea acelorași tokeni — nicio culoare hardcodată
   în componente.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* paleta din apps/web/src/index.css — nu una inventată */
  --ground: #0a0b0d;
  --plate: #101317;
  --plate-2: #15191f;
  --rule: #20262e;
  --rule-soft: #171c22;
  --ink: #e9edf1;
  --ink-2: #9aa4b1;
  --ink-3: #616b78;

  --brand: #b5f000;
  --brand-deep: #8fc200;
  --hot: #ff5d47;
  --win: #4ade80;
  --warn: #ffb23e;

  /* pandantul deschis — crem cald, nu alb. Alb pur ar rupe temperatura grafitului. */
  --bone: #fff8e7;
  --bone-2: #f5edd8;
  --bone-rule: #e0d4bc;
  --bone-ink: #14161a;
  --bone-ink-2: #4a4f56;
  --bone-ink-3: #797d81;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* scara tipografică: 1440 = 100%. Aceleași trepte ca referința
     (144 / 96 / 72 / 56 / 40 / 24 pentru titluri), prinse în clamp ca să
     nu explodeze pe ultrawide și să nu dispară pe telefon. */
  --h1: clamp(2.95rem, min(9.6vw, 12.4vh), 10.5rem);
  --h2: clamp(2.3rem, 6.4vw, 7rem);
  --h3: clamp(1.95rem, 4.8vw, 5.25rem);
  --h4: clamp(1.6rem, 3.7vw, 4rem);
  --h5: clamp(1.35rem, 2.7vw, 2.9rem);
  --h6: clamp(1.1rem, 1.6vw, 1.75rem);

  --p1: clamp(1.2rem, 2.15vw, 2.3rem);
  --p2: clamp(1.05rem, 1.6vw, 1.7rem);
  --p3: clamp(0.98rem, 1.35vw, 1.4rem);
  --p4: clamp(0.94rem, 1.05vw, 1.12rem);
  --p5: clamp(0.76rem, 0.83vw, 0.86rem);
  --p6: clamp(0.68rem, 0.7vw, 0.74rem);

  /* unitatea de grilă: 88px la 1440 */
  --cell: clamp(2.5rem, 6.1vw, 6.5rem);
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --max: 112.5rem; /* 1800 */
  --sec-pad: clamp(4.5rem, 10.5vw, 11rem);

  /* înălțimea curburii dintre secțiuni; hero-ul își lasă loc pentru ea */
  --edge-h: clamp(2rem, 4vw, 4.4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  /* tema curentă — rescrisă per secțiune */
  --bg: var(--ground);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --line: var(--rule);
  --line-soft: var(--rule-soft);
  --plate-bg: var(--plate);
  --on-brand: var(--ground);
}

[data-theme="light"] {
  --bg: var(--bone);
  --fg: var(--bone-ink);
  --fg-2: var(--bone-ink-2);
  --fg-3: var(--bone-ink-3);
  --line: var(--bone-rule);
  --line-soft: #e8dfc8;
  --plate-bg: var(--bone-2);
  --on-brand: var(--bone-ink);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--p4);
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: var(--ground); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 0.87;
  text-wrap: balance;
}

p { margin: 0; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* --------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sec-pad);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

.sec--flush { padding-block: 0; }

/* Două secțiuni cu aceeași temă una după alta ar lăsa o gaură de două
   padding-uri. Când culoarea nu se schimbă, nu e nevoie de tot spațiul —
   linia etichetei de secțiune face separarea. */
.sec[data-theme="dark"] + .sec[data-theme="dark"],
.sec[data-theme="light"] + .sec[data-theme="light"] {
  padding-top: calc(var(--sec-pad) * 0.34);
}

/* eticheta de secțiune: index + titlu, pe o linie subțire */
.sec-tag {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  padding-bottom: 1.1em;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4.5vw, 4.5rem);
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.sec-tag b {
  font-weight: 500;
  color: var(--fg);
}
.sec-tag .pip {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  transform: translateY(-0.1em);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.lede {
  font-size: var(--p2);
  line-height: 1.42;
  letter-spacing: 0.012em;
  color: var(--fg-2);
  max-width: 34ch;
}

.body-copy {
  font-size: var(--p4);
  line-height: 1.62;
  color: var(--fg-2);
  max-width: 56ch;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* --------------------------------------------------------------- masking */
/* Fiecare linie de titlu stă într-o fereastră care se deschide de jos.
   Padding jos generos: la line-height strâns, g/j/p/ț ies din cutie. */
.line-mask,
.js .split-line {
  display: block;
  overflow: hidden;
  padding-top: 0.2em;
  margin-top: -0.2em;
  padding-bottom: 0.38em;
  margin-bottom: -0.38em;
}
.js .split-line > *,
.js .sline { display: block; will-change: transform; }
/* Titlurile animate au nevoie de puțin aer sub linie — fără să schimbe ritmul. */
.js [data-split] { line-height: 0.94; }

.js [data-fade] { opacity: 0; transform: translateY(1.6rem); }
.js [data-reveal] { clip-path: inset(0 0 100% 0); }
.js [data-reveal] > * { transform: scale(1.14); }

/* ---------------------------------------------------------------- butoane */
/* Mecanica e portată din referință: la hover fundalul CREȘTE 4px în toate
   direcțiile și își pătrățește colțurile, în timp ce stratul de hover vine
   din exterior spre interior și apare. Cele două se încrucișează — de aici
   senzația tactilă, un buton care „se așază" sub cursor. */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--ground);
  --bg-inset: 0px;
  --bg-round: 999px;
  --hv-inset: -4px;
  --hv-round: 999px;
  --hv-op: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  padding: 1.05em 1.6em;
  border: 0;
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: var(--p5);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.6s var(--ease);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: inset 0.6s var(--ease), border-radius 0.6s var(--ease),
    opacity 0.6s var(--ease);
}
.btn::before {
  inset: var(--bg-inset);
  border-radius: var(--bg-round);
  background: var(--btn-bg);
}
.btn::after {
  inset: var(--hv-inset);
  border-radius: var(--hv-round);
  opacity: var(--hv-op);
  background: var(--fg);
}
.btn > span { position: relative; z-index: 1; }

.btn:hover,
.btn:focus-visible {
  --bg-inset: -4px;
  --bg-round: 0px;
  --hv-inset: 0px;
  --hv-round: 0px;
  --hv-op: 1;
  color: var(--bg);
  outline: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
}
.btn--ghost::before { box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::after { background: var(--brand); }
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--ground); }

.btn .arrow {
  width: 0.85em;
  height: 0.85em;
  flex: none;
  transition: transform 0.45s var(--ease);
}
.btn:hover .arrow { transform: translateX(0.25em); }

/* link cu subliniere care se redesenează */
.ulink {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.4s var(--ease);
}
.ulink:hover::after {
  transform-origin: left;
  animation: ulink 0.6s var(--ease);
}
@keyframes ulink {
  0% { transform: scaleX(1); transform-origin: right; }
  49% { transform: scaleX(0); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ------------------------------------------------------------- preloader */
/* Preloaderul e scos de JS, deci fără JS nu are voie să existe — altfel
   acoperă tot siteul pentru totdeauna. Apare doar când clasa .js e pusă. */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ground);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--gutter);
  color: var(--ink);
  will-change: transform;
}
.loader__mark {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__logo {
  display: block;
  width: min(78vw, 22rem);
  height: auto;
  will-change: transform, opacity;
}
.loader__logo .reper-core,
.loader__logo .reper-wordmark {
  opacity: 0;
}
.loader__logo .reper-core {
  will-change: transform, opacity;
}
.loader__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.loader__num { font-size: var(--h5); color: var(--ink); letter-spacing: -0.02em; }
.loader__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + 3.4em);
  height: 1px;
  background: var(--rule);
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand);
}
.loader.is-done { pointer-events: none; }

/* Dacă vii dintr-o altă pagină prin wipe, preloaderul n-are ce căuta —
   ecranul e deja acoperit de shutter. */
html.wipe-pending .loader { display: none !important; }
html.wipe-pending body { background: var(--ground); overflow: hidden; }
html.wipe-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 188;
  background: var(--ground);
  pointer-events: none;
}

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding-block: 1.1rem;
  color: var(--ink);
  mix-blend-mode: normal;
  transition: background-color 0.45s var(--ease),
    border-color 0.45s var(--ease), color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  width: auto;
  height: clamp(1.65rem, 3.1vw, 2.35rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; color: var(--brand); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45em;
  height: 1px;
  background: var(--brand);
}

.hdr__cta { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.hdr__login { --btn-bg: transparent; --btn-fg: var(--ink); }
.hdr__login::before { box-shadow: inset 0 0 0 1px var(--rule); }
.hdr__login:hover,
.hdr__login:focus-visible { color: var(--ground); }

.burger {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  place-items: center;
}
.burger i {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.burger i::before,
.burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.burger i::before { top: -0.32rem; }
.burger i::after { top: 0.32rem; }
.burger.is-open i { transform: rotate(45deg); }
.burger.is-open i::before { transform: translateY(0.32rem) rotate(-90deg); }
.burger.is-open i::after { transform: translateY(-0.32rem) rotate(-90deg); opacity: 0; }

/* meniu mobil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ground);
  padding: 7rem var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: 0.1em; }
.menu__list a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h4);
  letter-spacing: -0.05em;
  line-height: 1.05;
  padding-block: 0.1em 0.2em;
  border-bottom: 1px solid var(--rule-soft);
}
.menu__foot {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: grid;
  gap: 0.5em;
}

/* ------------------------------------------------------------------ hero */
/* Două coloane: afirmația pe stânga, consola pe dreapta. Varianta veche punea
   un titlu de 9,6vw peste toată lățimea și lăsa harta să treacă pe sub el ca o
   textură — se citea ca un fundal, nu ca produsul. Titlul a coborât la ~3,5vw
   și harta a intrat într-un cadru propriu, unde are ce spune. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 11vh, 8.5rem) calc(var(--gutter) * 0.5 + var(--edge-h));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(74% 62% at 74% 34%, rgba(205, 255, 71, 0.13), transparent 62%),
    radial-gradient(60% 50% at 4% 88%, rgba(205, 255, 71, 0.05), transparent 66%),
    var(--ground);
}
/* Voalul e acum doar vertical: nu mai are de ascuns nimic pe orizontală,
   fiindcă harta nu mai trece pe sub titlu. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, var(--ground) 0.5%, rgba(10, 11, 13, 0) 22%);
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.2vw, 4.75rem);
  align-items: center;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(1.1rem, 2.2vw, 1.9rem);
}

.hero h1 {
  font-size: clamp(2.3rem, 3.45vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 0.95;
}
.hero h1 .lime { color: var(--brand); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: clamp(1.4rem, 3.2vw, 3rem);
  margin-top: clamp(1.9rem, 3.4vw, 3rem);
  padding-top: clamp(1.3rem, 2.4vw, 2rem);
  border-top: 1px solid var(--rule);
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__stats dd {
  margin-top: 0.35em;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ------------------------------------------------------------ hero · consola */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(16rem, 1fr) 8.6rem;
  height: min(36rem, 74vh);
  border: 1px solid rgba(205, 255, 71, 0.16);
  border-radius: 20px;
  overflow: hidden;
  /* Voal foarte discret. Prima variantă avea un verde destul de tare cât să
     îngălbenească textul din coadă — pe fond verzui, gri-ul devine murdar. */
  background:
    linear-gradient(180deg, rgba(205, 255, 71, 0.03), rgba(255, 255, 255, 0.01) 38%,
      rgba(10, 11, 13, 0.72));
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.stage__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.85em 1.15em;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.stage__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.stage__steps { display: inline-flex; gap: 0.28rem; }
.stage__steps i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.stage__steps i.is-on { background: var(--brand); }
.stage__run {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--brand);
}
.stage__run.is-run { animation: stage-run 5.2s linear; }
@keyframes stage-run { to { width: 100%; } }
.stage__live {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ink-2);
}
.stage__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(205, 255, 71, 0.55);
  animation: stage-pulse 2.2s var(--ease) infinite;
}
@keyframes stage-pulse {
  0% { box-shadow: 0 0 0 0 rgba(205, 255, 71, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(205, 255, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(205, 255, 71, 0); }
}
.stage__scan { color: var(--brand); }

.stage__map { position: relative; min-height: 0; }
.stage__map::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.6rem;
  background: linear-gradient(to top, rgba(10, 11, 13, 0.72), transparent);
  pointer-events: none;
}
/* Harta are proporția României (~1,34:1) într-o cutie mult mai lată, deci rămâne
   spațiu pe laturi. Îl folosim pentru legendă, ca marginea să pară intenționată,
   nu un gol. */
.stage__legend {
  position: absolute;
  left: 1.15em;
  top: 1.05em;
  display: grid;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
}
.stage__legend span { display: flex; align-items: center; gap: 0.6em; }
.stage__legend-title { color: var(--ink-2); margin-bottom: 0.15em; }
.stage__legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.stage__legend i.is-risk { background: #ff5d47; }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dock fix sub hartă: asistent → apel voce → CRM. Doar opacitatea se schimbă. */
.stage__dock {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 23, 0.2), rgba(16, 19, 23, 0.92) 28%, #101317);
}
.reel__scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  opacity: 0;
  transition: opacity 0.45s linear;
  pointer-events: none;
}
.reel__scene.is-on { opacity: 1; }
.reel__mark {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: rgba(181, 240, 0, 0.08);
  border: 1px solid rgba(181, 240, 0, 0.28);
}
.reel__scene[data-scene="call"] .reel__mark {
  color: #ffd4cc;
  background: rgba(255, 93, 71, 0.14);
  border-color: rgba(255, 93, 71, 0.45);
}
.reel__body {
  display: grid;
  grid-template-rows: 1.05rem 1.4rem 1.3rem;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.reel__kicker {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reel__kicker .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(181, 240, 0, 0.5);
}
.reel__scene.is-on .pip { animation: stage-pulse 2.2s var(--ease) infinite; }
.reel__kicker .pip--hot { background: var(--hot); box-shadow: none; }
.reel__time {
  margin-left: auto;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.reel__who {
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.45rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel__scene[data-scene="ai"].is-on .reel__who::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.9em;
  margin-left: 0.15em;
  background: var(--brand);
  vertical-align: -0.08em;
  animation: reel-caret 0.9s steps(1) infinite;
}
@keyframes reel-caret {
  50% { opacity: 0; }
}
.reel__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  height: 1.3rem;
}
.reel__sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.03em;
  line-height: 1.25rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel__chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.08em 0.55em;
}
.reel__chip--hot {
  color: #ffb2a6;
  border-color: rgba(255, 93, 71, 0.4);
}
.reel__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.15rem;
  flex: none;
}
.reel__wave i {
  --h: 46%;
  display: block;
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: var(--brand);
  transform-origin: center;
  animation: reel-wave 1.15s ease-in-out infinite;
}
.reel__wave i:nth-child(1) { --h: 28%; }
.reel__wave i:nth-child(2) { --h: 48%; }
.reel__wave i:nth-child(3) { --h: 72%; }
.reel__wave i:nth-child(4) { --h: 100%; }
.reel__wave i:nth-child(5) { --h: 64%; }
.reel__wave i:nth-child(6) { --h: 38%; }
.reel__wave i:nth-child(7) { --h: 86%; }
.reel__wave i:nth-child(8) { --h: 54%; }
.reel__wave i:nth-child(9) { --h: 30%; }
.reel__wave i:nth-child(10) { --h: 78%; }
.reel__wave i:nth-child(11) { --h: 58%; }
.reel__wave i:nth-child(12) { --h: 42%; }
.reel__wave i:nth-child(13) { --h: 90%; }
.reel__wave i:nth-child(14) { --h: 34%; }
.reel__wave i:nth-child(odd) { animation-duration: 0.85s; }
.reel__wave i:nth-child(3n) { background: #fff; opacity: 0.72; }
.reel__wave i:nth-child(1) { animation-delay: 0s; }
.reel__wave i:nth-child(2) { animation-delay: 0.08s; }
.reel__wave i:nth-child(3) { animation-delay: 0.16s; }
.reel__wave i:nth-child(4) { animation-delay: 0.05s; }
.reel__wave i:nth-child(5) { animation-delay: 0.2s; }
.reel__wave i:nth-child(6) { animation-delay: 0.12s; }
.reel__wave i:nth-child(7) { animation-delay: 0.24s; }
.reel__wave i:nth-child(8) { animation-delay: 0.04s; }
.reel__wave i:nth-child(9) { animation-delay: 0.18s; }
.reel__wave i:nth-child(10) { animation-delay: 0.1s; }
.reel__wave i:nth-child(11) { animation-delay: 0.22s; }
.reel__wave i:nth-child(12) { animation-delay: 0.14s; }
@keyframes reel-wave {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { height: min(34rem, 72vh); grid-template-rows: auto minmax(12rem, 1fr) 8.4rem; }
  .hero { padding-block: clamp(5.5rem, 10vh, 7.5rem) calc(var(--gutter) * 0.5 + var(--edge-h)); }
}
@media (max-width: 640px) {
  .hero { padding-block: clamp(4.5rem, 9vh, 6rem) calc(var(--gutter) * 0.5 + var(--edge-h)); }
  .hero__grid { gap: 1.9rem; }
  .hero__eyebrow { letter-spacing: 0.12em; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hero__stats dt { letter-spacing: 0.1em; }
  .hero__stage { height: min(32rem, 78vh); grid-template-rows: auto minmax(11rem, 1fr) 8rem; }
  .reel__scene { grid-template-columns: 2.7rem minmax(0, 1fr); gap: 0.7rem; }
  .reel__mark { width: 2.7rem; height: 2.7rem; border-radius: 10px; }
  .stage__legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage__live i,
  .stage__run { animation: none; }
  .reel__wave i,
  .reel__scene.is-on .pip,
  .reel__who::after { animation: none; }
  .reel__scene { transition: none; }
  .reel__scene:not([data-scene="call"]) { display: none; }
  .reel__scene[data-scene="call"] { opacity: 1; transform: none; }
}

.scrollcue {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}
.scrollcue i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------------------------- prolog */
.prolog__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h3);
  letter-spacing: -0.048em;
  line-height: 0.98;
  max-width: 22ch;
  text-wrap: balance;
}
.prolog__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
}
.prolog__side { display: grid; gap: 1.6rem; }

/* apelul în care afli prea târziu — lângă citatul din prolog */
.late {
  position: relative;
  margin: 0 0 clamp(0.4rem, 1vw, 1rem);
  width: 100%;
}
.late__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--plate-bg);
}
.late__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  filter: saturate(0.86) contrast(1.04);
}
.late__card {
  position: absolute;
  left: clamp(0.7rem, 2vw, 1.2rem);
  right: clamp(5.5rem, 28%, 11rem);
  bottom: clamp(0.7rem, 2vw, 1.2rem);
  padding: 0.95rem 1.05rem 0.85rem;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.late__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.late__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--hot);
}
.late__live i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--hot);
  animation: late-pulse 1.4s ease-in-out infinite;
}
.late__who {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h6);
  letter-spacing: -0.04em;
  line-height: 1;
}
.late__said {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--p4);
  color: var(--ink);
  line-height: 1.35;
}
.late__row--foot { padding-top: 0.55rem; border-top: 1px solid var(--rule); }
.late__anaf {
  position: absolute;
  top: clamp(0.7rem, 2vw, 1.1rem);
  right: clamp(0.7rem, 2vw, 1.1rem);
  width: min(11.5rem, 42%);
  padding: 0.75rem 0.85rem 0.7rem;
  background: var(--bone);
  color: var(--bone-ink);
  border-left: 3px solid var(--brand);
  box-shadow: 0 12px 28px rgba(10, 11, 13, 0.18);
}
.late__anaf span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-ink-3);
  margin-bottom: 0.55rem;
}
.late__anaf ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.28rem; }
.late__anaf li {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.04em;
  color: var(--bone-ink-2);
}
.late__anaf b {
  font-weight: 500;
  color: var(--bone-ink);
  margin-right: 0.25em;
}
.late figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.late figcaption::before {
  content: "";
  width: 1.8em;
  height: 1px;
  background: var(--brand-deep);
  flex: none;
}
@keyframes late-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ------------------------------------------------------------- problema */
.probs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.prob {
  padding: clamp(1.8rem, 3.2vw, 3rem) clamp(1.2rem, 2.4vw, 2.4rem)
    clamp(2.4rem, 4vw, 3.6rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.prob:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(1.5rem, 3vw, 3rem); }
.prob:nth-child(even) { padding-left: clamp(1.5rem, 3vw, 3rem); }
.prob__n {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.prob h3 {
  font-size: var(--h5);
  margin-block: 0.7em 0.5em;
  letter-spacing: -0.045em;
  max-width: 16ch;
}
.prob p { font-size: var(--p4); color: var(--fg-2); line-height: 1.6; max-width: 44ch; }

/* ----------------------------------------------------------------- motor */
.motor { padding-block: 0; }
.motor__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 9vw, 8rem);
}
.motor__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.motor__head h2 { font-size: var(--h4); max-width: 14ch; }
.motor__count {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.16em;
  color: var(--fg-3);
  white-space: nowrap;
}
.motor__count b { color: var(--brand); font-weight: 500; }

.motor__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.motor__rail i {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.motor__rail i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.motor__rail i.is-on::after { transform: scaleX(1); }

.motor__stages { position: relative; margin-top: clamp(2rem, 5vw, 4.5rem); }
.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease);
}
.stage:not(:first-child) { position: absolute; inset: 0; }
.stage.is-active { opacity: 1; visibility: visible; }
.stage__src {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.stage h3 {
  font-size: var(--h2);
  letter-spacing: -0.056em;
  line-height: 0.94;
  margin-top: 0.35em;
}
.stage.is-active .stage__src,
.stage.is-active .stage__body p,
.stage.is-active .stage__meta li {
  will-change: transform, opacity;
}
.stage__body { display: grid; gap: 1.4rem; padding-top: 0.7em; }
.stage__body p { font-size: var(--p3); line-height: 1.5; color: var(--fg-2); max-width: 42ch; }
.stage__meta {
  display: grid;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.stage__meta li {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 1rem;
  padding-block: 0.55em;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.stage__meta li b { color: var(--fg); font-weight: 500; }
.stage__meta { margin: 0; padding: 0; }

/* ---------------------------------------------------------------- module */
.mods { border-top: 1px solid var(--line); }
.mod {
  border-bottom: 1px solid var(--line);
}
.mod__head {
  width: 100%;
  display: grid;
  grid-template-columns: 5ch 1fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding-block: clamp(1.2rem, 2.4vw, 2.2rem);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}
.mod__head:hover { color: var(--brand); }
.mod__n {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.mod__t {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h4);
  letter-spacing: -0.05em;
  line-height: 1;
}
.mod__plus {
  width: 1.6em;
  height: 1.6em;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex: none;
  transition: border-color 0.35s var(--ease), transform 0.5s var(--ease);
}
.mod__plus::before,
.mod__plus::after {
  content: "";
  position: absolute;
  inset: 50% 26%;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.mod__plus::after { transform: rotate(90deg); }
.mod.is-open .mod__plus { transform: rotate(180deg); border-color: var(--brand); }
.mod.is-open .mod__plus::after { transform: rotate(0deg); }
.mod.is-open .mod__t { color: var(--brand); }

.mod__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease);
}
.mod.is-open .mod__panel { grid-template-rows: 1fr; }
.mod__inner { overflow: hidden; }
.mod__grid {
  display: grid;
  grid-template-columns: 5ch 1fr 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-bottom: clamp(1.8rem, 3.5vw, 3rem);
}
.mod__grid > p { font-size: var(--p3); line-height: 1.5; color: var(--fg-2); max-width: 42ch; }
.mod__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; align-content: start; }
.mod__list li {
  display: flex;
  gap: 0.9em;
  padding-block: 0.62em;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.mod__list li::before { content: "→"; color: var(--brand); flex: none; }

/* ----------------------------------------------------------------- harta */
.map__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.map__side { display: grid; gap: 1.8rem; align-content: start; }
.map__legend { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.map__legend li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.map__legend i {
  width: 1.5em;
  height: 0.75em;
  flex: none;
  border: 1px solid var(--line);
}
.map__canvas {
  position: relative;
  border: 1px solid var(--line);
  background: var(--plate-bg);
  padding: clamp(1rem, 2.4vw, 2rem);
}
.map__canvas svg { width: 100%; height: auto; }
.hex { transition: fill 0.6s var(--ease), opacity 0.4s var(--ease); cursor: default; }
.hex:hover { opacity: 0.72; }
.hex-label {
  font-family: var(--font-mono);
  font-size: 3.4px;
  letter-spacing: 0.06em;
  fill: currentColor;
  text-anchor: middle;
  pointer-events: none;
}
.map__badge {
  position: absolute;
  top: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1rem, 2.4vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 0.5em 0.85em;
  border-radius: 999px;
}

/* ----------------------------------------------------------------- cifre */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.8rem) clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h3);
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__k {
  margin-top: 0.9em;
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-3);
  max-width: 22ch;
  text-wrap: balance;
}

/* ------------------------------------------------------------ pentru cine */
.who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.who__card {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.who__card:hover { border-color: var(--brand); }
.who__card h3 { font-size: var(--h6); letter-spacing: -0.035em; }
.who__card p { font-size: var(--p4); color: var(--fg-2); line-height: 1.55; }
.who__card .mono-note {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75em;
  max-width: 100%;
  padding: 0.5em 0.9em;
  background: var(--brand);
  color: var(--ground);
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
  line-height: 1.25;
}

/* ------------------------------------------------------------------ preț */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.plan {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 1.4rem;
  align-content: start;
}
.plan:last-child { border-right: 0; }
.plan--hero { background: var(--plate-bg); }
.plan__name {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.plan--hero .plan__name span:last-child { color: var(--brand); }
.plan__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--h4);
  letter-spacing: -0.05em;
  line-height: 0.95;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}
.plan__price small {
  font-family: var(--font-mono);
  font-size: var(--p5);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.plan__price .tbd { color: var(--brand); }
.plan__desc { font-size: var(--p4); color: var(--fg-2); line-height: 1.55; }
.plan__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.plan__list li {
  display: flex;
  gap: 0.85em;
  padding-block: 0.6em;
  border-top: 1px solid var(--line-soft);
  font-size: var(--p5);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  color: var(--fg-2);
}
.plan__list li::before { content: "—"; color: var(--brand); flex: none; }
.plan .btn { justify-self: start; }

.plans-note {
  margin-top: 1.6rem;
  font-size: var(--p4);
  color: var(--fg-2);
  border-left: 2px solid var(--brand);
  padding-left: 1.15em;
  max-width: 62ch;
  line-height: 1.62;
}

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(1.1rem, 2vw, 1.7rem);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--h6);
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition: color 0.35s var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__item.is-open .faq__q { color: var(--brand); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; }
.faq__inner p {
  font-size: var(--p4);
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 62ch;
  padding-bottom: clamp(1.2rem, 2.4vw, 2rem);
}

/* --------------------------------------------------------------- contact */
.cta { position: relative; overflow: hidden; }
.cta__head { text-align: left; padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.cta__head h2 {
  font-size: var(--h1);
  letter-spacing: -0.058em;
  line-height: 0.94;
  max-width: 13ch;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.cta__info { display: grid; gap: 1.6rem; align-content: start; }
.cta__info dl { margin: 0; display: grid; gap: 0.1rem; }
.cta__info dt {
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 1em;
  border-top: 1px solid var(--line-soft);
}
.cta__info dd {
  margin: 0.35em 0 0.9em;
  font-size: var(--p3);
  letter-spacing: -0.01em;
}

/* formular */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; display: grid; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 0.6em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--p4);
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75em 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.35s var(--ease);
  width: 100%;
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 1.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cdff47' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1em center;
  background-size: 0.7em auto;
}
.field textarea { resize: vertical; min-height: 4.5em; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--brand); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field select option { background: var(--ground); color: var(--ink); }

.check {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
  font-size: var(--p5);
  line-height: 1.5;
  color: var(--fg-3);
  cursor: pointer;
}
.check input { appearance: none; margin: 0; flex: none; width: 1.05em; height: 1.05em; border: 1px solid var(--line); position: relative; top: 0.15em; cursor: pointer; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 0.25em; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form__msg { font-family: var(--font-mono); font-size: var(--p5); letter-spacing: 0.1em; color: var(--brand); }

/* ---------------------------------------------------------------- footer */
.ftr {
  background: var(--ground);
  color: var(--ink);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--rule);
}
.ftr__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ftr__brand { display: grid; gap: 1.2rem; align-content: start; }
.ftr__brand p { color: var(--ink-3); font-size: var(--p5); max-width: 34ch; line-height: 1.7; }
.ftr__col h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--p6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.2em;
}
.ftr__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7em; }
.ftr__col a { font-size: var(--p5); color: var(--ink-2); transition: color 0.3s var(--ease); }
.ftr__col a:hover { color: var(--brand); }
.ftr__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--p6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------- pagini legale */
.doc { padding-block: 9rem var(--sec-pad); }
.doc h1 { font-size: var(--h3); margin-bottom: 0.6em; }
.doc h2 { font-size: var(--h6); margin-block: 2.2em 0.7em; letter-spacing: -0.02em; }
.doc p, .doc li { font-size: var(--p4); line-height: 1.72; color: var(--ink-2); max-width: 72ch; }
.doc ul { padding-left: 1.1em; display: grid; gap: 0.5em; }
.doc .mono-note { margin-bottom: 2rem; display: block; }

/* --------------------------------------------------------------- responsiv */
@media (max-width: 1100px) {
  .prolog__grid { grid-template-columns: 1fr; align-items: start; }
  .late { max-width: 36rem; }
  .late__card { right: clamp(0.7rem, 2vw, 1.2rem); }
  .late__anaf { width: min(12rem, 46%); }
  .map__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .who { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .hdr__cta .hdr__access, .hdr__cta .hdr__login { display: none; }
  .burger { display: grid; }
  /* indicatorul de derulare intra peste butoanele din hero */
  .scrollcue { display: none; }
  .cta__grid { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .stage h3 { font-size: var(--h3); }
  .mod__grid { grid-template-columns: 1fr; }
  .mod__head { grid-template-columns: 4ch 1fr auto; }
  .motor__head { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* fără pin pe telefon: etapele devin o listă normală, citită de sus în jos */
  .motor { padding-block: var(--sec-pad); }
  .motor__pin { min-height: 0; padding-block: 0; }
  .motor__rail, .motor__count { display: none; }
  .motor__stages { margin-top: 0; }
  .stage,
  .stage:not(:first-child) {
    position: static !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-block: clamp(1.6rem, 4vw, 2.4rem);
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .late__card {
    position: static;
    right: auto;
    background: var(--ground);
    backdrop-filter: none;
  }
  .late__anaf {
    position: static;
    width: 100%;
    box-shadow: none;
    border-top: 1px solid var(--bone-rule);
  }
  .late__frame { display: grid; }
  .hero__canvas { opacity: 0.85; }
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(10, 11, 13, 0.55) 0%,
        rgba(10, 11, 13, 0.86) 42%, var(--ground) 72%);
  }
  .probs { grid-template-columns: 1fr; }
  .prob:nth-child(odd) { border-right: 0; padding-right: 0; }
  .prob:nth-child(even) { padding-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  /* SplitText tratează <br> ca separator de linie indiferent de CSS, deci pe
     telefon nu ascundem breakurile — coborâm titlul cât să încapă linia cea
     mai lungă („în ordinea în care") pe un rând. */
  :root { --h1: clamp(2.58rem, 9.6vw, 10.5rem); }
  .map__badge { position: static; display: inline-block; margin-bottom: 1rem; }
  .ftr__top { grid-template-columns: 1fr; }
  .ftr__bot { flex-direction: column; align-items: flex-start; }
  .stage__meta li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ==========================================================================
   STRATUL DE MIȘCARE
   Lucrurile care nu se văd în captură, dar se simt la navigare. Mecanica de
   hover și granulația sunt portate din referință; restul urmează aceeași
   logică: nimic nu apare brusc, totul intră cu aceeași curbă.
   ========================================================================= */

/* ------------------------------------------------------------------ noise */
/* Granulația peste toată pagina. În referință e un <div data-noise>; aici e
   feTurbulence inline, deci zero cereri de rețea. Ține fundalurile plate să
   nu arate digital-curat și leagă secțiunile între ele. */
.noise {
  position: fixed;
  inset: -50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain 0.7s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1.2%); }
  50% { transform: translate(1.1%, -1.6%); }
  75% { transform: translate(-1.2%, -1%); }
  100% { transform: translate(1.4%, 1.1%); }
}

/* ------------------------------------------------------- progres la scroll */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 95;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand);
  pointer-events: none;
}

/* --------------------------------------------- wipe între pagini */
/* Cinci benzi care urcă vest→est, ca sweep-ul din hero. Linia lime scanează
   peste ele. Titlul destinației stă pe shutter, apoi benzile cad în sus. */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.wipe.is-on,
html.wipe-pending .wipe {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.wipe__bands {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.wipe__bands i {
  background: var(--ground);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.wipe__bands i:nth-child(even) { background: #0d1014; }
.wipe__bands i:nth-child(3) { background: #08090b; }
html.wipe-pending .wipe__bands i { transform: scaleY(1); }

.wipe__scan {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 2px;
  background: var(--brand);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 70%, transparent);
  transform: translateY(100vh);
  opacity: 0;
  pointer-events: none;
}
html.wipe-pending .wipe__scan { opacity: 0; }

.wipe__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding-inline: var(--gutter);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
html.wipe-pending .wipe__copy { opacity: 1; }
.wipe.is-nameless .wipe__copy { display: none; }
.wipe__idx {
  font-family: var(--font-mono);
  font-size: var(--p5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.45em;
}
.wipe__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.4vw, 7.4rem);
  letter-spacing: -0.055em;
  line-height: 0.86;
  max-width: 14ch;
  text-wrap: balance;
}

/* fallback fără GSAP: aceleași faze, pe clase */
.wipe.is-cover .wipe__bands i {
  animation: wipe-up 0.58s var(--ease) both;
}
.wipe.is-cover .wipe__bands i:nth-child(1) { animation-delay: 0ms; }
.wipe.is-cover .wipe__bands i:nth-child(2) { animation-delay: 50ms; }
.wipe.is-cover .wipe__bands i:nth-child(3) { animation-delay: 100ms; }
.wipe.is-cover .wipe__bands i:nth-child(4) { animation-delay: 150ms; }
.wipe.is-cover .wipe__bands i:nth-child(5) { animation-delay: 200ms; }
.wipe.is-cover .wipe__scan {
  opacity: 1;
  animation: wipe-scan 0.62s var(--ease-io) both;
}
.wipe.is-cover .wipe__copy {
  animation: wipe-copy-in 0.42s var(--ease) 0.28s both;
}
.wipe.is-reveal .wipe__bands i {
  transform-origin: 50% 0%;
  animation: wipe-down 0.56s var(--ease) both;
}
.wipe.is-reveal .wipe__bands i:nth-child(1) { animation-delay: 0ms; }
.wipe.is-reveal .wipe__bands i:nth-child(2) { animation-delay: 42ms; }
.wipe.is-reveal .wipe__bands i:nth-child(3) { animation-delay: 84ms; }
.wipe.is-reveal .wipe__bands i:nth-child(4) { animation-delay: 126ms; }
.wipe.is-reveal .wipe__bands i:nth-child(5) { animation-delay: 168ms; }
.wipe.is-reveal .wipe__copy {
  animation: wipe-copy-out 0.26s ease-in both;
}
.wipe.is-reveal .wipe__scan { opacity: 0; }

@keyframes wipe-up {
  from { transform: scaleY(0); transform-origin: 50% 100%; }
  to { transform: scaleY(1); transform-origin: 50% 100%; }
}
@keyframes wipe-down {
  from { transform: scaleY(1); transform-origin: 50% 0%; }
  to { transform: scaleY(0); transform-origin: 50% 0%; }
}
@keyframes wipe-scan {
  from { transform: translateY(100vh); }
  to { transform: translateY(-4vh); }
}
@keyframes wipe-copy-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wipe-copy-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-16px); }
}

/* --------------------------------------------- tranziții între secțiuni */
/* În referință granița light/dark nu e o linie dreaptă, e o formă SVG.
   Aceeași idee: forma poartă culoarea secțiunii în care intri și urcă peste
   cea din care ieși. */
.s-edge {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--edge-h) + 1px);
  width: 100%;
  height: var(--edge-h);
  color: var(--bg);
  z-index: 4;
  pointer-events: none;
  display: block;
}
.ftr { position: relative; }
.ftr .s-edge { color: var(--ground); }

/* ------------------------------------------------------- hover: divizoare */
/* [hover-divider] din referință: o linie care crește de la 0 la 100%. */
.rule-grow { position: relative; }
.rule-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0%;
  background: var(--brand);
  transition: width 1.1s var(--ease);
}
.rule-grow:hover::after { width: 100%; }

/* ------------------------------------------- hover: rândurile care respiră */
/* [hover-faq]: padding 0 → 8px la hover. Rândul se ridică puțin sub cursor. */
.mod__head, .faq__q {
  --row-pad: 0rem;
  padding-block: calc(clamp(1.1rem, 2.2vw, 2.1rem) + var(--row-pad));
  transition: color 0.45s var(--ease), padding 0.6s var(--ease);
}
.mod__head:hover, .faq__q:hover { --row-pad: 0.5rem; }

/* numărul modulului se decalează, marcând rândul activ */
.mod__n, .mod__t { transition: transform 0.6s var(--ease), color 0.45s var(--ease); }
.mod__head:hover .mod__n { transform: translateX(0.35em); }
.mod__head:hover .mod__t { transform: translateX(0.5em); }
.mod.is-open .mod__t { transform: translateX(0.5em); }

/* ------------------------------------------------------ hover: carduri */
.who__card, .plan, .prob {
  --card-lift: 0px;
  transform: translateY(var(--card-lift));
  transition: transform 0.7s var(--ease), border-color 0.45s var(--ease),
    background-color 0.45s var(--ease);
}
.who__card:hover { --card-lift: -6px; }

/* hexagoanele hărții se aprind pe rând când secțiunea intră în cadru */
.js .map__canvas .hex { opacity: 0; }
.js .map__canvas.is-lit .hex {
  animation: hex-in 0.75s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes hex-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}
.map__canvas .hex { transform-box: fill-box; transform-origin: center; }

/* --------------------------------------------------- respect pentru motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-fade] { opacity: 1; transform: none; }
  .js [data-reveal] { clip-path: none; }
  .js [data-reveal] > * { transform: none; }
  .noise { animation: none; opacity: 0.02; }
  .js .map__canvas .hex { opacity: 1; }
  .js .map__canvas.is-lit .hex { animation: none; }
  .wipe, html.wipe-pending .wipe { display: none !important; }
  .late__live i { animation: none; opacity: 1; }
}
