/* Senticia landing (faza 14, planul 14-15): limbajul vizual al site-ului vechi
   (ref-site-vechi/style.css), îmbunătățit. Se încarcă după tokens.css și base.css,
   pe care nu le modifică. Mobile first: 480px, 640px, 768px, 880px, 1024px.
   Mișcare: animațiile modifică doar transform și opacity; tranzițiile au proprietăți
   numite. Fără JS totul e vizibil: starea ascunsă de la apariția la scroll există doar
   sub clasa .l-motion, pusă de js/landing-motion.js. Blocul reduced motion de
   la final, împreună cu cel din base.css, oprește tot. */

/* ------------------------------------------------------------ variabile */

:root {
  /* Capetele gradientului butonului primar: text alb cu contrast >= 4,5:1 la ambele. */
  --l-btn-from: #4f5bea;
  --l-btn-to: #8b3fe0;
  --l-glow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent);
  --l-glow-hover: 0 8px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  --l-radius-lg: 20px;
  --l-radius-xl: 32px;
  --l-orange: #f97316;
  --l-yellow: #eab308;
  --l-blue: #3b82f6;
  --l-teal: #14b8a6;
  --l-sky: #0ea5e9;
  --l-violet-light: #c084fc;
  --l-grad-light: linear-gradient(135deg, #a5b0ff, #c99bfb);
  --l-edge: rgba(255, 255, 255, 0.05);
  --l-edge-strong: rgba(255, 255, 255, 0.1);
}

html {
  scroll-padding-top: 88px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

textarea {
  font: inherit;
}

textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Sprite-ul SVG: ascuns fără display:none, ca simbolurile să rămână referibile. */
.l-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.l-shell {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

/* ------------------------------------------------------------ fond */

/* Câmpul de stele: două pseudo-elemente fixe, fără imagini și fără JS, deci și pe
   paginile legale. ::before are stele mici și dese, ::after stele rare și mai mari,
   care urcă foarte lent. Doar opacity și transform. */
body {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -5vh 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 23% 64%, rgba(124, 138, 255, 0.8), transparent),
    radial-gradient(1px 1px at 37% 28%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 52% 83%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 61% 41%, rgba(168, 85, 247, 0.7), transparent),
    radial-gradient(1px 1px at 74% 9%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 86% 57%, rgba(124, 138, 255, 0.7), transparent),
    radial-gradient(1px 1px at 93% 31%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 15% 92%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 44% 5%, rgba(124, 138, 255, 0.6), transparent);
  background-size: 420px 420px;
  opacity: 0.35;
  animation: l-twinkle 6s ease-in-out infinite alternate;
}

body::after {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 38%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 34% 76%, rgba(124, 138, 255, 0.9), transparent),
    radial-gradient(2px 2px at 58% 18%, rgba(168, 85, 247, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 71% 66%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 89% 44%, rgba(124, 138, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 47% 52%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 4% 81%, rgba(168, 85, 247, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 96% 7%, rgba(255, 255, 255, 0.7), transparent);
  background-size: 760px 760px;
  opacity: 0.35;
  animation: l-twinkle 9s ease-in-out infinite alternate, l-drift 60s linear infinite alternate;
}

@keyframes l-twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.8; }
}

@keyframes l-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-3vh); }
}

@keyframes l-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ------------------------------------------------------------ header și meniu */

.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--l-edge);
}

.l-header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.l-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.l-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand-wordmark {
  width: 86px;
  height: 24px;
  color: var(--text);
}

.l-nav {
  display: none;
}

.l-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

/* Butonul din header e vizibil și pe telefon (ca pe site-ul vechi), compact sub 560px. */
.l-header .l-header-cta {
  display: inline-flex;
  margin-left: auto;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.l-menu {
  margin-left: 0;
}

@media (max-width: 559.98px) {
  .l-header-in {
    gap: 10px;
  }
}

.l-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--l-edge-strong);
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
}

