/* =========================================================================
   SeeCode — interfață editorială, paleta V1 · Midnight
   #0b0d10 bleumarin · #14181d ardezie · #2563eb · #3b82f6 albastru · #f1efe8 alb murdar
   Ajustări de contrast (WCAG AA), verificate cu `npm run check`:
   - butoanele folosesc #2563eb cu text alb (5,2:1); albul pe #3b82f6 ar avea doar 3,7:1;
   - textul de accent pe fundal închis este #60a5fa; pe secțiunile luminoase este #1d4ed8;
   - #3b82f6 rămâne culoarea pentru elemente grafice, contururi și lumini.
   ========================================================================= */

:root {
  --navy: #0b0d10;
  --navy-deep: #07090b;
  --slate: #14181d;
  --slate-2: #1c2229;
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-text: #60a5fa;
  --white: #f1efe8;

  /* Variabile contextuale — redefinite în secțiunile luminoase */
  --bg: var(--navy);
  --text: var(--white);
  --heading: var(--white);
  --muted: #aab2bb;
  --accent-text: var(--blue-text);
  --rule: rgba(241, 239, 232, 0.14);
  --focus: #93c5fd;
  --error: #fca5a5;
  --success: #86efac;
  --star: #fbbf24;
  --input-bg: var(--navy);
  --input-border: #7d8791;
  --input-label: #aab2bb;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--navy); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 0.5em; line-height: 1.1; font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; }
address { font-style: normal; }
::selection { background: var(--blue); color: var(--navy); }

/* ---------- Accesibilitate ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--blue-strong); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Cardurile care așteaptă animația de apariție nu au voie să lărgească pagina pe telefon. */
main { overflow-x: clip; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
mark.todo { background: #fde047; color: #1c1917; padding: 0 4px; border-radius: 4px; font-size: 0.92em; }

/* ---------- Tipografie editorială ---------- */
.display {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92;
  font-size: clamp(2.6rem, 8.4vw, 7rem); margin: 0 0 0.35em;
}
.display-sm { font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2rem, 4.4vw, 3.5rem); }
.display-stack { font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(2.5rem, 5.4vw, 4.75rem); margin: 0; }
.eyebrow {
  display: block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px; line-height: 1.5;
}
.section-lead { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.small { font-size: 0.9375rem; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; background: var(--bg); color: var(--text); }
.section-deep { --bg: var(--navy-deep); }
.section-light {
  --bg: var(--white); --text: #0b0d10; --heading: #0b0d10; --muted: #4b5258; --accent-text: #1d4ed8;
  --rule: #aab2bb; --focus: #1d4ed8; --error: #b91c1c; --success: #15803d; --star: #b45309;
  color-scheme: light;
}
.section-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.split-head { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; }
.split-head h2 { margin: 0; }

/* ---------- Butoane ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 800; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.5s var(--spring);
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.8125rem; }
.btn-lg { min-height: 58px; padding: 16px 34px; }
.btn-primary { background: var(--blue-strong); color: #fff; box-shadow: 0 12px 30px -12px rgba(59, 130, 246, 0.7); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 18px 38px -12px rgba(59, 130, 246, 0.8); }
.btn-outline { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-outline:hover { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5); }
.btn-icon { width: 20px; height: 20px; transition: transform 0.4s var(--spring); }
.btn:hover .btn-icon { transform: translateX(5px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; text-align: left; }
.round-btn {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--heading); border: 2px solid var(--rule);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover:not(:disabled) { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-buttons { display: flex; gap: 12px; }
.chip {
  border: 1.5px solid var(--rule); background: transparent; color: var(--text); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--blue-text); }
.chip[aria-pressed="true"] { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-muted { background: var(--slate-2); color: var(--muted); }
.badge-ok { background: rgba(134, 239, 172, 0.14); color: var(--success); }

/* ---------- Header + meniu pe tot ecranul ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color 0.35s, height 0.35s var(--ease-out), box-shadow 0.35s;
}
.site-header.is-scrolled {
  --header-h: 68px; background: rgba(11, 13, 16, 0.86); box-shadow: 0 1px 0 var(--rule);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { display: block; width: auto; height: 42px; filter: drop-shadow(0 2px 10px rgba(7, 9, 11, 0.75)); transition: transform 0.7s var(--spring); }
.logo:hover .logo-img { transform: scale(1.06) rotate(-2deg); }
.header-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 560px) { .header-cta { display: none; } }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 7px 0 18px; border-radius: 999px;
  background: transparent; color: var(--white); border: 2px solid var(--rule); cursor: pointer; font-weight: 800;
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--blue-text); }
.menu-bars { display: grid; place-items: center; align-content: center; gap: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-strong); }
.menu-bars i { display: block; width: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--spring); }
.menu-toggle:hover .menu-bars i:nth-child(1) { transform: translateX(-3px); }
.menu-toggle:hover .menu-bars i:nth-child(3) { transform: translateX(3px); }

.menu-overlay {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--navy); color: var(--white); overflow-y: auto;
}
.menu-overlay::backdrop { background: var(--navy); }
.menu-overlay[open] { animation: menu-in 0.7s var(--ease-out) both; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding-block: 12px 40px; }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.menu-eyebrow { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text); }
.menu-close {
  position: relative; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--rule); background: transparent; cursor: pointer;
  transition: transform 0.6s var(--spring), border-color 0.2s;
}
.menu-close:hover { transform: rotate(90deg); border-color: var(--blue-text); }
.menu-close span::before, .menu-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }
.menu-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-links { margin: auto 0 !important; padding-block: 32px !important; display: grid; gap: 4px; }
.menu-links a {
  display: inline-flex; align-items: baseline; gap: 18px; color: var(--white); text-decoration: none;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2.25rem, 6.4vw, 5rem); transition: color 0.2s, transform 0.5s var(--spring);
}
.menu-links a:hover, .menu-links a:focus-visible { color: var(--blue-text); transform: translateX(14px); }
.menu-num { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.1em; color: var(--blue-text); font-family: var(--font-mono); }
.menu-overlay[open] .menu-links li { animation: menu-link-in 0.8s var(--spring) both; }
.menu-overlay[open] .menu-links li:nth-child(2) { animation-delay: 50ms; }
.menu-overlay[open] .menu-links li:nth-child(3) { animation-delay: 100ms; }
.menu-overlay[open] .menu-links li:nth-child(4) { animation-delay: 150ms; }
.menu-overlay[open] .menu-links li:nth-child(5) { animation-delay: 200ms; }
.menu-overlay[open] .menu-links li:nth-child(6) { animation-delay: 250ms; }
.menu-overlay[open] .menu-links li:nth-child(7) { animation-delay: 300ms; }
.menu-footer { display: flex; flex-wrap: wrap; gap: 8px 40px; border-top: 1px solid var(--rule); padding-top: 24px; font-weight: 700; }
.menu-footer p { margin: 0; }
.menu-footer a { color: var(--muted); text-decoration: none; }
.menu-footer a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(84px + clamp(48px, 8vw, 110px)) 0 clamp(64px, 8vw, 100px); background: var(--navy); }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: blob-morph 16s ease-in-out infinite alternate; }
.hero-glow span:nth-child(1) { width: 560px; height: 560px; background: rgba(59, 130, 246, 0.28); top: -220px; right: -140px; }
.hero-glow span:nth-child(2) { width: 420px; height: 420px; background: rgba(37, 99, 235, 0.18); bottom: -260px; left: 20%; animation-duration: 21s; }
.hero .container { position: relative; z-index: 2; }

/* Videoclip de fundal: clar și vizibil, cu un voal subțire în culorile site-ului */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease-in-out, transform 8s var(--ease-out);
}
.hero-video.is-ready video { transform: scale(1); }
/* Clipul activ e vizibil de la primul cadru: până pornește se vede posterul, cu aceeași încadrare. */
.hero-video video.is-active { opacity: 1; }
/* Pe ecrane înguste (portret) se vede doar o fâșie din cadrul 16:9: o mutăm pe oamenii care vorbesc, nu pe masa cu laptopul. */
@media (max-aspect-ratio: 1/1) {
  .hero-video .hero-video-team { object-position: 74% 50%; }
  .hero-video .hero-video-code { object-position: 42% 50%; }
}
.hero-video::after {
  /* Voal foarte fin (~8%): videoclipul rămâne vizibil, doar se așază în paleta site-ului.
     Doar marginea de jos se topește în bleumarin, pentru tranziția spre secțiunea următoare. */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0) 0%, rgba(11, 13, 16, 0) 78%, rgba(11, 13, 16, 0.85) 95%, var(--navy) 100%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.78) 0%, rgba(11, 13, 16, 0.45) 55%, rgba(11, 13, 16, 0.2) 100%),
    rgba(11, 13, 16, 0.12);
}
.hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.45; }
/* Umbră fină sub text: rămâne lizibil și peste zonele luminoase ale videoclipului.
   Titlul are mască, deci primește doar umbre scurte (o umbră lată ar fi tăiată vizibil la marginea casetei). */
.hero .eyebrow, .trust-list { color: #e7e5de; text-shadow: 0 0 2px rgba(7, 9, 11, 0.95), 0 2px 10px rgba(7, 9, 11, 0.9); }
.hero .eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px; color: #93c5fd;
  background: rgba(7, 9, 11, 0.78); border: 1px solid rgba(170, 178, 187, 0.2);
}
.hero-title { text-shadow: 0 1px 2px rgba(7, 9, 11, 0.85), 0 3px 10px rgba(7, 9, 11, 0.6); }
.video-toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 24px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1.5px solid var(--rule);
  background: rgba(11, 13, 16, 0.6); color: var(--white); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: border-color 0.2s, background-color 0.2s;
}
.video-toggle:hover { border-color: var(--blue-text); background: rgba(11, 13, 16, 0.85); }
.video-toggle-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-strong); }
.video-toggle-icon::before, .video-toggle-icon::after { content: ""; position: absolute; top: 8px; width: 3px; height: 10px; background: var(--navy); border-radius: 1px; }
.video-toggle-icon::before { left: 9px; } .video-toggle-icon::after { left: 14px; }
.video-toggle[aria-pressed="true"] .video-toggle-icon::before { left: 10px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.video-toggle[aria-pressed="true"] .video-toggle-icon::after { display: none; }
/* Titlu în perspectivă 3D: marginea stângă rămâne fixă, iar partea dreaptă „pleacă” spre fundal.
   Masca estompează ușor capătul îndepărtat, pentru senzația de adâncime (contrastul rămâne peste 4,5:1).
   Perspectiva e în em (relativă la mărimea titlului), ca adâncimea să arate la fel pe orice ecran:
   în px, pe laptopuri titlul mai mic ieșea aproape plat. */
.hero-title {
  width: fit-content; /* caseta se oprește la capătul textului, ca estomparea să cadă pe „inginerie.”, nu în gol */
  transform-origin: left center;
  transform: perspective(14em) rotateY(12deg);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, rgba(0, 0, 0, 0.72) 100%);
  mask-image: linear-gradient(90deg, #000 45%, rgba(0, 0, 0, 0.72) 100%);
  transition: transform 1.2s var(--spring);
}
@media (min-width: 860px) { .hero-title { transform: perspective(11em) rotateY(22deg); } }
@media (min-width: 860px) and (hover: hover) { .hero-title:hover { transform: perspective(11em) rotateY(15deg); } }
.hero-title .line { display: block; }
.hero-title .hl { color: var(--blue-text); display: inline-block; }
.hero-title .hl:hover { animation: rubber 0.9s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 44px 0 36px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.trust-list li { display: inline-flex; align-items: center; gap: 10px; }
.trust-list li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--blue-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Showcase: slider de preview-uri în ramă de browser ---------- */
.showcase { position: relative; background: var(--navy); padding-block: clamp(56px, 7vw, 96px) clamp(24px, 3vw, 48px); }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.showcase-head .eyebrow { margin-bottom: 12px; }
.showcase-title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.carousel-buttons { display: flex; gap: 10px; flex: none; }
.showcase-track, .industry-track {
  position: relative; display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  --edge: calc(max(0px, (100% - 1360px) / 2) + var(--gutter));
  padding-inline: var(--edge); scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain;
  padding-block: 8px 40px;
}
.showcase-track::-webkit-scrollbar, .industry-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(82vw, 760px); scroll-snap-align: start; display: flex; flex-direction: column; }
@media (min-width: 1200px) { .slide { flex-basis: min(46vw, 640px); } }

/* Ramă de browser: aceeași pentru slider, portofoliu și dialog — toate preview-urile arată la fel de îngrijit. */
.frame {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--slate-2);
  border: 1px solid rgba(241, 239, 232, 0.1); box-shadow: 0 1px 0 rgba(241, 239, 232, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease-expo, ease), box-shadow 0.6s, border-color 0.3s;
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #161b21; border-bottom: 1px solid rgba(241, 239, 232, 0.07); }
.frame-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #39414b; flex: none; }
.frame-url {
  margin: 0 auto; max-width: 60%; padding: 3px 14px; border-radius: 999px; background: rgba(241, 239, 232, 0.06);
  font-family: var(--font-mono); font-size: 0.6875rem; color: #8b949e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateX(-16px);
}
.frame-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate); }
.live-frame-view { isolation: isolate; }
.live-viewport { position: absolute; inset: 0; overflow: hidden; }
.live-viewport iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--live-scale, .25)); transform-origin: top left; opacity: 0; transition: opacity .35s ease; pointer-events: none; background: #fff; }
.live-frame.is-live .live-viewport iframe { opacity: 1; }
.live-cover { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--white); background: var(--navy); transition: opacity .35s ease; }
.live-cover .site-mock { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.live-cover .live-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.live-cover strong { position: relative; max-width: 70%; text-align: center; font-size: clamp(1rem, 2vw, 1.5rem); }
.live-frame.is-live .live-cover { opacity: 0; pointer-events: none; }
.live-chip { position: absolute; z-index: 2; right: 16px; bottom: 14px; padding: 8px 12px; border-radius: 999px; background: var(--blue-strong); color: #fff; font-size: .75rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.slide:hover .live-chip, .slide:focus-within .live-chip, .project:hover .live-chip, .project:focus-within .live-chip { opacity: 1; transform: none; }
.frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease-expo, ease); }
.frame-view .site-mock { position: absolute; inset: 0; }

