/* Pro PC — strat „viu": erou animat, butoane, apariții la derulare.
   Se încarcă după site.css. Mișcarea respectă „reduce motion". */

:root {
  --hero-bg: #071428;
  --glow: 77, 141, 255;
}

/* ============ Butoane ============ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-130%);
}
.btn:not([disabled]):not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(var(--glow), .75); }
.btn:not([disabled]):not([aria-disabled="true"]):hover::after { transform: translateX(130%); transition: transform .75s cubic-bezier(.2, .6, .2, 1); }
.btn:not([disabled]):not([aria-disabled="true"]):active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
.btn svg { transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn-ghost:hover, .btn-light:hover { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); }
.btn-text, .btn-sm.btn-text { overflow: visible; }

.btn-glow {
  background: linear-gradient(135deg, #3b86ff 0%, #1f6bff 45%, #1553d6 100%); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(var(--glow), .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-glow:hover { background: linear-gradient(135deg, #4a92ff 0%, #2e78ff 45%, #1a5ee6 100%); }
.btn-outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .32); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .28;
  transform: scale(0); animation: ripple .6s ease-out forwards; z-index: -1;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .btn-glow { animation: glow-pulse 3.2s ease-in-out infinite; }
  @keyframes glow-pulse {
    0%, 100% { box-shadow: 0 8px 24px -8px rgba(var(--glow), .8), 0 0 0 0 rgba(var(--glow), .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
    50% { box-shadow: 0 8px 24px -8px rgba(var(--glow), .8), 0 0 0 10px rgba(var(--glow), 0), inset 0 1px 0 rgba(255, 255, 255, .25); }
  }
}

/* ============ Antet ============ */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.scrolled { box-shadow: 0 8px 28px -14px rgba(7, 20, 40, .45); }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { background: transparent; }

