/* ============================================================
   WebtasticAI — wt-system.css
   Sistemul de design partajat. Sursa unică de adevăr pentru
   tokens, tipografie, ritm vertical, grile, componente de bază
   și mișcare. TOATE paginile îl încarcă (direct sau prin
   servicii/servicii.css, care doar face @import spre acest fișier).

   Principii:
   1. Tipografia se măsoară, nu se nimerește. Fiecare nivel are
      line-height, tracking și o LĂȚIME MAXIMĂ proprie (--measure-*),
      ca un titlu să nu poată ajunge la 6 rânduri nici din greșeală.
   2. Spațierea vine dintr-o scală, niciodată din valori inventate
      la fața locului.
   3. Ritmul vertical se face cu .flow (owl selector), nu cu
      margin-bottom împrăștiat prin componente.
   4. Conținutul e vizibil fără JS. Animația doar îl introduce.
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  /* ---- Brand (neschimbat) ---- */
  --purple: #7B2FFF;
  --purple-light: #9B5FFF;
  --purple-deep: #5415D4;
  --lime: #65A30D;
  --lime-bright: #84CC16;
  --lime-text: #3D6808;
  --orange: #F97316;
  --orange-deep: #EA580C;
  --orange-cta: #C2410C;
  --orange-cta-hover: #9A3412;
  --red: #EF4444;

  /* ---- Suprafețe (light) ---- */
  --bg: #F4F2FF;
  --bg-tint: #ECE8FF;
  --surface: #FFFFFF;
  --surface-2: #FBFAFF;

  /* ---- Cerneală (light) ---- */
  --text: #150B33;
  --text-dim: #4F4977;
  --text-dimmer: #6E699A;
  --on-brand: #FFFFFF;

  /* ---- Linii ---- */
  --border: rgba(21, 11, 51, 0.10);
  --border-strong: rgba(21, 11, 51, 0.16);

  /* ---- Sticlă ---- */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(16px);

  /* ---- Lumină ---- */
  --glow-brand: 0 14px 44px -10px rgba(123, 47, 255, 0.42);
  --glow-brand-soft: 0 10px 30px -12px rgba(123, 47, 255, 0.30);
  --glow-action: 0 12px 30px -8px rgba(249, 115, 22, 0.45);
  --glow-lime: 0 10px 28px -10px rgba(101, 163, 13, 0.40);
  --shadow-card: 0 6px 30px -14px rgba(21, 11, 51, 0.22);
  --shadow-card-hover: 0 18px 50px -20px rgba(21, 11, 51, 0.30);
  --shadow-nav: 0 6px 34px -12px rgba(21, 11, 51, 0.16);

  /* ---- Raze ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 100px;

  /* ============================================================
     SCALA DE SPAȚIERE — densitate „spacious" (marketing site).
     Un singur set de trepte. Nimic în afara lor.
     ============================================================ */
  --space-3xs: 0.25rem;   /*  4px */
  --space-2xs: 0.5rem;    /*  8px */
  --space-xs:  0.75rem;   /* 12px */
  --space-sm:  1rem;      /* 16px */
  --space-md:  1.5rem;    /* 24px */
  --space-lg:  2rem;      /* 32px */
  --space-xl:  3rem;      /* 48px */
  --space-2xl: 4rem;      /* 64px */
  --space-3xl: 6rem;      /* 96px */

  /* Trepte fluide, pentru spații care trebuie să se strângă pe mobil */
  --space-fluid-sm: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  --space-fluid-md: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  --space-fluid-lg: clamp(2.25rem, 1.7rem + 2.6vw, 4rem);

  /* ---- Layout ---- */
  --container: 1180px;
  --container-narrow: 780px;
  --container-wide: 1400px;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  /* Ritmul dintre secțiuni. O singură valoare, respectată peste tot. */
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --section-y-tight: clamp(3rem, 2rem + 4vw, 5rem);

  /* ============================================================
     TIPOGRAFIE
     ============================================================ */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scală modulară. Fiecare treaptă e fluidă între mobil și desktop. */
  --fs-2xs:  0.75rem;                                        /* 12px — doar etichete */
  --fs-xs:   0.8125rem;                                      /* 13px */
  --fs-sm:   0.9375rem;                                      /* 15px */
  --fs-base: clamp(1rem, 0.965rem + 0.17vw, 1.0625rem);      /* 16 → 17px */
  --fs-md:   clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);      /* 17 → 19px */
  --fs-lg:   clamp(1.1875rem, 1.09rem + 0.44vw, 1.375rem);   /* 19 → 22px  (h4) */
  --fs-xl:   clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);       /* 22 → 28px  (h3) */
  --fs-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);         /* 28 → 40px  (h2 mic) */
  --fs-3xl:  clamp(2.05rem, 1.55rem + 2.3vw, 3.15rem);       /* 33 → 50px  (h2) */
  --fs-4xl:  clamp(2.5rem, 1.85rem + 3vw, 4rem);             /* 40 → 64px  (h1) */

  /* Înălțimi de rând, pe nivel.
     ATENȚIE: 1.05 era prea strâns pentru diacritice românești —
     coada lui ț/ș atingea rândul următor. Minim 1.08 pe display. */
  --lh-display: 1.08;
  --lh-heading: 1.14;
  --lh-title:   1.28;
  --lh-body:    1.65;
  --lh-tight:   1.45;

  /* Tracking optic: cu cât textul e mai mare, cu atât mai strâns. */
  --ls-display: -0.035em;
  --ls-heading: -0.025em;
  --ls-title:   -0.015em;
  --ls-body:    0;
  --ls-label:   0.045em;

  /* ============================================================
     MĂSURI (lățimi maxime de text) — reparația-cheie.
     Un titlu prins la 16ch NU POATE ajunge la 6 rânduri.
     ============================================================ */
  --measure-display: 15ch;   /* h1 */
  --measure-heading: 22ch;   /* h2 */
  --measure-title:   30ch;   /* h3 / titluri de card */
  --measure-lede:    56ch;   /* paragraf introductiv */
  --measure-body:    68ch;   /* text curent */
  --measure-narrow:  46ch;   /* text centrat — mai îngust, altfel obosește */

  /* ---- Mișcare ---- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.6s;

  /* ---- Straturi ---- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 20;
  --z-backdrop: 30;
  --z-menu: 40;
  --z-toast: 50;

  color-scheme: light;
}

/* ---- Tokens: dark ---- */
[data-theme="dark"] {
  --bg: #080710;
  --bg-tint: #0E0B1C;
  --surface: #120F22;
  --surface-2: #17132B;

  --text: #ECEAFA;
  --text-dim: #B3AED6;
  --text-dimmer: #837DAD;

  --border: rgba(236, 234, 250, 0.10);
  --border-strong: rgba(236, 234, 250, 0.18);

  --lime-text: #84CC16;

  --glass-bg: rgba(23, 19, 43, 0.6);
  --glass-border: rgba(155, 95, 255, 0.18);
  --glass-blur: blur(18px);

  --glow-brand: 0 18px 54px -12px rgba(123, 47, 255, 0.55);
  --glow-brand-soft: 0 12px 36px -14px rgba(123, 47, 255, 0.4);
  --shadow-card: 0 14px 44px -18px rgba(0, 0, 0, 0.7);
  --shadow-card-hover: 0 24px 60px -22px rgba(0, 0, 0, 0.8);
  --shadow-nav: 0 10px 40px -12px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ============================================================
   2. RESET / BAZĂ
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-x: clip;
  transition: background var(--dur) var(--ease-out-quart), color var(--dur) var(--ease-out-quart);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(123, 47, 255, 0.25); color: var(--text); }