.slide:hover .frame, .project:hover .frame { transform: translateY(-6px); border-color: rgba(96, 165, 250, 0.45); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(96, 165, 250, 0.2); }
.slide:hover .frame-view img, .project:hover .frame-view img { transform: scale(1.035); }

.slide-caption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-top: 20px; }
.slide-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--blue-text); padding-right: 16px; border-right: 1px solid var(--rule); align-self: stretch; display: flex; align-items: center; }
.slide-text { min-width: 0; }
.slide-cat { margin: 0 0 2px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slide-title { margin: 0; font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-link {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--rule);
  background: transparent; color: var(--white); cursor: pointer; font-size: 0; transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--spring);
}
.slide-link svg { width: 18px; height: 18px; }
.slide-link:hover, .slide:hover .slide-link { background: var(--blue-strong); border-color: var(--blue-strong); transform: rotate(-45deg); }
.slide-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Machete de site generate (fără imagini terțe) — dimensiuni relative la container */
.site-mock {
  container-type: inline-size; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column;
  padding: 6% 8% 0; transition: transform 1s var(--ease-out);
}
.sm-bar { display: flex; gap: 1.2cqi; align-items: center; padding: 1.6cqi 2cqi; border-radius: 1.6cqi 1.6cqi 0 0; background: rgba(241, 239, 232, 0.92); }
.sm-bar i { width: 1.4cqi; height: 1.4cqi; border-radius: 50%; background: #aab2bb; }
.sm-body { flex: 1; display: flex; flex-direction: column; gap: 3.4cqi; padding: 3cqi 4cqi; background: var(--white); }
.sm-nav { display: flex; align-items: center; gap: 2cqi; }
.sm-nav b { width: 4cqi; height: 4cqi; border-radius: 50%; border: 0.6cqi solid var(--blue); }
.sm-nav i { width: 7cqi; height: 1.1cqi; border-radius: 1cqi; background: #aab2bb; }
.sm-nav i:first-of-type { margin-left: auto; }
.sm-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqi; align-items: center; }
.sm-copy { display: grid; gap: 1.6cqi; }
.sm-copy i { display: block; height: 3.4cqi; border-radius: 0.6cqi; background: var(--navy); }
.sm-copy i:nth-child(2) { width: 70%; }
.sm-copy .sm-cta { width: 32%; height: 3.2cqi; background: var(--blue-strong); margin-top: 1.2cqi; }
.sm-art { aspect-ratio: 4 / 3; border-radius: 1.6cqi; background: radial-gradient(circle at 70% 30%, #93c5fd 0 14%, transparent 15%), linear-gradient(160deg, var(--blue), var(--navy)); }
.sm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.sm-cards i { height: 9cqi; border-radius: 1.2cqi; background: #e7e5de; }
.mock-0 { background: linear-gradient(135deg, var(--blue-strong), var(--navy) 85%); }
.mock-1 { background: linear-gradient(200deg, var(--slate-2), var(--navy-deep)); }
.mock-1 .sm-body { background: var(--navy); }
.mock-1 .sm-copy i { background: var(--white); }
.mock-1 .sm-cards i, .mock-1 .sm-nav i { background: var(--slate-2); }
.mock-2 { background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.6), transparent 50%), var(--slate); }
.mock-2 .sm-hero { grid-template-columns: 1fr; }
.mock-2 .sm-art { aspect-ratio: 16 / 5; order: -1; }
.mock-3 { background: linear-gradient(160deg, #e7e5de, var(--white)); }
.mock-3 .sm-body { background: var(--slate); }
.mock-3 .sm-copy i { background: var(--white); }
.mock-3 .sm-cards i, .mock-3 .sm-nav i { background: var(--slate-2); }
.mock-3 .sm-bar { background: var(--navy); }
.mock-3 .sm-bar i { background: var(--slate-2); }

/* ---------- Intro: text + afirmație ---------- */
.intro { padding-top: clamp(40px, 5vw, 72px); }
.intro-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.05fr 1fr; gap: 80px; } }
.intro-copy p { color: var(--muted); }
.statement {
  margin: 0; padding-left: clamp(24px, 3vw, 48px); border-left: 3px solid var(--blue);
  font-weight: 900; font-size: clamp(1.75rem, 3.3vw, 2.875rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--white);
}

/* ---------- Echipa: vizual + card suprapus ---------- */
.feature { padding-top: 0; }
.feature-grid { display: grid; align-items: center; }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: 1.3fr 0.8fr; } }
.feature-visual {
  position: relative; min-height: clamp(380px, 46vw, 600px); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), transparent 55%), var(--navy-deep);
  display: grid; place-items: center; padding: 48px 24px;
}
.feature-visual::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(170, 178, 187, 0.22) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.sm-body > span { flex-shrink: 0; }
.code-card {
  position: absolute; left: 6%; bottom: 7%; display: grid; padding: 14px 18px; border-radius: var(--radius); background: rgba(11, 13, 16, 0.92);
  border: 1px solid var(--rule); font-family: var(--font-mono); font-size: clamp(0.6875rem, 1.1vw, 0.8125rem); line-height: 1.7; color: var(--muted);
  box-shadow: var(--shadow-lg); animation: float 7s 1s ease-in-out infinite;
}
.code-card b { color: #93c5fd; font-weight: 600; } .code-card i { color: var(--blue-text); font-style: normal; } .code-card em { color: var(--success); font-style: normal; }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--blue-text); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@media (max-width: 560px) { .code-card { display: none; } }
.feature-card {
  position: relative; z-index: 2; background: var(--slate); border-radius: var(--radius-lg); padding: clamp(32px, 4.5vw, 64px);
  box-shadow: var(--shadow-lg); margin: -64px 12px 0;
}
@media (min-width: 1000px) { .feature-card { margin: 0 0 0 -72px; } }
.feature-card > p:not(.eyebrow) { color: var(--muted); }
.feature-list { display: grid; gap: 14px; margin-top: 28px !important; }
.feature-list li { position: relative; padding: 14px 0 0 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9688rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); transition: transform 0.6s var(--spring); }
.feature-list li:hover::before { transform: rotate(225deg) scale(1.3); }
.feature-list strong { color: var(--white); }

/* ---------- Servicii (secțiune luminoasă) ---------- */
.services-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: minmax(280px, 0.7fr) 1.3fr; gap: 0; }
  .services-head { padding-right: 64px; align-self: start; position: sticky; top: 120px; }
}
.service-list { display: grid; gap: 0 48px; }
@media (min-width: 700px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-item { display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; padding: 26px 0; border-bottom: 1.5px solid var(--rule); align-content: start; }
.service-item h3 { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; }
.service-item p { grid-column: 2; margin: 0; color: var(--muted); font-size: 0.9688rem; }
.service-item:hover h3 { color: var(--accent-text); }
.service-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); }
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-item:hover .wobble-on-hover, .industry-card:hover .wobble-on-hover { animation: wobble 0.9s both; }

/* ---------- Proiecte: o singură grilă de carduri egale ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-grid { display: grid; gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card[hidden] { display: none; }
.project { position: relative; height: 100%; display: flex; flex-direction: column; }
.project-media { position: relative; }
.project-badge {
  position: absolute; top: 8px; right: 12px; z-index: 1; padding: 2px 9px; border-radius: 999px; line-height: 1.5;
  background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(96, 165, 250, 0.3);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: #93c5fd;
}
.project-body { display: flex; align-items: flex-start; gap: 16px; padding-top: 20px; }
.project-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.project-meta { margin: 0; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-text); }
.project-title { margin: 0; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.project-summary {
  margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-arrow {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); color: var(--white); transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--spring);
}
.project-arrow svg { width: 16px; height: 16px; }
.project:hover .project-arrow { background: var(--blue-strong); border-color: var(--blue-strong); transform: rotate(45deg); }
.stretched { all: unset; cursor: pointer; color: var(--heading); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 0; }
.tags li { font-size: 0.75rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.empty-state { text-align: center; padding: 56px 24px; border: 2px dashed var(--rule); border-radius: var(--radius-lg); color: var(--muted); max-width: 760px; margin-inline: auto; }
.empty-state strong { color: var(--heading); }

/* ---------- Dialoguri ---------- */
.modal {
  width: min(760px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--rule);
  border-radius: var(--radius-lg); background: var(--slate); color: var(--text); box-shadow: var(--shadow-lg);
}
.modal[open] { animation: modal-in 0.55s var(--spring); }
.modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.modal-inner { position: relative; padding: clamp(24px, 4vw, 44px); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--rule); background: transparent; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: transform 0.5s var(--spring);
}
.modal-close:hover { transform: rotate(90deg); }
.modal:has(.dialog-live-viewer) { width: min(1280px, 96vw); }
.modal-media { border-radius: var(--radius); overflow: hidden; margin: 16px 0 24px; aspect-ratio: 16 / 9; background: var(--navy); }
.modal-media:has(.dialog-live-viewer) { aspect-ratio: auto; height: min(78vh, 900px); }
.live-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 767px) {
  /* Butonul de închidere nu acoperă site-ul din previzualizare. */
  .modal-inner:has(.dialog-live-viewer) { padding-top: 72px; }
}
.modal-media:empty { display: none; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-live-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: -8px 0 18px; }
.device-switcher { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.device-switcher button { padding: 7px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.device-switcher button[aria-pressed="true"] { background: var(--blue-strong); color: #fff; }
.dialog-live-viewer { position: relative; width: 100%; height: min(78vh, 900px); display: flex; justify-content: center; overflow: auto; background: var(--navy); }
.dialog-live-iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .3s ease; }
.dialog-live-viewer[data-device="tablet"] .dialog-live-iframe { width: 820px; flex: 0 0 820px; }
.dialog-live-viewer[data-device="phone"] .dialog-live-iframe { width: 390px; flex: 0 0 390px; }
.live-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--navy); }
.live-loading[hidden] { display: none; }
.modal h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 900; padding-right: 48px; }
.modal-text { color: var(--muted); white-space: pre-line; margin-bottom: 18px; }

