/* Zent — site de prezentare. Culorile vin din theme.js al aplicației. */

:root {
  --blue: #2DA1FF;
  --blue-deep: #1E8FEA;
  --blue-soft: #D8EEFF;
  --tint: #E4F4FF;
  --ink: #0B1220;
  --ink-soft: #4A5361;
  --muted: #8A94A3;
  --line: #DCE7F2;
  --bg: #F3F8FD;
  --night: #060D1A;
  --sun: #FFD45C;
  --green: #2FBF71;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: max(20px, 5vw);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 70%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Butoane, cu literele care se rostogolesc la hover ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(45, 161, 255, .9); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .12); backdrop-filter: blur(10px); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(6, 40, 80, .6); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--line { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.nav__actions { display: flex; gap: 8px; }
.btn--big { height: 72px; padding: 0 38px; font-size: clamp(15px, 2.2vw, 21px); max-width: 100%; }

.roll__t { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3; }
.roll__t .ch {
  display: inline-block;
  text-shadow: 0 1.3em currentColor;
  transition: transform .55s var(--ease-io);
  transition-delay: calc(var(--i) * 12ms);
}
.roll:hover .ch, .roll:focus-visible .ch { transform: translateY(-1.3em); }

/* ---------- Loader: o jaluzea care se ridică ---------- */

.loader { display: none; }
html.js .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.loader__slats { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(8, 1fr); }
.loader__slats i {
  display: block;
  background: linear-gradient(180deg, #4DBDFF, var(--blue) 70%, var(--blue-deep));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 3px 8px rgba(9, 60, 110, .25);
  transition: transform 1s var(--ease-io);
  transition-delay: calc((7 - var(--i)) * 55ms);
}
.loader__count {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 6vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  font: 500 13px/1 var(--mono);
  letter-spacing: .14em;
  transition: opacity .3s;
}
.loader__num { font: 900 clamp(4rem, 14vw, 11rem)/.8 var(--display); font-stretch: 62%; letter-spacing: 0; font-variant-numeric: tabular-nums; }
html.is-loaded .loader__slats i { transform: translateY(-100vh); }
html.is-loaded .loader__count { opacity: 0; }

/* ---------- Navigație ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 30px -18px rgba(11, 59, 102, .4);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.nav.is-dark { color: #EAF3FC; background: rgba(8, 16, 30, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.nav.is-dark .btn--dark { background: #fff; color: var(--ink); }
.nav__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav__logo svg { height: 22px; width: auto; fill: currentColor; }
.nav__logo span { font: 900 24px/1 var(--display); font-stretch: 100%; letter-spacing: -.03em; margin-top: -3px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .8;
  transition: background-color .3s, opacity .3s;
}
.nav__links a:hover { opacity: 1; background: rgba(127, 160, 200, .16); }

/* ---------- 1. Scena cu fereastra ---------- */

.hero { position: relative; }
html.js .hero { height: 460vh; }

.hero__stage {
  --c-ink: var(--ink);
  --c-soft: var(--ink-soft);
  --c-label: var(--blue-deep);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--c-ink);
  transition: color .6s;
}
html.js .hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.hero__stage.is-dark { --c-ink: #F3F8FD; --c-soft: rgba(234, 243, 252, .72); --c-label: #8BD2FF; }

.room { position: absolute; inset: 0; background: radial-gradient(120% 95% at 64% 42%, #FFFFFF 0%, #EAF5FF 42%, #D3E7F8 100%); }
.room__glow {
  position: absolute;
  left: 63%;
  top: 50%;
  width: 120vh;
  height: 120vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 238, 180, .7) 0%, rgba(255, 238, 180, 0) 58%);
  opacity: var(--glow, 1);
}
.room__beam {
  position: absolute;
  left: 18%;
  right: 0;
  top: 30%;
  bottom: 0;
  background: linear-gradient(200deg, rgba(255, 244, 210, .75) 0%, rgba(255, 244, 210, 0) 70%);
  clip-path: polygon(64% 0, 86% 0, 70% 100%, 0 100%);
  opacity: var(--beam, 1);
  mix-blend-mode: soft-light;
}
.room__shade { position: absolute; inset: 0; background: #050B16; opacity: var(--shade, 0); }

/* Fereastra */
.window {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  z-index: 2;
  left: 63%;
  top: 51%;
  height: min(70vh, 660px);
  aspect-ratio: .74;
  transform: translate(-50%, -50%) perspective(1600px) rotateX(var(--rx)) rotateY(var(--ry));
}
.window__pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #9ED8FF;
  box-shadow:
    0 0 0 14px var(--frame, #fff),
    0 0 0 15px rgba(11, 18, 32, .07),
    0 50px 90px -30px rgba(11, 36, 66, .55);
}
.window__sill {
  position: absolute;
  left: -9%;
  right: -9%;
  bottom: -34px;
  height: 18px;
  border-radius: 6px;
  background: var(--frame, #fff);
  box-shadow: 0 18px 30px -12px rgba(11, 36, 66, .5);
}
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top, #2DA1FF), var(--sky-bot, #C2ECFF)); }
.stars {
  position: absolute;
  inset: 0 0 30% 0;
  opacity: var(--stars, 0);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 79% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 58%, #fff 50%, transparent 51%);
}
.sun {
  position: absolute;
  left: 64%;
  top: 0;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFF6C8 0%, var(--sun) 55%, #FFB020 100%);
  box-shadow: 0 0 60px 18px rgba(255, 212, 92, .55);
}
.moon {
  position: absolute;
  left: 22%;
  top: 0;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF, #DCE6F5 70%);
  box-shadow: 0 0 40px 8px rgba(220, 230, 245, .35);
  opacity: 0;
}
.cloud { position: absolute; height: 7%; border-radius: 999px; background: #fff; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 42%; aspect-ratio: 1; left: 16%; bottom: 30%; }
.cloud::after { width: 30%; aspect-ratio: 1; left: 48%; bottom: 25%; }
.cloud--1 { top: 22%; left: 6%; width: 36%; }
.cloud--2 { top: 36%; left: 56%; width: 28%; }
.cloud--3 { top: 11%; left: 72%; width: 22%; }
.hill { position: absolute; border-radius: 50%; }
.hill--back { width: 150%; height: 36%; left: -42%; bottom: -15%; background: var(--hill1, #BFE3A6); }
.hill--front { width: 130%; height: 32%; right: -52%; bottom: -17%; background: var(--hill2, #9ED183); }
.pane__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 128, 80, .45), rgba(255, 128, 80, 0) 75%);
  opacity: var(--warm, 0);
}
.blind { position: absolute; inset: 0; }
.blind__head {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 5%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #6CC4FF, var(--blue-deep));
  box-shadow: 0 4px 10px rgba(6, 50, 100, .3);
}
.blind__slats i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--slat-h, 20px);
  border-radius: 3px;
  background: linear-gradient(180deg, #A6DEFF 0%, #55C0FF 40%, #2EA3F2 100%);
  box-shadow: 0 2px 3px rgba(9, 60, 110, .28);
  will-change: transform;
}
.blind__rail {
  position: absolute;
  left: -1%;
  right: -1%;
  top: 0;
  height: 3.2%;
  border-radius: 4px;
  background: linear-gradient(180deg, #45AEFF, #1679D2);
  box-shadow: 0 6px 12px rgba(6, 40, 80, .35);
  will-change: transform;
}
.blind__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #071226, #10264A); opacity: calc(var(--night, 0) * .6); }
.blind__cords i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, .75);
  transform-origin: top;
}
.blind__cords i:first-child { left: 22%; }
.blind__cords i:last-child { right: 22%; }
.touch {
  position: absolute;
  left: 50%;
  top: 0;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .18), 0 6px 18px rgba(6, 40, 80, .3);
  backdrop-filter: blur(4px);
  opacity: 0;
}
.window__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .12) 70%, rgba(255, 255, 255, 0) 78%);
}