/* ============================================================
   3. TIPOGRAFIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-optical-sizing: auto;   /* Bricolage e variabil pe axa opsz */
  font-weight: 700;
  color: var(--text);
  /* Fără despărțire în silabe pe titluri: în română produce rupturi urâte. */
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  max-width: var(--measure-display);
}
h2 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  max-width: var(--measure-heading);
}
h3 {
  font-size: var(--fs-xl);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  max-width: var(--measure-title);
}
h4 {
  font-size: var(--fs-lg);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  max-width: var(--measure-title);
}
h5, h6 { font-size: var(--fs-md); line-height: var(--lh-title); }

/* Măsura e o valoare implicită sănătoasă, nu o cușcă:
   .u-measure-none o scoate acolo unde chiar trebuie. */
.u-measure-none { max-width: none; }

p { text-wrap: pretty; }
p, li { hyphens: none; -webkit-hyphens: none; }

strong, b { font-weight: 700; color: var(--text); }
em { font-style: italic; }

small { font-size: var(--fs-sm); }

/* Textul curent primește o măsură implicită, ca să nu se întindă
   niciodată pe toată lățimea ecranului. */
.prose p, .lede { max-width: var(--measure-body); }

.lede {
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  color: var(--text-dim);
  max-width: var(--measure-lede);
  text-wrap: pretty;
}
.lede strong { color: var(--text); }