/* ---------- Proces: blocuri numerotate ---------- */
.process-grid { display: grid; gap: 2px; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-tile { position: relative; min-height: 300px; padding: clamp(28px, 3vw, 44px); background: var(--slate); display: flex; flex-direction: column; }
.process-tile:nth-child(1), .process-tile:nth-child(6) { background: var(--blue-strong); }
.process-tile:nth-child(3), .process-tile:nth-child(5) { background: var(--navy); }
.process-num { font-weight: 900; font-size: clamp(2.75rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; color: rgba(241, 239, 232, 0.3); margin-bottom: auto; display: inline-block; transform-origin: left bottom; align-self: flex-start; }
.process-tile:nth-child(1) .process-num, .process-tile:nth-child(6) .process-num { color: rgba(241, 239, 232, 0.6); }
/* Interacțiune discretă: cifra se luminează și urcă ușor. (Animația „jelly” folosea --mx/--my ale reflectorului
   și muta cifra după cursor.) */
.process-num { transition: color 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.process-tile:hover .process-num { transform: translateY(-3px); color: rgba(241, 239, 232, 0.55); }
.process-tile:nth-child(1):hover .process-num, .process-tile:nth-child(6):hover .process-num { color: rgba(255, 255, 255, 0.88); }
html.reduce-motion .process-tile:hover .process-num { transform: none; }
@media (prefers-reduced-motion: reduce) { .process-tile:hover .process-num { transform: none; } }
.process-tile h3 { margin: 40px 0 10px; font-size: 1rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.process-tile p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.process-tile:nth-child(1) p, .process-tile:nth-child(6) p { color: #eff6ff; }

/* ---------- Recenzii (testimoniale) ---------- */
.review-summary { font-size: 1.0625rem; color: var(--muted); }
.review-summary strong { color: var(--heading); font-size: 1.25rem; }
.review-grid { display: grid; gap: 48px 64px; }
@media (min-width: 900px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.review { margin: 0; height: 100%; display: grid; grid-template-columns: 72px 1fr; gap: 0 28px; align-content: start; }
.review .avatar { grid-row: span 5; width: 72px; height: 72px; font-size: 1.375rem; }
.review > :not(.avatar) { grid-column: 2; padding-left: 28px; border-left: 2px solid var(--rule); }
.review blockquote { margin: 0; padding-block: 12px 18px; font-size: 1.125rem; color: var(--text); line-height: 1.6; }
.review blockquote p { margin: 0; }
.review blockquote p::before { content: "„"; } .review blockquote p::after { content: "”"; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.review .who { display: grid; line-height: 1.4; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.review .who strong { color: var(--heading); font-weight: 900; }
.review .who span { color: var(--muted); }
.avatar { display: grid; place-items: center; border-radius: 50%; background: var(--blue-strong); color: #fff; font-weight: 900; flex: none; }
.review-date { font-size: 0.8125rem; color: var(--muted); margin: 0; padding-top: 10px; }
.review-reply { font-size: 0.9375rem; padding-block: 12px; margin-top: 12px; color: var(--muted); border-left-color: var(--blue) !important; }
.stars { display: flex; gap: 2px; font-size: 1.125rem; line-height: 1; }
.star { color: var(--slate-2); }
.star.on { color: var(--star); }
.reviews-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 32px; margin-top: 56px; }
.review-policy { max-width: 600px; color: var(--muted); font-size: 0.9375rem; }
.review-policy summary { cursor: pointer; font-weight: 800; color: var(--accent-text); padding: 14px 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem; }

/* Stele de rating — ordine crescătoare în DOM, colorate cu :has() */
.rating { border: 0; padding: 0; margin: 0 0 4px; }
.rating legend { font-weight: 700; margin-bottom: 6px; color: var(--heading); }
.rating-stars { display: inline-flex; gap: 4px; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { width: 40px; height: 40px; cursor: pointer; color: var(--slate-2); transition: transform 0.4s var(--spring), color 0.15s; }
.rating-stars label::before { content: "★"; display: block; font-size: 2.25rem; line-height: 40px; text-align: center; -webkit-text-stroke: 1px var(--muted); }
.rating-stars input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.rating-stars label:hover { transform: scale(1.25) rotate(-8deg); }
.rating-stars:has(input:nth-of-type(1):checked) label:nth-of-type(-n+1),
.rating-stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.rating-stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.rating-stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.rating-stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5) { color: var(--star); }
.rating-stars input:checked + label { animation: jelly 0.6s both; }

/* ---------- Bandă CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blue-strong); padding-block: clamp(80px, 10vw, 140px); }
.cta-shapes span { position: absolute; border-radius: 50%; border: 2px solid rgba(241, 239, 232, 0.16); animation: spin-slow 40s linear infinite; }
.cta-shapes span:nth-child(1) { width: 640px; height: 640px; right: -180px; top: -260px; border-style: dashed; }
.cta-shapes span:nth-child(2) { width: 360px; height: 360px; right: 12%; bottom: -220px; animation-direction: reverse; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-inner .display { margin: 0; color: #fff; }

/* ---------- Domenii (slider de carduri) ---------- */
.industries { padding-bottom: clamp(80px, 10vw, 130px); }
.industry-card {
  --rx: 0deg; --ry: 0deg; flex: 0 0 clamp(250px, 26vw, 320px); scroll-snap-align: start; min-height: 340px; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius-lg); background: var(--slate); border: 1px solid var(--rule);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.7s var(--spring), border-color 0.3s;
}
.industry-card:hover { border-color: var(--blue); }
.industry-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(59, 130, 246, 0.16); color: var(--blue-text); margin-bottom: auto; }
.industry-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.industry-card h3 { margin: 48px 0 10px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.industry-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.tilt.is-tilting { transition: transform 0.12s linear, border-color 0.3s !important; }

/* ---------- Prețuri ---------- */
.package-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.package { position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--slate); border: 1px solid var(--rule); }
.package.featured { border-color: var(--blue); box-shadow: inset 0 4px 0 var(--blue); }
.package h3 { font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 14px; }
.package .price { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: var(--heading); margin: 0 0 6px; line-height: 1.2; }
.package > p:not(.price) { color: var(--muted); }
.package .btn { margin-top: auto; align-self: flex-start; }
.check-list, .dash-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.check-list li, .dash-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(59, 130, 246, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.dash-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 2px; background: var(--blue-text); }
.extra-costs { margin-top: 32px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); border: 1.5px dashed var(--rule); }
.extra-costs h3 { font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- Întrebări frecvente (două coloane) ---------- */
.faq { display: grid; gap: 0 56px; align-items: start; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq-item { border-top: 1.5px solid var(--rule); }
.faq-item:last-child { border-bottom: 1.5px solid var(--rule); }
@media (min-width: 900px) { .faq-item:nth-last-child(2) { border-bottom: 1.5px solid var(--rule); } }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; padding: 24px 56px 24px 0; color: var(--heading);
  font-weight: 900; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.45; transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--heading); color: var(--heading); font-size: 1.25rem; font-weight: 600;
  transition: transform 0.5s var(--spring), background-color 0.2s, color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background: var(--heading); color: var(--bg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item p { margin: 0; padding: 0 56px 26px 0; color: var(--muted); }
.faq-item[open] p { animation: slide-down 0.45s var(--spring); }

/* ---------- Contact („Hai să începem”, după macheta furnizată) ---------- */
.contact-section { background: var(--navy); padding-block: clamp(80px, 10vw, 130px); }
.contact-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1440px; margin-inline: auto; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 152px minmax(0, 1fr); } }
.contact-dots {
  display: none; background-image: radial-gradient(rgba(170, 178, 187, 0.4) 2.5px, transparent 3px); background-size: 65px 65px;
  background-position: 12px 18px; height: 460px; animation: dots-drift 10s ease-in-out infinite alternate;
}
@media (min-width: 900px) { .contact-dots { display: block; } }
.contact-panel { background: var(--slate); padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(40px, 6vw, 80px); display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-panel { grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); padding-inline: clamp(32px, 8vw, 124px) clamp(24px, 4vw, 64px); gap: 60px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); } }
.contact-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 32px; }
.form-note { font-size: 0.875rem; color: var(--input-label); margin-bottom: 14px; }
.contact-form { display: grid; }
/* Câmpurile scurte stau câte două pe rând; descrierea, acordurile și butonul ocupă tot rândul. */
@media (min-width: 700px) {
  .contact-form { grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .contact-form > * { grid-column: 1 / -1; }
  .contact-form > .ffield:not(.ffield-area) { grid-column: auto; }
}
.ffield { position: relative; margin-bottom: 26px; }
.ffield input, .ffield textarea {
  width: 100%; min-height: 56px; padding: 24px 14px 8px; border: 1.5px solid var(--input-border); border-radius: var(--radius-sm);
  background: var(--input-bg); color: var(--white); font-size: 1.0625rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.ffield textarea { min-height: 130px; resize: vertical; padding-top: 30px; }
@media (max-width: 1100px) { .ffield textarea { padding-top: 50px; } }
.ffield label { position: absolute; left: 15px; top: 16px; color: var(--input-label); font-size: 1.0625rem; pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--spring), color 0.2s; }
.ffield-area label { right: 15px; }
.ffield input:focus, .ffield textarea:focus { border-color: var(--blue-text); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); outline: none; }
.ffield input:focus + label, .ffield input:not(:placeholder-shown) + label,
.ffield textarea:focus + label, .ffield textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.75); color: var(--blue-text); }
.optional { font-size: 0.875em; opacity: 0.85; }
.has-error input, .has-error textarea { border-color: var(--error) !important; }
.char-count { font-size: 0.8125rem; color: var(--input-label); text-align: right; margin: 6px 0 0; }
.char-count.is-near { color: var(--error); }
.consents { display: grid; gap: 4px; margin: 4px 0 26px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue-strong); cursor: pointer; }
.check label { cursor: pointer; }
.contact-panel .check a { color: var(--white); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 600; margin: 4px 0 0; }
.field-error:empty { display: none; }
.check + .field-error { margin: 0 0 8px 36px; }
.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.shake { animation: shake 0.5s both; }
.contact-aside { padding-top: 8px; }
@media (min-width: 900px) { .contact-aside { padding-top: 112px; } }
.contact-list { display: grid; gap: 26px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.contact-icon { width: 22px; height: 22px; fill: var(--blue-text); margin-top: 3px; }
.contact-list li:hover .contact-icon { animation: wobble 0.8s both; }
.contact-list a, .locations summary { color: var(--white); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover, .locations summary:hover { text-decoration: underline; }
.locations summary { cursor: pointer; list-style: none; }
.locations summary::-webkit-details-marker { display: none; }
.locations ul { margin-top: 12px; display: grid; gap: 12px; font-size: 0.9375rem; }

/* Formulare simple (recenzii, ștergere date) */
.stack-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--heading); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--input-border);
  background: var(--input-bg); color: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.req { color: var(--error); }
.hint { font-size: 0.875rem; color: var(--muted); margin: 0; }
.stack-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--rule); font-size: 0.9375rem; margin-top: 36px; }
.footer-cta { position: relative; display: grid; justify-items: center; gap: 24px; text-align: center; padding: 0 var(--gutter) clamp(56px, 7vw, 88px); }
.footer-badge {
  display: grid; place-items: center; width: 72px; height: 72px; margin-top: -36px; border-radius: 50%;
  background: var(--blue-strong); color: #fff; box-shadow: 0 0 0 10px var(--navy-deep); transition: transform 0.8s var(--spring);
}
.footer-badge svg { width: 28px; height: 28px; }
.footer-cta:hover .footer-badge { transform: rotate(180deg) scale(1.08); }
.footer-cta h2 { margin: 16px 0 0; max-width: 16ch; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); text-decoration: none; font-weight: 900; letter-spacing: 0.1em; font-size: 1.125rem; }
.footer-logo img { display: block; width: auto; height: 72px; transition: transform 0.7s var(--spring); }
.footer-logo:hover img { transform: scale(1.04); }
.footer-logo:hover { color: var(--white); }
.footer-grid { display: grid; gap: 40px; padding-block: 48px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.1fr; } }
.footer-title { font-size: 0.8125rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-links .link-button { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links .link-button:hover { color: var(--white); text-decoration: underline; }
.company-details { color: var(--muted); line-height: 1.9; }
.company-details strong { color: var(--white); }
.company-details a { color: var(--muted); }
.newsletter-form { display: grid; gap: 8px; }
.newsletter-form .small { margin-bottom: 6px; }
.field-inline { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 420px) { .field-inline { grid-template-columns: 1fr auto; } .field-inline label { grid-column: 1 / -1; } }
.field-inline label { font-weight: 700; color: var(--white); font-size: 0.875rem; }
.field-inline input { min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--input-border); background: var(--navy); color: var(--white); width: 100%; }
.newsletter-form .check { font-size: 0.875rem; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--rule); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-block: 22px; color: var(--muted); font-size: 0.8125rem; }
.footer-bottom-inner p { margin: 0; }
.footer-anpc a, .footer-credit a { color: var(--muted); }

/* ---------- Pagini legale ---------- */
.legal { padding-block: calc(84px + clamp(40px, 6vw, 80px)) clamp(64px, 8vw, 110px); }
.legal-head { margin-bottom: 40px; }
.legal-head h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(2.25rem, 5.5vw, 4rem); }
.legal-summary { padding: 20px 24px; border-radius: var(--radius); background: var(--slate); border-left: 4px solid var(--blue); }
.legal section { margin-top: 48px; }
.legal h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 900; letter-spacing: -0.01em; }
.legal h3 { margin-top: 28px; }
.legal ul { padding-left: 1.3em; display: grid; gap: 6px; }
.toc { padding: 22px 26px; border-radius: var(--radius); background: var(--slate); }
.legal .toc-title, .toc-title { font-size: 0.8125rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; }
.toc li { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--slate); color: var(--white); }
tr:last-child td { border-bottom: 0; }
.card { background: var(--slate); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.form-model p { margin-bottom: 8px; }
.data-form { margin-bottom: 40px; }
.token-page[data-state="invalid"] .token-valid, .token-page:not([data-state="invalid"]) .token-invalid { display: none; }
.status-page { text-align: center; }
.status-page .lead { margin-inline: auto; }
.status-icon { width: 88px; margin: 0 auto 24px; color: var(--success); animation: pop 0.8s var(--spring) both; }
.status-page[data-kind="error"] .status-icon { display: none; }
.status-page h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- Banner cookie-uri ---------- */
.cookie-banner {
  position: fixed; z-index: 90; right: 16px; bottom: 16px; left: 16px; margin-left: auto; max-width: 520px;
  background: var(--slate); color: var(--text); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); animation: drop-up 0.7s var(--spring) both;
}
.cookie-inner { padding: 24px; display: grid; gap: 16px; }
.cookie-title { font-size: 1rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; }
.cookie-icon { display: inline-block; animation: wobble 1.2s 0.8s both; }
.cookie-text p { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }
.cookie-prefs { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--navy); }
.pref { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; font-size: 0.9375rem; }
.pref input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-strong); }
.pref p { grid-column: 2; margin: 0; font-size: 0.875rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Toate butoanele au aceeași greutate vizuală — refuzul nu este ascuns sau descurajat. */
.btn-choice { flex: 1 1 120px; min-height: 46px; padding: 10px 16px; background: var(--blue-strong); color: #fff; font-size: 0.8125rem; }
.btn-choice:hover { background: var(--blue-hover); }

/* ---------- Toast ---------- */
.toast-region { position: fixed; top: 92px; right: 16px; z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--slate); border: 1px solid var(--rule); box-shadow: var(--shadow-lg); font-weight: 700; animation: drop-in 0.5s var(--spring) both; }

/* ---------- Apariție la derulare (translate/scale separate, compatibile cu .tilt) ---------- */
.js .reveal { opacity: 0; translate: 0 36px; scale: 0.97; }
.js .reveal.is-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 0.7s var(--ease-out) var(--d, 0ms), translate 1s var(--spring) var(--d, 0ms), scale 1s var(--spring) var(--d, 0ms);
}
.js .hero-title.reveal.is-in .line { animation: line-up 1s var(--spring) both; }
.js .hero-title.reveal.is-in .line:nth-child(2) { animation-delay: 0.12s; }

