/* ==========================================================================
   Produse360 — ecosistemul de aplicații Rheinsystems
   Design system derivat din rheinsystems.ro: aceleași tokens (accent #ff1269,
   Inter variable, scară 4px, light/dark), cu identitate proprie de produs:
   orbita ecosistemului în hero, bento grid, pipeline operațional,
   pagini de produs cu galerii scroll-snap. Fără framework-uri.
   ========================================================================== */

/* ---- Fonturi (self-hosted, variable, latin + latin-ext pt. diacritice) ---- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens (identice cu rheinsystems.ro — continuitate de brand) ---- */
:root {
  --accent:        #ff1269;
  --accent-deep:   #d4004f;
  --accent-dark:   #b10043;
  --accent-soft:   #fff0f5;
  --ink:           #0c0f14;
  --ink-2:         #363c46;
  --muted:         #5d6570;
  --bg:            #fbfbfc;
  --surface:       #ffffff;
  --surface-2:     #f4f5f7;
  --border:        #e6e8ee;
  --border-strong: #d4d8e0;
  --success:       #16a34a;

  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl:  clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --text-3xl:  clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem;  --s-8: 2rem;   --s-12: 3rem;   --s-16: 4rem; --s-24: 6rem;
  --section: clamp(3.25rem, 2rem + 2.5vw, 5.5rem);

  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 15, 20, .05);
  --shadow:    0 1px 2px rgba(12, 15, 20, .05), 0 10px 28px rgba(12, 15, 20, .07);
  --shadow-lg: 0 2px 4px rgba(12, 15, 20, .05), 0 28px 60px rgba(12, 15, 20, .13);

  --frame: 1400px;
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 220ms;

  --accent-border: #ffd2e2;

  /* paleta „pe întuneric" — folosită de hero și de banda finală CTA,
     indiferent de temă (split dark-hero / light-body) */
  --night-bg:     #0b0e14;
  --night-line:   rgba(255, 255, 255, .1);
  --night-ink:    #f2f4f8;
  --night-muted:  rgba(255, 255, 255, .78);

  color-scheme: light;
}

/* ---- Tema întunecată (comutator în header + prefers-color-scheme) ---- */
:root[data-theme="dark"] {
  --bg:            #0b0e14;
  --surface:       #131722;
  --surface-2:     #1b2130;
  --border:        #242b3a;
  --border-strong: #333c50;
  --ink:           #f2f4f8;
  --ink-2:         #edf0f5;
  --muted:         #d6dce5;
  --accent-deep:   #ff7aa8;
  --accent-dark:   #ff9dbd;
  --accent-soft:   rgba(255, 18, 105, .14);
  --accent-border: rgba(255, 18, 105, .4);
  color-scheme: dark;
}
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .footer__certs img { filter: grayscale(1) invert(1); opacity: .8; }

/* ---- Reset & bază ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
p { margin: 0 0 var(--s-4); }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(12, 15, 20, .14); color: var(--ink); }
:root[data-theme="dark"] ::selection { background: rgba(255, 255, 255, .22); color: var(--ink); }

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -300%);
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm); z-index: 200; transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #fff; }

/* ---- Cadru cu side rails (semnătura familiei) ---- */
.frame {
  max-width: var(--frame);
  margin-inline: auto;
  border-inline: 1px solid var(--border);
  position: relative;
  background: var(--bg);
  overflow: clip;
}
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: none; padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }

.section { position: relative; padding-block: var(--section); }
.section--line { border-top: 1px solid var(--border); }

/* ---- Utilitare ---- */
.eyebrow {
  display: inline-block;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-4);
}
.lead { font-size: var(--text-lg); color: var(--ink-2); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { color: var(--accent); }
.nb { white-space: nowrap; }   /* grupuri care nu trebuie rupte la cratimă */
.name360 b, .name360 .accent { color: var(--accent); font-weight: inherit; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-sm); color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 6px 14px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}

/* ---- Butoane ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font: 600 var(--text-base)/1.2 var(--font-body);
  padding: 13px 26px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, #ff1269, #ff4c86); color: #fff; box-shadow: 0 8px 20px rgba(255, 18, 105, .32); }
.btn--primary:hover { background: linear-gradient(135deg, #e50f5e, #ff3578); color: #fff; box-shadow: 0 10px 26px rgba(255, 18, 105, .4); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--ink-2); color: var(--bg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-night { background: #fff; color: #0c0f14; }
.btn--on-night:hover { background: #e9ecf2; color: #0c0f14; }
.btn--outline-night { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-night:hover { border-color: #fff; color: #fff; }
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: var(--text-sm); color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--accent-deep); }
.link-arrow .arr { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ---- Header (identic ca ADN cu rheinsystems.ro + dropdown Aplicații) ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
:root[data-theme="dark"] .header {
  background: #0a0d13;
  border-bottom-color: rgba(255, 255, 255, .08);
}
.header__in {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); }
.brand img { height: 38px; width: auto; }
.brand__suite {
  font: 700 1.02rem/1 var(--font-display); letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 1px solid var(--border-strong);
  padding-left: var(--s-3);
  white-space: nowrap;
}
.brand__suite b { color: var(--accent); font-weight: 700; }
/* Numele suitei vine din CSS, comandat de data-suite (setat în <head> după
   domeniul accesat — produse360 / servicii360 / digitalizare-360). Fără JS
   rămâne fallback-ul „Produse". */
