/* live.fluxer.ai — comunicare multi-canal cu AI.
   Aceeași familie vizuală ca horeca.fluxer.ai (Plus Jakarta Sans, carduri, accent albastru),
   dar pagina e deliberat mai MICĂ: fără fotografii, fără paralaxă, fără simulări animate.
   TEMA: variabilele de culoare stau TOATE pe :root (lumina) și se rescriu integral pe întuneric,
   în două locuri — alegerea explicită ([data-theme="dark"]) și implicitul de sistem
   (prefers-color-scheme, gardat cu :not([data-theme="light"])) — ca butonul să bată sistemul
   în ambele direcții. */

:root {
  --f-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --paper: #ffffff;
  --paper-2: #f2f6fb;
  --surface: #ffffff;

  --ink: #16294a;
  --ink-2: #53637d;
  --ink-3: #5d6d86;
  --line: #e2e8f2;
  --line-2: #cfd9e8;

  --accent: #1f6fb2;
  --accent-vivid: #2e86d1;
  --accent-soft: #eaf2fa;
  --accent-line: #bcd5ec;

  --verde: #2fa382;
  --verde-soft: #e6f5ef;

  --r-lg: 18px;
  --r: 12px;
  --r-sm: 8px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgba(22,41,74,.04), 0 10px 26px -18px rgba(22,41,74,.28);
  --shadow-lift: 0 2px 4px rgba(22,41,74,.06), 0 22px 44px -22px rgba(22,41,74,.38);

  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --sect: clamp(54px, 7vw, 96px);
  --hero-img: url('/img/hero-light.webp');
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0d1524;
  --paper-2: #111b2e;
  --surface: #16223a;
  --ink: #e8eef8;
  --ink-2: #a7b6cd;
  --ink-3: #8b9cb6;
  --line: #223350;
  --line-2: #2c405f;
  --accent: #55a3e6;
  --accent-vivid: #6cb2ef;
  --accent-soft: #182a44;
  --accent-line: #2b4c74;
  --verde: #3dbd97;
  --verde-soft: #12302a;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 26px -18px rgba(0,0,0,.7);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.3), 0 22px 44px -22px rgba(0,0,0,.8);
  --hero-img: url('/img/hero-dark.webp');
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1524;
    --paper-2: #111b2e;
    --surface: #16223a;
    --ink: #e8eef8;
    --ink-2: #a7b6cd;
    --ink-3: #8b9cb6;
    --line: #223350;
    --line-2: #2c405f;
    --accent: #55a3e6;
    --accent-vivid: #6cb2ef;
    --accent-soft: #182a44;
    --accent-line: #2b4c74;
    --verde: #3dbd97;
    --verde-soft: #12302a;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 26px -18px rgba(0,0,0,.7);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.3), 0 22px 44px -22px rgba(0,0,0,.8);
    --hero-img: url('/img/hero-dark.webp');
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--f-sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.h-display { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; }
p { margin: 10px 0 0; color: var(--ink-2); }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.13rem); line-height: 1.66; max-width: 60ch; margin-top: 20px; }
.note { font-size: 13.8px; line-height: 1.55; color: var(--ink-3); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.titlu-sect {
  font-size: clamp(1.45rem, 3vw, 2.1rem); text-align: center; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800;
}
.titlu-sect + .sub-sect { text-align: center; max-width: 64ch; margin: 14px auto 0; color: var(--ink-2); font-size: 16.2px; }
.sect-head { margin-bottom: clamp(30px, 4vw, 50px); }

section { position: relative; }
.sect { padding-block: var(--sect); }
.sect-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Elemente discrete de decor: grile de puncte în colțurile unor secțiuni (ca pe horeca). */
.puncte {
  position: absolute; width: 150px; height: 96px; pointer-events: none; opacity: .16;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.7px);
  background-size: 19px 19px;
}
.puncte.verde { background-image: radial-gradient(var(--verde) 1.6px, transparent 1.7px); }
.puncte.sus-dreapta { top: 34px; right: 8px; }
.puncte.jos-stanga { bottom: 34px; left: 8px; }
@media (max-width: 860px) { .puncte { display: none; } }

/* ——— butoane ——— */
.btn {
  --btn-bg: var(--accent); --btn-ink: #fff; --btn-line: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-line);
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 16px; }
.btn-2 { --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-2); }
.btn-2:hover { --btn-line: var(--accent); --btn-ink: var(--accent); }
.btn-lg { min-height: 54px; padding: 16px 28px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 420px) { .btns .btn { width: 100%; } }

/* ——— antet ——— */
.head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.head.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(0,0,0,.5); }
.head .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .nume { font-weight: 800; font-size: 16.5px; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.brand .nume small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }

.nav { display: flex; gap: 18px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .16s ease; }
.nav a:hover, .nav a.activ { color: var(--accent); }

.tema, .burger {
  width: 42px; height: 40px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink); font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.tema:hover, .burger:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; }
@media (max-width: 1080px) {
  .nav, .head .btn { display: none; }
  .burger { display: inline-flex; }
}