/* Etichetă mică deasupra titlurilor */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--lime-text);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}
.eyebrow.is-plain::before { display: none; }

/* Accente în titluri */
.accent { color: var(--purple); }
.accent-lime { color: var(--lime-text); }

/* „nowrap" pe perechi de cuvinte care nu au voie să se rupă
   (ex. „500 lei", „48 h", „Cluj-Napoca") */
.nb { white-space: nowrap; }

/* ============================================================
   4. RITM VERTICAL (flow) — inima reparației de layout.
   Spațiul dintre elemente vine de aici, nu din margin-bottom
   împrăștiat prin fiecare componentă.
   ============================================================ */

.flow > * + * { margin-top: var(--flow, var(--space-sm)); }
.flow-2xs { --flow: var(--space-2xs); }
.flow-xs  { --flow: var(--space-xs); }
.flow-sm  { --flow: var(--space-sm); }
.flow-md  { --flow: var(--space-md); }
.flow-lg  { --flow: var(--space-lg); }
.flow-xl  { --flow: var(--space-xl); }

/* Perechile eyebrow→titlu și titlu→lede au nevoie de spații proprii,
   altfel ritmul uniform le face să pară deconectate. */
.flow > .eyebrow + * { margin-top: var(--space-xs); }
.flow > h1 + p, .flow > h2 + p, .flow > h3 + p { margin-top: var(--space-md); }

/* ============================================================
   5. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section-tight { padding-block: var(--section-y-tight); }
.section-narrow { max-width: var(--container-narrow); margin-inline: auto; }

/* Secțiune „alternativă" — folosită ca să se vadă unde începe și
   unde se termină fiecare bloc. Alternarea e ce dă ritm paginii. */
.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

/* ---- Capul de secțiune: eyebrow + h2 + lede, cu spații fixe ---- */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-fluid-lg);
  max-width: var(--measure-body);
}
.sec-head > h2 { margin: 0; }
.sec-head > .lede { margin: 0; }

.sec-head.is-center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
  /* Textul centrat trebuie să fie mai îngust decât cel aliniat la stânga —
     altfel ochiul pierde începutul rândului următor. */
  max-width: 62ch;
}
.sec-head.is-center > h2 { max-width: 20ch; }
.sec-head.is-center > .lede { max-width: var(--measure-narrow); }

/* Cap de secțiune cu acțiune în dreapta (titlu stânga / buton dreapta) */
.sec-head.is-split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: none;
  flex-wrap: wrap;
}
.sec-head.is-split > .sec-head-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--measure-body);
}
.sec-head.is-split > .btn { flex: none; }