.brand__suite-name::before { content: "Produse"; }
:root[data-suite="servicii"] .brand__suite-name::before { content: "Servicii"; }
:root[data-suite="digitalizare"] .brand__suite-name::before { content: "Digitalizare"; }
.nav { display: flex; align-items: center; gap: clamp(26px, 3vw, 46px); }
.nav > a, .nav__drop > summary {
  font: 500 0.9rem/1 var(--font-body); color: var(--ink-2);
  padding: var(--s-2) 0; position: relative;
  white-space: nowrap;
}
:root[data-theme="dark"] .nav > a,
:root[data-theme="dark"] .nav__drop > summary { color: rgba(255, 255, 255, .92); }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent); transition: right var(--dur) var(--ease);
}
.nav > a:hover { color: var(--ink); }
:root[data-theme="dark"] .nav > a:hover { color: #fff; }
.nav > a:hover::after { right: 0; }

/* dropdown Aplicații: <details> nativ, accesibil, fără librării */
.nav__drop { position: relative; }
.nav__drop > summary {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; list-style: none;
}
.nav__drop > summary::-webkit-details-marker { display: none; }
.nav__drop > summary svg { transition: transform var(--dur) var(--ease); }
.nav__drop[open] > summary svg { transform: rotate(180deg); }
.nav__drop > summary:hover { color: var(--ink); }
:root[data-theme="dark"] .nav__drop > summary:hover { color: #fff; }
.nav__menu {
  position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 0;
  min-width: 300px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--s-3);
  display: grid; gap: 2px;
  z-index: 120;
}
/* două coloane cu lățime fixă: numele aplicațiilor se aliniază unul sub altul,
   iar descrierile pornesc toate din același punct. Coloana de nume NU poate fi
   „auto" — fiecare link e propriul container de grilă, deci s-ar alinia doar
   în interiorul lui, nu între linkuri. */
.nav__menu a {
  display: grid; grid-template-columns: 7.6em 1fr;
  align-items: baseline; column-gap: var(--s-4);
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; font-size: var(--text-sm);
  white-space: nowrap;
}
.nav__menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav__name b { color: var(--accent); font-weight: 600; }
.nav__desc { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.nav__menu a.nav__all { display: block; border-top: 1px solid var(--border); border-radius: 0; margin-top: var(--s-2); padding-top: var(--s-3); color: var(--accent-deep); }
.nav__menu a.nav__all:hover { background: none; color: var(--accent-dark); }

.header .btn { padding: 10px 22px; font-size: var(--text-sm); }
.nav-toggle {
  display: none; background: none; border: 0; padding: var(--s-2); cursor: pointer; color: var(--ink);
}
:root[data-theme="dark"] .nav-toggle { color: #fff; }
.theme-toggle {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface-2); }
:root[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, .22); color: #fff; }
:root[data-theme="dark"] .theme-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle svg { display: block; }

/* ==========================================================================
   HERO — urmează tema (luminos pe light, întunecat pe dark), exact ca
   hero-ul de pe rheinsystems.ro: aceleași variabile --hero-grid / --hero-glow
   și aceleași valori, ca trecerea între site-uri să fie continuă.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg); color: var(--ink);
  padding-block: clamp(3rem, 5vw, 5.5rem) clamp(3.5rem, 5vw, 5rem);
  overflow: clip;
  --hero-grid:     rgba(12, 15, 20, .045);
  --hero-glow-a:   rgba(255, 18, 105, .035);
  --hero-glow-b:   rgba(255, 18, 105, .02);
}
:root[data-theme="dark"] .hero {
  background: #0b0e14; color: #fff;
  --hero-grid:     rgba(255, 255, 255, .05);
  --hero-glow-a:   rgba(255, 18, 105, .2);
  --hero-glow-b:   rgba(255, 18, 105, .1);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 70% at 82% 20%, var(--hero-glow-a), transparent 70%),
    radial-gradient(42% 55% at 6% 96%, var(--hero-glow-b), transparent 70%);
}
.hero__grid {
  position: relative; z-index: 2;
  /* orbita primește coloana mai lată — e elementul-cheie al paginii */
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--s-8), 4vw, var(--s-16)); align-items: center;
}
.hero h1 { font-size: var(--text-3xl); margin-bottom: var(--s-6); color: inherit; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--ink-2); margin-bottom: var(--s-8); }
:root[data-theme="dark"] .hero .lead { color: rgba(255, 255, 255, .92); }
.hero .eyebrow { color: var(--muted); }
:root[data-theme="dark"] .hero .eyebrow { color: rgba(255, 255, 255, .62); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }
/* butonul secundar: contur închis pe fundal luminos, alb pe fundal întunecat */
.hero .btn--outline-night { color: var(--ink); border-color: var(--border-strong); }
.hero .btn--outline-night:hover { color: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .hero .btn--outline-night { color: #fff; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .hero .btn--outline-night:hover { color: #fff; border-color: #fff; }
.hero__note { margin: var(--s-4) 0 0; font-size: var(--text-sm); color: var(--muted); }
:root[data-theme="dark"] .hero__note { color: rgba(255, 255, 255, .55); }
.hero__stats {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s-4) var(--s-8);
  border-top: 1px solid var(--border-strong);
  margin-top: clamp(var(--s-8), 4vw, var(--s-12));
  padding-top: clamp(var(--s-6), 2.5vw, var(--s-8));
}
:root[data-theme="dark"] .hero__stats { border-top-color: rgba(255, 255, 255, .16); }
.hero__stat { display: flex; align-items: baseline; gap: var(--s-3); }
.hero__stat b {
  font: 700 clamp(2rem, 2.4vw, 2.6rem)/1 var(--font-display);
  letter-spacing: -0.02em; color: var(--ink);
}
.hero__stat b .accent { color: var(--accent); }
.hero__stat > span { font-size: 1.02rem; color: var(--muted); white-space: nowrap; }
:root[data-theme="dark"] .hero__stat b { color: #fff; }
:root[data-theme="dark"] .hero__stat > span { color: rgba(255, 255, 255, .85); }

/* ---- Orbita ecosistemului: compania în centru, aplicațiile în jur ---- */
.orbit {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin-inline: auto;
  list-style: none; margin-block: 0; padding: 0;
  /* liniile orbitei și umbrele cardurilor urmează tema */
  --orbit-line-1: rgba(12, 15, 20, .16);
  --orbit-line-2: rgba(12, 15, 20, .09);
  --orbit-ray-a:  rgba(12, 15, 20, .02);
  --orbit-ray-b:  rgba(12, 15, 20, .16);
  --card-line:    #ececec;
  --card-shadow:  0 1px 2px rgba(12, 18, 32, .05), 0 10px 26px rgba(12, 18, 32, .09),
                  0 24px 48px rgba(12, 18, 32, .08), inset 0 1px 0 #ffffff;
  --card-shadow-hover: 0 2px 4px rgba(12, 18, 32, .06), 0 16px 34px rgba(12, 18, 32, .12),
                  0 34px 66px rgba(12, 18, 32, .11), inset 0 1px 0 #ffffff;
  --hub-a: #202634; --hub-b: #0e1119;
  --hub-shadow: 0 20px 48px rgba(12, 18, 32, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
}
:root[data-theme="dark"] .orbit {
  --orbit-line-1: rgba(255, 255, 255, .18);
  --orbit-line-2: rgba(255, 255, 255, .1);
  --orbit-ray-a:  rgba(255, 255, 255, .02);
  --orbit-ray-b:  rgba(255, 255, 255, .14);
  --card-line:    rgba(255, 255, 255, .14);
  --card-shadow:  0 1px 2px rgba(5, 8, 14, .3), 0 14px 34px rgba(5, 8, 14, .42),
                  inset 0 1px 0 #ffffff;
  --card-shadow-hover: 0 2px 4px rgba(5, 8, 14, .3), 0 22px 48px rgba(5, 8, 14, .55),
                  inset 0 1px 0 #ffffff;
  /* nucleul se deschide, altfel s-ar pierde în fundalul întunecat
     (aceeași soluție ca la diagrama de pe rheinsystems.ro) */
  --hub-a: #39414f; --hub-b: #1b2130;
  --hub-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
/* inelul orbital: cerc punctat care se rotește imperceptibil */
.orbit::before {
  content: ""; position: absolute; inset: 14%;
  border: 1.5px dashed var(--orbit-line-1);
  border-radius: 50%;
  animation: orbitSpin 90s linear infinite;
}
.orbit::after {
  content: ""; position: absolute; inset: 27%;
  border: 1px dashed var(--orbit-line-2);
  border-radius: 50%;
  animation: orbitSpin 140s linear infinite reverse;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* razele: linii fine dinspre centru spre fiecare aplicație */
.orbit__ray {
  position: absolute; left: 50%; top: 50%;
  width: 36%; height: 1px;
  background: linear-gradient(90deg, var(--orbit-ray-a), var(--orbit-ray-b));
  transform-origin: left center;
  transform: rotate(var(--a));
}

/* nucleul: compania clientului — rămâne închis pe ambele teme, ca hubul
   diagramei de pe rheinsystems.ro (ancorează compoziția) */
.orbit__hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  z-index: 3;
  width: 35%;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--hub-a), var(--hub-b));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: var(--hub-shadow);
  padding: 8%;
}
.orbit__hub::after {
  content: ""; position: absolute; inset: -9%;
  border: 1.5px solid rgba(255, 18, 105, .5);
  border-radius: 50%;
  animation: hubPulse 3.2s ease-out infinite;
}
@keyframes hubPulse {
  0% { transform: scale(.86); opacity: .8; }
  70%, 100% { transform: scale(1.16); opacity: 0; }
}
.orbit__hub b {
  font: 700 clamp(1.15rem, 2.5vw, 1.7rem)/1 var(--font-display);
  letter-spacing: -0.02em; color: #fff;
}
.orbit__hub b .accent { color: var(--accent); }
.orbit__hub > span {
  font: 600 clamp(.64rem, 1.4vw, .88rem)/1.28 var(--font-body);
  color: rgba(255, 255, 255, .95);
}

/* sateliții: cardurile aplicațiilor (ADN-ul .shot__card din familia RS) */
.orbit__app { position: absolute; translate: -50% -50%; z-index: 2; width: 27%; animation: shotIn .6s var(--ease) backwards; }
/* bulele conțin doar numele aplicației, centrat pe ambele axe */
.orbit__card {
  display: grid; place-items: center;
  width: 100%; min-height: 2.9em;
  background: #ffffff;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-full);
  padding: .85em .9em;
  box-shadow: var(--card-shadow);
  transition: translate 250ms var(--ease), box-shadow 250ms var(--ease);
}
.orbit__card:hover {
  translate: 0 -4px;
  box-shadow: var(--card-shadow-hover);
}
.orbit__name {
  margin: 0;
  font: 700 clamp(.6rem, 1.35vw, .8rem)/1.1 var(--font-body);
  letter-spacing: .05em; text-transform: uppercase;
  color: #3a414c; white-space: nowrap;
  text-align: center;
}
.orbit__name b { color: var(--accent); font-weight: 700; }
/* pozițiile pe orbită (cadran de ceas, rază 36% — 36×cos45° = 25.5%) */
.orbit__app--1 { left: 50%;   top: 14%;   z-index: 4; }  /* Șantier360 — sus */
.orbit__app--2 { left: 75.5%; top: 24.5%; }
.orbit__app--3 { left: 86%;   top: 50%; }
.orbit__app--4 { left: 75.5%; top: 75.5%; }
.orbit__app--5 { left: 50%;   top: 86%; }
.orbit__app--6 { left: 24.5%; top: 75.5%; }
.orbit__app--7 { left: 14%;   top: 50%; }
.orbit__app--8 { left: 24.5%; top: 24.5%; }
@keyframes shotIn { from { opacity: 0; transform: translateY(14px); } }
.orbit__app--1 { animation-delay: .08s; }
.orbit__app--2 { animation-delay: .16s; }
.orbit__app--3 { animation-delay: .24s; }
.orbit__app--4 { animation-delay: .32s; }
.orbit__app--5 { animation-delay: .40s; }
.orbit__app--6 { animation-delay: .48s; }
.orbit__app--7 { animation-delay: .56s; }
.orbit__app--8 { animation-delay: .64s; }

/* pe ecrane înguste, orbita devine grilă lizibilă (vedeta prima, pe tot rândul) */
@media (max-width: 640px) {
  .orbit { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .orbit::before, .orbit::after, .orbit__ray { display: none; }
  .orbit__hub {
    position: static; translate: none; width: auto; aspect-ratio: auto;
    grid-column: 1 / -1; order: -2;
    border-radius: var(--radius); flex-direction: row; gap: var(--s-3);
    padding: var(--s-3) var(--s-4); justify-content: center;
  }
  .orbit__hub::after { content: none; }
  .orbit__app { position: static; translate: none; width: auto; animation: none; }
  .orbit__app--1 { grid-column: 1 / -1; order: -1; width: auto; }
  .orbit__name { font-size: .68rem; }
}

/* ==========================================================================
   BENTO — grila ecosistemului (4 coloane, vedeta 2×2)
   ========================================================================== */
.bento__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-8); }
.bento__head h2 { font-size: var(--text-2xl); margin: 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.tile {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* tile standard de aplicație */
.tile--app { padding: var(--s-6); gap: var(--s-3); }
.tile__top { display: flex; align-items: center; justify-content: space-between; }
.tile__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.tile__tag {
  font: 600 0.7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-full); padding: 5px 10px;
}
.tile--app h3 { font-size: 1.2rem; margin: var(--s-2) 0 0; }
.tile--app h3 a { color: inherit; }
.tile--app h3 a:hover { color: var(--accent-deep); }
.tile--app h3 .accent { font-weight: inherit; }
.tile--app p { color: var(--muted); font-size: var(--text-sm); margin: 0; }
/* teaserele au 2 paragrafe: doar ULTIMUL se întinde, ca golul să rămână sub
   text (înaintea linkului), nu între paragrafe */
.tile--app p:last-of-type { flex: 1; }
.tile--app .link-arrow { margin-top: var(--s-2); }
/* întregul tile e clickabil prin pseudo-elementul linkului din titlu */
.tile--app h3 a::after { content: ""; position: absolute; inset: 0; }
.tile--app .link-arrow { position: relative; z-index: 1; }

/* tile vedetă (Șantier360) — 2×2, cu captură în ramă de browser */
.tile--feature {
  grid-column: span 2; grid-row: span 2;
  padding: clamp(var(--s-6), 2.5vw, var(--s-8));
  gap: var(--s-4);
}
.tile--feature .tile__top { justify-content: flex-start; gap: var(--s-3); }
.tile--feature h3 { font-size: var(--text-2xl); margin: 0; }
.tile--feature .lead { font-size: var(--text-base); margin-bottom: 0; }
.tile--feature .checks { margin: 0; }
.tile--feature .browser { margin-top: auto; }
.tile__live {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 0.7rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--success);
}
.tile__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.tile__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* tile de closing: soluții personalizate */
/* tile-ul de închidere: inversat (închis, scris alb) ca să iasă din grilă */
.tile--more {
  padding: var(--s-6); gap: var(--s-3); justify-content: center;
  background: radial-gradient(130% 150% at 100% 0%, #232a39, #0b0e14);
  border-color: rgba(255, 255, 255, .12);
}
.tile--more h3 { font-size: 1.2rem; margin: 0; color: #fff; }
.tile--more p { color: rgba(255, 255, 255, .8); font-size: var(--text-sm); margin: 0; }
.tile--more .link-arrow { color: #fff; }
.tile--more .link-arrow:hover { color: var(--accent); }
/* pe temă întunecată e închis pe închis: îl separăm cu un contur de accent */
:root[data-theme="dark"] .tile--more { border-color: rgba(255, 18, 105, .38); }

/* lista de bife (moștenită din familie) */
.checks { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; margin-top: 3px; color: var(--ink); }
.checks b { color: var(--ink); font-weight: 600; }

/* fereastră de browser pentru screenshot-uri (moștenită) */
.browser {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser__bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser__dots i:first-child { background: var(--accent); opacity: .8; }
.browser__url {
  flex: 1; text-align: center;
  font-size: 0.75rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 4px 12px;
  max-width: 260px; margin-inline: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; }

/* ==========================================================================
   PIPELINE — fluxul operațional acoperit de ecosistem
   ========================================================================== */
.pipeline-sec h2 { font-size: var(--text-2xl); }
.pipeline {
  list-style: none; margin: var(--s-12) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--s-6) var(--s-4);
  counter-reset: pipe;
  position: relative;
}
/* firul care leagă etapele */
.pipeline::before {
  content: ""; position: absolute; left: 2%; right: 2%; top: 21px;
  height: 1px; background: var(--border-strong);
}
.pipeline li { position: relative; counter-increment: pipe; padding-top: var(--s-12); }
.pipeline li::before {
  content: counter(pipe, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  font: 600 var(--text-sm)/1 var(--font-display); letter-spacing: .04em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-full);
}
.pipeline li:hover::before { color: var(--accent-deep); border-color: var(--accent-border); }
.pipeline h3 { font-size: var(--text-base); margin: 0 0 var(--s-1); }
.pipeline h3 a { color: var(--ink); }
.pipeline h3 a:hover { color: var(--accent-deep); }
.pipeline h3 .accent { font-weight: inherit; }
.pipeline p { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.pipeline__stage {
  display: block;
  font: 600 0.66rem/1 var(--font-body); letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-2);
}

/* aplicațiile transversale + fundația comună */
.pipeline-extra {
  margin-top: clamp(var(--s-12), 6vw, var(--s-24));
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.pipeline-extra__box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--s-6);
}
.pipeline-extra__box h3 { font-size: var(--text-base); margin-bottom: var(--s-3); }
.pipeline-extra__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pipeline-extra__row .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 var(--text-sm)/1 var(--font-body);
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 9px 16px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.chip:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-deep); }
.chip b { color: var(--accent); font-weight: 600; }
.pipeline-extra__box p { margin: var(--s-3) 0 0; font-size: var(--text-sm); color: var(--muted); }

/* ---- Argumentele ecosistemului (3 carduri) ---- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: clamp(var(--s-12), 6vw, var(--s-24)); }
.why__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.why__item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.why__item svg { color: var(--muted); margin-bottom: var(--s-3); }
.why__item h3 { font-size: 1.05rem; margin: 0 0 var(--s-2); }
.why__item p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* ---- Pașii de implementare (bandă orizontală) ---- */
.steps-sec h2 { font-size: var(--text-2xl); }
.steps {
  list-style: none; margin: var(--s-8) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.steps li { padding: var(--s-4) var(--s-6); border-left: 1px solid var(--border); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps b {
  display: block;
  font: 700 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.02em;
  color: var(--border-strong);
  margin-bottom: var(--s-3);
}
/* pe temă întunecată --border-strong e prea stins pentru cifre: alb implicit */
:root[data-theme="dark"] .steps b { color: #fff; }
.steps li:hover b { color: var(--accent); }
.steps h3 { font-size: var(--text-base); margin: 0 0 var(--s-2); }
.steps p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* ---- Tehnologii / fundație (moștenit) ---- */
.tech { text-align: center; padding-block: var(--s-8); }
.tech .eyebrow { color: var(--muted); }
.tech__row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); max-width: 820px; margin-inline: auto; }
.tech__row span {
  font: 500 var(--text-sm)/1 var(--font-display);
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 10px 18px;
}

/* ---- FAQ (moștenit) ---- */
.faq { max-width: 780px; margin-inline: auto; }
.faq h2 { font-size: var(--text-2xl); text-align: center; }
.faq .lead { text-align: center; margin: 0 auto var(--s-8); }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: var(--s-3);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  cursor: pointer; list-style: none;
  font: 600 var(--text-base)/1.4 var(--font-body);
  padding: var(--s-4) var(--s-6);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--accent-deep); transition: transform var(--dur) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-6) var(--s-6); margin: 0; color: var(--ink-2); }