/* ---------- Animații „jiggly” ---------- */
.jelly-hover:hover, .jelly-hover:focus-visible, .is-jelly { animation: jelly 0.75s both; }
@keyframes jelly {
  0% { transform: translate(var(--mx, 0), var(--my, 0)) scale(1, 1); }
  25% { transform: translate(var(--mx, 0), var(--my, 0)) scale(1.1, 0.9); }
  40% { transform: translate(var(--mx, 0), var(--my, 0)) scale(0.92, 1.08); }
  55% { transform: translate(var(--mx, 0), var(--my, 0)) scale(1.05, 0.96); }
  70% { transform: translate(var(--mx, 0), var(--my, 0)) scale(0.98, 1.02); }
  100% { transform: translate(var(--mx, 0), var(--my, 0)) scale(1, 1); }
}
@keyframes rubber { 0% { transform: scale3d(1, 1, 1); } 30% { transform: scale3d(1.14, 0.86, 1); } 40% { transform: scale3d(0.88, 1.12, 1); } 50% { transform: scale3d(1.08, 0.92, 1); } 65% { transform: scale3d(0.97, 1.03, 1); } 75% { transform: scale3d(1.02, 0.98, 1); } 100% { transform: scale3d(1, 1, 1); } }
@keyframes wobble { 0%, 100% { transform: rotate(0) scale(1); } 15% { transform: rotate(-14deg) scale(1.1); } 30% { transform: rotate(11deg) scale(1.1); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes letter-hop { 0%, 100% { transform: translateY(0) scale(1); } 35% { transform: translateY(-8px) scale(1.15, 0.9); } 60% { transform: translateY(2px) scale(0.95, 1.08); } }
@keyframes line-up { 0% { opacity: 0; transform: translateY(60%) skewY(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-30px) scale(0.92); } 100% { opacity: 1; transform: none; } }
@keyframes drop-up { 0% { opacity: 0; transform: translateY(40px) scale(0.95); } 100% { opacity: 1; transform: none; } }
@keyframes modal-in { 0% { opacity: 0; transform: translateY(24px) scale(0.92); } 100% { opacity: 1; transform: none; } }
@keyframes menu-in { 0% { clip-path: circle(0% at calc(100% - 60px) 40px); } 100% { clip-path: circle(150% at calc(100% - 60px) 40px); } }
@keyframes menu-link-in { 0% { opacity: 0; transform: translateY(40px) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes slide-down { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes grow-x { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes blob-morph { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 30px) scale(0.95); } }
@keyframes dots-drift { 0% { background-position: 12px 18px; } 100% { background-position: 12px 30px; } }

/* ---------- Mișcare redusă (setare de sistem sau butonul din subsol) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
html.reduce-motion, html.reduce-motion .showcase-track, html.reduce-motion .industry-track { scroll-behavior: auto; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .toast-region, .showcase, .feature-visual, .cta-band { display: none !important; }
  body, .section { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1; translate: none; scale: 1; }
}


/* =========================================================================
   Strat de temă v2 — „Ink & Signal”
   Cerneală aproape neagră, hârtie caldă, un singur accent semnal (#3B82F6).
   Instrument Sans pentru interfață, Bodoni Moda italic doar pentru accente.
   ========================================================================= */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
body { font-size: 1.0625rem; line-height: 1.65; font-feature-settings: "ss01", "cv11"; }
::selection { background: var(--blue); color: var(--navy); }

/* Titluri: majuscule doar la etichete; titlurile mari sunt litere normale, strânse, calme. */
.display, .display-sm, .display-stack, .menu-links a, .project-title, .industry-card h3, .package .price {
  font-weight: 600; text-transform: none; letter-spacing: -0.045em;
}
.display { line-height: 0.96; font-size: clamp(2.75rem, 7.6vw, 6.5rem); }
.display-sm { line-height: 1.04; }
.hero-title { text-shadow: 0 2px 30px rgba(7, 9, 11, 0.55); }
.hero-title .hl, .hl-serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.03em; color: var(--blue-text);
}
.hero-title .hl:hover { animation: none; }
.eyebrow, .slide-cat, .project-meta, .menu-eyebrow, .showcase-hint, .review .who {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; font-size: 0.75rem;
}
.eyebrow::before { content: "// "; opacity: 0.55; }
.hero .eyebrow { background: rgba(11, 13, 16, 0.6); border-color: rgba(59, 130, 246, 0.35); backdrop-filter: blur(4px); }
.btn { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.06em; border-radius: 999px; }

/* Linkuri: subliniere care se desenează */
a:not(.btn):not(.logo):not(.slide-link):not([class*="menu"]) {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease-expo);
}
a:not(.btn):not(.logo):not(.slide-link):not([class*="menu"]):hover { background-size: 100% 1px; }
.menu-links a:hover, .menu-links a:focus-visible { transform: translateX(18px); }

/* Butoane: eticheta urcă și este înlocuită de o copie (data-label) */
.btn { overflow: hidden; position: relative; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); }

/* Carduri: reflector care urmărește cursorul (--mx/--my setate din fx.js) */
.project-card .project, .feature-card, .service-item, .process-tile, .package, .industry-card, .review {
  position: relative; isolation: isolate;
}
.project-card .project::before, .feature-card::before, .package::before, .industry-card::before, .process-tile::before, .review::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.14), transparent 60%);
}
.project-card:hover .project::before, .feature-card:hover::before, .package:hover::before, .industry-card:hover::before, .process-tile:hover::before, .review:hover::before { opacity: 1; }
.project-media { border-radius: 4px 18px 4px 18px; overflow: hidden; }
.project-media img { transition: transform 0.9s var(--ease-expo); }
.project-card:hover .project-media img { transform: scale(1.035); }

/* Titluri împărțite pe cuvinte: apar de sub o mască, în cascadă */
.fx-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.fx-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-expo); transition-delay: calc(var(--i) * 45ms); }
.fx-words.is-in .w > span { transform: none; }
.fx-words .w:hover > span { color: var(--blue-text); }
.section-light .fx-words .w:hover > span { color: #1d4ed8; }
.fx-scramble { cursor: default; }

/* Bară de progres la derulare */
.fx-progress { position: fixed; z-index: 300; left: 0; top: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--blue); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-words .w > span { transform: none; transition: none; }
  .fx-progress { display: none; }
  .project-media img, .btn { transition: none; }
}
html:not(.js) .fx-words .w > span { transform: none; }

/* Hero: ecran complet, titlul pe două rânduri este piesa centrală, în perspectiva 3D de mai sus.
   Rândul 2 („la standard de inginerie.”) are ~10em, deci mărimea urmărește lățimea ecranului
   ca textul să nu se rupă niciodată pe un al treilea rând. */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) 0 clamp(72px, 10vh, 120px); }
.hero > .container { width: 100%; }
.hero .eyebrow { margin-bottom: clamp(20px, 3vh, 32px); }
/* Spațiere optică: litere strânse, dar cuvinte aerisite; umbră scurtă și curată, fără „abur”.
   „inginerie.” rămâne în același font ca restul titlului: liniile subțiri ale serifului dispar în perspectiva 3D,
   așa că accentul vine doar din culoare (gradient albastru). */
.hero-title {
  font-size: clamp(1.75rem, 8.2vw, 7.5rem); line-height: 1; letter-spacing: -0.038em; word-spacing: 0.06em; margin: 0;
  font-weight: 600; text-shadow: 0 1px 1px rgba(7, 9, 11, 0.5), 0 8px 32px rgba(7, 9, 11, 0.35);
}
.hero-title .line { white-space: nowrap; }
.hero-title .line + .line { margin-top: 0.02em; }
.hero-title .hl {
  font-family: var(--font); font-style: normal; font-weight: 600; letter-spacing: inherit; padding: 0 0.04em 0.06em 0; margin-bottom: -0.06em;
  background: linear-gradient(100deg, #bfdbfe 0%, #60a5fa 55%, #3b82f6 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 6px 22px rgba(37, 99, 235, 0.35));
}
@media (min-width: 860px) { .hero > .container { padding-left: calc(var(--gutter) - 12px - clamp(0px, (100vw - 1280px) / 8, 20px)); } }
.hero-lead {
  max-width: 40rem; margin: clamp(22px, 3.2vh, 32px) 0 0; font-size: clamp(1.0625rem, 1.2vw, 1.25rem); line-height: 1.6;
  color: #cfd6de; text-wrap: pretty; text-shadow: 0 1px 12px rgba(7, 9, 11, 0.7);
}
.hero-actions { margin: clamp(28px, 4.5vh, 44px) 0 0; }
.hero .trust-list {
  margin-top: clamp(40px, 7vh, 72px); padding-top: 20px; border-top: 1px solid rgba(241, 239, 232, 0.14); width: fit-content; max-width: 100%;
  gap: 10px 28px; font-size: 0.8125rem; font-weight: 500; color: #b8c0c8; text-shadow: none;
}
.hero .trust-list li { gap: 8px; }
.hero .trust-list li::before { width: 16px; height: 16px; background-size: 10px; }
@media (max-height: 760px) and (min-width: 860px) { .hero-title { font-size: clamp(3rem, 13vh, 7.5rem); } }
@media (max-width: 400px) { .hero .eyebrow { letter-spacing: 0.04em; padding-inline: 12px; } }

/* Telefon: ierarhie mai clară în hero și legende compacte sub preview-uri */
@media (max-width: 600px) {
  .hero-lead { font-size: 1rem; margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .showcase-title { font-size: 1.5rem; }
  .slide-num { display: none; }
  .slide-caption { grid-template-columns: 1fr auto; }
  .slide-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .slide-title { font-size: 1rem; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}


/* ---------- Fotografie și preview-uri cu derulare ---------- */
.feature-visual { isolation: isolate; }
.feature-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-visual::before { z-index: 1; }
.feature-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 9, 11, 0.82), rgba(7, 9, 11, 0.08) 78%), linear-gradient(135deg, rgba(7, 9, 11, 0.42), transparent 72%), linear-gradient(155deg, rgba(37, 99, 235, 0.2), transparent 65%);
}
.code-card { z-index: 2; }
.process-tile:nth-child(3) {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(11, 13, 16, 0.9), rgba(11, 13, 16, 0.9)), url("/media/wireframe-sketch.webp");
  background-position: center;
  background-size: cover;
}
.frame-view img.frame-shot { object-fit: cover; object-position: 50% 0; transform: none; transition: none; }
.slide:hover .frame-view img.frame-shot, .project:hover .frame-view img.frame-shot { transform: none; }
.frame-view:has(> .frame-shot)::after {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 2px; background: #3B82F6;
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .frame-view img.frame-shot { transition: object-position 0.9s cubic-bezier(.45, .05, .25, 1); }
  .slide:hover .frame-view img.frame-shot, .slide:focus-within .frame-view img.frame-shot,
  .project:hover .frame-view img.frame-shot, .project:focus-within .frame-view img.frame-shot {
    object-position: 50% 100%; transform: none; transition-duration: 6s;
  }
  .frame-view:has(> .frame-shot)::after { transition: transform 0.9s cubic-bezier(.45, .05, .25, 1); }
  .slide:hover .frame-view:has(> .frame-shot)::after, .slide:focus-within .frame-view:has(> .frame-shot)::after,
  .project:hover .frame-view:has(> .frame-shot)::after, .project:focus-within .frame-view:has(> .frame-shot)::after {
    transform: scaleX(1); transition-duration: 6s;
  }
}
.modal-media:has(.pd-image-scroll) { height: auto; max-height: 60vh; aspect-ratio: auto; }
.pd-image-scroll {
  max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.pd-image-scroll img { display: block; width: 100%; height: auto; object-fit: initial; }
.pd-image-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm); }

/* ---------- Previzualizare video în CTA ---------- */
.cta-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(40vw, 460px));
  grid-template-rows: auto auto; align-items: center; gap: clamp(24px, 3.5vw, 48px);
}
.cta-copy { display: contents; }
.cta-copy .display { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(2.75rem, 6vw, 5.25rem); }
/* Butonul stă sub întrebarea la care răspunde; fereastra video ocupă înălțimea ambelor rânduri. */
.cta-copy .btn { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; }
.cta-window {
  grid-column: 2; grid-row: 1 / span 2; position: relative; width: min(40vw, 460px); max-width: 100%; margin: 0; overflow: hidden;
  border: 1px solid rgba(241, 239, 232, 0.18); border-radius: 12px; background: #101823; box-shadow: 0 22px 54px rgba(7, 9, 11, 0.3);
}
.cta-window .frame-bar { position: relative; z-index: 1; height: 30px; }
.cta-window video {
  display: block; width: 100%; height: auto; aspect-ratio: 960 / 506; object-fit: cover;
  filter: saturate(0.78) hue-rotate(2deg);
}
.cta-window::after {
  content: ""; position: absolute; inset: 30px 0 0; z-index: 1; pointer-events: none;
  background: rgba(59, 130, 246, 0.1); mix-blend-mode: screen;
}
@media (max-width: 760px) {
  .cta-inner { display: flex; }
  .cta-copy { display: grid; width: 100%; }
  .cta-window { display: none; }
}