/* Textul scenei: patru capitole care se schimbă la scroll */
.hero__copy {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(42vw, 600px);
  padding: 120px 0 0 var(--gutter);
}
html.js .hero__copy { position: absolute; left: 0; top: 50%; transform: translateY(-48%); padding-top: 0; }
.chapter { grid-area: 1 / 1; align-self: center; }
html.js .chapter { pointer-events: none; visibility: hidden; transition: visibility 0s .6s; }
html.js .chapter.is-active { pointer-events: auto; visibility: visible; transition: none; }
.chapter__label { margin: 0 0 22px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-label); }
.chapter .display { font-size: clamp(2.6rem, 5.4vw, 5.8rem); line-height: 1.05; }
.chapter__text { max-width: 30em; margin: 24px 0 0; font-size: 18px; line-height: 1.55; color: var(--c-soft); }
.chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Cuvintele titlului urcă unul câte unul */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.w > span { display: inline-block; }
html.js .chapter .w > span { transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
html.js.is-loaded .chapter.is-active .w > span { transform: none; }
html.js .chapter .chapter__label,
html.js .chapter .chapter__text,
html.js .chapter .chapter__actions { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease); }
html.js.is-loaded .chapter.is-active .chapter__label,
html.js.is-loaded .chapter.is-active .chapter__text,
html.js.is-loaded .chapter.is-active .chapter__actions { opacity: 1; transform: none; transition-delay: .25s; }
html.js.is-loaded .chapter.is-active .chapter__label { transition-delay: 0s; }

