/* ============================================================
   MWolf-Tech — design „Obsidian"
   Un singur fișier de stil propriu (înlocuiește style.css + redesign.css).
   Tailwind (tailwind.css) dă layout/spațiere; aici sunt:
     1. tokeni de culoare (întunecat = implicit, luminos = fără clasa .dark)
     2. bază: tipografie, focus, derulare
     3. componente: header, butoane, hero, metrici, servicii, showroom,
        FAQ, audit, contact, footer, bară CTA mobil
     4. mișcare redusă
   Se încarcă ÎNAINTEA tailwind.css: utilitarele Tailwind (hidden, md:flex…) suprascriu
   componentele de aici la egalitate, exact ca în orice setup Tailwind.
   ============================================================ */

/* ===== 1. TOKENI ===== */
:root {
    color-scheme: light;
    --bg: #F6F8FC;
    --bg-alt: #EEF2F9;
    --panel: #FFFFFF;
    --panel-2: #F3F6FC;
    --field: #F3F6FC;
    --line: rgba(11, 18, 32, 0.10);
    --line-strong: rgba(11, 18, 32, 0.18);
    --ink: #0B1220;
    --muted: #566075;
    --accent: #2F5BFF;
    --accent-ink: #FFFFFF;
    --accent-text: #2347D9;
    --glow: rgba(47, 91, 255, 0.22);
    --ok: #15803D;
    --warn: #B45309;
    --bad: #B42318;
    --wa: #25D366;
    --wa-ink: #04210F;
    --shadow-card: 0 24px 50px -30px rgba(11, 18, 32, 0.35);
    --glow-2: rgba(124, 92, 255, 0.14);
    --grid: rgba(11, 18, 32, 0.06);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
    color-scheme: dark;
    --bg: #06080D;
    --bg-alt: #080B12;
    --panel: #0B101A;
    --panel-2: #0F1623;
    --field: #05070C;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --ink: #F3F5F9;
    --muted: #9AA6BA;
    --accent: #2F5BFF;
    --accent-ink: #FFFFFF;
    --accent-text: #7B9BFF;
    --glow: rgba(47, 91, 255, 0.38);
    --ok: #4ADE80;
    --warn: #F5A524;
    --bad: #F87171;
    --shadow-card: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
    --glow-2: rgba(124, 92, 255, 0.22);
    --grid: rgba(255, 255, 255, 0.055);
}

/* Unghi animabil pentru fasciculul de lumină de pe cardul recomandat */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ===== 2. BAZĂ ===== */
html { scroll-behavior: smooth; }

/* Fără deplasare laterală pe mobil; `clip` nu strică position: sticky */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Geist, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .font-display {
    font-family: "Bricolage Grotesque", Geist, system-ui, sans-serif;
    letter-spacing: -0.015em;
}

/* Ancorele nu se ascund sub header-ul sticky */
section[id] { scroll-margin-top: 72px; }

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

::selection { background: rgba(47, 91, 255, 0.3); }

/* Conținutul stă deasupra bării CTA de jos (doar mobil) */
@media (max-width: 767px) {
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 3a. HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
    animation: hdrIn 0.8s var(--ease) backwards;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@keyframes hdrIn { from { transform: translateY(-100%); opacity: 0; } }

/* Se strânge puțin după ce pagina a început să deruleze (clasa dublă bate h-16 / lg:h-20) */
.header-in { transition: height 0.4s var(--ease); }
.site-header.is-scrolled .header-in { height: 56px; }
@media (min-width: 1024px) { .site-header.is-scrolled .header-in { height: 64px; } }

/* Bara de progres la derulare (transform → fără layout) */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 70;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--accent), #9DB4FF, #B79BFF);
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
}
.logo-mark {
    position: relative;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0F172A, #2F5BFF);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1024px) { .logo-mark { width: 40px; height: 40px; border-radius: 11px; } }
/* Inel care pulsează din logo (doar în header; rulează pe compositor) */
.site-header .logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: logoRing 3.6s ease-out 1.6s infinite;
}
@keyframes logoRing { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.nav-link {
    position: relative;
    padding: 6px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent-text);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.45s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.lang-btn {
    min-width: 40px;
    height: 44px;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--muted);
    transition: color 0.2s ease;
}
.lang-btn[aria-pressed="true"] { color: var(--ink); font-weight: 500; }

.icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--accent-text); }

.icon-sun { display: block; }
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

/* Meniu mobil: se deschide cu grid-rows (0fr → 1fr) */
.mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-menu.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-family: "Bricolage Grotesque", Geist, sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===== 3b. BUTOANE ===== */
.btn {
    --mx: 0px;
    --my: 0px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transform: translate(var(--mx), var(--my));
    transition: transform 0.5s var(--ease), background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease, box-shadow 0.4s ease;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.98); transition-duration: 0.15s; }
.btn-primary svg, .btn-ghost svg { transition: transform 0.45s var(--ease); }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: translateX(4px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-lg { min-height: 56px; font-size: 1.0625rem; }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 14px 40px -14px rgba(47, 91, 255, 0.75);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 18px 50px -12px rgba(47, 91, 255, 0.95); }
/* Dungă de lumină care traversează butonul (la hover; pe CTA-ul din hero și periodic) */
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
    transform: translateX(-120%);
}
.btn-primary:hover::before { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.btn-primary.is-idle-shine::before { animation: btnShine 5.5s ease-in-out 3s infinite; }
@keyframes btnShine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--accent-text); }

.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(1.05); }

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--accent-text);
    transition: gap 0.2s ease;
}
.btn-link:hover { gap: 0.75rem; }

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.55s linear;
    background-color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ===== 3c. ETICHETE & TITLURI DE SECȚIUNE ===== */
.kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-text);
}
.kicker-hero { color: var(--muted); letter-spacing: 0.1em; align-items: flex-start; }

.section { position: relative; padding-top: 76px; }
@media (min-width: 1024px) { .section { padding-top: 120px; } }

.section-title {
    font-weight: 700;
    font-size: 2.125rem;
    line-height: 1.04;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3.5rem; } }

.section-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 1024px) { .section-desc { font-size: 1.0625rem; } }

/* ===== 3d. HERO ===== */
/* Fundal: blob-uri de lumină care plutesc, grilă fină și spotlight care urmărește cursorul */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 {
    width: 560px; height: 560px; left: -20%; top: -26%;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    animation: drift1 22s ease-in-out infinite alternate;
}
.blob-2 {
    width: 460px; height: 460px; right: -24%; top: 0;
    background: radial-gradient(circle, var(--glow-2), transparent 65%);
    animation: drift2 26s ease-in-out infinite alternate;
}
@media (min-width: 1024px) {
    .blob-1 { width: 780px; height: 780px; left: -12%; top: -34%; }
    .blob-2 { width: 640px; height: 640px; right: -10%; top: -6%; }
}
@keyframes drift1 { to { transform: translate3d(14%, 10%, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-18%, 14%, 0) scale(1.2); } }
.grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(70% 60% at 60% 25%, #000 10%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 60% 25%, #000 10%, transparent 75%);
    animation: fadeIn 2s ease 0.3s both;
}
@keyframes fadeIn { from { opacity: 0; } }
.hero-spot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 30%), rgba(123, 155, 255, 0.16), transparent 60%);
}
.hero-section.is-hover .hero-spot { opacity: 1; }

.hero-title {
    font-weight: 800;
    font-size: 3.25rem;
    line-height: 0.98;
    letter-spacing: -0.012em;
    text-wrap: balance;
}
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5rem; line-height: 0.95; } }
@media (min-width: 1280px) { .hero-title { font-size: 6rem; } }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-animate { opacity: 0; animation: riseIn 1s var(--ease) forwards; }

