/* ==========================================================================
   Trafiko — styles.css (temă întunecată, „autostrada datelor”)
   Fără framework, fără build. Animațiile folosesc doar transform/opacity
   unde se poate, se opresc în afara ecranului (.in-view) și la
   prefers-reduced-motion.
   ========================================================================== */

/* ---------- Fonturi găzduite local (fără cereri către Google → GDPR + viteză) ----------
   Bricolage Grotesque și Unbounded: SIL Open Font License 1.1. Fonturi variabile;
   subseturile latin + latin-ext acoperă toate diacriticele românești (ș ț ă â î). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #060A1C;
  --bg-2: #0A1029;
  --bg-3: #111A3D;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(160, 176, 255, .14);
  --line-2: rgba(160, 176, 255, .26);
  --white: #F5F7FF;
  --text: #C3CAE6;
  --muted: #8A92B8;
  --electric: #5B7CFF;
  --electric-deep: #2B45E0;
  --cyan: #38E1FF;
  --signal: #FFC933;
  --signal-hot: #FFD95E;
  --go: #3BE39B;
  --danger: #FF7A7A;
  --violet: #8E4DFF;
  /* gradientul din logo: cyan → violet */
  --grad: linear-gradient(120deg, #2FE6FF 0%, #6B5CFF 55%, #8E4DFF 100%);

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", var(--font);

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.35vw, 1.22rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  --fs-h1: clamp(2rem, 1.2rem + 2.4vw, 3.15rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --header-h: 72px;
  --radius: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--white); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: #9DB3FF; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(91, 124, 255, .45); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--signal); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--bg); }

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

/* ---------- Butoane ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--signal); color: #0B0E24; box-shadow: 0 0 0 0 rgba(255, 201, 51, 0), 0 10px 30px -10px rgba(255, 201, 51, .55); }
.btn-primary:hover { background: var(--signal-hot); color: #0B0E24; box-shadow: 0 0 0 6px rgba(255, 201, 51, .14), 0 14px 36px -10px rgba(255, 201, 51, .7); }
/* reflex de lumină care trece peste butonul principal la hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-accent { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(91, 124, 255, .7); }
.btn-accent:hover { color: #fff; box-shadow: 0 0 0 6px rgba(91, 124, 255, .18), 0 14px 36px -10px rgba(56, 225, 255, .6); }
.btn-ghost { border-color: var(--line-2); color: var(--white); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--white); background: rgba(56, 225, 255, .08); }
.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 28, .6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(6, 10, 28, .82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--white); }
.logo-img { display: block; height: 36px; width: auto; transition: filter .3s ease; }
.logo:hover .logo-img { filter: drop-shadow(0 0 12px rgba(142, 77, 255, .55)); }
.site-footer .logo-img { height: 44px; }
.logo-light, .logo-light:hover { color: var(--white); }

.nav-list { display: flex; align-items: center; gap: 1.75rem; }
.nav-list a:not(.btn) { position: relative; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; transition: color .2s ease; }
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-list a:not(.btn):hover { color: var(--white); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; border-radius: 12px;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px;
    transition: transform .25s ease, background-color .2s ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-list {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6, 10, 28, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-list.is-open { display: flex; animation: menu-in .3s var(--ease-out); }
  .nav-list li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-list li a:not(.btn)::after { display: none; }
  .nav-cta-item { padding-top: 1rem; }
  .nav-cta-item .btn { width: 100%; min-height: 50px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 7vw, 6rem) clamp(5rem, 10vw, 8.5rem); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; opacity: .6; will-change: transform; }
/* fără filter: blur — gradientul radial e deja moale, iar blur-ul animat e foarte scump */
.hero-glow-1 { width: 720px; height: 720px; left: -260px; top: -300px; background: radial-gradient(circle, rgba(43, 69, 224, .9) 0%, rgba(43, 69, 224, .35) 35%, transparent 68%); animation: drift 14s ease-in-out infinite alternate; }
.hero-glow-2 { width: 680px; height: 680px; right: -240px; top: 0; background: radial-gradient(circle, rgba(56, 225, 255, .45) 0%, rgba(56, 225, 255, .15) 35%, transparent 68%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* „Autostrada”: un plan în perspectivă, cu grilă care curge și dâre de lumină */
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  perspective: 520px; perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%);
          mask-image: linear-gradient(to top, #000 15%, transparent 95%);
}
.road-plane {
  position: absolute; left: -50%; right: -50%; top: 0; height: 200%;
  transform: rotateX(68deg); transform-origin: 50% 0%;
  background-image:
    linear-gradient(to right, rgba(91, 124, 255, .32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 124, 255, .32) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: road-move 3s linear infinite;
}
@keyframes road-move { to { background-position: 0 80px; } }
.trail {
  position: absolute; left: var(--x); top: -30%; width: 3px; height: 22%;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, rgba(91, 124, 255, .95));
  box-shadow: 0 0 14px 2px rgba(91, 124, 255, .7);
  animation: trail var(--d) linear infinite; animation-delay: var(--delay);
}
.trail-y { background: linear-gradient(to bottom, transparent, rgba(255, 201, 51, .95)); box-shadow: 0 0 14px 2px rgba(255, 201, 51, .6); }
.trail-c { background: linear-gradient(to bottom, transparent, rgba(56, 225, 255, .95)); box-shadow: 0 0 14px 2px rgba(56, 225, 255, .6); }
@keyframes trail { to { transform: translateY(560%); } }

.hero-grid { display: grid; gap: clamp(3.5rem, 7vw, 5rem); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .7rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--glass);
  color: var(--text); font-size: var(--fs-sm); font-weight: 500;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--go); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--go); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.hero h1 {
  font-size: var(--fs-h1); line-height: 1.1; max-width: 20ch;
  background: linear-gradient(180deg, #FFFFFF 30%, #B9C6FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 1.5rem; font-size: var(--fs-lg); max-width: 58ch; }
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--muted); }
.hero-proof li { display: flex; align-items: center; gap: .5rem; }
.hero-proof li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgba(59, 227, 155, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233BE39B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.2 2.2 4.8-5.2'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Intrarea orchestrată a hero-ului (o singură secvență la încărcare) */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise 1.1s .2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Dashboard */
.hero-visual { position: relative; perspective: 1200px; }
.dash {
  position: relative;
  background: linear-gradient(160deg, rgba(23, 33, 82, .92), rgba(10, 16, 41, .92));
  border-radius: 24px;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 80px -20px rgba(91, 124, 255, .45);
  color: #fff;
  padding-bottom: 1.15rem;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
/* chenar cu gradient animat */
.dash::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--cyan) 80%, var(--electric) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --angle: 360deg; } }