/* Panoul de stare, ca în aplicație */
.hud {
  position: absolute;
  z-index: 4;
  right: max(24px, 4vw);
  bottom: 9vh;
  width: 270px;
  padding: 20px;
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 30px 60px -30px rgba(11, 36, 66, .55);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
html:not(.js) .hud { display: none; }
.hero__stage.is-dark .hud { background: rgba(255, 255, 255, .86); }
.hud__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hud__title { margin: 0; font: 800 20px/1.1 var(--display); font-stretch: 90%; }
.hud__room { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #E6FAEF; color: #1E9E5A; font: 600 12px/1 var(--body); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hud__status { margin: 18px 0 10px; font: 850 30px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.hud__bar { height: 6px; border-radius: 6px; background: rgba(11, 18, 32, .08); overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #6AC2FF, var(--blue)); transform-origin: left; transform: scaleX(var(--pct, 0)); }
.hud__pct { margin: 8px 0 0; font: 500 12px/1 var(--mono); color: var(--ink-soft); }
.hud__rows { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(11, 18, 32, .08); display: grid; gap: 8px; }
.hud__rows div { display: flex; justify-content: space-between; gap: 10px; }
.hud__rows dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hud__rows dd { margin: 0; font: 500 13px/1.4 var(--mono); font-variant-numeric: tabular-nums; }

.progress {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 5vh;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 11px/1 var(--mono);
  letter-spacing: .1em;
  color: var(--c-ink);
}
html:not(.js) .progress, html:not(.js) .scroll-hint { display: none; }
.progress li { position: relative; padding-top: 12px; opacity: .35; transition: opacity .4s; }
.progress li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease); }
.progress li.is-active { opacity: 1; }
.progress li.is-active::before { transform: scaleX(1); }

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 3.2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  transform: translateX(-50%);
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: var(--hint, 1);
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--ink-soft), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }

/* ---------- 2. Bandă de text ---------- */