/* ---- Banda finală CTA (panou „de noapte", oglindă a hero-ului) ---- */
.ctaband { padding-block: var(--section); }
/* panoul urmează tema, ca hero-ul: luminos pe light, întunecat pe dark */
.ctaband__panel {
  position: relative; overflow: clip;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-12), 5vw, var(--s-24)) clamp(var(--s-6), 4vw, var(--s-16));
  text-align: center;
  box-shadow: var(--shadow);
  --cta-grid:   rgba(12, 15, 20, .045);
}
:root[data-theme="dark"] .ctaband__panel {
  background: #0b0e14;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lg);
  --cta-grid:   rgba(255, 255, 255, .05);
}
.ctaband__panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--cta-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cta-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(110% 130% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(110% 130% at 50% 0%, #000 30%, transparent 78%);
}
.ctaband__panel > * { position: relative; z-index: 1; }
.ctaband .eyebrow { color: var(--muted); }
.ctaband h2 { color: var(--ink); font-size: var(--text-2xl); max-width: 24ch; margin-inline: auto; }
.ctaband p { color: var(--ink-2); max-width: 52ch; margin: 0 auto var(--s-8); }
:root[data-theme="dark"] .ctaband .eyebrow { color: rgba(255, 255, 255, .62); }
:root[data-theme="dark"] .ctaband h2 { color: #fff; }
:root[data-theme="dark"] .ctaband p { color: var(--night-muted); }
/* butonul secundar, ca în hero: contur închis pe lumină, alb pe întuneric */
.ctaband .btn--outline-night { color: var(--ink); border-color: var(--border-strong); }
.ctaband .btn--outline-night:hover { color: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .ctaband .btn--outline-night { color: #fff; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .ctaband .btn--outline-night:hover { color: #fff; border-color: #fff; }
.ctaband__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; }

/* ---- Footer — structură identică cu cea de pe rheinsystems.ro,
       plus banda cu aplicațiile ecosistemului (singura completare) ---- */
.footer { border-top: 1px solid var(--border); background: var(--surface); position: relative; }

/* banda cu aplicațiile: etichetă + linkuri pe un rând, deasupra footerului clasic */
.footer__apps {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: var(--s-3) clamp(var(--s-4), 2vw, var(--s-8));
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.footer__apps h5 {
  font: 600 0.78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0; flex: none;
}
/* cele 8 linkuri se întind pe toată lățimea rămasă, cu spații egale între ele:
   coloane dimensionate după conținut + space-between (primul la stânga,
   ultimul lipit de marginea din dreapta) */
.footer__apps ul {
  flex: 1 1 420px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, auto);
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
}
.footer__apps a {
  font: 500 0.82rem/1.4 var(--font-body); color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.footer__apps a:hover { color: var(--accent-deep); }
.footer__apps a b { color: var(--accent); font-weight: 600; }
.footer__apps a i { font-style: normal; color: var(--muted); }

.footer__top {
  display: grid; grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: clamp(var(--s-6), 3vw, var(--s-12));
  padding-block: var(--s-4);
}
.footer__brand img { height: 30px; width: auto; margin-bottom: var(--s-2); }
.footer__brand p { color: var(--muted); font-size: 0.8rem; max-width: none; margin: 0; }
.footer__badges { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-3); }
.footer__badges img { height: 32px; width: auto; }
.footer__certs {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-8));
  align-self: center;
}
.footer__certs figure { margin: 0; text-align: center; flex: none; }
.footer__certs img { width: 46px; height: 45px; margin-inline: auto; filter: grayscale(1); opacity: .85; }
.footer__certs figcaption { font-size: 0.58rem; line-height: 1.25; color: var(--muted); margin-top: 3px; }
.footer__col h5 {
  font: 600 0.78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 var(--s-1);
}
.footer__col address { font-style: normal; color: var(--ink-2); font-size: 0.78rem; margin-bottom: 2px; }
.footer__col > a { display: block; font-size: 0.78rem; }
.footer__logos { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-1); }
.footer__logos img { height: 24px; width: auto; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: var(--text-sm); color: var(--muted);
}
.footer__legal { display: flex; gap: var(--s-6); }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--ink); }