/* ---- Grile ----
   minmax(min(NNNpx, 100%), 1fr) — `min()` împiedică depășirea
   pe ecrane mai înguste decât pragul. Varianta fără min() e
   exact bug-ul clasic de scroll orizontal pe mobil. */
.grid { display: grid; gap: var(--space-fluid-sm); }
.grid > * { min-width: 0; }

.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.grid-auto    { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Grilă asimetrică text + vizual. `align-items: start` (nu center)
   e ce împiedică panoul să plutească atunci când coloanele au
   înălțimi diferite. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-fluid-lg);
  align-items: start;
}
.split.is-centered { align-items: center; }
.split.is-text-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 920px) {
  .split, .split.is-text-wide { grid-template-columns: 1fr; }
}

/* Utilitare de aliniere */
.center { text-align: center; }
.center .lede, .center > p { margin-inline: auto; }
.stack-h { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.stack-h.is-center { justify-content: center; }

/* ============================================================
   6. COMPONENTE DE BAZĂ
   ============================================================ */

/* ---- Butoane ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  padding: 0.95rem 1.65rem;
  border-radius: var(--r-pill);
  min-height: 52px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur) var(--ease-out-quart),
              background var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast), color var(--dur-fast);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary { background: var(--purple); color: var(--on-brand); box-shadow: var(--glow-brand-soft); }
.btn-primary:hover { background: var(--purple-deep); box-shadow: var(--glow-brand); transform: translateY(-2px); }

.btn-cta { background: var(--orange-cta); color: #fff; box-shadow: var(--glow-action); }
.btn-cta:hover { background: var(--orange-cta-hover); transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(194, 65, 12, 0.55); }

.btn-wa { background: #25D366; color: #06281A; }
.btn-wa:hover { background: #1FBB59; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.5); }

.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }

.btn-light-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-light-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.15rem; min-height: 44px; font-size: var(--fs-sm); }
.btn-lg { padding: 1.1rem 2.1rem; min-height: 58px; font-size: var(--fs-md); }

/* Link cu săgeată — micro-interacțiune, nu decor */
.link-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--purple);
  transition: gap var(--dur-fast) var(--ease-out-quart);
}
.link-go:hover { gap: 0.7rem; }
.link-go svg { width: 16px; height: 16px; flex: none; }

/* ---- Chip / pill ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
}
.chip svg { width: 1.05em; height: 1.05em; color: var(--lime); flex: none; }

/* Insignă mică, majuscule */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  background: rgba(123, 47, 255, 0.12);
  color: var(--purple);
}
.badge svg { width: 14px; height: 14px; flex: none; }
.badge.is-lime { background: rgba(101, 163, 13, 0.14); color: var(--lime-text); }
.badge.is-solid { background: var(--purple); color: #fff; box-shadow: var(--glow-brand-soft); }

/* ---- Carduri ----
   Anatomie fixă: cardul e o coloană flex, corpul crește,
   subsolul se lipește jos. De aici vine alinierea perfectă a
   rândurilor de carduri, indiferent cât text au. */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-fluid-md);
  box-shadow: var(--shadow-card);
}
.card-body { flex: 1 1 auto; }
.card-foot {
  margin-top: auto;
  padding-top: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.card-foot.has-rule { border-top: 1px solid var(--border); }

.card-hover {
  transition: transform var(--dur) var(--ease-out-quart),
              box-shadow var(--dur) var(--ease-out-quart),
              border-color var(--dur);
}
.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(123, 47, 255, 0.3);
}

.card-featured {
  border-color: rgba(123, 47, 255, 0.32);
  box-shadow: var(--glow-brand-soft);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Pictogramă de card, în casetă */
.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--purple);
  flex: none;
}
.icon-box svg { width: 25px; height: 25px; }
.icon-box.is-sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-box.is-sm svg { width: 19px; height: 19px; }