/* ---------- Orb de progres și revenire la început ---------- */
.scroll-orb {
  position: fixed; z-index: 40; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; overflow: visible;
  border: 1px solid rgba(241, 239, 232, 0.1); border-radius: 50%; background: rgba(11, 13, 16, 0.72);
  color: var(--white); cursor: pointer; opacity: 0; transform: scale(0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease-out);
}
.scroll-orb[hidden] { display: none; }
.scroll-orb:not([hidden]) {
  opacity: 1; transform: scale(1);
  /* Apare din display: none cu tranziție (starea de pornire a animației). */
  @starting-style { opacity: 0; transform: scale(0.78); }
}
.scroll-orb:hover, .scroll-orb:focus-visible { transform: scale(1.06); }
.scroll-orb:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.scroll-orb-canvas, .scroll-orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-orb-canvas { display: block; border-radius: 50%; }
.scroll-orb-ring { overflow: visible; transform: rotate(-90deg); transform-origin: 50% 50%; pointer-events: none; }
.scroll-orb-track, .scroll-orb-progress { fill: none; stroke-width: 2; }
.scroll-orb-track { stroke: rgba(241, 239, 232, 0.12); }
.scroll-orb-progress { stroke: #3B82F6; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); }
@media (max-width: 639px) { .scroll-orb { width: 48px; height: 48px; } }
html.reduce-motion .scroll-orb, html.reduce-motion .scroll-orb-progress,
html.reduce-motion .frame-shot, html.reduce-motion .frame-view::after { transition: none; }
html.reduce-motion .slide:hover .frame-view img.frame-shot, html.reduce-motion .slide:focus-within .frame-view img.frame-shot,
html.reduce-motion .project:hover .frame-view img.frame-shot, html.reduce-motion .project:focus-within .frame-view img.frame-shot { object-position: 50% 0; transform: none; }
html.reduce-motion .slide:hover .frame-view:has(> .frame-shot)::after, html.reduce-motion .slide:focus-within .frame-view:has(> .frame-shot)::after,
html.reduce-motion .project:hover .frame-view:has(> .frame-shot)::after, html.reduce-motion .project:focus-within .frame-view:has(> .frame-shot)::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .scroll-orb, .scroll-orb-progress, .frame-shot, .frame-view::after { transition: none; }
  .frame-view img.frame-shot { object-position: 50% 0; transform: none; }
  .slide:hover .frame-view img.frame-shot, .slide:focus-within .frame-view img.frame-shot,
  .project:hover .frame-view img.frame-shot, .project:focus-within .frame-view img.frame-shot { object-position: 50% 0; transform: none; }
  .frame-view:has(> .frame-shot)::after,
  .slide:hover .frame-view:has(> .frame-shot)::after, .slide:focus-within .frame-view:has(> .frame-shot)::after,
  .project:hover .frame-view:has(> .frame-shot)::after, .project:focus-within .frame-view:has(> .frame-shot)::after { transform: scaleX(0); }
}

/* Sloganul din hero revine la aspectul inițial: Segoe UI Black, majuscule, perspectivă 3D pronunțată.
   Fontul și perspectiva sunt în px/familie fixă intenționat, ca să arate identic cu varianta aprobată. */
.hero-title {
  font-family: "Segoe UI", "SeeCode Display", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; font-stretch: 100%;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; word-spacing: 0.08em; line-height: 0.92;
  font-size: clamp(2.6rem, 8.4vw, 7rem);
  text-shadow: 0 1px 2px rgba(7, 9, 11, 0.85), 0 3px 10px rgba(7, 9, 11, 0.6);
  transform: perspective(1000px) rotateY(11deg);
}
@media (min-width: 860px) { .hero-title { transform: perspective(1400px) rotateY(22deg); } }
@media (min-width: 860px) and (hover: hover) { .hero-title:hover { transform: perspective(1400px) rotateY(15deg); } }
@media (max-height: 760px) and (min-width: 860px) { .hero-title { font-size: clamp(2.6rem, 12vh, 7rem); } }
.hero-title .line + .line { margin-top: 0; }
.hero-title .hl {
  font-family: inherit; font-weight: inherit; letter-spacing: inherit; padding: 0; margin: 0;
  background: none; color: var(--blue-text); text-shadow: inherit; filter: none;
}
.js .hero-title.reveal.is-in .line:nth-child(3) { animation-delay: 0.24s; }
/* Eticheta de deasupra sloganului: tot stilul inițial (Segoe UI îngroșat, fără „// ” și fără font mono). */
.hero .eyebrow {
  font-family: "Segoe UI", "SeeCode Display", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: #bfdbfe; background: rgba(11, 18, 34, 0.78); border-color: rgba(148, 163, 184, 0.2); backdrop-filter: none;
}
.hero .eyebrow::before { content: none; }
@media (max-width: 400px) { .hero .eyebrow { letter-spacing: 0.04em; padding-inline: 12px; } }

/* Banda „Ai un proiect de discutat?” revine la stilul inițial: degradeu albastru → bleumarin, titlu Segoe UI Black
   cu majuscule, buton alb dreptunghiular. Titlul stă jos în stânga, aliniat cu butonul din dreapta; fereastra video
   rămâne deasupra butonului. */
.cta-band { background: linear-gradient(115deg, var(--blue-strong) 0%, #1e40af 45%, #0f172a 100%); }
.cta-shapes span { border-color: rgba(248, 250, 252, 0.16); }
.cta-copy .display {
  grid-column: 1; grid-row: 1 / span 2; align-self: end; margin: 0; color: #fff;
  font-family: "Segoe UI", "SeeCode Display", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; font-stretch: 100%;
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92; font-size: clamp(2.6rem, 5.4vw, 6rem);
}
.cta-copy .btn {
  grid-column: 2; grid-row: 2; align-self: end; justify-self: end;
  font-family: "Segoe UI", "SeeCode Display", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-weight: 800; letter-spacing: 0.1em; border-radius: var(--radius-sm); background: #f8fafc; color: #0f172a;
}
.cta-copy .btn:hover { background: #fff; }
.cta-window { grid-row: 1; }
@media (max-width: 760px) {
  .cta-copy { gap: 32px; }
  .cta-copy .display, .cta-copy .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}


/* ---------- Pagini SEO și banner compact pe telefon ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--muted); font-size: 0.9375rem; }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.seo-page-head { margin-bottom: clamp(40px, 7vw, 72px); }
.seo-page-head .section-lead { max-width: 52rem; }
.seo-content { margin-top: clamp(40px, 6vw, 64px); }
.seo-content > h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.seo-content > p { max-width: 54rem; }
.seo-content .check-list, .seo-content .dash-list { margin-bottom: 0; }
.seo-process-list { display: grid; gap: 14px; padding-left: 1.5rem; }
.seo-process-list li { padding-left: 6px; }
.seo-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: clamp(44px, 7vw, 76px); }
.seo-related-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.team-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.team-card { padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--slate); }
.team-card h3 { margin: 0 0 6px; font-size: 1.125rem; }
.team-card p { margin: 0; color: var(--muted); }
.package-meta { margin: 0; font-size: 0.875rem; }
.cookie-text p.cookie-title { margin: 0; font-size: 1rem; }
.package-service-link { align-self: flex-start; margin: 4px 0 16px; }

@media (max-width: 559px) {
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; max-height: 40vh; overflow-y: auto; }
  .cookie-inner { gap: 12px; padding: 16px; }
  .cookie-title { font-size: 0.875rem; }
  .cookie-text p { font-size: 0.875rem; }
  .cookie-text p.cookie-title { font-size: 0.875rem; }
  .cookie-prefs { gap: 8px; padding: 10px; }
  .pref p { font-size: 0.8125rem; }
  .cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cookie-actions [hidden] { display: none; }
  .cookie-actions .btn-choice { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 0.75rem; }
}


/* Hero: afișăm textul înaintea modulelor și păstrăm perspectiva titlului. */
.js .hero .reveal {
  transition: none;
  animation: hero-reveal-opacity 0.7s var(--ease-out) var(--hero-delay, 0ms) both,
    hero-reveal-motion 1s var(--spring) var(--hero-delay, 0ms) both;
}
.js .hero .hero-title.reveal { translate: none; scale: 1; animation: hero-reveal-opacity 0.7s var(--ease-out) var(--hero-delay, 0ms) both; }
.js .hero .container > .reveal:nth-child(1) { --hero-delay: 0ms; }
.js .hero .container > .reveal:nth-child(2) { --hero-delay: 80ms; }
.js .hero .container > .reveal:nth-child(3) { --hero-delay: 160ms; }
.js .hero .container > .reveal:nth-child(4) { --hero-delay: 240ms; }
.js .hero .container > .reveal:nth-child(5) { --hero-delay: 320ms; }
.js .hero-title.reveal .line { animation: line-up 1s var(--spring) both; }
.js .hero-title.reveal .line:nth-child(2) { animation-delay: 0.12s; }
.js .hero-title.reveal .line:nth-child(3) { animation-delay: 0.24s; }
@keyframes hero-reveal-opacity { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-reveal-motion {
  from { translate: 0 36px; scale: 0.97; }
  to { translate: 0 0; scale: 1; }
}

html.reduce-motion.js .hero .reveal,
html.reduce-motion.js .hero .reveal.is-in {
  animation: none !important; opacity: 1; translate: none; scale: 1; transition: none;
}
html.reduce-motion.js .hero-title.reveal .line,
html.reduce-motion.js .hero-title.reveal.is-in .line { animation: none !important; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .hero .reveal, .js .hero .reveal.is-in {
    animation: none !important; opacity: 1; translate: none; scale: 1; transition: none;
  }
  .js .hero-title.reveal .line, .js .hero-title.reveal.is-in .line { animation: none !important; opacity: 1; transform: none; }
}


/* Intro-ul rulează doar pe prima vizită a sesiunii de pe pagina principală. */
html.intro-pending { overflow: hidden; animation: intro-unlock 0s 4s forwards; }
.site-intro { display: none; }
html.intro-pending body.page-home .site-intro {
  position: fixed; inset: 0; z-index: 10000; display: block; overflow: hidden; opacity: 1;
  background: #eef1f5; /* pornește luminos, apoi trece în fundalul închis al site-ului */
  pointer-events: auto; visibility: visible; animation: intro-failsafe 0.4s 3.6s forwards;
}
/* Logo-ul e SVG + text real: clar la orice rezoluție. Animația e făcută în intro.js (Web Animations API). */
.site-intro-lockup {
  --intro-size: clamp(2.75rem, 10vw, 7.5rem);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: calc(var(--intro-size) * 0.26); pointer-events: none;
  text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
}
.site-intro-mark { width: calc(var(--intro-size) * 1.02); height: auto; flex: none; color: #2563eb; overflow: visible; }
.site-intro-mark path { transform-box: fill-box; transform-origin: center; }
.site-intro-logo {
  margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 800;
  font-size: var(--intro-size); line-height: 1; letter-spacing: -0.035em; color: #f1efe8; white-space: nowrap;
}
.site-intro-code { color: #2563eb; }
.site-intro-logo i { display: inline-block; font-style: normal; }
/* Totul pornește ascuns: primul cadru e doar fundalul, chiar înainte să ruleze JavaScript. */
.site-intro-piece, .site-intro-slash, .site-intro-logo i { opacity: 0; }
@keyframes intro-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes intro-unlock {
  to { overflow: auto; }
}

/* Titlurile serviciilor sunt linkuri spre paginile dedicate: păstrează culoarea titlului, accentul apare doar la hover. */
.service-item h3 a { color: inherit; text-decoration: none; }
.service-item h3 a:hover, .service-item h3 a:focus-visible { color: var(--blue-strong); }
.feature-card .team-link { display: inline-block; margin-top: 18px; }


/* Mișcarea la derulare rămâne pe proprietăți compuse în compositor. */
:root {
  --motion-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-settle: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-fade: cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal:not(.hero .reveal),
.js .reveal[data-motion='rise']:not(.hero .reveal) {
  opacity: 0;
  translate: 0 32px;
  scale: 0.97;
}
.js .reveal[data-motion='from-left']:not(.hero .reveal) { opacity: 0; translate: -56px 0; scale: 1; }
.js .reveal[data-motion='from-right']:not(.hero .reveal) { opacity: 0; translate: 56px 0; scale: 1; }
.js .reveal[data-motion='scale']:not(.hero .reveal) { opacity: 0; translate: 0 16px; scale: 0.9; }
/* Cortina/ștergerea nu se închid complet: o fâșie de 2px (invizibilă, opacity 0) lasă IntersectionObserver să vadă
   elementul. Un element tăiat complet de propriul clip-path nu este raportat niciodată ca vizibil și ar rămâne ascuns. */
.js .reveal[data-motion='curtain']:not(.hero .reveal) {
  opacity: 0;
  translate: none;
  scale: 0.96;
  clip-path: inset(0 0 calc(100% - 2px) 0 round 14px);
}
.js .reveal[data-motion='wipe']:not(.hero .reveal) {
  opacity: 0;
  translate: none;
  scale: 1;
  clip-path: inset(0 calc(100% - 2px) 0 0);
}
/* Opacitatea doar „aprinde” elementul; dezvăluirea propriu-zisă o face clip-path. */
.js .reveal:is([data-motion='curtain'], [data-motion='wipe']).is-in:not(.hero .reveal) { transition-duration: 180ms, 850ms, 850ms, 900ms, 550ms; }
.js .reveal[data-motion='blur']:not(.hero .reveal) { opacity: 0; translate: 0 12px; scale: 1; }

.js .reveal.is-in:not(.hero .reveal) {
  opacity: 1;
  translate: none;
  scale: 1;
  transition:
    opacity 550ms var(--motion-fade) var(--d, 0ms),
    translate 850ms var(--motion-out) var(--d, 0ms),
    scale 850ms var(--motion-out) var(--d, 0ms),
    clip-path 900ms var(--motion-out) var(--d, 0ms),
    filter 550ms var(--motion-fade) var(--d, 0ms);
}
.js .reveal[data-motion='curtain'].is-in:not(.hero .reveal) { clip-path: inset(0 0 0 0 round 14px); }
.js .reveal[data-motion='wipe'].is-in:not(.hero .reveal) { clip-path: inset(0 0 0 0); }
.js .reveal[data-motion='blur'].is-in:not(.hero .reveal) { filter: none; }

.js .reveal[data-motion='curtain']:not(.hero .reveal) :is(img, video) { scale: 1.12; }
.js .reveal[data-motion='curtain'].is-in:not(.hero .reveal) :is(img, video) {
  scale: 1;
  transition: scale 1200ms var(--motion-out) var(--d, 0ms);
}
.js .feature-visual:not(.hero .reveal) .feature-photo { scale: 1.12; }
.js .feature-visual.is-in:not(.hero .reveal) .feature-photo { scale: 1; transition: scale 1200ms var(--motion-out) var(--d, 0ms); }
.js .feature-visual .code-card.reveal.is-in { transition-delay: calc(var(--d, 0ms) + 250ms); }
.js .cta-inner .cta-window.reveal[data-motion='curtain'] { translate: 40px 0; }
.js .cta-inner .cta-window.reveal.is-in { transition-delay: calc(var(--d, 0ms) + 100ms); }

@media (min-width: 768px) {
  .js .reveal[data-motion='blur']:not(.hero .reveal) { filter: blur(8px); }
}

.js .service-list[data-stagger='rows'] { --stagger-step: 90ms; }
.js .project-grid[data-stagger='columns'] { --stagger-step: 90ms; }
.js .process-grid[data-stagger='process'] { --stagger-step: 80ms; }
.js .faq[data-stagger='faq'] { --stagger-step: 50ms; }
.js .filters[data-stagger='chips'] { --stagger-step: 50ms; --pop-step: 50ms; }
.js .feature-list[data-stagger='feature'],
.js [data-stagger='left'],
.js .team-list[data-stagger='team'] { --stagger-step: 70ms; }
.js .contact-form[data-stagger='fields'],
.js .consents[data-stagger='consent'],
.js .contact-list[data-stagger='contact'] { --stagger-step: 45ms; }
.js [data-stagger='controls'] { --stagger-step: 70ms; }

.js .service-list[data-stagger='rows'] > .service-item.reveal.is-in,
.js .project-grid[data-stagger='columns'] > .project-card.reveal.is-in,
.js .process-grid[data-stagger='process'] > .process-tile.reveal.is-in,
.js .faq[data-stagger='faq'] > .faq-item.reveal.is-in {
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms));
}
.js .faq[data-stagger='faq'] > .faq-item.reveal[data-motion='from-left']:not(.is-in) { translate: -24px 0; }
.js .service-item.is-in .service-icon {
  opacity: 1;
  scale: 1;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 90ms) + 120ms), scale 650ms var(--motion-settle) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 90ms) + 120ms);
}
.js .service-item .service-icon { opacity: 0; scale: 0.6; }
.js .service-item.is-in { --d: 0ms; }

.js .feature-card .feature-list[data-stagger='feature'] > li,
.js .seo-content [data-stagger='left'] > li,
.js .contact-aside .contact-list[data-stagger='contact'] > li {
  opacity: 0;
  translate: -24px 0;
}
.js .feature-card .feature-list[data-stagger='feature'] > li { translate: 24px 0; }
.js .feature-card.is-in .feature-list[data-stagger='feature'] > li,
.js .seo-content.is-in [data-stagger='left'] > li,
.js .contact-aside.is-in .contact-list[data-stagger='contact'] > li {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms)),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms));
}
.js .seo-content.is-in .team-list[data-stagger='team'] > .team-card {
  opacity: 1;
  translate: none;
  scale: 1;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms)),
    scale 650ms var(--motion-out) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms));
}
.js .seo-content .team-list[data-stagger='team'] > .team-card { opacity: 0; scale: 0.9; }
.js .contact-form[data-stagger='fields'] > .ffield,
.js .contact-form[data-stagger='fields'] > .consents {
  opacity: 0;
  translate: 0 16px;
}
.js .contact-panel.is-in .contact-form[data-stagger='fields'] > .ffield,
.js .contact-panel.is-in .contact-form[data-stagger='fields'] > .consents {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 45ms)),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 45ms));
}
.js .consents[data-stagger='consent'] > .check { opacity: 0; translate: 0 16px; }
.js .contact-panel.is-in .consents[data-stagger='consent'] > .check {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--consent-base, 0) * var(--stagger-step, 45ms) + var(--i, 0) * var(--stagger-step, 45ms)),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + var(--consent-base, 0) * var(--stagger-step, 45ms) + var(--i, 0) * var(--stagger-step, 45ms));
}
.js .feature-card .team-link { opacity: 0; translate: 0 8px; }
.js .feature-card.is-in .team-link {
  opacity: 1;
  translate: none;
  transition: background-size 450ms var(--ease-expo),
    opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 500ms),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + 500ms);
}
.js .section-head .section-lead,
.js .section-head .review-summary { opacity: 0; translate: 0 8px; }
.js .section-head.is-in .section-lead,
.js .section-head.is-in .review-summary {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 200ms),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + 200ms);
}
.js .showcase-head .showcase-title { opacity: 0; translate: 0 8px; }
.js .showcase-head.is-in .showcase-title {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 100ms),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + 100ms);
}
.js .footer-cta .footer-logo { opacity: 0; translate: 0 12px; scale: 0.9; }
.js .footer-cta.is-in .footer-logo {
  opacity: 1;
  translate: none;
  scale: 1;
  transition: background-size 450ms var(--ease-expo), opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 500ms),
    translate 650ms var(--motion-out) calc(var(--d, 0ms) + 500ms),
    scale 650ms var(--motion-out) calc(var(--d, 0ms) + 500ms);
}
.js .process-tile .process-num { opacity: 0; translate: -24px 0; }
.js .process-tile.is-in .process-num {
  opacity: 1;
  translate: none;
  transition: color 350ms var(--ease-out), transform 450ms var(--ease-out), opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 80ms) + 150ms),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 80ms) + 150ms);
}

