/* Leapr - home-ul "launch" (Dev1, 2 octombrie 2026). Se incarca doar pe index.html, dupa styles.css.
   Scenele: hero cu numele mare si lumina de expunere lunga, banda de fraze, serviciile cu cardul care
   urmeaza cursorul, drumul in sarituri, articolele, finalul. Starile de pornire le pune JS-ul (GSAP). */

/* Pe home, numele mic din bara nu se vede deloc la incarcare: e ascuns din primul cadru, fara sa astepte JavaScript-ul
   (main.js ruleaza dupa primul afisaj, iar pe o retea lenta logo-ul se vedea o clipa). Apare doar cand numele mare
   nu e pe ecran (home.js: .is-past-logo), si atunci cand pagina se deschide mai jos. Fara JavaScript: home-noscript.css.
   Se estompeaza imaginea, nu linkul: opacitatea linkului e a animatiei de intrare a barei (main.js), care o lasa
   scrisa pe element si ar anula-o pe a noastra (logo-ul aparea brusc). Linkul doar nu primeste focus cat e ascuns. */
.p-home .site-header__logo { transition: visibility 0.6s var(--ease); }
.p-home .site-header__logo img { transition: opacity 0.6s var(--ease); }
.p-home:not(.is-past-logo) .site-header__logo { visibility: hidden; }
.p-home:not(.is-past-logo) .site-header__logo img { opacity: 0; }