/* Titlul: fiecare cuvânt urcă dintr-o mască (spans generate de setHeroTitle în script.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.14em; margin: -0.06em -0.04em -0.14em; }
.wi {
    display: inline-block;
    transform: translateY(115%) rotate(5deg);
    transform-origin: 0 100%;
    animation: wordUp 1.1s var(--ease) calc(var(--i) * 80ms + 250ms) forwards;
}
@keyframes wordUp { to { transform: none; } }
.grad-text {
    background: linear-gradient(100deg, var(--accent-text) 20%, #C4D2FF 45%, #B79BFF 60%, var(--accent-text) 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html:not(.dark) .grad-text { background-image: linear-gradient(100deg, #2347D9 20%, #5C7BFF 45%, #7C5CFF 60%, #2347D9 85%); }
.wi.grad-text { animation: wordUp 1.1s var(--ease) calc(var(--i) * 80ms + 250ms) forwards, sheen 7s ease-in-out 1.6s infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }

.live-dot { position: relative; flex: none; width: 7px; height: 7px; margin-top: 0.3em; border-radius: 50%; background: #4ADE80; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* Teanc 3D de capturi reale din demo-uri. Cadrul din față stă în flux (dă înălțimea
   containerului); celelalte două sunt absolute, în spate, mai mici și mai estompate.
   Intră „împărțite” ca niște cărți, apoi plutesc și se înclină după cursor (--rx/--ry din JS). */
.hero-stack { position: relative; width: 100%; max-width: 560px; margin-inline: auto; perspective: 1400px; }
@media (min-width: 1024px) { .hero-stack { max-width: none; } }
.stack-in {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
}
.stack-frame {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: var(--o);
    transform: translate3d(var(--tx), var(--ty), var(--tz)) rotate(var(--r)) scale(var(--s));
    transform-origin: 50% 0;
    animation: dealIn 1.5s var(--ease) var(--dl) both;
}
@keyframes dealIn { from { opacity: 0; transform: translate3d(0, 70px, -160px) rotate(0) scale(0.8); } }
.stack-1 { --tx: -6%; --ty: 0px;  --tz: -90px; --r: -3.5deg; --s: 0.84; --o: 0.5;  --dl: 0.85s; }
.stack-2 { --tx: 4%;  --ty: 34px; --tz: -45px; --r: 2.5deg;  --s: 0.92; --o: 0.82; --dl: 0.7s; }
.stack-3 { position: relative; margin-top: 74px; --tx: 0px; --ty: 0px; --tz: 0px; --r: 0deg; --s: 1; --o: 1; --dl: 0.55s; transform-origin: 50% 50%; }
@media (min-width: 1024px) {
    .stack-2 { --ty: 76px; }
    .stack-3 { margin-top: 150px; }
}
.float { animation: floaty var(--fd, 7s) ease-in-out var(--fo, 0s) infinite alternate; }
.stack-1 .float { --fd: 8s;   --fo: -2s; }
.stack-2 .float { --fd: 6.5s; --fo: -4s; }
@keyframes floaty { from { transform: translateY(-7px); } to { transform: translateY(7px); } }