.js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip),
.js .reveal:not(.hero .reveal):is(.btn, .round-btn, .chip) {
  opacity: 0;
  scale: 0.86;
  translate: 0 14px;
}
.js .reveal.is-in:not(.hero .reveal) :is(.btn, .round-btn, .chip),
.js .reveal.is-in:not(.hero .reveal):is(.btn, .round-btn, .chip) {
  opacity: 1;
  scale: 1;
  translate: none;
  transition: none;
}
.js .reveal.is-in:not(.hero .reveal) .btn,
.js .reveal.is-in:not(.hero .reveal):is(.btn) {
  transition: background-color 200ms, color 200ms, border-color 200ms, box-shadow 250ms, transform 500ms var(--spring),
    opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    scale 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    translate 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms));
}
.js .reveal.is-in:not(.hero .reveal) .round-btn,
.js .reveal.is-in:not(.hero .reveal):is(.round-btn) {
  transition: background-color 200ms, border-color 200ms, color 200ms,
    opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    scale 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    translate 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms));
}
.js .reveal.is-in:not(.hero .reveal) .chip,
.js .reveal.is-in:not(.hero .reveal):is(.chip) {
  transition: background-color 200ms, border-color 200ms, color 200ms,
    opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    scale 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms)),
    translate 650ms var(--motion-settle) calc(var(--d, 0ms) + 220ms + var(--i, 0) * var(--pop-step, 70ms));
}
.js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon { translate: -8px 0; }
.js .reveal.is-in:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon {
  translate: none;
  transition: translate 550ms var(--motion-out) calc(var(--d, 0ms) + 340ms + var(--i, 0) * var(--pop-step, 70ms));
}
.js .cta-inner.is-in:not(.hero .reveal) .btn { transition-delay: 0ms, 0ms, 0ms, 0ms, 0ms, calc(var(--d, 0ms) + 260ms), calc(var(--d, 0ms) + 260ms), calc(var(--d, 0ms) + 260ms); }
.js .cta-inner.is-in:not(.hero .reveal) .btn .btn-icon { transition-delay: calc(var(--d, 0ms) + 380ms); }
.js .filters[data-stagger='chips'] { --pop-step: 50ms; }

.js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip):focus-visible,
.js .reveal:not(.hero .reveal):is(.btn, .round-btn, .chip):focus-visible {
  opacity: 1;
  scale: 1;
  translate: none;
  transition-delay: 0ms;
}

.js .section-head .eyebrow,
.js .services-head .eyebrow,
.js .feature-card .eyebrow,
.js .showcase-head .eyebrow {
  opacity: 0;
  translate: -24px 0;
  clip-path: inset(0 100% 0 0);
}
.js .reveal.is-in:not(.hero .reveal) :is(.section-head .eyebrow, .services-head .eyebrow, .feature-card .eyebrow, .showcase-head .eyebrow) {
  opacity: 1;
  translate: none;
  clip-path: inset(0 0 0 0);
  transition: opacity 550ms var(--motion-fade) var(--d, 0ms),
    translate 700ms var(--motion-out) var(--d, 0ms),
    clip-path 700ms var(--motion-out) var(--d, 0ms);
}
.js .section-head .eyebrow,
.js .services-head .eyebrow,
.js .feature-card .eyebrow,
.js .showcase-head .eyebrow { transition: opacity 550ms var(--motion-fade), translate 700ms var(--motion-out), clip-path 700ms var(--motion-out); }
 .js .fx-words .w > span {
  transition: transform 900ms var(--motion-out);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 45ms);
}
.js :is(.section-head, .services-head, .feature-card) .fx-words .w > span { transition-delay: calc(var(--d, 0ms) + 100ms + var(--i, 0) * 45ms); }

.js .project-grid[data-stagger='columns'] > .project-card.reveal.is-in { transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 90ms)); }
.js .feature-visual .feature-photo { transition: scale 1200ms var(--motion-out); }
.js .feature-visual.is-in:not(.hero .reveal) .feature-photo { transition-delay: var(--d, 0ms); }

/* Bara de mobil și titlul „Despre proiect” apar doar pe telefon. */
.dialog-live-mobile-bar { display: none; }
.dialog-about summary { cursor: pointer; font-weight: 800; }
@media (min-width: 768px) {
  .dialog-about > summary { display: none; }
  .dialog-about-content { display: contents; }
}