.dash-top { display: flex; align-items: center; gap: .4rem; padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.dash-url { margin-left: .75rem; font-size: .78rem; color: var(--muted); }
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: var(--go); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--go); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.15rem 1.15rem 0; }
.dash-speed, .dash-metric, .dash-events { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 1rem; }
.dash-label { display: block; font-size: .78rem; color: var(--muted); }
.dash-num { display: block; font-family: var(--font-display); font-size: 1.65rem; font-weight: 650; line-height: 1.15; margin-top: .25rem; letter-spacing: -0.03em; }
.dash-sub { display: block; font-size: .74rem; color: var(--muted); margin-top: .35rem; }

.dash-speed { position: relative; display: grid; place-items: center; grid-row: span 2; }
.gauge { width: 118px; height: 118px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge-track { stroke: rgba(255,255,255,.08); }
.gauge-fill { stroke: url(#g-gauge); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 6.3; filter: drop-shadow(0 0 6px rgba(56, 225, 255, .6)); animation: gauge-in 1.8s .5s var(--ease-out) both; }
@keyframes gauge-in { from { stroke-dashoffset: 314; } }
.gauge-value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-value b { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; font-weight: 650; }
.gauge-value span { font-size: .7rem; color: var(--muted); margin-top: .2rem; }

.spark { width: 100%; height: 46px; margin-top: .5rem; overflow: visible; }
.spark path { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(56, 225, 255, .7)); animation: draw 2s .6s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: .5rem; }
.bars i { flex: 1; height: var(--h); background: rgba(91, 124, 255, .45); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: bar-up 1s var(--ease-out) both; }
.bars i:nth-child(2) { animation-delay: .65s; } .bars i:nth-child(3) { animation-delay: .7s; } .bars i:nth-child(4) { animation-delay: .75s; }
.bars i:nth-child(5) { animation-delay: .8s; } .bars i:nth-child(6) { animation-delay: .85s; }
.bars i:first-child { animation-delay: .6s; }
.bars i:last-child { background: var(--signal); box-shadow: 0 0 12px rgba(255, 201, 51, .55); }
@keyframes bar-up { from { transform: scaleY(0); } }

.dash-events { grid-column: 1 / -1; }
.event-log { margin-top: .6rem; display: grid; gap: .4rem; min-height: 7.4rem; }
.event-log li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .45rem .7rem; border-radius: 8px; background: rgba(255,255,255,.04);
  font-size: .8rem;
}
.event-log code { font-family: inherit; font-weight: 600; color: var(--signal); }
.event-log span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-log li.is-new { animation: event-in .6s var(--ease-out) both; }
@keyframes event-in {
  from { opacity: 0; transform: translateY(-8px); background: rgba(255, 201, 51, .22); }
  to { opacity: 1; transform: none; background: rgba(255,255,255,.04); }
}

/* „Chip”-uri care plutesc lângă dashboard */
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem; border-radius: 14px;
  background: rgba(17, 26, 61, .82); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); color: var(--white);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--signal); font-family: var(--font-display); }
.float-chip-a { left: -28px; top: 18%; }
.float-chip-b { right: -18px; bottom: -22px; animation-delay: -3s; }
.dot-go { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 10px var(--go); }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 1100px) { .float-chip-a { left: -8px; } .float-chip-b { right: 0; } }
@media (max-width: 460px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-speed { grid-row: auto; }
  /* pe telefon etichetele plutitoare rămân, dar mai mici și lipite de colțurile dashboard-ului */
  .float-chip { font-size: .74rem; padding: .45rem .7rem; border-radius: 11px; }
  .float-chip-a { left: 10px; top: -18px; }
  .float-chip-b { right: 10px; bottom: -18px; }
  .hud-coords { bottom: -46px; }
}

