/* ============================================================
   LOGYZEN Technologies — stiluri principale (temă luminoasă)
   Paletă: bleumarin #052F72 · turcoaz #058B9A · verde #7EB360
   ============================================================ */

:root {
  --navy: #052F72;
  --teal: #058B9A;
  --teal-bright: #058B9A;
  --green: #7EB360;
  --bg: #FFFFFF;
  --bg-2: #F5F8FC;
  --bg-3: #EAF1F8;
  --text: #0A1B33;
  --text-2: #52627A;
  --border: rgba(10, 27, 51, 0.10);
  --border-strong: rgba(10, 27, 51, 0.18);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --font-display: "Work Sans", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --container: 1280px;
  --nav-h: 76px;
  --nav-h-compact: 62px;
  --shadow-card: 0 10px 32px rgba(5, 47, 114, 0.10);
  --gradient-brand: linear-gradient(100deg, var(--navy) 0%, var(--teal) 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(5, 139, 154, 0.22); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

/* orb decorativ de gradient, animat lent, în fiecare secțiune */
.section::before {
  content: "";
  position: absolute;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 139, 154, 0.09), transparent 65%);
  top: -160px;
  right: -140px;
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite alternate;
}

.section:nth-of-type(even)::before {
  right: auto;
  left: -140px;
  background: radial-gradient(circle, rgba(5, 47, 114, 0.08), transparent 65%);
}

@keyframes orbFloat {
  to { transform: translateY(70px) scale(1.12); }
}

.section--alt {
  background:
    radial-gradient(rgba(5, 47, 114, 0.05) 1px, transparent 1.5px),
    radial-gradient(900px 400px at 85% 0%, rgba(5, 139, 154, 0.06), transparent 70%),
    var(--bg-2);
  background-size: 26px 26px, auto, auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* pictograme colorabile din fișierele SVG locale (Tabler Icons, licență MIT) */
.ico {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section-head--center .kicker::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.lead { color: var(--text-2); font-size: 1.08rem; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--navy), var(--teal) 85%);
  box-shadow: 0 6px 20px rgba(5, 139, 154, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 139, 154, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--bg-2);
  border-color: rgba(10, 27, 51, 0.3);
}

.btn--sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 12px; }

/* ---------- Sidebar de navigare (scrollytelling) ---------- */

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  z-index: 90;
  display: none;
  align-items: center;
  padding: 32px 20px 32px 36px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
}

.side-nav nav { width: 100%; position: relative; }

.side-nav__rail {
  position: absolute;
  left: 27px;
  top: 50%;
  transform: translateY(-50%);
  height: min(72vh, 560px);
  width: 2px;
  border-radius: 2px;
  background: rgba(10, 27, 51, 0.10);
  overflow: hidden;
}

.side-nav__progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy), var(--teal) 75%, var(--green));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.2s linear;
}

.side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.side-nav__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.25s, background-color 0.25s, transform 0.25s var(--ease-out);
}

.side-nav__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(10, 27, 51, 0.35);
  font-variant-numeric: tabular-nums;
  transition: color 0.25s;
}

.side-nav__list a:hover { color: var(--navy); background: rgba(5, 139, 154, 0.06); }

.side-nav__list a.is-active {
  color: var(--navy);
  font-weight: 600;
  transform: translateX(4px);
}

.side-nav__list a.is-active .side-nav__num { color: var(--teal); }

@media (min-width: 1081px) {
  body:has(.side-nav) { padding-left: 240px; }
  .side-nav { display: flex; }
}