.l-menu-btn::-webkit-details-marker {
  display: none;
}

.l-menu-bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.l-menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.l-menu-bars span:nth-child(1) {
  top: 0;
}

.l-menu-bars span:nth-child(2) {
  top: 6px;
}

.l-menu-bars span:nth-child(3) {
  top: 12px;
}

.l-menu[open] .l-menu-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.l-menu[open] .l-menu-bars span:nth-child(2) {
  opacity: 0;
}

.l-menu[open] .l-menu-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.l-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--l-edge-strong);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.l-menu-panel a:not(.l-btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.l-menu-panel .l-btn {
  margin-top: 8px;
}

/* ------------------------------------------------------------ butoane */

.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 150ms ease,
    border-color 150ms ease, color 150ms ease;
}

.l-btn .icon {
  width: 18px;
  height: 18px;
}

.l-btn-primary {
  background-color: var(--l-btn-from);
  background-image: linear-gradient(135deg, var(--l-btn-from), var(--l-btn-to));
  color: #fff;
  box-shadow: var(--l-glow);
}

.l-btn-ghost {
  background-color: transparent;
  border-color: var(--l-edge-strong);
  color: var(--text-secondary);
}

.l-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.l-btn-block {
  width: 100%;
}

.l-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

/* ------------------------------------------------------------ hero */

.l-hero {
  position: relative;
  overflow: clip;
  padding: 64px 0 48px;
}

.l-hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 138, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.l-hero-in {
  position: relative;
  text-align: center;
}

.l-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px 16px;
  background-color: rgba(124, 138, 255, 0.1);
  border: 1px solid rgba(124, 138, 255, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.l-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: l-pulse 2s ease-in-out infinite;
}

.l-hero-title {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.l-grad {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .l-grad {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.l-hero-sub {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.l-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.l-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.l-hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.l-hero-stat-label {
  font-size: 14px;
  color: var(--muted);
}

.l-hero-shot {
  position: relative;
  max-width: 1000px;
  margin: 64px auto 0;
}

.l-hero-shot::before {
  content: "";
  position: absolute;
  inset: 10% 5% -10%;
  background: radial-gradient(ellipse at center, rgba(124, 138, 255, 0.25), rgba(168, 85, 247, 0.1) 45%, transparent 70%);
  pointer-events: none;
}

.l-hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 16px;
  background-color: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px color-mix(in srgb, var(--accent) 15%, transparent);
  transition: transform 600ms ease;
}

.l-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------ secțiuni comune */

.l-section {
  position: relative;
  padding: 64px 0;
}

.l-section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.l-section-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  background-color: rgba(124, 138, 255, 0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.l-section-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.l-section-sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------ funcționalități */

.l-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.l-feature {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--l-edge);
  border-radius: var(--l-radius-lg);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

/* Linia de lumină de sus: traversează cardul la hover, doar prin transform. */
.l-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}

.l-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}

.l-feature-icon .icon {
  width: 24px;
  height: 24px;
}

.l-feature-trust .l-feature-icon { color: var(--positive); }
.l-feature-sentiment .l-feature-icon { color: var(--accent-secondary); }
.l-feature-impact .l-feature-icon { color: var(--l-orange); }
.l-feature-alerts .l-feature-icon { color: var(--negative); }
.l-feature-signals .l-feature-icon { color: var(--l-yellow); }
.l-feature-topics .l-feature-icon { color: var(--accent); }
.l-feature-geo .l-feature-icon { color: var(--l-blue); }
.l-feature-sov .l-feature-icon { color: var(--l-teal); }

.l-feature-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.l-feature-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.l-trust {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 24px auto 0;
}

.l-trust-ring {
  width: 100%;
  height: 100%;
}

.l-trust-arc {
  transition: stroke-dashoffset 800ms ease;
}

/* Inelul se umple la apariția cardului (doar cu JS și fără reduced motion). */
.l-motion .l-feature-trust:not(.is-visible) .l-trust-arc {
  stroke-dashoffset: 226;
}

.l-trust-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.l-ai-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.l-ai-lines span {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.3), rgba(168, 85, 247, 0.3));
  animation: l-ai-pulse 2s ease-in-out infinite;
}