/* ============ Erou ============ */
.hero {
  background-color: var(--hero-bg); color: #fff; border-bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
}
.hero::after { background: linear-gradient(transparent, var(--hero-bg)); height: 70px; }
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .95; }
/* strat întunecat: textul din stânga rămâne lizibil, imaginea se vede mai bine spre dreapta */
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(7, 20, 40, .92) 0%, rgba(7, 20, 40, .7) 36%, rgba(7, 20, 40, .12) 70%, rgba(7, 20, 40, .22) 100%),
  linear-gradient(180deg, rgba(7, 20, 40, .5) 0%, transparent 24%, transparent 74%, var(--hero-bg) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb { mix-blend-mode: screen; }
.orb-1 { width: 520px; height: 520px; left: -140px; top: -180px; background: radial-gradient(circle, #1f6bff, transparent 68%); }
.orb-2 { width: 460px; height: 460px; right: -120px; bottom: -160px; background: radial-gradient(circle, #19b6ff, transparent 68%); opacity: .38; }
.hero-spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(var(--glow), .2), transparent 62%); }

.hero-in { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(72px, 9vw, 130px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #b9c8e4; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06);
  font-size: .88rem; color: #cfe0ff; backdrop-filter: blur(6px);
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #35d68a; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #35d68a; opacity: 0; }
.hero-call { color: #9fb4d6; }
.hero-call a { color: #cfe0ff; font-weight: 600; }

/* cuvântul care se schimbă în titlu */
.rot {
  display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em;
}
.rot > span {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(100deg, #5aa2ff, #62e1ff 60%, #8ab8ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rot > span:not(:first-child) { opacity: 0; }

/* panoul de diagnoză */
.hero-art { position: relative; align-self: center; display: flex; justify-content: flex-end; }
.scan {
  position: relative; overflow: hidden; border-radius: 18px; max-width: 470px; margin-left: auto;
  background: linear-gradient(160deg, rgba(14, 24, 54, .86), rgba(8, 14, 36, .9));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px); translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px); transition: translate .25s ease-out;
}
.scan-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #b9c8e4; }
.scan-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.scan-bar i:nth-child(1) { background: #ff6b5e; } .scan-bar i:nth-child(2) { background: #ffbd3d; } .scan-bar i:nth-child(3) { background: #35d68a; }
.scan-bar span { margin-left: 8px; font-weight: 600; color: #e4edfb; }
.scan-bar em { margin-left: auto; font-style: normal; font-size: .76rem; color: #8ea6cf; }
.scan-rows { list-style: none; padding: 8px 10px 12px; margin: 0; }
.scan-rows li { position: relative; display: grid; grid-template-columns: 40px 1fr 26px; gap: 12px; align-items: center; padding: 13px 8px; border-radius: 10px; }
.scan-rows li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.scan-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--glow), .16); color: #8ab8ff; }
.scan-rows b { display: block; font: 600 .98rem var(--font-head); color: #fff; }
.scan-rows small { color: #9fb4d6; font-size: .82rem; }
.scan-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #35d68a; color: #062a18; }
.scan-fill { position: absolute; left: 8px; bottom: 0; height: 2px; width: calc(100% - 16px); border-radius: 2px; background: linear-gradient(90deg, #4d8dff, #62e1ff); transform-origin: left; }
.scan-beam { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0; background: linear-gradient(transparent, rgba(var(--glow), .2), transparent); }

.hero-art .ticket {
  position: relative; width: min(350px, 100%); margin: 0; color: var(--text);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .75); translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 9px); transition: translate .25s ease-out;
}
.hero .ticket-perf::before, .hero .ticket-perf::after { background: #0b1f3a; border-color: rgba(255, 255, 255, .16); }
.hero .ticket-note { display: none; }
.hero .ticket-top { padding-bottom: 12px; }
.hero .ticket-bottom { padding-bottom: 20px; }
.ticket-steps li:nth-child(4) i { box-shadow: 0 0 0 0 rgba(var(--glow), .5); }

@media (max-width: 860px) {
  .hero-shade { background: linear-gradient(180deg, rgba(7, 20, 40, .82) 0%, rgba(7, 20, 40, .72) 60%, var(--hero-bg) 100%); }
  .hero-art { justify-content: center; }
  .hero-art .ticket { width: min(360px, 92%); }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* un singur moment orchestrat la încărcare */
  .hero-pill, .hero h1, .hero .lead, .hero-cta, .hero-call, .hero-art { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .18s; } .hero-cta { animation-delay: .28s; } .hero-call { animation-delay: .36s; }
  .hero-art { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  .hero-bg { animation: bg-zoom 26s ease-in-out infinite alternate; }
  @keyframes bg-zoom { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1.2%); } }
  .orb-1 { animation: drift 16s ease-in-out infinite alternate; }
  .orb-2 { animation: drift 20s ease-in-out infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(70px, 50px) scale(1.12); } }
  .hero { animation: grid-move 30s linear infinite; }
  @keyframes grid-move { to { background-position: 43px 43px; } }
  .live-dot::after { animation: ping 2s ease-out infinite; }
  @keyframes ping { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }

  .rot > span { animation: rot-word 9s cubic-bezier(.5, 0, .2, 1) infinite; }
  .rot > span:nth-child(2) { animation-delay: 3s; } .rot > span:nth-child(3) { animation-delay: 6s; }
  .rot > span:not(:first-child) { opacity: 0; }
  @keyframes rot-word {
    0% { opacity: 0; transform: translateY(70%); } 5%, 30% { opacity: 1; transform: none; }
    35% { opacity: 0; transform: translateY(-70%); } 100% { opacity: 0; transform: translateY(-70%); }
  }

  .scan-fill { animation: scan-fill 9s ease-in-out infinite both; animation-delay: calc(var(--d) * 1.1s + .8s); }
  @keyframes scan-fill { 0% { transform: scaleX(0); opacity: 1; } 16% { transform: scaleX(1); } 80% { transform: scaleX(1); opacity: 1; } 92%, 100% { transform: scaleX(1); opacity: 0; } }
  .scan-ok { animation: scan-ok 9s ease-in-out infinite both; animation-delay: calc(var(--d) * 1.1s + .8s); }
  @keyframes scan-ok { 0%, 14% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; transform: scale(1.15); } 24%, 80% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(.6); } }
  .scan-rows li { animation: scan-row 9s ease-in-out infinite both; animation-delay: calc(var(--d) * 1.1s + .8s); }
  @keyframes scan-row { 0% { background: transparent; } 8% { background: rgba(var(--glow), .14); } 22%, 100% { background: transparent; } }
  .scan-beam { opacity: 1; animation: beam 4.4s linear infinite; }
  @keyframes beam { from { transform: translateY(-90px); } to { transform: translateY(440px); } }

  .hero-art .ticket { animation: bob 7s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(.6deg) translateY(-9px); } }
  .ticket-steps li:nth-child(4) i { animation: step-pulse 2s ease-out infinite; }
  @keyframes step-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glow), .55); } 100% { box-shadow: 0 0 0 10px rgba(var(--glow), 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .rot > span:not(:first-child) { display: none; }
  .scan-fill { transform: none; } .scan-beam { display: none; }
}

/* ============ Bandă derulantă cu servicii ============ */
.marquee { overflow: hidden; background: #0b1f3a; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.marquee li { display: inline-flex; align-items: center; gap: 12px; padding: 17px 30px; font: 600 1.02rem var(--font-head); color: #d6e3fb; white-space: nowrap; }
.marquee li svg { color: #4d8dff; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* ============ Apariții la derulare ============ */
.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ============ Servicii, carduri, pachete, pași ============ */
.svc { transition: background-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.svc:hover { transform: translateX(6px); }
.svc-icon { transition: background-color .25s, color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.svc:hover .svc-icon { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.1); }
.svc h3 { transition: color .2s; }
.svc:hover h3 { color: var(--blue-text); }

.product, .plan { will-change: transform; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease-out, border-color .2s, box-shadow .25s; }
.product::before, .plan::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgba(var(--glow), .16), transparent 65%);
}
.product:hover::before, .plan:hover::before { opacity: 1; }
.product:hover { box-shadow: 0 22px 44px -22px rgba(7, 20, 40, .45); }
.product-img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-img img { transform: scale(1.08); }
.plan:hover { box-shadow: 0 26px 50px -26px rgba(7, 20, 40, .5); }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan-featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, conic-gradient(from var(--ang), #2d7bff, #62e1ff, #8ab8ff, #2d7bff) border-box;
}
@media (prefers-reduced-motion: no-preference) {
  .plan-featured { animation: spin-border 6s linear infinite; }
  @keyframes spin-border { to { --ang: 360deg; } }
}

.step::before { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.step.rv::before { transform: scale(0); }
.step.rv.in::before { transform: scale(1); transition-delay: calc(var(--i, 0) * 80ms + .15s); }
.step.rv::after { transform: scaleX(0); transform-origin: left; }
.step.rv.in::after { transform: scaleX(1); transition: transform .7s ease; transition-delay: calc(var(--i, 0) * 80ms + .3s); }
@media (max-width: 860px) { .step.rv::after { transform: scaleY(0); transform-origin: top; } .step.rv.in::after { transform: scaleY(1); } }

.quote { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat strong { background: linear-gradient(120deg, var(--text), var(--blue-text)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.callout { transition: box-shadow .25s; }

/* ============ Antet de pagină interioară ============ */
.page-head {
  position: relative; overflow: hidden; background-color: var(--hero-bg); color: #fff; border-bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-head::before { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .5), transparent 68%); filter: blur(50px); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; }
.page-head p { color: #b9c8e4; }
.page-head .crumbs { color: #9fb4d6; }
.page-head .crumbs a { color: #9fb4d6; }
.page-head .crumbs a:hover { color: #fff; }
.page-head .crumbs li + li::before { color: rgba(255, 255, 255, .35); }
.page-head .crumbs [aria-current] { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .page-head::before { animation: drift 14s ease-in-out infinite alternate; }
}

/* ============ Bandă finală ============ */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: 50%; top: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .45), transparent 68%); filter: blur(60px); pointer-events: none; }
.cta-band .cta-in { position: relative; }
@media (prefers-reduced-motion: no-preference) { .cta-band::before { animation: drift 12s ease-in-out infinite alternate; } }

/* ============ Butonul WhatsApp ============ */
.float-wa { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .2s; }
.float-wa:hover { transform: scale(1.1) rotate(-6deg); }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa59; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .float-wa::before { animation: ping 2.6s ease-out infinite; animation-delay: 2s; }
}

/* ============ Ecrane tactile: fără efecte care depind de mouse ============ */
@media (hover: none) {
  .product, .plan { transform: none; }
  .svc:hover { transform: none; }
}
@media print { .marquee, .hero-fx { display: none !important; } }

/* ============ Secțiunea „Diagnoză" ============ */
.diag { background: var(--hero-bg); color: #fff; position: relative; overflow: hidden; }
.diag::before { content: ""; position: absolute; width: 560px; height: 560px; left: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .35), transparent 68%); filter: blur(60px); pointer-events: none; }
.diag-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.diag h2 { color: #fff; max-width: 18ch; }
.diag .lead { color: #b9c8e4; margin-bottom: 22px; }
.diag-points { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; }
.diag-points li { display: flex; gap: 10px; align-items: center; color: #d6e3fb; }
.diag-points svg { color: #35d68a; flex: none; }
.diag .scan { margin: 0 auto; width: 100%; }
@media (max-width: 860px) { .diag-in { grid-template-columns: 1fr; } }

/* ============ Imagini de fundal pentru secțiuni ============ */
/* Secțiunea cu imagine folosește întotdeauna culorile temei întunecate, ca textul să se citească indiferent de poză sau de tema aleasă. */
.has-bg {
  position: relative; overflow: hidden; isolation: isolate; color: var(--text); background-color: #0a1426;
  --bg: #0a1426; --paper: #0e1a31; --surface: #112040; --line: #1f3153; --line-strong: #34486d;
  --text: #e8eef8; --muted: #a8b6cf; --blue: #4d8dff; --blue-text: #86b0ff; --blue-soft: #14284d;
  --ok: #4fd18f; --ok-bg: #0f2c22; --warn: #f1b44c; --warn-bg: #33270d; --err: #ff8a7d; --err-bg: #3a1714;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}
.sec-bg { position: absolute; inset: 0; z-index: -1; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; }
.sec-shade { position: absolute; inset: 0; background: #071428; }
.has-bg .product, .has-bg .plan:not(.plan-featured), .has-bg .quote, .has-bg .callout, .has-bg .period-switch { background: rgba(14, 26, 52, .82); backdrop-filter: blur(8px); }
.has-bg .svc:hover { background: rgba(255, 255, 255, .05); }
.has-bg .faq, .has-bg .faq details { background: transparent; }
.has-bg .product-img { background: rgba(255, 255, 255, .04); }
.page-head.has-bg { background-color: var(--hero-bg); }
@media (prefers-reduced-motion: no-preference) {
  .sec-bg img { animation: bg-zoom 30s ease-in-out infinite alternate; }
}