.stack-win {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel);
}
.stack-3 .stack-win {
    border-radius: 16px;
    box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(47, 91, 255, 0.2), 0 0 80px -20px var(--glow);
}
.stack-bar {
    height: 26px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
}
.stack-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.stack-bar > span {
    display: inline-flex;
    margin-left: 8px;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.5625rem;
    color: var(--muted);
}
.stack-win img { display: block; width: 100%; aspect-ratio: 760 / 475; object-fit: cover; }
/* Adresa din bară se „scrie”; caretul clipește */
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: typing 1.8s steps(29) 1.7s forwards; }
@keyframes typing { to { width: 29ch; } }
.caret { width: 1px; height: 10px; margin-left: 1px; background: var(--accent-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Reflex care trece o singură dată peste cadrul din față */
.win-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
    transform: translateX(-130%);
    animation: winShine 1.6s var(--ease) 2.2s forwards;
}
@keyframes winShine { to { transform: translateX(130%); } }

/* Chipuri de sticlă (doar fapte pe care site-ul le afirmă deja) */
.glass {
    position: absolute;
    z-index: 5;
    padding: 10px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transform: translateZ(90px);
    animation: chipIn 1.2s var(--ease) var(--dl) both;
}
.glass .float { display: flex; align-items: center; gap: 10px; }
.glass .live-dot { margin-top: 0; }
.glass b { display: block; font-family: "Bricolage Grotesque", Geist, sans-serif; font-size: 1.125rem; letter-spacing: -0.01em; }
.glass small { display: block; font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@keyframes chipIn { from { opacity: 0; transform: translateZ(90px) translateY(24px) scale(0.9); } }
.glass-1 { top: 4%; right: -2%; --dl: 2.3s; }
.glass-2 { bottom: 5%; left: -3%; --dl: 2.6s; }
.glass-1 .float { --fd: 5.5s; --fo: -1s; }
.glass-2 .float { --fd: 6.2s; --fo: -3s; }
@media (max-width: 639px) { .glass { display: none; } }

/* Metrici (doar fapte din site) */
.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 22px; } }
.metric { position: relative; overflow: hidden; background: var(--bg-alt); padding: 18px 16px; }
@media (min-width: 1024px) { .metric { padding: 30px 32px; } }
/* Linia de sus se desenează când metrica apare */
.metric::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1.4s var(--ease) 0.2s;
}
.metric.is-visible::before { transform: scaleX(1); }
.metric-num {
    font-family: "Bricolage Grotesque", Geist, sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 1024px) { .metric-num { font-size: 3.75rem; } }
.metric-label { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 1024px) { .metric-label { font-size: 0.9375rem; } }

/* Banda cu stack-ul: se derulează continuu, se oprește la hover */
.marquee {
    overflow: hidden;
    padding-block: 18px;
    border-block: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span {
    display: inline-flex;
    align-items: center;
    padding-inline: 28px;
    font-family: "Bricolage Grotesque", Geist, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--muted);
    transition: color 0.3s ease;
}
@media (min-width: 1024px) { .marquee-set span { font-size: 1.75rem; } }
.marquee-set span::after { content: "✦"; margin-left: 56px; font-size: 0.9rem; color: var(--accent-text); opacity: 0.7; }
.marquee-set span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== 3e. SERVICII ===== */
.svc-grid { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) {
    .svc-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.svc-card { --mx: 50%; --my: 50%; }
/* Spotlight de umplere + chenar care urmăresc cursorul (doar cu mouse) */
.svc-card::after, .svc-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.svc-card::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(123, 155, 255, 0.13), transparent 60%); }
.svc-card::before {
    padding: 1.5px;
    background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent-text), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) {
    .svc-card:hover::after, .svc-card:hover::before { opacity: 1; }
}
/* Cardul recomandat: un fascicul de lumină îi înconjoară chenarul */
.svc-card.is-featured::before {
    opacity: 1;
    background: conic-gradient(from var(--a), transparent 0 62%, var(--accent-text) 82%, #fff 92%, transparent 100%);
    animation: beamSpin 6s linear infinite;
}
@keyframes beamSpin { to { --a: 360deg; } }
.svc-card.is-featured {
    border-color: rgba(47, 91, 255, 0.35);
    background: linear-gradient(160deg, rgba(47, 91, 255, 0.16), rgba(47, 91, 255, 0) 55%), var(--panel);
}
@media (min-width: 1024px) {
    .svc-card { border-radius: 26px; }
    .svc-card:hover { border-color: rgba(123, 155, 255, 0.5); }
}

.svc-head { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
@media (min-width: 1024px) { .svc-head { padding: 32px 32px 0; flex-direction: column; gap: 22px; } }

.svc-num {
    flex: none;
    font-family: "Bricolage Grotesque", Geist, sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-text);
    transition: color 0.5s ease, transform 0.6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .svc-card:hover .svc-num { color: color-mix(in srgb, var(--accent-text) 22%, transparent); transform: translateX(4px); }
}
@media (min-width: 1024px) { .svc-num { font-size: 4.5rem; } }

.svc-title { font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
@media (min-width: 1024px) { .svc-title { font-size: 1.75rem; } }

/* Butonul de deschidere acoperă antetul (doar mobil); titlul rămâne <h3> */
.svc-toggle {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    cursor: pointer;
    border-radius: 22px;
}
.svc-plus {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: transform 0.3s ease, border-color 0.2s ease;
}
.svc-card.is-open .svc-plus { transform: rotate(45deg); border-color: var(--accent-text); }
@media (min-width: 1024px) { .svc-toggle { display: none; } }

.svc-body {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.svc-card.is-open .svc-body { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.svc-body-inner { min-height: 0; overflow: hidden; }
.svc-body-pad { padding: 0 20px 22px; }
@media (min-width: 1024px) {
    .svc-body { grid-template-rows: 1fr; flex: 1; visibility: visible; }
    .svc-body-pad { padding: 16px 32px 32px; height: 100%; display: flex; flex-direction: column; }
}

.chip {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--accent-text);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--accent-text);
}
.chip-muted { border-color: var(--line-strong); color: var(--muted); }

.check-list { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9375rem; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(350ms + var(--k, 0) * 110ms);
}
.is-visible .check-list li { opacity: 1; transform: none; }
/* Bifa se desenează (pathLength="1" pe <path>) */
.check-list path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s var(--ease); transition-delay: calc(550ms + var(--k, 0) * 110ms); }
.is-visible .check-list path { stroke-dashoffset: 0; }
.check-list svg { flex: none; color: var(--accent-text); }

/* ===== 3f. SHOWROOM ===== */
.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chip-row { flex-wrap: wrap; overflow: visible; } }