.l-ai-lines span:nth-child(1) { width: 80%; }
.l-ai-lines span:nth-child(2) { width: 60%; animation-delay: 0.2s; }
.l-ai-lines span:nth-child(3) { width: 90%; animation-delay: 0.4s; }

@keyframes l-ai-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ------------------------------------------------------------ hover (partea a) */

@media (hover: hover) and (pointer: fine) {
  .l-nav a:hover {
    color: var(--text);
  }

  .l-menu-panel a:not(.l-btn):hover {
    background-color: var(--raised);
    color: var(--text);
  }

  .l-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--l-glow-hover);
  }

  .l-btn-ghost:hover {
    background-color: var(--l-edge);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
  }

  .l-hero-shot:hover .l-hero-frame {
    transform: none;
  }

  .l-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 138, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .l-feature:hover::before {
    transform: translateX(100%);
  }
}

/* ------------------------------------------------------------ breakpoint-uri (partea a) */

@media (min-width: 480px) {
  .l-feature {
    padding: 32px;
  }
}

@media (min-width: 560px) {
  .l-header .l-header-cta {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (min-width: 640px) {
  .l-shell {
    width: min(1200px, 100% - 48px);
  }

  .l-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 64px;
  }

  .l-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-feature-wide {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .l-hero {
    padding: 96px 0 64px;
  }

  .l-hero-title {
    margin-bottom: 32px;
  }

  .l-section {
    padding: 96px 0;
  }
}

@media (min-width: 880px) {
  .l-nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
  }

  .l-header .l-header-cta {
    margin-left: 0;
  }

  .l-menu {
    display: none;
  }
}

@media (min-width: 1024px) {
  .l-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Ultimele două carduri umplu rândul al treilea al grilei de 4 coloane. */
  .l-feature-geo,
  .l-feature-sov {
    grid-column: span 2;
  }

  .l-hero-frame {
    transform: perspective(1600px) rotateX(10deg);
  }
}

/* ------------------------------------------------------------ scena 3D a funcționalităților */

/* Cardurile din „Analiză inteligentă” stau în spațiu ca panourile command center din
   site-ul vechi. Sub 1024px grila e plată; de la 1024px capătă perspectivă, adâncime
   pe data-depth și plutire lentă, iar la hover scena se îndreaptă și se oprește din
   plutit, ca textul să se citească. */
.l-features-section {
  overflow: clip;
}

.l-stage {
  position: relative;
  isolation: isolate;
}

.l-stage-lines {
  position: absolute;
  inset: -10% -20%;
  background-image:
    linear-gradient(rgba(124, 138, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 138, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  transform: perspective(800px) rotateX(60deg);
  pointer-events: none;
  z-index: -1;
}

.l-stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 50% at center, rgba(124, 138, 255, 0.12), rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: -2;
  animation: l-glow-pulse 6s ease-in-out infinite;
}

@keyframes l-glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

[data-depth="1"] { --l-depth: 10px; --l-float: l-float-1; --l-float-dur: 9s; }
[data-depth="2"] { --l-depth: 30px; --l-float: l-float-2; --l-float-dur: 7.5s; }
[data-depth="3"] { --l-depth: 50px; --l-float: l-float-3; --l-float-dur: 8.5s; }

@keyframes l-float-1 {
  0%, 100% { transform: translateZ(var(--l-depth)) translateY(0); }
  50% { transform: translateZ(var(--l-depth)) translateY(-6px); }
}

@keyframes l-float-2 {
  0%, 100% { transform: translateZ(var(--l-depth)) translateY(0); }
  50% { transform: translateZ(var(--l-depth)) translateY(-9px); }
}

@keyframes l-float-3 {
  0%, 100% { transform: translateZ(var(--l-depth)) translateY(0); }
  33% { transform: translateZ(var(--l-depth)) translateY(-5px); }
  66% { transform: translateZ(var(--l-depth)) translateY(-8px); }
}

/* ------------------------------------------------------------ clienți și discreție */

.l-quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.l-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--l-edge);
  border-radius: var(--l-radius-lg);
  transition: transform 300ms ease, border-color 300ms ease;
}