/* ==========================================================================
   PAGINI DE PRODUS
   ========================================================================== */
/* breadcrumb */
.crumbs {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-sm); color: var(--muted);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs svg { flex: none; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* hero de produs (luminos; hero-ul întunecat rămâne semnătura home-ului) */
.phero {
  position: relative;
  padding-block: clamp(2.5rem, 4vw, 4.5rem) clamp(3rem, 5vw, 5rem);
  overflow: clip;
}
.phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(12, 15, 20, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 15, 20, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 75% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 75% 0%, #000 30%, transparent 75%);
}
:root[data-theme="dark"] .phero::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
}
.phero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(var(--s-8), 4vw, var(--s-16));
  /* captura se aliniază cu titlul, nu pe centrul coloanei de text */
  align-items: start;
}
.phero h1 { font-size: var(--text-3xl); margin-bottom: var(--s-4); }
.phero .lead { margin-bottom: var(--s-6); }
.phero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-6); }
.phero__facts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.phero__facts .pill { font-size: 0.8rem; }
.phero__vis { margin-top: clamp(var(--s-8), 4vw, var(--s-16)); }
@media (min-width: 1025px) {
  .phero__vis {
    margin-right: calc(-1 * clamp(0px, (100vw - var(--container)) / 2 - 24px, 120px));
  }
}
@media (max-width: 1024px) { .phero__vis { margin-top: 0; } }