/* HERO */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 100svh; padding: calc(var(--header-h) + 24px) 0 48px; }
.hero__exposure { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__inner { display: grid; grid-template-rows: auto 1fr auto; gap: 32px; }
.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.hero__eyebrow { margin: 0; }
.hero__note { display: none; margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.hero__logo { align-self: center; width: 100%; }
.hero__mark { width: 100%; }
.hero__mark .logo-letter { stroke-width: 1.5; vector-effect: non-scaling-stroke; } /* conturul il pune GSAP doar cat se traseaza */
.hero__bottom { display: grid; gap: 24px; }
.hero__title { max-width: 680px; font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
.hero__side { display: grid; gap: 24px; }
.hero__lead { margin: 0; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .hero { padding-bottom: 64px; }
  .hero__note { display: block; }
  .hero__title { font-size: 48px; line-height: 1; }
}
@media (min-width: 1100px) {
  .hero__bottom { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
  .hero__title { font-size: 60px; }
}
/* Ecrane joase si late (laptop): numele mare nu impinge mesajul sub ecran. */
@media (min-width: 1100px) and (max-height: 820px) {
  .hero__logo { width: 82%; }
  .hero__title { font-size: 48px; }
}

/* BANDA DE FRAZE (ideea "Scroll Velocity Text"): doua randuri, unul plin, unul doar contur */
.velocity { overflow: hidden; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.velocity__row { display: flex; white-space: nowrap; }
.velocity__row + .velocity__row { margin-top: 8px; }
.velocity__track { display: flex; flex: none; will-change: transform; }
.velocity__set { display: flex; flex: none; align-items: center; margin: 0; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.velocity__set > span:not(.velocity__sep) { padding: 0 24px; }
/* Conturul doar pe exteriorul literelor: fontul variabil are contururi suprapuse in interiorul literelor, iar un
   contur simplu le-ar arata. Conturul de 2px se deseneaza primul, umplutura bleumarin (culoarea fondului) vine
   peste el si acopera tot ce e inauntru; ramane 1px vizibil, in afara literei (iteratia lui Robert, 2 octombrie 2026). */
.velocity__row--outline .velocity__set { color: var(--navy); -webkit-text-stroke: 2px var(--sky); paint-order: stroke fill; }
/* Separatorul: un arc mic, ca in "a" */
.velocity__sep { flex: none; width: 24px; height: 12px; border: 4px solid var(--sky); border-bottom: 0; border-radius: 24px 24px 0 0; }
.velocity__row--outline .velocity__sep { border-color: var(--blue); }
@media (min-width: 768px) {
  .velocity { padding: 64px 0; }
  .velocity__set { font-size: 96px; }
  .velocity__set > span:not(.velocity__sep) { padding: 0 40px; }
  .velocity__sep { width: 40px; height: 20px; border-width: 6px; border-radius: 40px 40px 0 0; }
}

/* CAPETE DE SECTIUNE cu link in dreapta */
.svc__head, .path__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.svc__head .title { max-width: 18ch; }

/* SERVICII: randuri mari, cardul albastru urmeaza cursorul pe desktop */
.svc { position: relative; }
.svc__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc__list > li { border-bottom: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: baseline; gap: 8px 16px;
  padding: 24px 0; color: var(--white); text-decoration: none;
}
.svc__num { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sky); }
.svc__title { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.03em; transition: transform 0.6s var(--ease), color 0.4s var(--ease); }
.svc__text { grid-column: 2; color: var(--text-2); }
.svc__go { grid-row: 1; grid-column: 3; justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.svc__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.svc__row:hover .svc__title, .svc__row:focus-visible .svc__title { color: var(--sky); transform: translateX(16px); }
.svc__row:hover .svc__go, .svc__row:focus-visible .svc__go { background: var(--blue); box-shadow: none; }
.svc__row:hover .svc__go svg, .svc__row:focus-visible .svc__go svg { transform: rotate(45deg); }
.svc__row:active .svc__title { transform: translateX(12px); }
@media (min-width: 768px) {
  .svc__row { grid-template-columns: 64px minmax(0, 1fr) 48px; padding: 32px 0; }
  .svc__title { font-size: 48px; line-height: 1; }
  .svc__go { width: 48px; height: 48px; }
}
/* Cu mouse: textul trece pe card (ramane in rand pentru cititoarele de ecran) */
.svc__float { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .svc__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .svc__row { align-items: center; }
  /* De la tastatura nu exista cursor: descrierea apare in rand cand randul are focus. */
  .svc__row:focus-visible .svc__text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .svc__float {
    position: absolute; top: 0; left: 0; z-index: 5; display: grid; gap: 12px; width: 320px; padding: 24px;
    border-radius: 24px; background: var(--blue); color: var(--white); pointer-events: none; visibility: hidden;
    box-shadow: 0 32px 64px rgba(8, 102, 255, 0.35);
  }
  .svc__float-num { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; opacity: 0.7; }
  .svc__float-text { margin: 0; font-size: 18px; line-height: 28px; font-weight: 500; }
  .svc__float-more { font-size: 14px; line-height: 20px; font-weight: 600; }
}

/* DRUMUL IN SARITURI (How we work) */
.path { position: relative; }
.path__pin { padding: 96px 0; }
.path__head { margin-bottom: 32px; }
.path__svg { display: none; width: 100%; height: auto; overflow: visible; }
/* Arcurile dintre puncte au forma arcului din logo: semicerc, capete taiate drept, grosimea = 0.39 din raza
   liniei de mijloc (ca in "a"). Umbra arata drumul intreg; arcul albastru se umple peste ea la derulare. */
.path__ghost { fill: none; stroke: var(--line); stroke-width: 41; stroke-linecap: butt; }
.path__arc { fill: none; stroke: var(--sky); stroke-width: 41; stroke-linecap: butt; }
.path__stop { fill: var(--navy); stroke: var(--sky); stroke-width: 3; vector-effect: non-scaling-stroke; }
.path__stop.is-on { fill: var(--sky); }
.path__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.path__step { position: relative; display: grid; gap: 8px; padding: 0 0 40px 48px; }
/* Pe telefon: o linie verticala cu cate un punct la fiecare pas */
.path__step::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.path__step:last-child::before { display: none; }
.path__step::after { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--sky); transition: background-color 0.5s var(--ease); }
.path__step.is-on::after { background: var(--sky); }
.path__num { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; color: var(--sky); }
.path__title { font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.path__text { margin: 0; max-width: 32ch; color: var(--text-2); }
@media (min-width: 900px) {
  /* Drumul are raportul 3.75:1 (viewBox 1200 x 320). Pe laptopurile joase (1366x768) scena se ingusteaza dupa inaltimea ecranului,
     ca drumul si pasii sa incapa cat timp sectiunea sta fixata (review Dev2, 2 octombrie 2026). */
  .path__stage { width: 100%; max-width: min(100%, calc((100svh - 520px) * 3.75)); margin: 0 auto; }
  .path__pin { display: grid; align-content: center; min-height: 100svh; padding: calc(var(--header-h) + 32px) 0 64px; }
  .path__svg { display: block; margin: 0 0 24px; }
  .path__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .path__step { padding: 0; text-align: center; justify-items: center; }
  .path__step::before, .path__step::after { display: none; }
  .path__title { font-size: 30px; line-height: 36px; }
}

/* ARTICOLE */
.post-card .link-arrow { margin-top: auto; padding-top: 16px; }

/* FINALUL */
.finale { padding: 96px 0; }
.finale__title { margin: 0 auto; max-width: 16ch; }
@media (min-width: 1200px) { .finale__title { font-size: 72px; } }