.l-quote-text {
  margin: 0;
}

.l-quote-text p {
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-secondary);
}

.l-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l-quote-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--l-edge-strong);
  border-radius: 50%;
  background-color: var(--raised);
  color: var(--muted);
}

.l-quote-avatar .icon {
  width: 24px;
  height: 24px;
}

.l-quote-info {
  display: flex;
  flex-direction: column;
}

.l-quote-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.l-quote-role {
  font-size: 12px;
  color: var(--muted);
}

.l-discretie {
  margin-top: 64px;
  text-align: center;
}

.l-discretie-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.l-discretie-sub {
  max-width: 500px;
  margin: 8px auto 32px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
}

.l-marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.l-marquee-track {
  display: flex;
  width: max-content;
  animation: l-marquee 30s linear infinite;
}

.l-marquee:hover .l-marquee-track,
.l-marquee:focus-within .l-marquee-track {
  animation-play-state: paused;
}

@keyframes l-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.l-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding-right: 16px;
}

.l-word {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.l-word-1 {
  border-color: rgba(124, 138, 255, 0.2);
  font-style: italic;
  color: var(--accent);
}

.l-word-3 {
  border-color: rgba(249, 115, 22, 0.2);
  font-size: 15px;
  text-transform: lowercase;
  color: var(--l-orange);
}

.l-word-4 {
  border-color: rgba(168, 85, 247, 0.25);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--l-violet-light);
}

.l-word-5 {
  border-color: rgba(14, 165, 233, 0.2);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--l-sky);
}

.l-word-key {
  position: relative;
  padding: 8px 24px 12px;
  border: 2px solid;
  border-image: linear-gradient(135deg, #7c8aff, #a855f7) 1;
  background-color: transparent;
  background-image: var(--l-grad-light);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: transparent;
}

.l-word-key::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 20%;
  width: 60%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c8aff, #a855f7);
}

.l-word-sep {
  display: inline-flex;
  padding: 8px;
  opacity: 0.6;
}

.l-word-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ------------------------------------------------------------ tarifare */

.l-pricing {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  padding: 48px 24px;
  background-color: var(--surface);
  background-image: radial-gradient(ellipse at top, rgba(124, 138, 255, 0.1), transparent 60%);
  border: 1px solid var(--l-edge);
  border-radius: var(--l-radius-xl);
  text-align: center;
}

.l-pricing::before,
.l-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.l-pricing > p:not([class]) {
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--text-secondary);
}

.l-pricing > .l-section-badge {
  margin: 0 auto 16px;
}