/* problemele pe care le rezolvă */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.pain__x {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent-deep);
  margin-bottom: var(--s-3);
}
.pain h3 { font-size: 1.02rem; margin: 0 0 var(--s-2); }
.pain p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* ---- Funcționalități cu capturi împerecheate: rânduri alternante ----
   Fiecare captură stă lângă textul care explică ce se vede în ea; rândurile
   pare își inversează coloanele. Înlocuiește perechea featgrid + galerie
   acolo unde capturile pot purta povestea (deocamdată: angajati360). ---- */
.featshow {
  display: grid;
  gap: clamp(var(--s-16), 8vw, 7.5rem);
  margin-top: clamp(var(--s-12), 5vw, var(--s-16));
}
.featshow__row {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--s-8), 5vw, var(--s-24));
  align-items: center;
}
.featshow__row:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.featshow__row:nth-child(even) .featshow__vis { order: 2; }
.featshow__vis .browser { box-shadow: var(--shadow-lg); }
.featshow__body { max-width: 46ch; }
.featshow__body .eyebrow { margin-bottom: var(--s-3); }
.featshow__body .eyebrow b {
  color: var(--accent); font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: var(--s-2);
}
.featshow__body h3 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  margin-bottom: var(--s-3);
}
.featshow__body p { margin: 0; color: var(--muted); }
@media (max-width: 1024px) {
  .featshow { gap: clamp(var(--s-12), 6vw, var(--s-16)); }
  .featshow__row, .featshow__row:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-6); }
  .featshow__row:nth-child(even) .featshow__vis { order: 0; }  /* captura mereu deasupra textului */
  .featshow__body { max-width: 58ch; }
}