/* ---- Liste cu bifă ---- */
.list-check { display: flex; flex-direction: column; gap: var(--space-2xs); }
.list-check li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
  color: var(--text-dim);
}
.list-check li svg { width: 19px; height: 19px; color: var(--lime); flex: none; margin-top: 0.15em; }
.list-check.is-strong li { color: var(--text); font-weight: 500; }

/* Listă cu bulină */
.list-dot { display: flex; flex-direction: column; gap: var(--space-2xs); }
.list-dot li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
  color: var(--text-dim);
}
.list-dot li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime-bright);
  flex: none;
  transform: translateY(-0.15em);
}

/* ---- Atmosferă: pete de lumină ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: var(--z-base);
  pointer-events: none;
}
[data-theme="dark"] .blob { opacity: 0.4; }

/* Linie despărțitoare fină, cu degradeu (mai elegantă decât un border) */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ============================================================
   7. NAVIGAȚIE
   ============================================================ */

.nav-wrap { position: sticky; top: 0; z-index: var(--z-sticky); padding-top: 0.7rem; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-nav);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.nav.scrolled { border-color: var(--border-strong); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { color: var(--purple); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--text); background: var(--bg-tint); }
.nav-links a.active { color: var(--purple); background: var(--bg-tint); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--purple); color: var(--purple); }
.icon-btn svg { width: 20px; height: 20px; }

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-cta { display: inline-flex; }
.hamburger { display: none; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 16, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out-quart), visibility var(--dur);
  z-index: var(--z-backdrop);
}
.menu-backdrop.open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: var(--z-menu);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease-out-expo);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 0.95rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--space-sm); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: grid; }
  /* .nav-links poartă margin-left:auto; când e ascuns, acțiunile
     pierd împingerea spre dreapta — o restaurăm aici. */
  .nav-actions { margin-left: auto; }
}
@media (min-width: 981px) {
  .mobile-menu, .menu-backdrop { display: none; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: var(--z-toast);
  background: var(--purple);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 1rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--text-dimmer);
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--text-dim); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 600; }

/* ============================================================
   8. MIȘCARE
   Regula de aur: conținutul e vizibil la repaus. `.in` doar îl
   introduce. Fără JS, fără observer sau cu reduced-motion,
   pagina arată complet — nimic nu depinde de animație.
   ============================================================ */

.reveal { opacity: 1; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes reveal-in-scale {
  from { opacity: 0; transform: translateY(16px) scale(0.965); }
  to   { opacity: 1; transform: none; }
}

.js .reveal.in { animation: reveal-in var(--dur-slow) var(--ease-out-expo) both; }
.js .reveal.is-scale.in { animation-name: reveal-in-scale; }

/* Decalaj în cascadă. `--i` scalează la orice număr de elemente,
   spre deosebire de data-delay="1|2|3" care se oprea la trei. */
.js .reveal.in { animation-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in[data-delay="1"] { --i: 1; }
.js .reveal.in[data-delay="2"] { --i: 2; }
.js .reveal.in[data-delay="3"] { --i: 3; }

/* Cascadă automată pe copiii direcți ai unei grile */
.js .stagger > * { --i: 0; }
.js .stagger.in > *:nth-child(1) { --i: 0; }
.js .stagger.in > *:nth-child(2) { --i: 1; }
.js .stagger.in > *:nth-child(3) { --i: 2; }
.js .stagger.in > *:nth-child(4) { --i: 3; }
.js .stagger.in > *:nth-child(5) { --i: 4; }
.js .stagger.in > *:nth-child(6) { --i: 5; }
.js .stagger.in > *:nth-child(n+7) { --i: 6; }
.js .stagger.in > * { animation: reveal-in-scale var(--dur-slow) var(--ease-out-expo) both; animation-delay: calc(var(--i) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal.in,
  .js .stagger.in > * { animation: none; }
  .btn:active { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   9. UTILITARE
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.u-dim { color: var(--text-dim); }
.u-dimmer { color: var(--text-dimmer); }
.u-mt-auto { margin-top: auto; }
.u-relative { position: relative; z-index: var(--z-raised); }
