/* ───────────── baza ───────────── */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5d5d5a;
  --line: rgba(23, 23, 23, 0.12);
  --blue: #0043d2;
  --pulse: #9fd4ff;
  --space: #05081a;
  --cream: #f5f4ef;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 16px/1 var(--font-body); text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:active { transform: scale(.96); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-light { background: var(--cream); color: var(--space); border-color: var(--cream); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(245, 244, 239, .35); }
.btn-ghost:hover { border-color: var(--cream); background: transparent; }

/* ───────────── bara de sus cu tab-uri ───────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; gap: 24px;
  padding: 0 28px;
  color: var(--ink);
  background: rgba(245, 244, 239, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1 var(--font-head); text-decoration: none; letter-spacing: -0.01em;
}
.brand rootit-logo { width: 34px; }
.tabs { display: flex; gap: 4px; margin: 0 auto; }
.tabs a {
  padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; opacity: .68;
  transition: opacity .2s ease, background-color .2s ease;
}
.tabs a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.tabs a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, .16); }

.menu-btn { display: none; }
/* bara se adaptează când scena e întunecată */
body.dark-ui .topbar { color: var(--cream); background: rgba(5, 8, 26, .45); border-color: rgba(255, 255, 255, .08); }
body.dark-ui .topbar rootit-logo { --rootit-ink: #f5f4ef; }
body.dark-ui .topbar .btn { background: var(--cream); color: var(--space); border-color: var(--cream); }

/* ───────────── filmul ───────────── */
.film {
  /* toate culorile scenei sunt variabile animate de scroll */
  --s1: #f5f4ef; --s2: #eef0f4; --s3: #e6eaf1;
  --fg: #171717; --fg-muted: rgba(23, 23, 23, .68);
  --lobe: #171717; --chip: #0043d2; --glow: #9fd4ff;
  --bld: #dfe3ea; --win: #eef1f6; --win-on: #ffcf7a;
  --trace: #2f6bff;
  --bx: 64%; --by: 46%;
  --bs: min(44vh, 27vw);
  position: relative;
}
.film-inner {
  position: relative; height: 100svh; overflow: hidden;
  color: var(--fg);
  isolation: isolate;
}
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.stars circle { fill: #fff; }
.stars .tw { animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

.moon {
  position: absolute; left: 36%; top: calc(var(--topbar) + 4vh); width: 8vmin; height: 8vmin; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf3, #e9e4cf 60%, #c9c3aa);
  box-shadow: 0 0 60px 10px rgba(255, 250, 220, .25);
  opacity: 0;
}

/* soarele răsare din spatele orașului și urcă pe cer; drumul lui e timpul câștigat */
.skypath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.skypath .arc { fill: none; stroke: #fffaf0; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .55; }
.skypath .week { fill: #fffaf0; opacity: .3; transition: opacity .3s ease; }
.skypath .week.on { opacity: 1; }
.sun {
  position: absolute; left: 0; top: 0;
  width: clamp(64px, 11vmin, 130px); aspect-ratio: 1;
  opacity: 0;
}
.sun-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fffbe8 0%, #ffe39a 48%, #ffbe6b 100%);
  box-shadow: 0 0 40px 10px rgba(255, 214, 140, .55), 0 0 160px 70px rgba(255, 190, 110, .28);
}

.circuit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.circuit .trace, .circuit .spark { vector-effect: non-scaling-stroke; }
.circuit .trace { fill: none; stroke: var(--trace); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.circuit .trace.dim { opacity: .35; }
.circuit .spark { fill: none; stroke: var(--glow); stroke-width: 4; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 6px var(--glow)); }
.circuit.live .spark { opacity: 1; animation: run var(--dur) linear infinite; animation-delay: var(--delay); }

.city { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; transform-origin: 50% 100%; }
.city svg { width: 100%; height: 100%; display: block; overflow: visible; }
.city .bld { fill: var(--bld); }
.city .win { fill: var(--win); }
.city .lit { fill: var(--win-on); }
.city .tag rect { fill: var(--cream); }
.city .tag text { font: 600 22px var(--font-head); fill: var(--space); }
.city .tag path { stroke: var(--cream); stroke-width: 2; }

.brain {
  position: absolute; left: var(--bx); top: var(--by);
  width: var(--bs); aspect-ratio: 424 / 376;
  z-index: 2;
}
.brain svg { width: 100%; height: 100%; overflow: visible; display: block; }
.brain .lobe { fill: var(--lobe); }
.brain .chip { fill: var(--chip); }
.brain .flash { fill: var(--glow); opacity: 0; }
.brain .pulse { fill: none; stroke: var(--glow); stroke-width: 7; stroke-linecap: round; opacity: 0; }
.alive .brain .pulse { opacity: 1; animation: run var(--dur) linear infinite; }
@keyframes run { from { stroke-dashoffset: var(--per); } to { stroke-dashoffset: 0px; } }

.arrival {
  position: absolute; left: var(--bx); top: var(--by); width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: #fff; z-index: 3; opacity: 0;
  box-shadow: 0 0 20px 6px var(--glow), 0 0 60px 20px rgba(47, 107, 255, .55);
}

.tasks { position: absolute; left: var(--bx); top: var(--by); width: 0; height: 0; z-index: 3; }
.task {
  position: absolute;
  left: calc(var(--mx) * var(--bs) * var(--sx, 1)); top: calc(var(--my) * var(--bs) * var(--sy, 1));
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: #171717;
  font: 500 15px/1 var(--font-body);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55);
  opacity: 0;
}
.task::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.task b { font-weight: 600; color: #e5484d; }

/* ce construiește RootIT: ecrane mici care apar în jurul creierului, legate de circuit */
.products { position: absolute; left: var(--bx); top: var(--by); width: 0; height: 0; z-index: 3; }
.products .links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.products .link { fill: none; stroke: #8fd0ff; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.products .lspark { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 5px #8fd0ff); }
.products.on .lspark { opacity: 1; animation: inflow 1.6s cubic-bezier(.5,0,.5,1) infinite; animation-delay: var(--d); }
@keyframes inflow { from { stroke-dashoffset: 0px; } to { stroke-dashoffset: var(--back); } }
.product {
  position: absolute;
  left: calc(var(--px) * var(--bs)); top: calc(var(--py) * var(--bs));
  width: calc(var(--bs) * 0.5);
  display: grid; gap: 8px; justify-items: center;
  opacity: 0;
}
.product > span { font: 600 14px/1 var(--font-head); color: #f5f4ef; letter-spacing: -0.01em; white-space: nowrap; }
.mock {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #0f1f5c, #081238);
  border: 1px solid rgba(143, 208, 255, .4);
  box-shadow: 0 0 0 4px rgba(61, 123, 255, .08), 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 40px -10px rgba(61, 123, 255, .6);
}
.mock i { position: absolute; display: block; border-radius: 3px; }
/* site */
.m-site .top { left: 0; right: 0; top: 0; height: 12%; border-radius: 0; background: rgba(245, 244, 239, .1); }
.m-site .top::before { content: ""; position: absolute; left: 6%; top: 35%; width: 18%; height: 30%; border-radius: 3px; background: #3d7bff; }
.m-site .hero { left: 8%; top: 22%; width: 54%; height: 14%; background: #f5f4ef; }
.m-site .l1 { left: 8%; top: 44%; width: 46%; height: 6%; background: rgba(245, 244, 239, .45); }
.m-site .l2 { left: 8%; top: 55%; width: 38%; height: 6%; background: rgba(245, 244, 239, .45); }
.m-site .cta { left: 8%; top: 70%; width: 26%; height: 14%; border-radius: 99px; background: #3d7bff; }
.m-site::after { content: ""; position: absolute; right: 7%; top: 22%; width: 26%; height: 62%; border-radius: 8px; background: linear-gradient(160deg, #3d7bff, #8fd0ff); opacity: .85; }
/* dashboard */
.m-dash .k { top: 9%; width: 26%; height: 22%; border-radius: 6px; background: rgba(245, 244, 239, .12); }
.m-dash .k:nth-child(1) { left: 6%; } .m-dash .k:nth-child(2) { left: 37%; } .m-dash .k:nth-child(3) { left: 68%; }
.m-dash .k::before { content: ""; position: absolute; left: 14%; top: 30%; width: 50%; height: 36%; border-radius: 2px; background: #f5f4ef; }
.m-dash .bars { position: absolute; left: 6%; right: 6%; bottom: 10%; height: 50%; display: flex; align-items: flex-end; gap: 6%; }
.m-dash .bars i { position: relative; flex: 1; height: var(--h); background: linear-gradient(to top, #3d7bff, #8fd0ff); border-radius: 3px 3px 1px 1px; transform-origin: bottom; }
.m-dash .bars i:nth-child(1) { --h: 35%; } .m-dash .bars i:nth-child(2) { --h: 52%; } .m-dash .bars i:nth-child(3) { --h: 44%; }
.m-dash .bars i:nth-child(4) { --h: 66%; } .m-dash .bars i:nth-child(5) { --h: 58%; } .m-dash .bars i:nth-child(6) { --h: 80%; } .m-dash .bars i:nth-child(7) { --h: 96%; }
.products.on .m-dash .bars i { animation: grow 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -0.03s); }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
/* automatizare: trei noduri legate, cu un punct care trece prin ele */
.m-flow .n { top: 38%; width: 18%; height: 26%; border-radius: 8px; background: rgba(245, 244, 239, .14); border: 1.5px solid #8fd0ff; }
.m-flow .n:nth-child(1) { left: 6%; } .m-flow .n:nth-child(3) { left: 41%; border-radius: 50%; } .m-flow .n:nth-child(5) { left: 76%; }
.m-flow .w { top: 50%; height: 2px; width: 17%; background: #8fd0ff; }
.m-flow .w:nth-child(2) { left: 24%; } .m-flow .w:nth-child(4) { left: 59%; }
.m-flow .dot { top: calc(50% - 5px); left: 12%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px #8fd0ff; opacity: 0; }
.products.on .m-flow .dot { animation: flowdot 2.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes flowdot { 0% { left: 12%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 82%; opacity: 0; } }
/* aplicații */
.m-app { display: flex; justify-content: center; align-items: center; gap: 8%; }
.m-app .phone { position: relative; width: 26%; height: 84%; border-radius: 10px; border: 1.5px solid rgba(245, 244, 239, .55); background: rgba(245, 244, 239, .06); padding: 10% 8%; display: grid; align-content: start; gap: 9%; }
.m-app .phone i { position: static; height: 9px; border-radius: 3px; background: rgba(245, 244, 239, .4); }
.m-app .phone i:first-child { background: #3d7bff; height: 14px; }

.clock {
  position: absolute; left: 6vw; top: calc(var(--topbar) + 5vh);
  font: 600 clamp(44px, 7vw, 96px)/1 var(--font-head); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: #fffaf2; opacity: 0; z-index: 2;
}

.orbit {
  position: absolute; left: var(--bx); top: var(--by);
  width: calc(var(--bs) * 1.4); aspect-ratio: 1;
  opacity: 0; z-index: 1;
}
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .track { fill: none; stroke: var(--fg); stroke-opacity: .5; stroke-width: 1; }
.orbit .ospark { fill: none; stroke: var(--glow); stroke-width: 3.5; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px var(--glow)); }
.loop-on .orbit .ospark { opacity: 1; animation: orbit 4.5s linear infinite; }
@keyframes orbit { from { stroke-dashoffset: 0px; } to { stroke-dashoffset: var(--olen); } }
.station {
  position: absolute; left: calc(50% + var(--sx) * 50%); top: calc(50% + var(--sy) * 50%);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--cream); color: var(--space);
  font: 600 15px/1 var(--font-head);
  box-shadow: 0 0 0 6px rgba(245, 244, 239, .08);
  opacity: 0;
}

/* textul poveștii */
.captions {
  position: absolute; z-index: 4;
  left: 6vw; top: 50%; translate: 0 -50%;
  width: min(540px, 40vw);
  display: grid;
}
.cap { grid-area: 1 / 1; align-self: center; }
.film .cap:not(.cap-hero) { opacity: 0; visibility: hidden; }
.cap h1 { font-size: clamp(42px, 5.2vw, 78px); line-height: 1.02; margin-bottom: 20px; }
.cap h2 { font-size: clamp(34px, 3.8vw, 58px); line-height: 1.04; margin-bottom: 16px; }
.cap p { color: var(--fg-muted); font-size: clamp(17px, 1.35vw, 20px); }
.accent { color: var(--blue); }
.cap .eyebrow, .cap .kicker {
  font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); opacity: .7; margin-bottom: 16px;
}
.scroll-cue { margin-top: 36px; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-muted); }
.scroll-cue span { position: relative; width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid currentColor; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--blue);
  animation: cue 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

.calc { display: grid; gap: 12px; margin: 4px 0 20px; font-weight: 500; font-size: 16px; color: var(--fg); }
.calc-row { display: flex; align-items: center; gap: 16px; }
.calc output { font: 600 18px/1 var(--font-head); min-width: 54px; text-align: right; }
.calc input[type="range"] { flex: 1; accent-color: var(--blue); height: 28px; }
.cap .counter { font: 700 clamp(52px, 5.4vw, 80px)/1 var(--font-head); color: var(--fg); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.counter small { font: 500 18px/1 var(--font-body); color: var(--fg-muted); letter-spacing: 0; }
.cap .note { font-size: 15px; }

.film-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(127, 127, 127, .15); }
.film-progress span { display: block; height: 100%; width: 100%; background: var(--trace); transform-origin: 0 50%; transform: scaleX(0); }

/* ───────────── final ───────────── */
.cta {
  min-height: 90svh;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 22px;
  padding: 120px 24px;
  background: radial-gradient(ellipse at 50% 0%, #0d1540 0%, var(--space) 60%);
  color: var(--cream);
}
.cta-logo { width: 220px; margin-bottom: 14px;  /* de la 210px în sus apare și sloganul „DIGITAL SYSTEMS” */ --rootit-ink: #f5f4ef; --rootit-blue: #3d7bff; }
.cta h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; max-width: 16ch; }
.cta p { color: rgba(245, 244, 239, .7); max-width: 46ch; font-size: 19px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.footer {
  padding: 28px 28px 30px; background: var(--space); color: rgba(245, 244, 239, .6); font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
/* datele firmei și linkurile legale (Legea 31/1990, Legea 365/2002, GDPR) */
.footer-legal {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 28px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px; line-height: 1.6; color: rgba(245, 244, 239, .5);
}
.footer-legal p { margin: 0; max-width: 760px; }
.footer-legal nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(245, 244, 239, .72); text-decoration: none; }
.footer-legal a:hover { color: var(--cream); text-decoration: underline; }
.brand-small { font-size: 16px; color: var(--cream); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(245, 244, 239, .75); }
.footer-links a:hover { color: var(--cream); }
@media (max-width: 640px) { .footer-main { flex-direction: column; align-items: flex-start; } }
.brand-small rootit-logo { width: 26px; --rootit-ink: #f5f4ef; --rootit-blue: #3d7bff; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────── telefon / tabletă ───────────── */
@media (max-width: 860px) {
  :root { --topbar: 60px; }
  .topbar { padding: 0 12px 0 16px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand rootit-logo { width: 30px; }
  .topbar .btn-small { margin-left: auto; padding: 9px 14px; font-size: 13px; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 5px;
    width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(127, 127, 127, .14); cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease; }
  body.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .tabs {
    position: fixed; top: var(--topbar); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px 12px 16px;
    background: rgba(245, 244, 239, .97); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  body.dark-ui .tabs { background: rgba(5, 8, 26, .96); border-color: rgba(255, 255, 255, .08); }
  body.menu-open .tabs { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .tabs a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .footer { padding: 24px 16px 32px; }
}

/* scena sus, textul în mijloc, orașul jos: telefoane, tablete și laptopuri mici */
@media (max-width: 1180px) and (max-aspect-ratio: 4/3) {
  .film {
    --bx: 50%;
    --by: calc((var(--topbar) + 52svh) / 2);
    --bs: min(56vw, calc((52svh - var(--topbar)) * 0.72));
  }
  .clock { left: 16px; top: calc(var(--topbar) + 1.5svh); font-size: 28px; z-index: 3; }
  .moon { left: auto; right: 14px; top: calc(var(--topbar) + 12px); width: 7vmin; height: 7vmin; }
  .city { height: 16svh; }
  .city .tag { display: none; } /* aici orașul e mic; creșterea o spune textul */
  .task { font-size: 12px; padding: 7px 10px 7px 9px; gap: 6px; }
  .task::before { width: 6px; height: 6px; }
  .task.wide-only { display: none; }
  .station { font-size: 12px; padding: 7px 11px; }
  .orbit { width: calc(var(--bs) * 1.15); }
  .product { left: calc(var(--px) * var(--bs) * .86); width: calc(var(--bs) * .42); gap: 5px; }
  .product > span { font-size: 10.5px; }
  .mock { border-radius: 7px; }
  .m-app .phone i { height: 4px; }
  .m-app .phone i:first-child { height: 7px; }
  .m-flow .dot { width: 6px; height: 6px; top: calc(50% - 3px); }
  /* textul stă deasupra orașului, pe un panou discret, ca să se citească peste orice fundal */
  .captions {
    left: 12px; right: 12px; top: auto; bottom: calc(16svh + 10px); translate: none; width: auto;
    max-width: 640px; margin: 0 auto;
  }
  /* fiecare text are panoul lui, cât textul, lipit de jos */
  .cap {
    align-self: end;
    padding: 16px 16px 18px; border-radius: 20px;
    background: color-mix(in srgb, var(--s2) 62%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .cap h1 { font-size: clamp(30px, 8.6vw, 44px); margin-bottom: 10px; }
  .cap h2 { font-size: clamp(25px, 7vw, 36px); margin-bottom: 8px; }
  .cap p { font-size: 15px; line-height: 1.5; }
  .cap .eyebrow, .cap .kicker { margin-bottom: 8px; font-size: 11px; }
  .scroll-cue { margin-top: 12px; }
  .cap .counter { font-size: 40px; margin-bottom: 6px; }
  .calc { font-size: 14px; margin-bottom: 8px; gap: 8px; }
  .calc input[type="range"] { height: 32px; }
}
/* telefoane scurte: textele secundare se ascund ca să încapă tot */
@media (max-width: 1180px) and (max-aspect-ratio: 4/3) and (max-height: 740px) {
  .cap .note, .cap .more { display: none; }
  .cap p { font-size: 14px; }
}

/* telefon ținut orizontal (ecran foarte jos): scena se simplifică, ca textul și creierul să aibă loc */
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  .film {
    --by: calc(var(--topbar) + (100svh - var(--topbar)) / 2);
    --bs: min(calc((100svh - var(--topbar)) * 0.6), 30vw);
  }
  .clock, .moon, .sun, .skypath, .city .tag { display: none; }
  .captions { top: calc(var(--topbar) + (100svh - var(--topbar)) / 2); width: min(420px, 42vw); }
  .cap h1 { font-size: 30px; margin-bottom: 8px; }
  .cap h2 { font-size: 24px; margin-bottom: 6px; }
  .cap p { font-size: 13.5px; line-height: 1.45; }
  .cap .eyebrow, .cap .kicker { font-size: 10.5px; margin-bottom: 6px; }
  .cap .note, .cap .more, .scroll-cue { display: none; }
  .cap .counter { font-size: 34px; margin-bottom: 4px; }
  .calc { font-size: 13px; gap: 4px; margin-bottom: 4px; }
  .orbit { width: calc(var(--bs) * 1.25); }
  .station, .task { font-size: 11px; padding: 6px 9px; }
  .product > span { font-size: 10px; }
  .city { height: 22svh; }
}

/* fără animații: povestea devine o pagină obișnuită, cu scena de zi */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::after, .stars .tw { animation: none; }
  .film-inner { height: auto; min-height: 100svh; overflow: visible; }
  .film .cap:not(.cap-hero) { opacity: 1; visibility: visible; }
  .captions { position: relative; left: auto; top: auto; translate: none; width: auto; max-width: 640px; margin: 0 auto; padding: calc(var(--topbar) + 60svh) 24px 80px; gap: 64px; background: none; }
  .cap { grid-area: auto; }
  .brain { top: calc(var(--topbar) + 28svh); }
  .circuit, .tasks, .products, .clock, .orbit, .sun, .skypath, .moon, .stars, .arrival, .film-progress { display: none; }
}

/* ───────────── accesibilitate ───────────── */
/* contur clar când navighezi cu tastatura (nu apare la click cu mouse-ul) */
:focus-visible { outline: 3px solid #3d7bff; outline-offset: 3px; border-radius: 6px; }
body.dark-ui .topbar :focus-visible, .footer :focus-visible, [data-dark] :focus-visible { outline-color: #8fd0ff; }
main:focus { outline: none; }
/* „Sari la conținut”: ascuns până primește focus de la tastatură */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip:focus { transform: none; }
/* zone de atingere mai mari pe telefon (min. ~44 px) */
@media (max-width: 860px) {
  .footer-links a, .footer-legal nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links, .footer-legal nav { gap: 0 18px; }
  .topbar .brand { min-height: 44px; }
}