/* în ecosistem: aplicații conexe */
.related {
  margin-top: var(--s-8);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--s-6) var(--s-8);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap;
}
.related h3 { font-size: var(--text-base); margin: 0; }
.related__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- Pagini legale (Confidențialitate / Termeni / GDPR) ---- */
.legal__wrap { max-width: 820px; }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--s-2); }
.legal__meta { color: var(--muted); font-size: var(--text-sm); margin-bottom: clamp(var(--s-6), 3vw, var(--s-12)); }
.legal__lead { font-size: var(--text-lg); color: var(--ink-2); margin-bottom: clamp(var(--s-6), 3vw, var(--s-8)); }
.legal__section { margin-bottom: clamp(var(--s-6), 3vw, var(--s-8)); }
.legal__section h2 { font-size: var(--text-xl); margin-bottom: var(--s-3); }
.legal__section p { color: var(--ink-2); }
.legal__list { margin: 0 0 var(--s-4); padding-left: 1.25em; color: var(--ink-2); }
.legal__list li { margin-bottom: var(--s-2); }
.legal__facts {
  list-style: none; margin: var(--s-4) 0; padding: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.legal__facts li {
  display: flex; gap: var(--s-4); align-items: baseline;
  padding: 10px var(--s-4); border-bottom: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--ink-2);
}
.legal__facts li:last-child { border-bottom: 0; }
.legal__facts span { flex: 0 0 170px; color: var(--muted); font-weight: 600; }
.legal__back { margin-top: var(--s-4); }
@media (max-width: 560px) { .legal__facts span { flex-basis: 120px; } }