/* ---------- Navbar (paginile secundare) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}

.nav.is-scrolled {
  height: var(--nav-h-compact);
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.nav__logo img {
  height: 46px;
  width: 46px;
  transition: height 0.35s var(--ease-out), width 0.35s var(--ease-out);
}

.nav.is-scrolled .nav__logo img { height: 38px; width: 38px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s, background-color 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--text); background: rgba(5, 139, 154, 0.08); }

.nav__burger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(5, 47, 114, 0.10);
  cursor: pointer;
  padding: 0;
  z-index: 130;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Meniu mobil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 32px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu ul { list-style: none; margin: 0 0 32px; padding: 0; }

.mobile-menu li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-menu.is-open li { opacity: 1; transform: none; }

.mobile-menu a:not(.btn) {
  display: block;
  padding: 14px 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none !important;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 78% 40%, rgba(5, 139, 154, 0.07), transparent 70%),
    radial-gradient(900px 620px at 10% 80%, rgba(5, 47, 114, 0.06), transparent 70%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 46%, rgba(255, 255, 255, 0.05) 78%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 48px;
  align-items: center;
}

/* Logo în Hero — fără card, animația trece în jurul lui */
.hero__logo {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__logo::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.55) 62%, transparent 78%);
  pointer-events: none;
}

.hero__logo img {
  position: relative;
  width: min(500px, 100%);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(5, 47, 114, 0.18));
  animation: logoFloat 7s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--text-2);
  margin-bottom: 24px;
}

.hero__eyebrow strong { color: var(--teal); font-weight: 600; }

.hero h1 { margin-bottom: 24px; }

.hero__sub {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }

.hero__badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(126, 179, 96, 0.6);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.scroll-hint::after {
  content: "";
  width: 3px;
  height: 8px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--teal);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Tab-uri (secțiunea Servicii) ---------- */

.tabs-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 44px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(5, 47, 114, 0.06);
  max-width: 100%;
}

.tab-btn {
  padding: 11px 24px;
  border: none;
  border-radius: 11px;
  background: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--navy); background: rgba(5, 139, 154, 0.07); }

.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(100deg, var(--navy), var(--teal) 85%);
  box-shadow: 0 4px 14px rgba(5, 139, 154, 0.3);
}

.tab-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.tab-panel { display: none; }

.tab-panel.is-active {
  display: block;
  animation: panelIn 0.55s var(--ease-out);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .tabs-bar { width: 100%; }
  .tab-btn { flex: 1 1 auto; padding: 10px 14px; font-size: 0.84rem; }
}

/* ---------- Carduri generice ---------- */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(5, 139, 154, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 139, 154, 0.35);
  box-shadow: var(--shadow-card);
}

.card:hover::before { opacity: 1; }

/* sheen — o trecere fină de lumină la hover */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(5, 139, 154, 0.07), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.8s var(--ease-out);
}

.card:hover::after { left: 125%; }

/* ---------- Servicii ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card { display: flex; flex-direction: column; }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(5, 47, 114, 0.10), rgba(5, 139, 154, 0.12));
  border: 1px solid rgba(5, 139, 154, 0.25);
  margin-bottom: 20px;
  color: var(--teal);
}

.service-card__icon svg { width: 26px; height: 26px; }

.service-card__icon { transition: transform 0.35s var(--ease-out), box-shadow 0.35s; }

.card:hover .service-card__icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 6px 18px rgba(5, 139, 154, 0.22);
}

.service-card p { color: var(--text-2); font-size: 0.95rem; }

.service-card__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-card__tags span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(5, 139, 154, 0.07);
  border: 1px solid rgba(5, 139, 154, 0.22);
  border-radius: 999px;
  padding: 3px 11px;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.card:hover .service-card__tags span {
  background: rgba(5, 139, 154, 0.12);
}

.service-card__tags span:hover {
  color: #fff;
  background: var(--teal);
  transform: translateY(-1px);
}

/* ---------- Soluții AI ---------- */

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-viz {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 300px at 50% 50%, rgba(5, 139, 154, 0.06), transparent 75%),
    #fff;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  padding: 16px;
  overflow: hidden;
}

/* Pipeline-ul AI: Sistemele companiei → AI → Rezultate */

.ai-flow {
  position: relative;
  aspect-ratio: 1000 / 640;
  width: 100%;
}