@media (max-width: 767px) {
  .modal:has(.dialog-live-viewer) { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; }
  .modal:has(.dialog-live-viewer) .device-switcher { display: none; }
  .dialog-live-viewer { height: calc(100dvh - 180px); }
  .dialog-live-viewer[data-device="phone"] .dialog-live-iframe,
  .dialog-live-viewer[data-device="tablet"] .dialog-live-iframe { width: 100%; flex-basis: 100%; }
  .js .reveal[data-motion='from-left']:not(.hero .reveal):not(.is-in) { translate: -20px 0; }
  .js .reveal[data-motion='from-right']:not(.hero .reveal):not(.is-in) { translate: 20px 0; }
  .js .cta-inner .cta-window.reveal[data-motion='curtain']:not(.is-in) { translate: 20px 0; }
  .js .service-list .service-item.reveal[data-motion='from-left']:not(.is-in),
  .js .service-list .service-item.reveal[data-motion='from-right']:not(.is-in) { translate: 0 16px; scale: 0.97; }
  .js .service-list .service-item.reveal.is-in[data-motion='from-left'],
  .js .service-list .service-item.reveal.is-in[data-motion='from-right'] { translate: none; }
  .js .faq[data-stagger='faq'] > .faq-item.reveal[data-motion='from-left']:not(.is-in) { translate: -20px 0; }
  .js .service-list[data-stagger='rows'] { --stagger-step: 45ms; }
  .js .project-grid[data-stagger='columns'] { --stagger-step: 0ms; }
  .js .process-grid[data-stagger='process'] { --stagger-step: 40ms; }
  .js .faq[data-stagger='faq'] { --stagger-step: 25ms; }
  .js .filters[data-stagger='chips'] { --stagger-step: 25ms; --pop-step: 25ms; }
  .js .feature-list[data-stagger='feature'],
  .js [data-stagger='left'],
  .js .team-list[data-stagger='team'] { --stagger-step: 35ms; }
  .js .contact-form[data-stagger='fields'],
  .js .consents[data-stagger='consent'],
  .js .contact-list[data-stagger='contact'] { --stagger-step: 22.5ms; }
  .js [data-stagger='controls'] { --stagger-step: 35ms; }
  .js [data-stagger] { --pop-step: 35ms; }
  .js .filters[data-stagger='chips'] { --pop-step: 25ms; }
  .js .reveal.is-in:not(.hero .reveal) {
    transition-duration: 468ms, 723ms, 723ms, 765ms, 468ms;
  }

  /* ---------- Ajustări compacte pentru telefoane ---------- */
  @media (max-width: 767px) {
    :root { --header-h: 72px; }
    body { text-wrap: pretty; }
    h1, h2, h3, h4 { text-wrap: balance; }
    input, select, textarea { font-size: 16px; }

    .btn, .btn-sm { min-height: 44px; }
    .link-button { min-height: 44px; padding-block: 9px; }
    .breadcrumbs a, .team-link, .package-service-link,
    .footer-links a, .footer-links .link-button, .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
    .breadcrumbs { gap: 4px 12px; }
    .check { grid-template-columns: 24px minmax(0, 1fr); min-height: 44px; align-items: center; }
    .check input { margin-top: 0; }
    .check label { display: flex; align-items: center; min-height: 44px; }

    .menu-overlay { padding-bottom: env(safe-area-inset-bottom, 0px); }
    .menu-inner { min-height: 100dvh; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
    .menu-top { min-height: 72px; }
    .menu-close { width: 52px; height: 52px; margin-right: 0; }
    .menu-links { margin: 0 !important; padding-block: 24px !important; gap: 2px; }
    .menu-links a { min-height: 44px; font-size: clamp(2rem, 10vw, 3.25rem); }
    .menu-footer { padding-bottom: 8px; }

    .hero { min-height: 100svh; padding-top: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)); padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
    .hero::before { content: ""; position: absolute; inset: 0 0 auto; height: min(34%, 260px); z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 9, 11, 0.62), rgba(7, 9, 11, 0)); }
    .hero .container { z-index: 2; }
    /* Cel mai lung rând are 8,5–9 em în fonturile de pe telefon: încape pe lățime și înainte, și după încărcarea fontului. */
    .hero-title { font-size: min(calc((100vw - 2 * var(--gutter)) / 9.1), 4.5rem); }
    .hero-actions { gap: 10px; }

    .filters {
      position: relative; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity;
      scroll-padding-inline: 8px; padding: 4px 8px 8px; margin-inline: -8px; scrollbar-width: none;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
      mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    }
    .filters::-webkit-scrollbar { display: none; }
    .filters .chip { flex: 0 0 auto; min-height: 44px; padding-inline: 16px; scroll-snap-align: start; }

    .process-grid { gap: 1px; border-radius: var(--radius); }
    .process-tile, .process-tile:nth-child(3), .process-tile:nth-child(5) { min-height: 0; padding: 22px 20px; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; align-items: start; }
    .process-tile:nth-child(1), .process-tile:nth-child(6) { background: var(--blue-strong); }
    .process-num { grid-row: 1 / span 2; margin: 0; font-size: 2.5rem; }
    .process-tile h3 { margin: 2px 0 6px; font-size: .9rem; }
    .process-tile p { font-size: .9375rem; line-height: 1.5; }

    .frame-bar { height: 32px; padding-inline: 10px; }
    .frame-url { max-width: calc(100% - 48px); padding-inline: 9px; font-size: .75rem; letter-spacing: .01em; transform: none; }
    .project-badge { font-size: .75rem; letter-spacing: .08em; }

    .footer-cta { padding-bottom: clamp(48px, 12vw, 72px); }
    .footer-logo { justify-content: center; width: 100%; margin-top: 20px; }
    .footer-logo img { height: 64px; }
    .footer-grid { gap: 30px; padding-block: 36px; }
    .footer-bottom-inner { align-items: flex-start; }

    .cookie-banner { max-height: 45dvh; max-width: none; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
    .cookie-actions .btn-choice { min-height: 44px; }
    .table-wrap { position: relative; background: linear-gradient(90deg, var(--bg) 0 12px, transparent 12px calc(100% - 12px), var(--bg) calc(100% - 12px)); }
    .table-wrap::after { content: "Derulează →"; position: absolute; right: 10px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: var(--blue-strong); color: #fff; font-size: .75rem; pointer-events: none; }
  }

  /* Previzualizarea live ocupă ecranul fără să împingă iframe-ul sub descriere. */
  @media (max-width: 767px) {
    .modal:has(.dialog-live-viewer) { inset: 0; width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; }
    .modal:has(.dialog-live-viewer) .modal-inner { display: flex; flex-direction: column; height: 100dvh; padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px); }
    .modal:has(.dialog-live-viewer) .modal-inner > .modal-close { display: none; }
    .dialog-live-mobile-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; min-height: 58px; position: sticky; top: 0; z-index: 3; background: var(--slate); }
    .dialog-live-mobile-bar strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .dialog-live-mobile-bar .btn { min-height: 44px; padding-inline: 12px; font-size: .75rem; }
    .dialog-live-mobile-bar .modal-close { position: static; width: 44px; height: 44px; }
    .modal:has(.dialog-live-viewer) .modal-media { flex: 1 1 auto; min-height: 0; height: auto; margin: 0; border-radius: var(--radius-sm); }
    .modal:has(.dialog-live-viewer) .dialog-live-viewer { height: 100%; min-height: 0; }
    .modal:has(.dialog-live-viewer) .dialog-live-tools { order: 3; margin: 8px 0 0; }
    .modal:has(.dialog-live-viewer) .dialog-live-tools .device-switcher,
    .modal:has(.dialog-live-viewer) .dialog-live-tools [data-live-reload] { display: none; }
    .modal:has(.dialog-live-viewer) .dialog-about { flex: 0 0 auto; max-height: 28dvh; overflow-y: auto; padding-top: 8px; }
    .modal:has(.dialog-live-viewer) .dialog-about summary { min-height: 44px; display: flex; align-items: center; }
    .modal:has(.dialog-live-viewer) .dialog-about-content { padding-bottom: 8px; }
    .modal:has(.dialog-live-viewer) .dialog-about h2 { font-size: 1.4rem; }
  }

  .mobile-sticky-cta { display: none; }
  @media (max-width: 767px) {
    .mobile-sticky-cta {
      position: fixed; z-index: 45; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 16px;
      display: inline-flex; min-height: 48px; padding: 10px 24px; box-shadow: 0 12px 30px rgba(7, 9, 11, .38);
      opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .35s var(--spring);
    }
    .mobile-sticky-cta[hidden] { display: inline-flex; opacity: 0; pointer-events: none; transform: translateY(18px); }
    body.has-mobile-sticky-cta { padding-bottom: 76px; }
    body.has-cookie-banner .mobile-sticky-cta, body:has(dialog[open]) .mobile-sticky-cta { display: none; }
  }
  .js .reveal.is-in:not(.hero .reveal) .btn,
  .js .reveal.is-in:not(.hero .reveal):is(.btn) { transition-duration: 200ms, 200ms, 200ms, 250ms, 500ms, 468ms, 553ms, 553ms; }
  .js .reveal.is-in:not(.hero .reveal) .round-btn,
  .js .reveal.is-in:not(.hero .reveal):is(.round-btn),
  .js .reveal.is-in:not(.hero .reveal) .chip,
  .js .reveal.is-in:not(.hero .reveal):is(.chip) { transition-duration: 200ms, 200ms, 200ms, 468ms, 553ms, 553ms; }
  .js .service-item.is-in .service-icon { transition-duration: 468ms, 553ms; }
  .js .fx-words .w > span { transition-duration: 765ms; }
  .js .section-head .eyebrow,
  .js .services-head .eyebrow,
  .js .feature-card .eyebrow,
  .js .showcase-head .eyebrow { transition-duration: 468ms, 595ms, 595ms; }
  .js .feature-card .feature-list > li,
  .js .seo-content [data-stagger='left'] > li,
  .js .team-list > .team-card,
  .js .contact-form > .ffield,
  .js .contact-form > .consents,
  .js .consents > .check,
  .js .contact-list > li,
  .js .feature-card .team-link,
  .js .section-head .section-lead,
  .js .section-head .review-summary,
  .js .showcase-head .showcase-title,
  .js .process-tile .process-num,
  .js .service-item .service-icon,
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon { transition-duration: 468ms, 723ms; }
  .js .seo-content .team-list > .team-card,
  .js .footer-cta .footer-logo { transition-duration: 468ms, 553ms, 553ms; }
  .js .service-item .service-icon { transition-duration: 468ms, 553ms; }
  .js .feature-visual .feature-photo,
  .js .reveal[data-motion='curtain'] :is(img, video) { transition-duration: 1020ms; }
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon { transition-duration: 468ms; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.hero .reveal),
  .js .reveal.is-in:not(.hero .reveal),
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip),
  .js .reveal.is-in:not(.hero .reveal) :is(.btn, .round-btn, .chip),
  .js .reveal:not(.hero .reveal):is(.btn, .round-btn, .chip) {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .js .section-head .eyebrow,
  .js .services-head .eyebrow,
  .js .feature-card .eyebrow,
  .js .showcase-head .eyebrow,
  .js .section-head .section-lead,
  .js .section-head .review-summary,
  .js .showcase-head .showcase-title,
  .js .feature-card .feature-list > li,
  .js .seo-content [data-stagger='left'] > li,
  .js .team-list > .team-card,
  .js .contact-form > .ffield,
  .js .contact-form > .consents,
  .js .consents > .check,
  .js .contact-list > li,
  .js .feature-card .team-link,
  .js .footer-cta .footer-logo,
  .js .process-tile .process-num,
  .js .service-item .service-icon,
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .js .feature-visual .feature-photo,
  .js .reveal[data-motion='curtain'] :is(img, video) { scale: 1 !important; transition: none !important; }
  .js .fx-words .w > span { transform: none !important; transition: none !important; }
}
html.reduce-motion.js .reveal:not(.hero .reveal),
html.reduce-motion.js .reveal.is-in:not(.hero .reveal),
html.reduce-motion.js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip),
html.reduce-motion.js .reveal.is-in:not(.hero .reveal) :is(.btn, .round-btn, .chip),
html.reduce-motion.js .reveal:not(.hero .reveal):is(.btn, .round-btn, .chip) {
  opacity: 1 !important;
  translate: none !important;
  scale: 1 !important;
  clip-path: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}
html.reduce-motion.js .section-head .eyebrow,
html.reduce-motion.js .services-head .eyebrow,
html.reduce-motion.js .feature-card .eyebrow,
html.reduce-motion.js .showcase-head .eyebrow,
html.reduce-motion.js .section-head .section-lead,
html.reduce-motion.js .section-head .review-summary,
html.reduce-motion.js .showcase-head .showcase-title,
html.reduce-motion.js .feature-card .feature-list > li,
html.reduce-motion.js .seo-content [data-stagger='left'] > li,
html.reduce-motion.js .team-list > .team-card,
html.reduce-motion.js .contact-form > .ffield,
html.reduce-motion.js .contact-form > .consents,
html.reduce-motion.js .consents > .check,
html.reduce-motion.js .contact-list > li,
html.reduce-motion.js .feature-card .team-link,
html.reduce-motion.js .footer-cta .footer-logo,
html.reduce-motion.js .process-tile .process-num,
html.reduce-motion.js .service-item .service-icon,
html.reduce-motion.js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon,
html.reduce-motion.js .feature-visual .feature-photo {
  opacity: 1 !important;
  translate: none !important;
  scale: 1 !important;
  clip-path: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}
html.reduce-motion.js .reveal[data-motion='curtain'] :is(img, video) { scale: 1 !important; transition: none !important; }
html.reduce-motion.js .fx-words .w > span { transform: none !important; transition: none !important; }

.js .seo-page-actions [data-stagger='left'] > li { opacity: 0; translate: -24px 0; }
.js .seo-page-actions.is-in [data-stagger='left'] > li {
  opacity: 1;
  translate: none;
  transition: opacity 550ms var(--motion-fade) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms)),
    translate 850ms var(--motion-out) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-step, 70ms));
}
.js .cta-inner .cta-window.reveal.is-in :is(img, video) { transition-delay: calc(var(--d, 0ms) + 100ms); }
@media (max-width: 767px) {
  .js .seo-page-actions.is-in [data-stagger='left'] > li { transition-duration: 468ms, 723ms; }
  .js .section-head .eyebrow,
  .js .services-head .eyebrow,
  .js .feature-card .eyebrow,
  .js .showcase-head .eyebrow { transition-duration: 468ms, 595ms, 595ms; }
  .js .fx-words .w > span { transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 22.5ms); }
  .js :is(.section-head, .services-head, .feature-card) .fx-words .w > span { transition-delay: calc(var(--d, 0ms) + 100ms + var(--i, 0) * 22.5ms); }
  .js .cta-inner .cta-window.reveal.is-in :is(img, video) { transition-duration: 1020ms; }
}
@media (prefers-reduced-motion: reduce) {
  .js .seo-page-actions [data-stagger='left'] > li { opacity: 1 !important; translate: none !important; transition: none !important; }
}
html.reduce-motion.js .seo-page-actions [data-stagger='left'] > li { opacity: 1 !important; translate: none !important; transition: none !important; }