.filter-chip {
    flex: none;
    min-height: 44px;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 0.875rem;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-chip:hover { border-color: var(--accent-text); }
.filter-chip[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    font-weight: 600;
}

.show-card {
    --mx: 50%;
    --my: 50%;
    --tx: 0;
    --ty: 0;
    --lift: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 1024px) {
    .show-card { border-radius: 22px; }
    .show-card:hover { border-color: rgba(123, 155, 255, 0.5); }
}
/* Spotlight care urmărește cursorul */
.show-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(340px circle at var(--mx) var(--my), rgba(123, 155, 255, 0.12), transparent 60%);
}
/* Înclinare ușoară + ridicare (doar desktop cu mouse); .reveal.is-visible ar suprascrie transform-ul simplu */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .show-card:hover::after { opacity: 1; }
    .show-card.reveal.is-visible {
        transform: perspective(900px) translateY(var(--lift)) rotateX(calc(var(--ty) * 1deg)) rotateY(calc(var(--tx) * 1deg));
    }
    .show-card.reveal.is-visible:hover { --lift: -4px; }
    .show-card.is-tilting { transition: transform 0.1s linear, border-color 0.3s ease; }
    .show-card:hover .card-preview-visual:not(.wp-degraded) { transform: scale(1.06); }
}

/* Captura reală (WebP) stă peste gradientul + iconița din .card-preview-visual,
   care rămân fallback dacă lipsește imaginea. */
.card-preview { position: relative; aspect-ratio: 760 / 475; overflow: hidden; }
.card-preview-visual { transition: filter 0.5s ease, transform 1.1s var(--ease); }
.card-shot { transition: opacity 0.5s ease; }
.card-shot.is-loaded { opacity: 1; }
.card-ph { transition: opacity 0.4s ease; }
.card-preview-visual.has-shot .card-ph { opacity: 0; }