.ai-flow__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ai-flow__rails path {
  fill: none;
  stroke: rgba(5, 139, 154, 0.20);
  stroke-width: 1.5;
}

.ai-comet {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 200;
  stroke-dashoffset: 12;
  opacity: 0;
}

.ai-comet--in { stroke: var(--teal); }
.ai-comet--out { stroke: var(--green); }

.ai-comet.run {
  animation: cometTravel 1s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes cometTravel {
  0% { stroke-dashoffset: 12; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

.ai-flow__colhead {
  position: absolute;
  top: 1.5%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}

.ai-flow__colhead--out { color: #4C7F2C; }

.ai-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 7px 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(5, 47, 114, 0.06);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.ai-chip.is-active {
  color: var(--navy);
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(5, 139, 154, 0.25);
  transform: translate(-50%, -50%) scale(1.07);
}

.ai-chip--out.is-active {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(126, 179, 96, 0.3);
}

.ai-flow__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15%;
  aspect-ratio: 1;
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(5, 139, 154, 0.18);
}

.ai-flow__core::before {
  content: "";
  position: absolute;
  inset: -14%;
  border: 1px dashed rgba(5, 139, 154, 0.4);
  border-radius: 50%;
  animation: coreSpin 28s linear infinite;
}

@keyframes coreSpin { to { transform: rotate(360deg); } }

.ai-flow__core strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.ai-flow__core span {
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  line-height: 1.3;
  color: var(--text-2);
}

.ai-flow__core.is-pulse { animation: corePulse 0.7s var(--ease-out); }

@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 8px 28px rgba(5, 139, 154, 0.18); }
  40% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 10px 36px rgba(5, 139, 154, 0.35); }
}

@media (max-width: 720px) {
  .ai-chip { font-size: 0.66rem; padding: 5px 9px; }
  .ai-flow__colhead { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-comet { display: none; }
  .ai-flow__core::before { animation: none; }
}

.ai-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ai-cases > .reveal:last-child { grid-column: 1 / -1; }

.ai-case {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.ai-case:hover {
  border-color: rgba(5, 139, 154, 0.4);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.ai-case .ico { color: var(--teal); margin-top: 2px; width: 26px; height: 26px; }
.ai-case:hover .ico { color: var(--navy); }

.ai-case h3 { font-size: 0.95rem; margin-bottom: 4px; }
.ai-case p { color: var(--text-2); font-size: 0.85rem; margin: 0; }

@media (max-width: 520px) {
  .ai-cases { grid-template-columns: 1fr; }
}

/* ---------- Automatizare (înainte / după) ---------- */

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.ba-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-2);
}

.ba-col--after {
  background: linear-gradient(160deg, rgba(5, 47, 114, 0.05), rgba(5, 139, 154, 0.08));
  border-color: rgba(5, 139, 154, 0.3);
}

.ba-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ba-col--before h3 { color: var(--text-2); }
.ba-col--after h3 { color: var(--teal); }

.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.ba-col li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.96rem; }

.ba-col--before li::before {
  content: "×";
  color: rgba(10, 27, 51, 0.4);
  font-weight: 700;
  flex-shrink: 0;
}

.ba-col--after li { color: var(--text); }

.ba-col--after li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Flux animat */
.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  min-width: 140px;
  text-align: center;
}

.flow__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: #fff;
  position: relative;
}

.flow__step.is-lit .flow__dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 12px rgba(5, 139, 154, 0.5);
}

.flow__step:last-child.is-lit .flow__dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(126, 179, 96, 0.6);
}

.flow__label { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--text-2); }
.flow__step.is-lit .flow__label { color: var(--text); }

.flow__link {
  align-self: center;
  width: 48px;
  height: 2px;
  background: rgba(10, 27, 51, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-top: 26px;
}

.flow__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  transform: translateX(-110%);
}