/* ==========================================================================
   BANDĂ TEHNOLOGII
   ========================================================================== */
.tech { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); padding-block: 1.35rem; }
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 3rem; padding-right: 3rem; animation: marquee 40s linear infinite; }
.marquee-track li { display: flex; align-items: center; gap: 3rem; white-space: nowrap; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--muted); }
.marquee-track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 8px var(--electric); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ==========================================================================
   SECȚIUNI GENERICE
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section-head { max-width: 700px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1rem; font-size: var(--fs-lg); }

/* Apariție la derulare — clasa .reveal e adăugată de JS, deci fără JS totul e vizibil */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   SERVICII — BENTO
   ========================================================================== */
.services::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, rgba(43, 69, 224, .18), transparent 70%);
}
.bento { display: grid; gap: 1rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-wide { grid-column: 1 / -1; } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-wide { grid-column: span 2; }
}

.bento-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
/* lumină care urmărește cursorul */
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 124, 255, .18), transparent 60%);
}
.bento-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.bento-card:hover::before { opacity: 1; }
@media (min-width: 1080px) { .bento-wide { flex-direction: row; } .bento-wide .illo { flex: 1.1; min-height: 100%; } .bento-wide .bento-text { flex: 1; align-self: center; } }

.bento-text { padding: 1.5rem 1.6rem 1.75rem; }
.bento-text h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.bento-text p { font-size: .96rem; }
.bento-text strong { color: var(--white); font-weight: 600; }
.bento-gain { margin-top: .9rem; padding-left: .9rem; border-left: 2px solid var(--signal); color: var(--white); font-weight: 550; }

.illo { position: relative; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 100%, rgba(43, 69, 224, .22), transparent 70%); }
.bento-wide .illo { height: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--line); }
@media (max-width: 1079px) { .bento-wide .illo { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); } }

/* animațiile din ilustrații rulează doar când cardul e pe ecran */
.bento-card:not(.in-view) .illo *, .bento-card:not(.in-view) .illo *::before, .bento-card:not(.in-view) .illo *::after,
.showcase-item:not(.in-view) .site { animation-play-state: paused !important; }