/* ---- Lightbox (moștenit — zoom pe capturi) ---- */
.zoom-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.zoom-btn img { width: 100%; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(8, 10, 14, .92);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1560px, 96vw); max-height: 90vh;
  width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lightbox__close {
  position: fixed; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }

/* ---- Navigare între secțiuni (capsulă fixă — moștenită) ---- */
.secnav {
  position: fixed; z-index: 90;
  right: max(6px, calc((100vw - var(--frame)) / 2 - 22px));
  top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
:root[data-theme="dark"] .secnav { background: rgba(19, 23, 34, .78); }
.secnav button {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.secnav button + button { border-top: 1px solid var(--border); }
.secnav button:hover { color: var(--ink); background: var(--surface-2); }
.secnav button svg { width: 18px; height: 18px; }
.secnav button[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 1280px) { .secnav { display: none; } }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid, .phero__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--s-12); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: 1 / -1; grid-row: auto; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline::before { content: none; }
  .why, .pains { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .steps { grid-template-columns: 1fr 1fr; gap: var(--s-6) 0; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__apps ul { grid-template-columns: repeat(4, auto); }
  .pipeline-extra { grid-template-columns: 1fr; }
}
@media (max-width: 1300px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--gutter) var(--s-6);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: var(--s-4) 0; font-size: var(--text-lg); color: var(--ink-2); border-bottom: 1px solid var(--border); }
  .nav > a::after { content: none; }
  .nav-toggle { display: block; }
  /* dropdown-ul devine listă permanent deschisă în meniul mobil */
  .nav__drop > summary { display: none; }
  .nav__drop .nav__menu {
    position: static; translate: none; min-width: 0;
    border: 0; box-shadow: none; background: none; padding: 0;
  }
  .nav__menu a { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); border-radius: 0; font-size: var(--text-lg); }
  .nav__menu a span { display: none; }
  .nav__menu a:hover { background: none; }
  .nav__menu a.nav__all { margin-top: 0; border-top: 0; padding-top: var(--s-4); }
}
@media (max-width: 720px) {
  .header .btn { display: none; }
  .brand__suite { display: none; }
  .hero__stat b { font-size: 1.8rem; }
  .bento { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .why, .pains { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; padding-inline: 0; border-top: 1px solid var(--border); padding-top: var(--s-4); }
  .steps li:first-child { border-top: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__apps ul { grid-template-columns: repeat(2, auto); }
  .hero__cta .btn, .phero__cta .btn { width: 100%; }
  .related { flex-direction: column; align-items: flex-start; }
}

/* ---- Mișcare redusă ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orbit__app { animation: none; }
  .orbit::before, .orbit::after { animation: none; }
  .orbit__hub::after { animation: none; opacity: 0; }
}