.meniu {
  display: none; flex-direction: column; position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift);
  padding: 8px var(--gutter) 22px;
}
.meniu[data-deschis="1"] { display: flex; }
.meniu a { padding: 14px 2px; text-decoration: none; font-size: 16.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.meniu .btn { margin-top: 18px; border-bottom: 1px solid var(--btn-line); }

/* ——— hero ——— */
.hero { position: relative; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Fundalul generat (liniile canalelor care converg): CÂTE O IMAGINE PER TEMĂ, prin --hero-img —
   un singur fișier ar fi fost ori prea întunecat pe lumină, ori spălăcit pe întuneric. Voalul
   dinspre stânga ține textul lizibil indiferent ce desenează liniile acolo. `inset` negativ =
   spațiul de mișcare al paralaxei, ca marginile să nu se vadă niciodată. */
.hero-fundal {
  position: absolute; inset: -12% 0; z-index: 0; will-change: transform;
  background: var(--hero-img) right center / cover no-repeat;
}
.hero-fundal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper-2) 4%, color-mix(in srgb, var(--paper-2) 68%, transparent) 46%, transparent 80%);
}
@media (max-width: 940px) {
  .hero-fundal::after { background: color-mix(in srgb, var(--paper-2) 76%, transparent); }
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 108px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
/* Pe îngust, antetul lipicios e deja un „acoperiș" — 52px de aer sub el se simt ca un gol. */
@media (max-width: 940px) { .hero .wrap { grid-template-columns: minmax(0,1fr); padding-top: 26px; } }
.hero h1 em { font-style: normal; color: var(--accent); }

.pastile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pastila {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 13.2px; font-weight: 600; color: var(--ink-2);
}
.pastila i { color: var(--accent); font-size: 15px; }

/* Cardul din hero: canalele care converg în același asistent — desen static, fără script. */
.hero-canale {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: 22px;
}
.hero-canale .cap { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.hero-canale .cap i { color: var(--verde); }
.hc-linii { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.hc-linie { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink-2); }
.hc-linie i { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-size: 16px; }
.hc-linie b { color: var(--ink); font-weight: 700; }
.hc-jos { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 10px; font-size: 13.4px; color: var(--ink-2); }
.hc-jos .punct { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px var(--verde-soft); flex: none; }

/* ——— banda de cifre ——— */
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.stat { padding: 22px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 760px) {
  .statgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ——— grile de carduri ——— */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .g-3 { grid-template-columns: minmax(0,1fr); } }
/* Cinci carduri pe un rând ies coloane de ~200px — înghesuite. Flex cu rânduri centrate:
   pe lat ies 3 + 2 centrate, fiecare card cu lățime de citit, iar pe îngust curg singure. */
.g-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.g-5 > .card { flex: 1 1 280px; max-width: 350px; }
@media (max-width: 700px) { .g-5 > .card { max-width: none; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow); text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.card h3 { font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.card h3 i { color: var(--accent); font-size: 18px; flex: none; }
.card h3 i.verde { color: var(--verde); }
.card p { font-size: 14.4px; line-height: 1.6; }

/* cardurile-canal (compacte) — icoana ÎN LINIE cu titlul, în cutiuța ei */
.canal-card h3 i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; font-size: 16px; }
.canal-card h3 i.verde { background: var(--verde-soft); border-color: var(--verde); }

/* cardurile-industrie */
.ind-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ind-card li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ind-card li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: 1px; color: var(--verde); font-size: 13px; }
.ind-card .ce { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13.4px; font-weight: 700; color: var(--accent); text-decoration: none; }
.ind-card .ce:hover { text-decoration: underline; }

/* testeaza */
.sect-testeaza { background: var(--accent-soft); border-block: 1px solid var(--accent-line); }
.testcard { display: block; text-decoration: none; cursor: pointer; font: inherit; width: 100%; border: 1px solid var(--line); }
.testcard .cta-linie { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent); font-size: 14.5px; }
.testcard .cta-linie b { font-weight: 800; letter-spacing: .02em; }
.testcard:hover .cta-linie i { transform: translateX(3px); }
.testcard .cta-linie i { transition: transform .16s ease; }
.verde { color: var(--verde); }

/* pasi */
.pasi { list-style: none; counter-reset: pas; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 860px) { .pasi { grid-template-columns: minmax(0,1fr); } }
.pasi li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.pasi .nr { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.pasi h3 { font-size: 16px; }
.pasi p { font-size: 14.2px; }

/* subsol */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-block: 26px; justify-content: space-between; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 13.8px; }
.foot a:hover { color: var(--accent); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* ——— animatia de aparitie ——— */
.apare { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.apare.vazut { opacity: 1; transform: none; }
.apare.i1 { transition-delay: .07s; }
.apare.i2 { transition-delay: .14s; }
.apare.i3 { transition-delay: .21s; }
.apare.i4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .apare { opacity: 1; transform: none; transition: none; }
}