.flow__link.is-lit::after { animation: flowLink 0.5s var(--ease-out) forwards; }

@keyframes flowLink { to { transform: translateX(0); } }

/* ---------- Beneficii ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card h3 { font-size: 1.05rem; }

.benefit-card .service-card__icon { margin-bottom: 16px; }

.benefit-card p { color: var(--text-2); font-size: 0.92rem; margin: 0; }

/* ---------- Proces (timeline) ---------- */

.timeline {
  position: relative;
  max-width: 840px;
  margin-inline: auto;
  padding-left: 44px;
}

.timeline__track {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(10, 27, 51, 0.10);
  border-radius: 2px;
  overflow: hidden;
}

.timeline__progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy), var(--teal) 70%, var(--green));
  transform-origin: top;
  transform: scaleY(0);
}

.timeline__step {
  position: relative;
  padding: 0 0 48px;
}

.timeline__step:last-child { padding-bottom: 0; }

.timeline__step::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10, 27, 51, 0.25);
  background: #fff;
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}

.timeline__step.is-visible::before {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 10px rgba(5, 139, 154, 0.45);
}

.timeline__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.timeline__step h3 { margin: 6px 0 8px; }
.timeline__step p { color: var(--text-2); margin: 0; max-width: 560px; }

/* ---------- Proiecte ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card { display: flex; flex-direction: column; padding: 0; }

.project-card__visual {
  height: 170px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(240px 140px at 60% 40%, rgba(5, 139, 154, 0.12), transparent 70%),
    linear-gradient(150deg, rgba(5, 47, 114, 0.08), var(--bg-2));
  display: grid;
  place-items: center;
  color: var(--teal);
}

.project-card__visual svg { width: 56px; height: 56px; opacity: 0.9; transition: transform 0.4s var(--ease-out); }

.card:hover .project-card__visual svg { transform: translateY(-3px) scale(1.03); }

.project-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }

.badge-demo {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4C7F2C;
  border: 1px solid rgba(76, 127, 44, 0.35);
  background: rgba(126, 179, 96, 0.10);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.project-card p { color: var(--text-2); font-size: 0.95rem; }

.project-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.82rem;
}

/* ---------- Tehnologii ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.tech-group:hover { border-color: rgba(5, 139, 154, 0.35); transform: translateY(-3px); }

.tech-group h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-group h3 .ico { width: 20px; height: 20px; }

.tech-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-group li {
  font-size: 0.84rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--bg-2);
}

/* ---------- Despre ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 56px;
  align-items: start;
}

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }

.value-card--cta {
  display: block;
  background: linear-gradient(120deg, var(--navy), var(--teal) 90%);
  border-color: transparent;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.value-card--cta h3 { color: #fff; }
.value-card--cta .ico { color: rgba(255, 255, 255, 0.9); }
.value-card--cta p { color: rgba(255, 255, 255, 0.75); }

.value-card--cta .value-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 1.4rem;
  color: #fff;
  transition: transform 0.3s var(--ease-out);
}

.value-card--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(5, 139, 154, 0.35);
}

.value-card--cta:hover .value-card__arrow { transform: translateX(6px); }

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  min-height: 168px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 139, 154, 0.35);
  box-shadow: var(--shadow-card);
}

.value-card h3 { font-size: 1.08rem; margin-bottom: 10px; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.value-card h3 .ico { width: 22px; height: 22px; }
.value-card p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq__item.is-open { border-color: rgba(5, 139, 154, 0.35); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__q:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: var(--radius); }

.faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}

.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--teal);
  transform: translate(-50%, -50%);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease-out); }

.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq__a > div { overflow: hidden; }

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a p { padding: 0 24px 22px; margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* ---------- Contact ---------- */

.contact-layout {
  max-width: 820px;
  margin-inline: auto;
}

.contact-info { display: grid; gap: 16px; }