.l-pricing > .l-list-title {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.l-checks {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 12px;
  margin: 16px auto 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.l-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.l-checks .icon {
  margin-top: 2px;
  color: var(--positive);
}

/* ------------------------------------------------------------ CTA și formular */

.l-cta-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 20px;
  background-color: var(--surface);
  background-image: radial-gradient(ellipse at top, rgba(124, 138, 255, 0.12), transparent 60%);
  border: 1px solid var(--l-edge);
  border-radius: var(--l-radius-xl);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.l-cta-title {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.l-cta-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.l-panel {
  text-align: left;
}

.l-form {
  position: relative;
  display: grid;
  gap: 20px;
}

.l-form-row {
  display: grid;
  gap: 20px;
}

.l-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.l-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.l-optional {
  font-weight: 400;
  color: var(--muted);
}

.l-hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.l-field .l-hint {
  margin-bottom: 8px;
}

.l-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background-color: var(--raised);
  border: 1px solid var(--l-edge-strong);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.l-textarea {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

.l-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.l-input[aria-invalid="true"] {
  border-color: var(--negative);
}

.l-error {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--negative-ink);
}

.l-legal a,
.l-direct a {
  color: var(--text-accent);
  text-decoration: underline;
}

.l-summary {
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--negative) 35%, transparent);
  border-radius: 12px;
  background-color: var(--negative-soft);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.l-form .l-btn-block {
  margin-top: 4px;
}

.l-form-note,
.l-direct {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.l-direct {
  margin-top: 20px;
}

/* Panoul de după trimitere: mesajul gata scris, cu rezervele pentru cine nu are client de mail. */
.l-mail {
  display: grid;
  gap: 12px;
}

.l-mail h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.l-mail p {
  color: var(--text-secondary);
}

.l-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.l-mail-status {
  min-height: 20px;
  font-size: 14px;
  color: var(--positive);
}

.l-mail-text {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  background-color: var(--raised);
  border: 1px solid var(--l-edge-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.l-mail-back {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--text-accent);
  text-decoration: underline;
  cursor: pointer;
}

.l-cta-note {
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

/* ------------------------------------------------------------ footer */

.l-footer {
  padding: 64px 0 32px;
  background-color: var(--surface);
  border-top: 1px solid var(--l-edge);
  font-size: 14px;
  line-height: 1.5;
}

.l-footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.l-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l-footer-tagline {
  font-size: 14px;
  color: var(--muted);
}

.l-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.l-footer-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

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

.l-footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}

.l-footer-bottom {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 32px;
  border-top: 1px solid var(--l-edge);
  font-size: 13px;
  color: var(--muted);
}

.l-footer-legal {
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ pagini legale */

.l-legal {
  width: min(720px, 100% - 32px);
  margin-inline: auto;
  padding: 64px 0 96px;
}

.l-legal h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.l-updated {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.l-legal h2 {
  margin-top: 48px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.l-legal h3 {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
}

.l-legal p,
.l-legal li {
  max-width: 64ch;
  line-height: 1.65;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.l-legal p {
  margin-top: 16px;
}

.l-legal ul,
.l-legal ol {
  margin: 16px 0 0;
  padding-left: 24px;
}

.l-legal li + li {
  margin-top: 8px;
}

.l-legal dl {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
}

.l-legal dt {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

.l-legal dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ apariția la scroll */

/* Starea ascunsă există doar sub .l-motion (pusă de JS când are voie să anime).
   Apariția e o animație, nu o tranziție: întârzierile în cascadă nu se aplică apoi
   și la hover, iar transformul de hover al cardurilor rămâne liber. */
.l-motion [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateZ(var(--l-z, 0px)) translateY(24px);
}

.l-motion [data-reveal].is-visible {
  opacity: 1;
  animation: l-reveal 600ms ease var(--l-rd, 0ms) backwards;
}

/* --l-z e adâncimea cardului doar pe scena 3D; în rest 0 și apariția e un simplu translateY. */
@keyframes l-reveal {
  from { opacity: 0; transform: translateZ(var(--l-z, 0px)) translateY(24px); }
  to { opacity: 1; transform: translateZ(var(--l-z, 0px)) translateY(0); }
}

.l-motion .l-features > :nth-child(2),
.l-motion .l-quotes > :nth-child(2) { --l-rd: 50ms; }
.l-motion .l-features > :nth-child(3),
.l-motion .l-quotes > :nth-child(3) { --l-rd: 100ms; }
.l-motion .l-features > :nth-child(4) { --l-rd: 150ms; }
.l-motion .l-features > :nth-child(5) { --l-rd: 200ms; }
.l-motion .l-features > :nth-child(6) { --l-rd: 250ms; }
.l-motion .l-features > :nth-child(7) { --l-rd: 300ms; }
.l-motion .l-features > :nth-child(8) { --l-rd: 350ms; }

/* ------------------------------------------------------------ hover (partea b) */

@media (hover: hover) and (pointer: fine) {
  .l-quote:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 138, 255, 0.2);
  }

  .l-footer-col a:hover {
    color: var(--text);
  }
}

/* ------------------------------------------------------------ breakpoint-uri (partea b) */

@media (min-width: 480px) {
  .l-pricing {
    padding: 48px;
  }

  .l-cta-card {
    padding: 48px 32px;
  }
}

@media (min-width: 640px) {
  .l-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .l-word {
    padding: 12px 24px;
    font-size: 13px;
  }

  .l-word-3,
  .l-word-key {
    font-size: 15px;
  }

  .l-word-key {
    padding: 12px 32px 14px;
  }

  .l-marquee-group {
    gap: 24px;
    padding-right: 24px;
  }

  .l-footer-links {
    gap: 96px;
  }

  .l-legal {
    width: min(720px, 100% - 48px);
  }
}

@media (min-width: 768px) {
  .l-cta-card {
    padding: 64px;
  }
}

@media (min-width: 1024px) {
  .l-quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .l-features {
    transform: perspective(1400px) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 600ms ease;
  }

  .l-features > [data-depth] {
    --l-z: var(--l-depth);
    border-color: rgba(124, 138, 255, 0.15);
    background: linear-gradient(135deg, rgba(18, 19, 26, 0.95), rgba(26, 27, 36, 0.9));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(124, 138, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateZ(var(--l-depth));
    animation: var(--l-float) var(--l-float-dur) ease-in-out var(--l-fd, 0s) infinite;
  }

  .l-motion .l-features > [data-depth].is-visible {
    animation:
      l-reveal 600ms ease var(--l-rd, 0ms) backwards,
      var(--l-float) var(--l-float-dur) ease-in-out var(--l-fd, 0s) infinite;
  }

  /* Un rând plutește sincron: adâncimea, durata și întârzierea sunt aceleași pe tot
     rândul, deci cardurile vecine nu se denivelează. */
  .l-features > [data-depth="2"] { --l-fd: 0.8s; }
  .l-features > [data-depth="3"] { --l-fd: 1.6s; }
}

/* La hover sau la focus în scenă, cardurile se aliniază și stau pe loc. */
@media (min-width: 1024px) {
  .l-stage:hover .l-features,
  .l-stage:focus-within .l-features {
    transform: perspective(1400px) rotateX(2deg);
  }

  .l-stage:hover .l-features > [data-depth],
  .l-stage:focus-within .l-features > [data-depth] {
    animation-play-state: paused;
  }
}

/* ------------------------------------------------------------ reduced motion */

/* Ultimul bloc din fișier. base.css oprește deja tranzițiile și animațiile pe toate
   elementele; aici se refac stările finale: stele statice, totul vizibil, banda
   marquee statică, centrată și fără copia duplicată, scena 3D și captura fără mișcare. */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }

  [data-reveal],
  .l-motion [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .l-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .l-marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }

  .l-marquee-group {
    flex-wrap: wrap;
    flex-shrink: 1;
    justify-content: center;
    padding-right: 0;
  }

  [data-marquee-copy] {
    display: none;
  }

  /* Banda statică se termină cu un cuvânt, nu cu un separator orfan pe ultimul rând. */
  .l-marquee-group > .l-word-sep:last-child {
    display: none;
  }

  .l-features > [data-depth],
  .l-motion .l-features > [data-depth].is-visible {
    animation: none;
  }

  .l-hero-frame,
  .l-hero-shot:hover .l-hero-frame {
    transform: none;
  }

  .l-motion .l-feature-trust:not(.is-visible) .l-trust-arc {
    stroke-dashoffset: 45;
  }
}