.marquee {
  position: relative;
  z-index: 5;
  padding: 5vh 0;
  margin: -3vh -2vw;
  background: var(--ink);
  color: #fff;
  transform: rotate(-2.4deg);
  overflow: hidden;
}
.marquee__row { overflow: hidden; }
.marquee__row p {
  display: flex;
  width: max-content;
  margin: 0;
  font: 900 clamp(3rem, 9.5vw, 9rem)/1 var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.marquee__row + .marquee__row p { color: var(--blue); }
.marquee__row span { padding: 0 .12em; }
.marquee__row .marquee__dup { display: flex; padding: 0; }
.marquee__row .outline { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.marquee__row + .marquee__row .outline { -webkit-text-stroke-color: var(--blue); }
.marquee__row b { align-self: center; padding: 0 .3em; font-size: .42em; color: var(--sun); }

/* ---------- 3. Ce face ---------- */

.features { padding: 22vh var(--gutter) 10vh; }
.section-head { max-width: 1180px; margin: 0 auto 9vh; }
.section-head .display { max-width: 13ch; font-size: clamp(2.6rem, 6.4vw, 6.4rem); }
.section-head__lead { max-width: 34em; margin: 26px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.features__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 64px 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 24px 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 24px 50px -32px rgba(11, 59, 102, .35);
  transition: box-shadow .5s;
}
.card:hover { box-shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 40px 70px -34px rgba(11, 59, 102, .5); }
.card__num { position: absolute; top: 26px; right: 24px; font: 500 12px/1 var(--mono); color: var(--muted); }
.card__icon {
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  padding: 14px;
  border-radius: 17px;
  background: var(--tint);
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color .4s, stroke .4s, transform .6s var(--ease);
}
.card:hover .card__icon { background: var(--blue); stroke: #fff; transform: rotate(-8deg) scale(1.06); }
.card h3 { margin: 34px 0 10px; font: 850 24px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* Apariția la scroll */
html.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 4. Cifre ---------- */

.stats {
  max-width: calc(1180px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 6vh var(--gutter) 20vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { padding-top: 22px; border-top: 1px solid var(--line); }
.stat:nth-child(2) { transition-delay: .1s; }
.stat:nth-child(3) { transition-delay: .2s; }
.stat:nth-child(4) { transition-delay: .3s; }
.stat__value {
  margin: 0;
  font: 900 clamp(3.2rem, 7.6vw, 7.4rem)/.9 var(--display);
  font-stretch: 62%;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__value small { margin-left: .3em; font: 500 max(13px, .16em)/1 var(--mono); letter-spacing: .06em; color: var(--ink); vertical-align: top; }
.stat__label { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 18em; }

/* ---------- 5. Placa ---------- */

.board { position: relative; color: #EAF3FC; background: var(--night); }
html.js .board { height: 340vh; }
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(139, 210, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 210, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 60% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 60% at 60% 50%, #000, transparent);
}
.board__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 1.55fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro view" "specs view";
  gap: 3vh 4vw;
  align-items: center;
  min-height: 100vh;
  padding: 110px var(--gutter) 7vh;
  overflow: hidden;
}
html.js .board__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.board__stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 10%;
  top: 30%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 161, 255, .28), rgba(45, 161, 255, 0) 65%);
  transform: translateY(-30%);
  pointer-events: none;
}
.board__intro { grid-area: intro; position: relative; z-index: 1; align-self: end; }
.board .label { color: #8BD2FF; }
.board__intro .display { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
.board__lead { margin: 20px 0 0; font-size: 17px; color: rgba(234, 243, 252, .7); }
.board__view { grid-area: view; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; perspective: 1500px; }
.board__tilt {
  --rx: 0deg;
  --rz: 0deg;
  --ry: 0deg;
  --s: 1;
  position: relative;
  width: min(100%, 780px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s));
}
.board__tilt img { display: block; width: 100%; height: auto; filter: drop-shadow(0 60px 50px rgba(0, 0, 0, .55)); }
.spot {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  opacity: 0;
  transform: scale(.3);
  transition: opacity .4s, transform .5s var(--ease), background-color .3s;
}
.spot.is-on { opacity: 1; transform: scale(1); }
.spot.is-active { background: var(--sun); animation: ring 1.6s infinite; }
.spot[data-spot="0"] { left: 81.7%; top: 24%; }
.spot[data-spot="1"] { left: 93%; top: 69.2%; }
.spot[data-spot="2"] { left: 21.8%; top: 4.6%; }
.spot[data-spot="3"] { left: 17.1%; top: 89.3%; }
.spot[data-spot="4"] { left: 69.9%; top: 88.6%; }
.spot[data-spot="5"] { left: 11.1%; top: 26.1%; }
.specs { grid-area: specs; position: relative; z-index: 1; align-self: start; margin: 0; padding: 0; list-style: none; }
.spec { padding: 14px 0; border-top: 1px solid rgba(234, 243, 252, .12); opacity: .38; transition: opacity .4s; }
.spec.is-active { opacity: 1; }
.spec__n { margin-right: 14px; font: 500 12px/1 var(--mono); color: #8BD2FF; }
.spec h3 { display: inline; margin: 0; font: 850 22px/1.1 var(--display); font-stretch: 78%; text-transform: uppercase; }
.spec p { max-height: 0; margin: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.5; color: rgba(234, 243, 252, .72); transition: max-height .6s var(--ease), opacity .4s, margin .6s var(--ease); }
.spec.is-active p { max-height: 6em; margin-top: 8px; opacity: 1; }
html:not(.js) .spec { opacity: 1; }
html:not(.js) .spec p { max-height: none; opacity: 1; margin-top: 8px; }
html:not(.js) .spot { opacity: 1; transform: none; }

/* ---------- 6. Cum funcționează ---------- */

.how { position: relative; background: var(--bg); }
.how__stage { padding: 16vh 0; overflow: hidden; }
html.js .how.is-pinned .how__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; }
.how__track { display: flex; align-items: stretch; gap: 22px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.how__intro { flex: 0 0 min(560px, 80vw); display: flex; flex-direction: column; justify-content: center; padding-right: 3vw; }
.how__intro .display { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
.step, .flow { border-radius: 34px; }
.step {
  position: relative;
  flex: 0 0 min(420px, 80vw);
  min-height: min(64vh, 540px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(11, 59, 102, .45);
}
.step:nth-of-type(2) { background: var(--blue); color: #fff; }
.step:nth-of-type(4) { background: var(--ink); color: #fff; }
.step__n {
  position: absolute;
  top: 14px;
  left: 26px;
  font: 900 clamp(7rem, 13vw, 11rem)/1 var(--display);
  font-stretch: 62%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
}
.step:nth-of-type(2) .step__n, .step:nth-of-type(4) .step__n { -webkit-text-stroke-color: rgba(255, 255, 255, .55); }
.step h3 { margin: 0 0 12px; font: 850 clamp(28px, 3vw, 38px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .8; }
.flow {
  flex: 0 0 min(820px, 88vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  color: #fff;
  background: var(--night);
}
.flow h3 { margin: 0; font: 850 clamp(28px, 3vw, 40px)/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.flow__lead { max-width: 26em; margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: rgba(234, 243, 252, .7); }
.flow__nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: node; }
.flow__nodes::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: rgba(139, 210, 255, .25); }
.flow__nodes::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 16px 4px rgba(255, 212, 92, .6);
  animation: travel 3.2s var(--ease-io) infinite;
}
.flow__nodes li { position: relative; padding-top: 66px; counter-increment: node; }
.flow__nodes li::before {
  content: counter(node);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #12223A;
  box-shadow: inset 0 0 0 1px rgba(139, 210, 255, .35);
  font: 500 13px/1 var(--mono);
  color: #8BD2FF;
}
.flow__nodes b { display: block; margin-bottom: 6px; font: 800 19px/1.1 var(--display); font-stretch: 85%; text-transform: uppercase; }
.flow__nodes span { font-size: 14px; line-height: 1.45; color: rgba(234, 243, 252, .7); }

/* ---------- 7. Aplicația ---------- */

.app { padding: 18vh var(--gutter) 0; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, #D4ECFF 45%, #7FCBFF 100%); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 44px); padding-bottom: 12vh; }
.phone { width: clamp(118px, 22vw, 300px); margin: 0; text-align: center; }
.phone--main { width: clamp(140px, 27vw, 360px); }
.phone:first-child { rotate: -7deg; }
.phone:last-child { rotate: 7deg; }
.phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 40px rgba(11, 59, 102, .35)); }
.phone figcaption { margin-top: 18px; font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ---------- 8. Contact ---------- */

.contact {
  position: relative;
  padding: 6vh var(--gutter) 20vh;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #7FCBFF 0%, var(--blue) 26%, var(--blue-deep) 100%);
}
.contact__body { position: relative; margin-top: 3vh; }
.contact__house { display: block; width: clamp(240px, 36vw, 480px); height: auto; margin: 0 auto; filter: drop-shadow(0 40px 40px rgba(6, 40, 80, .35)); animation: bob 6s ease-in-out infinite; }
.contact .label { justify-content: center; color: #fff; }
.contact .label::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: pulse 2s infinite; }
.contact__title { font-size: clamp(3.2rem, 12vw, 12rem); line-height: .95; }
.contact__text { max-width: 32em; margin: 28px auto 40px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* ---------- Subsol ---------- */

.footer { padding: 4vh var(--gutter) 30px; overflow: hidden; color: rgba(234, 243, 252, .7); background: var(--night); }
.footer__word {
  margin: 0 0 3vh;
  font: 900 31vw/.78 var(--display);
  font-stretch: 100%;
  letter-spacing: -.05em;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, var(--blue) 10%, rgba(45, 161, 255, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid rgba(234, 243, 252, .12); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer__row a { color: #8BD2FF; text-decoration: none; }
.footer__row a:hover { text-decoration: underline; }

/* ---------- Pagina 404 ---------- */

.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; gap: 22px; padding: var(--gutter); text-align: center; background: linear-gradient(180deg, var(--blue) 0%, #6AC2FF 30%, #C2ECFF 65%, #fff 90%); }
.notfound .display { font-size: clamp(3rem, 12vw, 9rem); }
.notfound p { margin: 0; font-size: 18px; color: var(--ink-soft); }

/* ---------- Animații ---------- */

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 100% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 92, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 212, 92, 0); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes travel { 0% { left: 18px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 30px); opacity: 0; } }

/* ---------- Ecrane mai mici ---------- */

@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 7vh; }
  .hud { width: 240px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }

  html.js .hero { height: 440vh; }
  .window { left: 50%; top: calc(84px + 22svh); height: 42svh; transform: translate(-50%, -50%) perspective(1600px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .window__pane { border-radius: 16px; box-shadow: 0 0 0 9px var(--frame, #fff), 0 0 0 10px rgba(11, 18, 32, .07), 0 30px 60px -24px rgba(11, 36, 66, .55); }
  .window__sill { bottom: -24px; height: 12px; }
  .room__glow { left: 50%; top: calc(84px + 22svh); }
  .room__beam { left: 0; top: 40%; }
  html.js .hero__copy { left: 0; right: 0; top: auto; bottom: max(24px, 4svh); width: auto; padding: 0 var(--gutter); transform: none; }
  .hero__copy { width: auto; padding-right: var(--gutter); }
  .chapter { align-self: end; }
  .chapter__label { margin-bottom: 14px; }
  .chapter .display { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .chapter__text { margin-top: 14px; font-size: 15.5px; }
  .chapter__actions { margin-top: 20px; gap: 10px; }
  .chapter__actions .btn { height: 46px; padding: 0 20px; font-size: 14px; }
  .hud {
    left: 50%;
    right: auto;
    top: calc(84px + 43svh + 4px);
    bottom: auto;
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }
  .hud__top, .hud__bar, .hud__rows { display: none; }
  .hud__status { margin: 0; font-size: 18px; }
  .hud__pct { margin: 0; }
  .progress, .scroll-hint { display: none; }

  .marquee { transform: rotate(-3deg); }

  .board__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "intro" "view" "specs"; gap: 2vh; padding-top: 96px; padding-bottom: 4vh; }
  .board__intro .display { font-size: clamp(2rem, 9vw, 3rem); }
  .board__lead { margin-top: 10px; font-size: 15px; }
  html.js .spec:not(.is-active) { display: none; }
  .spec { border-top: 0; }
  .spot { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-width: 2px; }

  .how__stage { padding: 14vh 0; }
  .how__track { flex-direction: column; width: auto; gap: 16px; }
  .how__intro { flex: none; padding: 0 0 4vh; }
  .step { flex: none; min-height: 340px; }
  .flow { flex: none; padding: 30px 26px; }
  .flow__nodes { grid-template-columns: 1fr; gap: 22px; }
  .flow__nodes::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .flow__nodes::after { display: none; }
  .flow__nodes li { padding: 4px 0 0 64px; min-height: 44px; }

  .phones { gap: 8px; }
  .phone figcaption { font-size: 10px; letter-spacing: .04em; }
}

@media (max-width: 860px) and (max-height: 740px) {
  .window, .room__glow { top: calc(76px + 16svh); }
  .window { height: 30svh; }
  .hud { top: calc(76px + 31svh + 4px); }
  .chapter .display { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .chapter__text { font-size: 14.5px; }
}

@media (max-width: 400px) {
  .nav .btn--dark { display: none; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; gap: 20px; }
  .card { min-height: 0; }
  .card h3 { margin-top: 26px; }
  .stats { grid-template-columns: 1fr; }
  .nav { padding-left: 16px; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .chapter .display { font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
  .spec { padding: 10px 0; }
  .hud { bottom: 6vh; padding: 16px; }
  .hud__rows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .loader { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