.contact-info__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(5, 47, 114, 0.04);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.contact-info__item:hover { transform: translateX(4px); border-color: rgba(5, 139, 154, 0.35); }

.contact-info__item h3 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.contact-info__item h3 .ico { width: 17px; height: 17px; }
.contact-info__item p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 4px 24px rgba(5, 47, 114, 0.06);
  padding: 40px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.field label .req { color: var(--teal); }
.field label .opt { color: var(--text-2); font-weight: 400; font-size: 0.8rem; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 139, 154, 0.15);
}

.field input::placeholder, .field textarea::placeholder { color: rgba(82, 98, 122, 0.6); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C43D36; box-shadow: 0 0 0 3px rgba(196, 61, 54, 0.12); }

.field__error {
  color: #B3261E;
  font-size: 0.82rem;
  min-height: 0;
  display: none;
}

.field.has-error .field__error { display: block; }

.field--consent { flex-direction: row; align-items: flex-start; gap: 12px; }

.field--consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--teal);
  margin-top: 2px;
}

.field--consent label { font-family: var(--font-body); font-weight: 400; font-size: 0.88rem; color: var(--text-2); }

.field--file input[type="file"] { padding: 10px; font-size: 0.85rem; color: var(--text-2); }

.field__hint { font-size: 0.78rem; color: var(--text-2); }

/* honeypot — invizibil pentru oameni, prezent pentru boți */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form__submit { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }

@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  display: none;
  margin-top: 20px;
}

.form__status.is-success {
  display: block;
  color: #35621B;
  background: rgba(126, 179, 96, 0.12);
  border: 1px solid rgba(76, 127, 44, 0.35);
}

.form__status.is-error {
  display: block;
  color: #B3261E;
  background: rgba(196, 61, 54, 0.08);
  border: 1px solid rgba(196, 61, 54, 0.3);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img { width: 140px; height: 140px; margin-bottom: 16px; }

.footer__brand p { color: var(--text-2); font-size: 0.92rem; max-width: 300px; }

.footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer ul a { color: var(--text-2); font-size: 0.92rem; text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--teal); }

.footer__contact li { color: var(--text-2); font-size: 0.92rem; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 0.85rem;
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--teal); }

/* ---------- Ilustrații SVG animate ---------- */