/* — Site care se construiește — */
.mini-browser { position: absolute; left: 50%; top: 50%; width: min(86%, 440px); transform: translate(-50%, -46%); border-radius: 12px; background: #0D1433; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; }
.mb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mb-bar span { flex: 1; height: 9px; margin-left: 8px; border-radius: 5px; background: rgba(255,255,255,.07); }
.mb-page { padding: 12px; display: grid; gap: 10px; }
.mb-page > *, .mb-hero > *, .mb-cards > * { animation: build 6s var(--ease-out) infinite; }
.mb-nav { height: 10px; width: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.18) 18%, transparent 18% 62%, rgba(255,255,255,.1) 62%); animation-delay: 0s; }
.mb-hero { display: grid; gap: 6px; padding: 14px; border-radius: 8px; background: linear-gradient(120deg, rgba(91,124,255,.35), rgba(56,225,255,.18)); }
.mb-hero span { height: 9px; border-radius: 4px; background: rgba(255,255,255,.75); width: 70%; animation-delay: .5s !important; }
.mb-hero span + span { width: 48%; background: rgba(255,255,255,.4); animation-delay: .7s !important; }
.mb-hero em { width: 64px; height: 16px; margin-top: 4px; border-radius: 8px; background: var(--signal); animation-delay: .95s !important; }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mb-cards i { height: 44px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.mb-cards i:nth-child(1) { animation-delay: 1.2s !important; } .mb-cards i:nth-child(2) { animation-delay: 1.35s !important; } .mb-cards i:nth-child(3) { animation-delay: 1.5s !important; }
@keyframes build {
  0% { opacity: 0; transform: translateY(8px) scale(.97); }
  10%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
.mb-cursor {
  position: absolute; width: 16px; height: 16px; left: 70%; top: 85%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 1l11 6-5 1.5L6 14z' fill='%23fff' stroke='%23060A1C' stroke-width='1'/%3E%3C/svg%3E") no-repeat;
  animation: cursor 6s var(--ease-out) infinite;
}
@keyframes cursor {
  0%, 15% { transform: translate(0, 0); opacity: 0; }
  25% { opacity: 1; }
  45%, 55% { transform: translate(-190px, -60px); }
  50% { transform: translate(-190px, -60px) scale(.8); }
  85% { opacity: 1; } 100% { transform: translate(-190px, -60px); opacity: 0; }
}

/* — SERP: urci pe locul 1 — */
.illo-seo { display: grid; align-content: center; gap: 12px; padding: 0 1.4rem; }
.serp-search { display: flex; align-items: center; height: 38px; padding: 0 14px 0 38px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); position: relative; font-size: .85rem; color: var(--white); }
.serp-search::before { content: ""; position: absolute; left: 14px; width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; }
.serp-typed { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--cyan); width: 21ch; animation: typing 6s steps(21) infinite, caret .7s step-end infinite; }
@keyframes typing { 0% { width: 0; } 30%, 100% { width: 21ch; } }
@keyframes caret { 50% { border-color: transparent; } }
.serp-results { position: relative; height: 102px; }
.serp-results li { position: absolute; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.serp-results li b { width: 30%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); font-size: 0; }
.serp-results li i { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
.serp-results li:nth-child(2) { animation: serp-down-1 6s var(--ease-out) infinite; }
.serp-results li:nth-child(3) { animation: serp-down-2 6s var(--ease-out) infinite; }
.serp-results li.serp-you { z-index: 1; border-color: rgba(255, 201, 51, .55); background: rgba(255, 201, 51, .1); box-shadow: 0 0 20px -6px rgba(255, 201, 51, .6); animation: serp-up 6s var(--ease-out) infinite; }
.serp-you b { width: auto !important; height: auto !important; background: none !important; font-size: .78rem !important; color: var(--signal); font-weight: 700; }
@keyframes serp-up { 0%, 35% { top: 72px; } 60%, 100% { top: 0; } }
@keyframes serp-down-1 { 0%, 35% { top: 0; } 60%, 100% { top: 36px; } }
@keyframes serp-down-2 { 0%, 35% { top: 36px; } 60%, 100% { top: 72px; } }

/* — Grafic care se desenează — */
.illo-chart { padding: 1.4rem 1.4rem 0; }
.illo-chart svg { width: 100%; height: 150px; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#g-area); animation: fade-loop 5s ease-in-out infinite; }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; filter: drop-shadow(0 0 6px rgba(56, 225, 255, .7)); animation: draw-loop 5s var(--ease-out) infinite; }
@keyframes draw-loop { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes fade-loop { 0%, 20% { opacity: 0; } 50%, 100% { opacity: 1; } }
.chart-tag { position: absolute; right: 1.2rem; top: 1rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(59, 227, 155, .12); border: 1px solid rgba(59, 227, 155, .35); color: var(--go); font-size: .75rem; font-weight: 600; }

/* — Țintă Google Ads — */
.illo-target { display: grid; place-items: center; }
.target { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.target i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(91, 124, 255, .55); animation: ripple 3s var(--ease-out) infinite; }
.target i:nth-child(2) { animation-delay: 1s; } .target i:nth-child(3) { animation-delay: 2s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.target-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 6px rgba(255, 201, 51, .2), 0 0 24px rgba(255, 201, 51, .8); }
.target-tag { position: absolute; left: 1.2rem; top: 1rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(255, 201, 51, .1); border: 1px solid rgba(255, 201, 51, .35); color: var(--signal); font-size: .75rem; font-weight: 600; }

/* — Feed Meta — */
.illo-feed { display: grid; place-items: center; padding-top: 1.4rem; align-items: start; }
.phone-mini { width: 128px; height: 220px; border-radius: 20px; border: 2px solid var(--line-2); background: #0D1433; padding: 10px 8px; overflow: hidden; box-shadow: 0 0 40px -10px rgba(91, 124, 255, .5); }
.feed { display: grid; gap: 8px; animation: feed 9s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.post { display: grid; gap: 5px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.05); }
.post i { height: 46px; border-radius: 5px; background: rgba(255,255,255,.08); }
.post b { height: 5px; width: 70%; border-radius: 3px; background: rgba(255,255,255,.15); }
.post-ad { border: 1px solid rgba(56, 225, 255, .45); }
.post-ad i { background: linear-gradient(120deg, rgba(91,124,255,.6), rgba(56,225,255,.4)); }
.post-ad em { font-style: normal; font-size: .58rem; font-weight: 700; text-align: center; padding: 3px; border-radius: 4px; background: var(--signal); color: #0B0E24; }

/* ==========================================================================
   CE CONSTRUIM — dispozitive
   ========================================================================== */
.showcase { background: linear-gradient(180deg, transparent, rgba(43, 69, 224, .07) 50%, transparent); }
.showcase-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .showcase-grid { grid-template-columns: 1.35fr .75fr 1fr; align-items: end; gap: 2rem; } }
.showcase-item h3 { font-size: var(--fs-h3); margin-top: 1.75rem; }
.showcase-item p { margin-top: .5rem; font-size: .96rem; }

/* — Proiecte realizate — */
.work { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.work-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--white); margin-bottom: 1.5rem; }
.work-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.work-card { display: grid; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); overflow: hidden; transition: border-color .3s, transform .5s var(--ease-out); }
.work-card:hover, .work-card:focus-visible { border-color: var(--line-2); transform: translateY(-4px); }
@media (min-width: 900px) { .work-card { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.work-shot { background: var(--bg-3); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .work-shot { border-bottom: 0; border-right: 1px solid var(--line); } }
.work-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; }
.work-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.work-bar span { margin-left: 8px; font-size: .75rem; color: var(--muted); }
.work-shot img { display: block; width: 100%; height: auto; }
.work-body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.work-tag { font-size: var(--fs-sm); color: var(--cyan); }
.work-body h4 { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--white); margin-top: .4rem; }
.work-body p { margin-top: .6rem; font-size: .96rem; }
.work-link { display: inline-block; margin-top: 1.1rem; font-weight: 600; color: var(--signal); }

.device { position: relative; margin-inline: auto; transition: transform .5s var(--ease-out); }
.showcase-item:hover .device { transform: translateY(-8px); }
.screen { position: relative; overflow: hidden; background: #fff; }
.device-laptop .screen { aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; border: 10px solid #1A2350; border-bottom-width: 14px; }
.laptop-base { height: 12px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#2A3570, #141B45); box-shadow: 0 24px 40px -20px rgba(0,0,0,.8); }
.device-phone { max-width: 210px; }
.device-phone .screen { aspect-ratio: 9 / 18.5; border-radius: 30px; border: 9px solid #1A2350; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 60px -20px rgba(56, 225, 255, .4); }
.device-phone .screen::before { content: ""; position: absolute; z-index: 2; top: 6px; left: 50%; width: 32%; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #1A2350; }
.device-tablet { max-width: 340px; }
.device-tablet .screen { aspect-ratio: 3 / 4; border-radius: 20px; border: 11px solid #1A2350; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.device-laptop .screen { box-shadow: 0 0 80px -20px rgba(91, 124, 255, .45); }

/* paginile din ecrane: derulează singure */
.site { display: grid; gap: 7%; padding: 5%; animation: site-scroll 12s ease-in-out infinite; }
@keyframes site-scroll { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(-48%); } 100% { transform: translateY(0); } }
.site > * { border-radius: 6px; }
.s-nav { height: 10px; background: linear-gradient(90deg, var(--c1) 16%, transparent 16% 60%, #E3E6EF 60%); }
.s-hero { display: grid; gap: 6px; padding: 9% 7%; background: var(--c-hero); }
.s-hero span { height: 9px; width: 75%; border-radius: 4px; background: rgba(255,255,255,.95); }
.s-hero span + span { width: 50%; background: rgba(255,255,255,.6); }
.s-hero em { width: 34%; height: 15px; margin-top: 4px; border-radius: 8px; background: var(--c-cta); }
.s-img { aspect-ratio: 16 / 8; background: var(--c-img); }
.s-img-2 { background: var(--c-img-2); }
.s-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.s-row i { aspect-ratio: 1 / .8; border-radius: 5px; background: #EEF0F7; border: 1px solid #E1E4EF; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-grid i { aspect-ratio: 1 / 1.25; border-radius: 6px; background: var(--c-img); box-shadow: inset 0 -22px 0 #F1F2F7; }
.s-cta { height: 26px; border-radius: 13px !important; background: var(--c-cta); }
.s-form { display: grid; gap: 6px; padding: 7%; background: #F3F4FA; }
.s-form i { height: 14px; border-radius: 4px; background: #fff; border: 1px solid #DDE1EC; }
.s-form em { height: 18px; border-radius: 9px; background: var(--c-cta); }
.s-foot { height: 40px; background: #1B1F33; }
/* trei „clienți” imaginari, fiecare cu altă identitate */
.site-a { --c1: #0E7C86; --c-hero: linear-gradient(120deg, #0E7C86, #2BB5A8); --c-cta: #FFB547; --c-img: linear-gradient(135deg, #BDE7E2, #7CCFC4); --c-img-2: linear-gradient(135deg, #FFE1B5, #FFB547); }
.site-b { --c1: #E0457B; --c-cta: #E0457B; --c-img: linear-gradient(135deg, #FFD3E2, #F59BB9); padding-top: 18%; }
.site-c { --c1: #FF6A2B; --c-hero: linear-gradient(120deg, #1D2340, #3A4170); --c-cta: #FF6A2B; }

/* ==========================================================================
   PROCES
   ========================================================================== */
.steps { display: grid; gap: 2.5rem; position: relative; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps::before, .steps::after {
    content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; border-radius: 2px;
  }
  .steps::before { background: var(--line); }
  /* linia se „încarcă” când secțiunea intră pe ecran */
  .steps::after { background: var(--grad); box-shadow: 0 0 12px rgba(56, 225, 255, .6); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .2s; }
  .steps.is-visible::after { transform: scaleX(1); }
}
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--white); font-family: var(--font-display); font-weight: 650; font-size: 1.2rem;
  margin-bottom: 1.4rem;
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, color .4s ease;
}
.steps.is-visible .step-num { border-color: var(--electric); box-shadow: 0 0 0 6px rgba(91, 124, 255, .12), 0 0 24px rgba(91, 124, 255, .45); }
.steps.is-visible .step:nth-child(1) .step-num { transition-delay: .2s; }
.steps.is-visible .step:nth-child(2) .step-num { transition-delay: .7s; }
.steps.is-visible .step:nth-child(3) .step-num { transition-delay: 1.2s; }
.steps.is-visible .step:nth-child(4) .step-num { transition-delay: 1.7s; background: var(--signal); border-color: var(--signal); color: #0B0E24; box-shadow: 0 0 0 6px rgba(255, 201, 51, .15), 0 0 28px rgba(255, 201, 51, .55); }
.step h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.step p { font-size: .97rem; }

/* ==========================================================================
   DE CE TRAFIKO
   ========================================================================== */
.why { overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 0% 50%, rgba(43, 69, 224, .28), transparent 70%),
    linear-gradient(to right, rgba(160, 176, 255, .06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(160, 176, 255, .06) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.why-grid { display: grid; gap: 3rem; }
@media (min-width: 980px) { .why-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: start; } }
.why-head { margin-bottom: 0; }
.why-head .btn { margin-top: 2rem; }
@media (min-width: 980px) { .why-head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.why-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-list li {
  padding: 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
.why-list li:hover { border-color: var(--line-2); transform: translateY(-4px); }
.why-list li::before {
  content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1.1rem; border-radius: 12px;
  background: rgba(91, 124, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid rgba(91, 124, 255, .35);
}
.why-list h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.why-list p { font-size: .95rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 1rem; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); transition: border-color .3s ease, background-color .3s ease; }
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { border-color: rgba(91, 124, 255, .5); background: rgba(91, 124, 255, .07); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 1.35rem; cursor: pointer; list-style: none; border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-family: var(--font); font-size: 1.07rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.4; }
.faq-item summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F7FF' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .3s var(--ease-out), background-color .3s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--electric); }
.faq-answer { padding: 0 1.35rem 1.35rem; max-width: 68ch; }
.faq-item[open] .faq-answer { animation: rise .5s var(--ease-out); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 40%, rgba(56, 225, 255, .12), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(43, 69, 224, .2), transparent 70%);
}
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; } }
.contact-intro h2 { font-size: var(--fs-h2); }
.contact-intro > p { margin-top: 1rem; font-size: var(--fs-lg); max-width: 46ch; }
.contact-direct { margin-top: 2.5rem; display: grid; gap: .6rem; }
.contact-direct li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .85rem 1rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.contact-direct span { font-size: var(--fs-sm); color: var(--muted); }
.contact-direct a { font-weight: 600; color: var(--white); }
.contact-direct a:hover { color: var(--cyan); }

.lead-form {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 33, 82, .75), rgba(10, 16, 41, .75));
  backdrop-filter: blur(12px);
  border-radius: 24px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 80px -30px rgba(91, 124, 255, .5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: 1.35rem;
}
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--white); font-size: .97rem; padding: 0; }
.field legend { margin-bottom: .6rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(6, 10, 28, .6); color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: #6E76A0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(6, 10, 28, .85); box-shadow: 0 0 0 4px rgba(56, 225, 255, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { font-size: var(--fs-sm); color: var(--muted); }
.field-error { font-size: var(--fs-sm); color: var(--danger); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; z-index: 1; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--white);
  background: rgba(255,255,255,.03);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); flex: none; transition: background-color .2s ease, border-color .2s ease; }
.chip input:checked + span { background: rgba(91, 124, 255, .22); border-color: var(--electric); box-shadow: 0 0 16px -4px rgba(91, 124, 255, .7); }
.chip input:checked + span::before {
  border-color: var(--signal); background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B0E24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.chip:hover span { border-color: var(--electric); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.15rem; border-radius: 12px; font-weight: 550; }
.form-status.is-success { background: rgba(59, 227, 155, .12); border: 1px solid rgba(59, 227, 155, .4); color: #8BF5C6; }
.form-status.is-error { background: rgba(255, 122, 122, .1); border: 1px solid rgba(255, 122, 122, .4); color: #FFB0B0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; background: #040716; color: var(--muted); padding-top: clamp(3.5rem, 6vw, 5rem); font-size: .96rem; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--electric), var(--cyan), transparent); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 3rem; } }
.footer-brand p { margin-top: 1rem; max-width: 40ch; }
.footer-title { font-family: var(--font); font-size: 1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.social { display: flex !important; gap: .6rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out); }
.social a:hover { background: rgba(91, 124, 255, .2); border-color: var(--electric); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); }

/* ==========================================================================
   PAGINI LEGALE + 404
   ========================================================================== */
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }
.legal-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 260px 1fr; gap: 5rem; align-items: start; } }
.legal-head { margin-bottom: 3rem; max-width: 760px; }
.legal-head h1 { font-size: var(--fs-h2); }
.legal-meta { margin-top: 1rem; color: var(--muted); font-size: var(--fs-sm); }
.legal-head .lead { margin-top: 1.25rem; font-size: var(--fs-lg); }
.legal-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.legal-toc { font-size: .95rem; padding: 1.25rem 1.35rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
@media (min-width: 1000px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 2rem); } }
.legal-toc h2 { font-family: var(--font); font-size: 1rem; margin-bottom: .85rem; letter-spacing: 0; }
.legal-toc ol { display: grid; gap: .45rem; list-style: decimal; padding-left: 1.75rem; color: var(--muted); }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--cyan); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body section { padding-top: 2.25rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body section:first-child { padding-top: 0; }
.legal-body h2 { font-family: var(--font); font-size: var(--fs-h3); letter-spacing: -0.01em; margin-bottom: .85rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body .table-scroll + p { margin-top: .85rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; }
.legal-body ul + ul { margin-top: .85rem; }
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body code { font-size: .88em; color: var(--signal); }
.table-scroll { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body th { background: rgba(255,255,255,.05); color: var(--white); font-weight: 600; }
.legal-note { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 3px solid var(--signal); background: var(--glass); border-radius: 0 10px 10px 0; }

/* ==========================================================================
   BANNER COOKIES + DIALOG
   ========================================================================== */
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.link-btn:hover { color: var(--cyan); text-decoration: underline; }

.cc-banner {
  position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 1100px; margin-inline: auto;
  background: rgba(13, 20, 51, .94); backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(91, 124, 255, .6);
  padding: 1.25rem 1.5rem;
  animation: cc-in .5s var(--ease-out) both;
}
.cc-banner[hidden] { display: none; }
@keyframes cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cc-inner { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .cc-inner { grid-template-columns: 1fr auto; gap: 2rem; } }
.cc-title { font-family: var(--font); font-size: 1.1rem; margin-bottom: .3rem; letter-spacing: -0.01em; }
.cc-text p { font-size: .93rem; max-width: 70ch; }
.cc-actions, .cc-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-btn { min-height: 46px; padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 560px) {
  .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; }
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions [data-cc="accept"] { grid-column: 1 / -1; grid-row: 1; }
}

.cc-dialog {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line-2); border-radius: 20px; color: var(--text);
  background: #0D1433;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.cc-dialog::backdrop { background: rgba(3, 5, 15, .7); backdrop-filter: blur(4px); }
.cc-dialog-body { padding: clamp(1.25rem, 4vw, 2rem); }
.cc-dialog-body > h2 { font-family: var(--font); font-size: 1.5rem; }
.cc-dialog-lead { margin-top: .5rem; font-size: .95rem; }
.cc-cats { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.cc-cat { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.cc-cat h3 { font-size: 1.05rem; }
.cc-cat p { font-size: .9rem; color: var(--muted); }
.cc-always { font-size: .85rem; font-weight: 600; color: var(--go); }
.cc-dialog-actions .btn { flex: 1 1 auto; }

.cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: background-color .2s ease; }
.cc-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s var(--ease-out);
}
.cc-switch input:checked + span { background: var(--electric); box-shadow: 0 0 14px rgba(91, 124, 255, .6); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ==========================================================================
   MIȘCARE REDUSĂ — totul static, conținutul rămâne vizibil
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .trail { display: none; }
  .dash { transform: none !important; }
}

/* poziții de bază pentru SERP (valabile și fără animație) */
.serp-results li.serp-you { top: 0; }
.serp-results li:nth-child(2) { top: 36px; }
.serp-results li:nth-child(3) { top: 72px; }

/* iconițe diferite pentru fiecare avantaj */
.why-list li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.why-list li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.why-list li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E"); }
.why-list li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338E1FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M21.5 20a6.5 6.5 0 0 0-4-6'/%3E%3C/svg%3E"); }

/* ==========================================================================
   STRAT „FUTURIST” — rețea, HUD, scanare, zgomot, lumină cursor
   ========================================================================== */

/* textură fină de zgomot peste tot site-ul (dă profunzime fundalului întunecat) */
body::after {
  /* fără mix-blend-mode: amestecarea pe tot ecranul la fiecare cadru costa ~30% din fps */
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* lumina care urmărește cursorul */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(91, 124, 255, .13) 0%, rgba(56, 225, 255, .05) 35%, transparent 65%);
  opacity: 0; transition: opacity .4s ease; will-change: transform;
}
main, .site-footer { position: relative; z-index: 1; }

/* rețeaua de noduri din hero */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
/* linii fine de scanare peste hero */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
}

/* linie luminoasă sub header, care „curge” */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--electric), transparent) 0 0 / 40% 100% no-repeat;
  opacity: 0; transition: opacity .3s ease;
  animation: header-flow 6s linear infinite;
}
.site-header.is-scrolled::after { opacity: .8; }
@keyframes header-flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ramă HUD: colțuri luminoase care se strâng la hover */
.dash::after, .bento-card::after, .lead-form::after {
  --c: rgba(56, 225, 255, .85); --l: 16px; --t: 1.5px;
  content: ""; position: absolute; inset: 10px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: .35; transition: inset .5s var(--ease-out), opacity .4s ease;
  filter: drop-shadow(0 0 4px rgba(56, 225, 255, .8));
}
.dash:hover::after, .bento-card:hover::after, .lead-form:focus-within::after { inset: 4px; opacity: 1; }
.dash::after { inset: -8px; opacity: .7; }
.dash:hover::after { inset: -4px; }

/* linie de scanare care trece peste dashboard */
.dash-body { position: relative; }
.dash-body::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(56, 225, 255, .1) 70%, rgba(56, 225, 255, .5) 98%, transparent);
  animation: scan 5.5s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes scan { 0% { transform: translateY(-70px); opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(460px); opacity: 0; } }

/* coordonate HUD sub dashboard */
.hud-coords {
  position: absolute; left: 4px; bottom: -34px;
  font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hud-coords span { color: var(--cyan); margin-right: .5rem; }
.hud-coords::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: .6rem; vertical-align: middle; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

/* aberație cromatică discretă pe titlurile de secțiune */
.section-head h2, .contact-intro h2 { text-shadow: -1.5px 0 rgba(56, 225, 255, .35), 1.5px 0 rgba(255, 70, 160, .22); }

/* butoanele magnetice revin lin */
.hero .btn, .why .btn, .header-inner .btn-primary { transition: transform .35s var(--ease-out), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }

/* bandă tehnologii: neon la hover */
.marquee-track li { transition: color .2s ease, text-shadow .2s ease; }
.marquee-track li:hover { color: var(--white); text-shadow: 0 0 12px rgba(56, 225, 255, .8); }

/* chenar cu gradient care se rotește, și pe cardurile de servicii la hover */
.bento-card .illo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 100% 20px,
              linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 20px 100%;
}

@media (prefers-reduced-motion: reduce) {
  .dash-body::after, .site-header::after { display: none; }
}


/* ==========================================================================
   ECHIVALENTE PE TELEFON (ecran tactil, fără hover)
   ========================================================================== */
@property --rx { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --ry { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --mx { syntax: "<length-percentage>"; initial-value: 50%; inherits: true; }
@property --my { syntax: "<length-percentage>"; initial-value: 50%; inherits: true; }

/* dashboard: legănare lentă în 3D când nu avem giroscop */
.dash.dash-sway { animation: dash-sway 9s ease-in-out infinite; }
@keyframes dash-sway {
  0%, 100% { --rx: 4deg; --ry: -6deg; }
  25% { --rx: -2deg; --ry: 5deg; }
  50% { --rx: -5deg; --ry: -2deg; }
  75% { --rx: 3deg; --ry: 6deg; }
}

/* lumina de sub deget: mai mică decât cea de cursor */
.cursor-glow.is-touch { width: 400px; height: 400px; transition: opacity .5s ease; }

/* undă de lumină la apăsarea butoanelor */
.btn-ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,.15) 40%, transparent 70%);
  transform: scale(0); animation: ripple-out .65s var(--ease-out) forwards;
}
.btn-ghost .btn-ripple { background: radial-gradient(circle, rgba(56,225,255,.45) 0%, rgba(56,225,255,.1) 40%, transparent 70%); }
@keyframes ripple-out { to { transform: scale(1); opacity: 0; } }

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  /* carduri servicii: lumina trece singură peste card cât e pe ecran */
  .bento-card.in-view::before { opacity: 1; animation: card-sweep 7s ease-in-out infinite; }
  @keyframes card-sweep {
    0%, 100% { --mx: 10%; --my: 15%; }
    50% { --mx: 90%; --my: 85%; }
  }
  /* rama HUD se strânge când cardul / dashboard-ul / formularul intră pe ecran */
  .bento-card.in-view::after { inset: 4px; opacity: 1; transition-delay: .35s; }
  .bento-card.in-view { border-color: var(--line-2); }
  .dash::after { animation: hud-lock 1.2s .9s var(--ease-out) both; }
  @keyframes hud-lock { from { inset: -16px; opacity: 0; } to { inset: -4px; opacity: 1; } }
  .lead-form.is-visible::after { inset: 4px; opacity: 1; transition-delay: .5s; }
  /* dispozitivele din „Ce construim” plutesc ușor cât sunt pe ecran */
  .showcase-item.in-view .device { animation: float 6s ease-in-out infinite; }
  .showcase-item.in-view:nth-child(2) .device { animation-delay: -2s; }
  .showcase-item.in-view:nth-child(3) .device { animation-delay: -4s; }
  /* avantajele: iconița „pulsează” scurt când apare cardul */
  .why-list li.is-visible::before { animation: icon-pop .8s .3s var(--ease-out) both; }
  @keyframes icon-pop { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(56,225,255,.6); } 60% { transform: scale(1.08); } 100% { transform: none; box-shadow: 0 0 0 14px rgba(56,225,255,0); } }
}

/* elementele din grilă nu se lățesc după conținut (tabelele lungi derulează în .table-scroll,
   în loc să împingă toată pagina în afara ecranului pe mobil) */
.legal-grid > *, .faq-grid > *, .contact-grid > *, .why-grid > *, .hero-grid > * { min-width: 0; }

/* adresele de email lungi se pot rupe pe ecranele foarte înguste, în loc să lățească pagina */
.contact-direct a, .site-footer address a { overflow-wrap: anywhere; }
@media (max-width: 380px) { .contact-direct li { grid-template-columns: 5rem minmax(0, 1fr); gap: .75rem; } }
/* pe ecrane înguste laptopul e puțin mai mic, ca baza lui (mai lată decât ecranul) să încapă în pagină */
@media (max-width: 899px) { .device-laptop { max-width: 86%; } }
.showcase { overflow-x: clip; }

/* cuvinte cu cratimă care nu trebuie rupte pe două rânduri (ex. „site-uri” în titluri) */
.nw { white-space: nowrap; }