.js .reveal[data-motion='curtain'].is-in:not(.hero .reveal) { transition-duration: 180ms, 850ms, 900ms, 900ms, 550ms; }
@media (max-width: 767px) {
  .js .reveal[data-motion='curtain'].is-in:not(.hero .reveal) { transition-duration: 160ms, 723ms, 765ms, 765ms, 468ms; }
}

.js .reveal:not(.hero .reveal):focus-within {
  opacity: 1 !important;
  translate: none !important;
  scale: 1 !important;
  clip-path: none !important;
  filter: none !important;
  transition: none !important;
}
.js .contact-form[data-stagger='fields'] > .ffield:focus-within,
.js .consents[data-stagger='consent'] > .check:focus-within,
.js .contact-list[data-stagger='contact'] > li:focus-within,
.js .feature-list[data-stagger='feature'] > li:focus-within,
.js .seo-content [data-stagger='left'] > li:focus-within,
.js .seo-page-actions [data-stagger='left'] > li:focus-within,
.js .team-list[data-stagger='team'] > .team-card:focus-within,
.js .feature-card .team-link:focus-visible,
.js .footer-cta .footer-logo:focus-visible {
  opacity: 1 !important;
  translate: none !important;
  scale: 1 !important;
  transition: none !important;
}
.js .reveal.is-in:not(.hero .reveal) .round-btn:disabled,
.js .reveal.is-in:not(.hero .reveal):is(.round-btn:disabled) { transition-delay: 0ms; }
@media (max-width: 767px) {
  .js .reveal.is-in:not(.hero .reveal) :is(.section-head .eyebrow, .services-head .eyebrow, .feature-card .eyebrow, .showcase-head .eyebrow) { transition-duration: 468ms, 595ms, 595ms; }
  .js .feature-card.is-in .feature-list[data-stagger='feature'] > li,
  .js .seo-content.is-in [data-stagger='left'] > li,
  .js .seo-page-actions.is-in [data-stagger='left'] > li,
  .js .contact-aside.is-in .contact-list[data-stagger='contact'] > li,
  .js .contact-panel.is-in .contact-form[data-stagger='fields'] > .ffield,
  .js .contact-panel.is-in .contact-form[data-stagger='fields'] > .consents,
  .js .contact-panel.is-in .consents[data-stagger='consent'] > .check,
  .js .section-head.is-in .section-lead,
  .js .section-head.is-in .review-summary,
  .js .showcase-head.is-in .showcase-title { transition-duration: 468ms, 723ms; }
  .js .seo-content.is-in .team-list[data-stagger='team'] > .team-card { transition-duration: 468ms, 553ms; }
  .js .feature-card.is-in .team-link { transition-duration: 450ms, 468ms, 723ms; }
  .js .footer-cta.is-in .footer-logo { transition-duration: 450ms, 468ms, 553ms, 553ms; }
  .js .process-tile.is-in .process-num { transition-duration: 350ms, 450ms, 468ms, 723ms; }
  .js .service-item.is-in .service-icon { transition-duration: 468ms, 553ms; }
  .js .reveal.is-in:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon { transition-duration: 468ms; }
  .js .feature-visual.is-in:not(.hero .reveal) .feature-photo,
  .js .reveal[data-motion='curtain'].is-in:not(.hero .reveal) :is(img, video) { transition-duration: 1020ms; }
}

@media (max-width: 767px) {
  .js .reveal:not(.is-in):not(.hero .reveal) :is(.section-head .eyebrow, .services-head .eyebrow, .feature-card .eyebrow, .showcase-head .eyebrow) { translate: -20px 0; }
  .js .feature-card:not(.is-in) .feature-list[data-stagger='feature'] > li { translate: 20px 0; }
  .js .seo-content:not(.is-in) [data-stagger='left'] > li,
  .js .seo-page-actions:not(.is-in) [data-stagger='left'] > li { translate: -20px 0; }
  .js .contact-aside:not(.is-in) .contact-list[data-stagger='contact'] > li { translate: 20px 0; }
  .js .process-tile:not(.is-in) .process-num { translate: -20px 0; }
}

@media print {
  .js .reveal:not(.hero .reveal),
  .js .reveal.is-in:not(.hero .reveal),
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip),
  .js .reveal:not(.hero .reveal):is(.btn, .round-btn, .chip) {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .js .section-head .eyebrow,
  .js .services-head .eyebrow,
  .js .feature-card .eyebrow,
  .js .showcase-head .eyebrow,
  .js .section-head .section-lead,
  .js .section-head .review-summary,
  .js .showcase-head .showcase-title,
  .js .feature-card .feature-list > li,
  .js .seo-content [data-stagger='left'] > li,
  .js .seo-page-actions [data-stagger='left'] > li,
  .js .team-list > .team-card,
  .js .contact-form > .ffield,
  .js .contact-form > .consents,
  .js .consents > .check,
  .js .contact-list > li,
  .js .feature-card .team-link,
  .js .footer-cta .footer-logo,
  .js .process-tile .process-num,
  .js .service-item .service-icon,
  .js .reveal:not(.hero .reveal) :is(.btn, .round-btn, .chip) .btn-icon {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .js .fx-words .w > span { transform: none !important; transition: none !important; }
}
.js .reveal.is-in:not(.hero .reveal) .round-btn:disabled,
.js .reveal.is-in:not(.hero .reveal):is(.round-btn:disabled) { transition-delay: 0ms; }

@media (max-width: 767px) {
  .service-list[data-stagger='rows'] { grid-template-columns: 1fr; }
}

.js .reveal.is-in:not(.hero .reveal) .round-btn:disabled,
.js .reveal.is-in:not(.hero .reveal):is(.round-btn:disabled) { opacity: 0.35; transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal.is-in:not(.hero .reveal) .round-btn:disabled,
  .js .reveal.is-in:not(.hero .reveal):is(.round-btn:disabled) { opacity: 0.35 !important; }
}
html.reduce-motion.js .reveal.is-in:not(.hero .reveal) .round-btn:disabled,
html.reduce-motion.js .reveal.is-in:not(.hero .reveal):is(.round-btn:disabled) { opacity: 0.35 !important; }

/* Rezervă pentru titlurile cu Segoe UI Black: Segoe există doar pe Windows. Pe Mac, iOS și Android folosim Noto Sans Black
   (licență SIL OFL, găzduit local), cel mai apropiat ca grosime și formă; pe Windows nu se descarcă deloc. */
@font-face { font-family: "SeeCode Display"; src: url("/fonts/noto-sans-900-latin.woff2") format("woff2"); font-weight: 800 900; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SeeCode Display"; src: url("/fonts/noto-sans-900-latin-ext.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Blog: listă de articole și text lung, ușor de citit ---------- */
.post-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.post-card article {
  position: relative; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--slate); transition: border-color 0.3s, background-color 0.3s;
}
.post-card article:hover, .post-card article:focus-within { border-color: rgba(96, 165, 250, 0.45); }
.post-card p { margin: 0; color: var(--muted); }
.post-card-title { margin: 10px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; }
.post-card-title a { color: var(--heading); text-decoration: none; }
/* Tot cardul e clicabil, dar linkul rămâne titlul (un singur link pentru cititoarele de ecran). */
.post-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card-title a:focus-visible { outline: none; }
.post-card article:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-meta { font-size: 0.875rem; color: var(--muted); }
.seo-page-head .post-meta { margin: 14px 0 0; }

.prose { max-width: 68ch; margin-top: clamp(8px, 2vw, 16px); font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--heading); }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 1.15rem; line-height: 1.3; color: var(--heading); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 0.45em; }
.prose li::marker { color: var(--blue-text); }
.prose strong { color: var(--heading); }
.prose a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.post-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(40px, 6vw, 64px); padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: linear-gradient(115deg, var(--blue-strong) 0%, #1e40af 45%, #0f172a 100%);
}
.post-cta p { margin: 0; font-size: 1.125rem; font-weight: 700; color: #fff; }
.faq-more { margin: 28px 0 0; }

/* Hero centrat: tot conținutul pe axa verticală a ecranului.
   Perspectiva devine simetrică (înclinare pe orizontală, rotateX), pentru că rotația laterală de mai sus, ancorată în stânga,
   ar arăta strâmbă pe un titlu centrat: partea de jos a titlului „pleacă” spre fundal. Titlul nu mai reacționează la hover;
   doar „inginerie.” e interactiv (vezi mai jos). Voalul peste videoclip se concentrează în mijloc, unde stă acum textul. */
.hero > .container { text-align: center; }
@media (min-width: 860px) { .hero > .container { padding-left: var(--gutter); } }
.hero-title, .hero-title:hover {
  margin-inline: auto; transform-origin: center 35%;
  -webkit-mask-image: none; mask-image: none;
  transform: perspective(1000px) rotateX(-10deg);
}
@media (min-width: 860px) { .hero-title, .hero-title:hover { transform: perspective(1400px) rotateX(-14deg); } }

/* „inginerie.”: tremură ca o gelatină la hover sau la atingere (clasa .is-jiggling, pusă din fx.js).
   Ancorat pe linia de bază, ca o gelatină așezată pe masă: se turtește, se întinde și se clatină până se liniștește. */
.hero-title .hl { transform-origin: 50% 100%; cursor: default; }
.hero-title .hl.is-jiggling { animation: hl-jiggle 0.95s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
@keyframes hl-jiggle {
  0% { transform: none; }
  12% { transform: scale(1.14, 0.84) skewX(-7deg); }
  26% { transform: scale(0.9, 1.13) skewX(6deg); }
  40% { transform: scale(1.07, 0.93) skewX(-4deg); }
  54% { transform: scale(0.96, 1.05) skewX(2.5deg); }
  68% { transform: scale(1.02, 0.98) skewX(-1.2deg); }
  84% { transform: scale(0.995, 1.01) skewX(0.5deg); }
  100% { transform: none; }
}
html.reduce-motion .hero-title .hl.is-jiggling { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-title .hl.is-jiggling { animation: none; } }
.hero-lead { max-width: 36rem; margin-inline: auto; text-wrap: balance; }
.hero-actions { justify-content: center; }
.hero-video::after {
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.35) 0%, rgba(11, 13, 16, 0) 22%, rgba(11, 13, 16, 0) 78%, rgba(11, 13, 16, 0.85) 95%, var(--navy) 100%),
    radial-gradient(ellipse 72% 62% at 50% 50%, rgba(11, 13, 16, 0.66) 0%, rgba(11, 13, 16, 0.42) 55%, rgba(11, 13, 16, 0.2) 100%),
    rgba(11, 13, 16, 0.12);
}

/* ---------- Telefon: încadrare stabilă la deschidere ---------- */
@media (max-width: 859px) { .hero-title { transform: none; } }
@media (max-width: 767px) {
  .hero .eyebrow { white-space: nowrap; font-size: clamp(0.625rem, 3.33vw, 0.8125rem); letter-spacing: 0.04em; }
  .cookie-actions .btn-choice { padding-inline: 4px; font-size: clamp(0.625rem, 3.2vw, 0.75rem); letter-spacing: 0; }
}
/* Bannerul lasă hero-ul vizibil, iar butoanele rămân mereu pe ecran: doar textul derulează dacă nu încape. */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .cookie-banner { right: 10px; left: 10px; max-width: none; max-height: 50dvh; overflow: hidden; }
  .cookie-inner { max-height: inherit; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .cookie-text { min-height: 0; overflow-y: auto; }
  .cookie-text p { margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; }
  .cookie-text p.cookie-title { margin: 0; font-size: 0.8125rem; }
  .cookie-banner:has(.cookie-prefs:not([hidden])) { max-height: 85dvh; overflow-y: auto; }
  .cookie-banner:has(.cookie-prefs:not([hidden])) .cookie-inner { max-height: none; grid-template-rows: none; }
}
/* Telefon ținut orizontal: tot hero-ul încape pe ecran, iar bannerul devine o bandă joasă. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: calc(var(--header-h) + 12px) 0 20px; }
  .hero .eyebrow { margin-bottom: 8px; padding-block: 3px; }
  .hero-title { font-size: clamp(1.75rem, 11.5vh, 3rem); }
  .hero-lead { max-width: 44rem; margin-top: 8px; font-size: 0.875rem; line-height: 1.4; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 12px; }
  .hero-actions .btn { flex: 0 1 auto; min-height: 44px; }
  .cookie-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 16px; }
  .cookie-banner:has(.cookie-prefs:not([hidden])) .cookie-inner { grid-template-columns: none; }
  .cookie-actions { flex-wrap: nowrap; }
  .cookie-actions .btn-choice { flex: none; min-width: 0; padding: 8px 14px; font-size: 0.75rem; }
}

/* Telefon: blur-ul din spatele antetului se recalculează la fiecare cadru de derulare; un fundal aproape opac arată la fel și nu costă nimic. */
@media (max-width: 767px) {
  .site-header.is-scrolled { background: rgba(11, 13, 16, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal::backdrop { backdrop-filter: none; }
}