/* trasee de circuit decorative pe secțiuni */
.deco-circuit {
  position: absolute;
  width: 340px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.deco-circuit--tr { top: 24px; right: -40px; }
.deco-circuit--bl { bottom: 24px; left: -40px; transform: rotate(180deg); }

.deco-circuit .trace {
  fill: none;
  stroke: rgba(5, 47, 114, 0.13);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.deco-circuit .pad {
  fill: #fff;
  stroke: rgba(5, 47, 114, 0.25);
  stroke-width: 1.5;
}

.deco-circuit .pad--teal { stroke: rgba(5, 139, 154, 0.5); }
.deco-circuit .pad--green { fill: rgba(126, 179, 96, 0.9); stroke: none; }

.deco-circuit .trace-pulse {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 200;
  animation: circuitPulse 5s linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes circuitPulse {
  0% { stroke-dashoffset: 14; opacity: 0; }
  6% { opacity: 0.9; }
  55% { opacity: 0.9; }
  62% { stroke-dashoffset: -100; opacity: 0; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

/* scenele din cardurile de proiect */
.project-card__visual svg { width: 88%; height: 88%; opacity: 1; }

.scene .ln { stroke: rgba(5, 47, 114, 0.35); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.scene .ln--soft { stroke: rgba(82, 98, 122, 0.35); }
.scene .fill-soft { fill: rgba(5, 139, 154, 0.08); }
.scene .frame { fill: #fff; stroke: rgba(10, 27, 51, 0.2); stroke-width: 1.4; }
.scene .accent { fill: var(--teal); }
.scene .accent-green { fill: var(--green); }

/* scanarea documentelor */
.scene .scan-beam {
  fill: rgba(5, 139, 154, 0.25);
  animation: scanSweep 2.6s ease-in-out infinite alternate;
}

@keyframes scanSweep { to { transform: translateY(46px); } }

.scene .chip-pop {
  opacity: 0;
  animation: chipPop 5.2s ease-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes chipPop {
  0%, 18% { opacity: 0; transform: translateX(-6px); }
  26%, 80% { opacity: 1; transform: translateX(0); }
  92%, 100% { opacity: 0; }
}

/* dashboard-ul operațional */
.scene .bar {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: barGrow 2.8s var(--ease-out) infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes barGrow {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

.scene .chart-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  animation: drawLine 4.5s ease-in-out infinite;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 120; }
  45%, 75% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.scene .blink {
  animation: blinkDot 1.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes blinkDot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* conversația cu asistentul AI */
.scene .bubble-a { opacity: 0; animation: bubbleA 6s ease-out infinite; }
.scene .bubble-b { opacity: 0; animation: bubbleB 6s ease-out infinite; }
.scene .bubble-c { opacity: 0; animation: bubbleC 6s ease-out infinite; }

@keyframes bubbleA { 5%, 10% { opacity: 0; transform: translateY(6px); } 16%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes bubbleB { 0%, 30% { opacity: 0; transform: translateY(6px); } 38%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes bubbleC { 0%, 55% { opacity: 0; transform: translateY(6px); } 63%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

.scene .type-dot {
  fill: var(--teal);
  animation: typeBounce 1.1s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes typeBounce { 0%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-3.5px); opacity: 1; } }

/* ilustrația stratificată din Despre */
.about-illustration { margin-top: 36px; width: 100%; max-width: 500px; }

.about-illustration .layer {
  animation: layerFloat 6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

@keyframes layerFloat { to { transform: translateY(-7px); } }

.about-illustration .stack-pulse {
  fill: var(--teal);
  animation: stackPulse 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes stackPulse {
  0%, 100% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  60% { opacity: 1; transform: translateY(-56px); }
  75% { opacity: 0; transform: translateY(-56px); }
}

@media (prefers-reduced-motion: reduce) {
  .deco-circuit .trace-pulse,
  .scene .scan-beam, .scene .chip-pop, .scene .bar, .scene .chart-line,
  .scene .blink, .scene .bubble-a, .scene .bubble-b, .scene .bubble-c,
  .scene .type-dot, .about-illustration .layer, .about-illustration .stack-pulse {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reveal-uri la scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* apariții în cascadă pentru copiii containerelor marcate */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible .stagger-children > *,
.stagger-children.is-visible > * {
  animation: staggerIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes staggerIn {
  to { opacity: 1; transform: none; }
}

/* Linie de scanare fină între secțiuni */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 139, 154, 0.35), transparent);
  max-width: var(--container);
  margin-inline: auto;
}

/* ---------- Pagini secundare (legal / 404) ---------- */

.page-simple {
  padding: calc(var(--nav-h) + 64px) 0 96px;
  max-width: 840px;
}

.page-simple h1 { margin-bottom: 32px; }
.page-simple h2 { font-size: 1.3rem; margin-top: 40px; }
.page-simple p, .page-simple li { color: var(--text-2); }

.page-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .services-grid, .benefits-grid, .projects-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .ai-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { justify-content: center; order: -1; }
  .hero__logo img { width: min(300px, 72%); }
  .hero__overlay { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.65) 60%, rgba(255, 255, 255, 0.3) 100%); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .services-grid, .benefits-grid, .projects-grid, .values-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .flow__link { width: 24px; }
  .container { width: calc(100% - 40px); }
  .timeline { padding-left: 36px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .tech-grid { grid-template-columns: 1fr; }
}

/* ---------- Mișcare redusă ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint::after { animation: none; }
  .hero__logo img { animation: none; }
  .timeline__progress { transform: scaleY(1) !important; }
}