.card-scrim {
    position: absolute;
    inset: 0 0 auto 0;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.badge {
    position: absolute;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(6, 8, 13, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
}
.badge-left { left: 10px; }
.badge-right { right: 10px; }
.card-score { color: #86efac; transition: background-color 0.5s ease, color 0.5s ease; }
.card-score.is-bad { background: rgba(220, 38, 38, 0.92); color: #fff; }

.show-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
@media (min-width: 1024px) { .show-body { padding: 22px; } }

.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    color: var(--muted);
}
.tag-bad  { border-color: var(--bad);  color: var(--bad); }
.tag-warn { border-color: var(--warn); color: var(--warn); }

/* Comutator Next.js ↔ WordPress (Tech-Stack Matrix) */
.tech-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
}
.tech-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 0.625rem;
    background: var(--accent);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
    z-index: 0;
}
.tech-toggle.is-wp .tech-toggle-thumb { transform: translateX(100%); background: #F5A524; }
.tech-toggle-btn { color: var(--muted); cursor: pointer; transition: color 0.3s ease; }
.tech-toggle:not(.is-wp) .tech-toggle-btn[data-tech="next"] { color: var(--accent-ink); }
.tech-toggle.is-wp .tech-toggle-btn[data-tech="wp"] { color: #1A1100; }

.card-preview-visual.wp-degraded {
    filter: grayscale(0.85) blur(2px) contrast(0.9) brightness(0.95);
    animation: wpJitter 1.2s steps(2) infinite;
}
@keyframes wpJitter {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(0.6px, -0.6px); }
    50%  { transform: translate(-0.6px, 0.6px); }
    75%  { transform: translate(0.6px, 0.6px); }
    100% { transform: translate(0, 0); }
}
.card-live-btn.is-slow { background: #F59E0B !important; color: #1A1100 !important; box-shadow: none; }

/* Slider mobil: translateX pe track (fără scroll nativ, ca să nu blocăm scroll-ul vertical) */
@media (max-width: 767px) {
    .showroom-track { transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
}
@media (min-width: 1280px) {
    #showroom-grid > :last-child:nth-child(3n + 1) { grid-column: 2 / 3; }
}
.showroom-arrow:disabled { opacity: 0.35; pointer-events: none; }
.showroom-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: width 0.3s ease, background-color 0.3s ease;
}
.showroom-dot.is-active { width: 22px; background: var(--accent-text); }

/* Loader „WordPress se încarcă greu" (3.5s) */
.wp-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(6, 8, 13, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wp-loader-overlay.is-active { opacity: 1; visibility: visible; }
.wp-loader-box {
    width: 100%;
    max-width: 22rem;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.wp-loader-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top-color: #F59E0B;
    animation: wpLoaderSpin 0.8s linear infinite;
}
@keyframes wpLoaderSpin { to { transform: rotate(360deg); } }
.wp-loader-msg { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.35rem; }
.wp-loader-sub { font-size: 0.8rem; color: var(--muted); margin: 0; }
.wp-loader-open {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.75rem;
    background: #F59E0B;
    color: #1A1100;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== 3g. FAQ ===== */
.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: border-color 0.3s ease;
}
.faq-item.is-open { border-color: rgba(123, 155, 255, 0.5); }
.faq-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    text-align: left;
    border-radius: 18px;
}
@media (min-width: 768px) { .faq-toggle { padding: 1.35rem 1.75rem; } }
.faq-icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
}
.faq-chevron { transition: transform 0.3s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}
.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* ===== 3h. AUDIT ===== */
.panel {
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    padding: 22px;
}
@media (min-width: 768px) { .panel { padding: 40px; border-radius: 28px; } }

.field {
    width: 100%;
    min-height: 56px;
    padding: 0 1rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--field);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.field { padding: 1rem; resize: none; }
.field::placeholder { color: var(--muted); opacity: 0.8; }
.field:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.25); }
.field-icon { padding-left: 3rem; }

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.1rem;
    padding-right: 3rem;
}
.form-select option { background-color: var(--panel); color: var(--ink); }

.ring-track { stroke: var(--line-strong); }
.ring-ok   { stroke: var(--ok); }
.ring-warn { stroke: var(--warn); }
.ring-bad  { stroke: var(--bad); }
.ring-none { stroke: var(--muted); }
.audit-ring-fill { transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.audit-spinner { animation: auditSpin 0.9s linear infinite; transform-origin: center; }
@keyframes auditSpin { to { transform: rotate(360deg); } }

.callout { border: 1px solid; border-radius: 16px; padding: 1.25rem; }
.callout-bad  { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.callout-warn { border-color: rgba(245, 165, 36, 0.35);  background: rgba(245, 165, 36, 0.08); }
.callout-ok   { border-color: rgba(74, 222, 128, 0.35);  background: rgba(74, 222, 128, 0.08); }

/* ===== 3i. CONTACT ===== */
.form-card {
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--panel);
    padding: 20px;
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .form-card { padding: 32px; border-radius: 28px; } }

.notice { border: 1px solid; border-radius: 14px; padding: 1rem; text-align: center; font-weight: 600; }
.notice-ok  { color: var(--ok);  border-color: rgba(74, 222, 128, 0.35);  background: rgba(74, 222, 128, 0.08); }
.notice-bad { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Lumină care se rotește în spatele secțiunii de contact (transform → pe GPU) */
#contact { isolation: isolate; overflow: clip; }
#contact::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 55%;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    background: conic-gradient(transparent, var(--glow) 18%, transparent 36%, var(--glow-2) 58%, transparent 80%);
    filter: blur(50px);
    opacity: 0.8;
    pointer-events: none;
    will-change: transform;
    animation: glowSpin 16s linear infinite;
}
html:not(.dark) #contact::before { opacity: 0.5; }
@keyframes glowSpin { to { transform: rotate(360deg); } }

/* ===== 3j. FOOTER ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
    color: var(--ink);
    transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent-text); }

/* ===== 3k. BARĂ CTA MOBIL + WHATSAPP PLUTITOR ===== */
.cta-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    background: color-mix(in srgb, var(--panel) 92%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(160%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.cta-bar.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.cta-bar .btn { flex: 1; min-width: 0; min-height: 52px; border-radius: 13px; }
@media (min-width: 768px) { .cta-bar { display: none; } }

@keyframes waPulse {
    0%   { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70%  { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: none;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wa);
    color: var(--wa-ink);
    animation: waPulse 2.4s ease-out infinite;
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 768px) { .wa-float { display: flex; } }

/* ===== REVEAL LA DERULARE ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: none; }

/* ===== 4. MIȘCARE REDUSĂ ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-animate { animation: none; opacity: 1; }
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
    .wi, .wi.grad-text, .stack-frame, .glass, .typed, .float, .blob, .grid-lines, .win-shine,
    .marquee-track, .site-header, .site-header .logo-mark::after, .live-dot::after, .caret,
    .svc-card.is-featured::before, #contact::before, .btn-primary::before { animation: none; }
    .wi { transform: none; }
    .stack-frame, .glass { opacity: var(--o, 1); }
    .typed { width: 29ch; }
    .win-shine { display: none; }
    .check-list li { opacity: 1; transform: none; transition: none; }
    .check-list path { stroke-dashoffset: 0; transition: none; }
    .metric::before { transform: scaleX(1); transition: none; }
    .scroll-progress { display: none; }
    .btn { transform: none; }
    .wa-float, .audit-spinner, .wp-loader-spinner,
    .card-preview-visual.wp-degraded { animation: none; }
    .showroom-track, .svc-body, .faq-answer, .mobile-menu, .cta-bar,
    .tech-toggle-thumb, .audit-ring-fill, .show-card, .card-shot,
    .card-ph, .card-preview-visual { transition: none; }
    .btn-ripple .ripple { animation: none; }
}
