/* LOCK.AI marketing site. Fundal editorial, mascota LOCK, capturi reale de app.
   Reguli: transform/opacity pentru miscare, fara librarii, fara loader,
   pagina complet vizibila fara JavaScript. */

:root {
  --bg: #100e0c;
  --ink: #f4efe8;
  --ink-soft: #b8afa3;
  --ink-mute: #a0968a;
  --line: rgba(244, 239, 232, 0.14);
  --accent: #e2603a;
  --cream: #f2e7d5;
  --teal: #46b3ab;
  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 44px);
  --space: clamp(90px, 14vw, 190px);
  --t: cubic-bezier(0.23, 1, 0.32, 1);
  --ring: rgba(226, 96, 58, 0.35);
  --motion-out: cubic-bezier(.16, 1, .3, 1);
  --motion-spring: cubic-bezier(.2, 1.35, .25, 1);
  /* fundalul barei de tab-uri din capturile reale, folosit sub ecran */
  --screen-chrome: #1c1815;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main, .nav, .foot { position: relative; z-index: 2; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.6em; font-weight: 660; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--ink-soft); }
.narrow { max-width: 44ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  font-weight: 660; color: var(--accent); margin: 0 0 1.2em;
}
.principle { color: var(--ink); }
.principle strong { color: var(--cream); font-weight: 700; }
.fine { font-size: 0.85rem; color: var(--ink-mute); margin: 0; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--bg); padding: 12px 18px; z-index: 20; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   FUNDAL: baza statica plus halou cald care pluteste si arce hairline.
   Doar transform. Fara particule, fara cursor, fara ecran de incarcare.
   ============================================================ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #100e0c, #15110e 58%, #100e0c);
}

.backdrop { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.backdrop__glow {
  position: absolute;
  border-radius: 50%;
  width: 78vmax;
  height: 78vmax;
  top: -20vmax;
  right: -14vmax;
  background: radial-gradient(closest-side, rgba(226, 96, 58, 0.32), rgba(226, 96, 58, 0.09) 58%, transparent 78%);
  will-change: transform;
  animation: glowDrift 38s ease-in-out infinite alternate;
}
.backdrop__glow--cool {
  top: auto;
  right: auto;
  bottom: -36vmax;
  left: -22vmax;
  width: 64vmax;
  height: 64vmax;
  background: radial-gradient(closest-side, rgba(70, 179, 171, 0.13), rgba(70, 179, 171, 0.04) 58%, transparent 78%);
  animation: glowDrift 52s ease-in-out infinite alternate-reverse;
}
@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-5%, 4%, 0) scale(1.07); }
}
.backdrop__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(70% 62% at 84% 10%, #000 0%, rgba(0, 0, 0, 0.4) 46%, transparent 74%);
  mask-image: radial-gradient(70% 62% at 84% 10%, #000 0%, rgba(0, 0, 0, 0.4) 46%, transparent 74%);
}

/* ============================================================
   NAV
   ============================================================ */

.nav { position: sticky; top: 0; z-index: 6; backdrop-filter: blur(14px) saturate(150%); background: rgba(16,14,12,0.55); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.06rem; white-space: nowrap; }
.brand-mark { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(244,239,232,0.16), 0 8px 22px rgba(0,0,0,0.28); }
.dot { color: var(--accent); }
.nav nav { position: relative; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav nav a { text-decoration: none; font-size: 0.94rem; color: var(--ink-soft); transition: color 200ms var(--t); white-space: nowrap; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn { color: #1a1613; }
.nav nav a.is-active { color: var(--ink); }
.nav-underline {
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(226, 96, 58, 0.3), var(--accent));
  transform: translateX(var(--x, 0px));
  opacity: 0;
  transition: transform 380ms var(--motion-out), width 380ms var(--motion-out), opacity 240ms linear;
}
.nav-underline.is-on { opacity: 1; }
.nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(226, 96, 58, 0.15), var(--accent));
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 660; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
  padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px;
  background: rgba(226, 96, 58, 0.12);
}
.status-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(226, 96, 58, 0.18);
  animation: betaPulse 2.8s ease-in-out infinite;
}
@keyframes betaPulse {
  0%, 100% { opacity: .5; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ============================================================
   BUTOANE
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; background: var(--ink); color: #1a1613;
  font-size: 0.97rem; font-weight: 620; text-decoration: none; cursor: pointer;
  white-space: nowrap; position: relative; overflow: hidden;
  transition: transform 220ms var(--t), box-shadow 220ms var(--t), background 220ms var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn-ghost { background: rgba(244,239,232,0.06); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(244,239,232,0.12); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 0.91rem; }

/* ============================================================
   HERO
   ============================================================ */

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7vh 0 clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-top: 0.2em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2em; }

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(6px, 1.4vw, 20px);
  perspective: 1200px;
}
.hero-stage__phone {
  display: flex; flex-direction: column; align-items: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 420ms var(--motion-out);
}
.hero-stage__mascot { position: relative; margin: 0; }
.hero-stage__mascot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 58svh;
  object-fit: contain;
  object-position: center bottom;
  animation: mascotIdle 7s ease-in-out infinite;
}
.hero-stage__mascot::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8% -12% 2%;
  pointer-events: none;
  background: radial-gradient(52% 44% at 50% 46%, rgba(226, 96, 58, .20) 0%, transparent 72%);
  animation: mascotGlow 9s ease-in-out infinite;
}
.hero-stage__mascot::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 16%;
  right: 16%;
  bottom: 3%;
  height: 4.5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  filter: blur(6px);
}
.real-build-note { grid-column: 1 / -1; margin: 14px 0 0; color: var(--ink-mute); font-size: 0.76rem; letter-spacing: 0.04em; text-align: center; }

@keyframes mascotIdle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
@keyframes mascotGlow {
  0%, 100% { opacity: .38; }
  50% { opacity: .72; }
}
@keyframes phoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); }
.scroll-hint span { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--ink-mute)); animation: drop 2.4s infinite var(--t); }
@keyframes drop { 0% { opacity: 0; transform: scaleY(0.2); } 40% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); } }

/* ============================================================
   TELEFON: un singur componente, folosit de toate instantele.
   Ecranul pastreaza raportul natural al capturii (nimic taiat),
   iar sub el sta banda de safe-area cu indicatorul de home.
   ============================================================ */

.product-phone {
  --frame-pad: 1.9cqw;
  --radius: 14cqw;
  --radius-in: calc(var(--radius) - var(--frame-pad));
  --statusbar: 8cqw;
  --safe: 8.6cqw;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  container-type: inline-size;
}
.product-phone__bezel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--frame-pad);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #2b2b33, #15151b 46%, #1d1d24 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 0 0 1px rgba(158,151,143,0.55),
    0 0 0 2px rgba(24,21,19,0.92),
    0 26px 58px rgba(0,0,0,0.62);
}
.product-phone__display { width: 100%; overflow: hidden; border-radius: var(--radius-in); background: var(--screen-chrome); }
.product-phone__screen {
  position: relative;
  width: 100%;
  padding-top: 3cqw;
  overflow: hidden;
  border-radius: 0;
  background: #12100e;
  isolation: isolate;
}
.product-phone__screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.product-phone__safe {
  position: relative;
  height: var(--safe);
  border-radius: 0;
  background: var(--screen-chrome);
}
.product-phone__indicator {
  position: absolute;
  left: 50%;
  bottom: 2cqw;
  width: 35.6%;
  height: 1.15cqw;
  min-height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(244,239,232,0.62);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.product-phone__island {
  position: absolute;
  z-index: 3;
  top: 1.6cqw;
  left: 50%;
  width: 27cqw;
  height: 5.6cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #030303;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.product-phone__island::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 50%;
  height: 58%;
  width: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #191922, #06060c 74%);
  box-shadow: inset 0 0 0 1px rgba(126,126,158,0.3), 0 0 0.5px rgba(160,160,200,0.2);
}
.product-phone__statusbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--statusbar);
  padding: 0 9%;
  background: #12100e;
  color: #f4efe8;
  font-size: 2.85cqw;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.product-phone__signals { display: flex; align-items: center; gap: 2.8cqw; }
.product-phone__signals svg { display: block; width: 3.4cqw; height: 2.3cqw; fill: currentColor; stroke: none; }
.product-phone__signals svg:nth-child(2) { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.product-phone__signals svg:last-child { width: 4.6cqw; }
.product-phone__signals svg:last-child .sb-bat-shell { fill: none; stroke: currentColor; stroke-width: 1.3; }
.product-phone__glare {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.08), transparent 18%, transparent 66%, rgba(255,255,255,0.022));
}
/* butoane laterale, aceeasi geometrie pe toate instantele */
.product-phone::before,
.product-phone::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 3px;
}
.product-phone::before {
  left: -2px;
  top: 21%;
  height: 16%;
  border-radius: 3px 0 0 3px;
  background:
    linear-gradient(#8e877e, #2a2622) top / 100% 44% no-repeat,
    linear-gradient(#8e877e, #2a2622) bottom / 100% 44% no-repeat;
}
.product-phone::after {
  right: -2px;
  top: 29%;
  height: 12%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#8e877e, #2a2622);
}
.product-phone__shadow {
  position: absolute;
  z-index: -1;
  /* 11% pe laterale iese din ecran la 320px si face pagina mai lata decat telefonul */
  inset: 7% calc(-1 * min(11%, clamp(8px, 4vw, 40px))) -5%;
  border-radius: 45%;
  background: rgba(0,0,0,0.72);
  filter: blur(22px);
}

.product-phone--hero { max-width: 320px; max-width: min(320px, 29svh); }
.hero-stage__phone .product-phone { animation: phoneFloat 6.4s ease-in-out infinite; }
.product-phone--showcase { max-width: 360px; }
.product-phone--cta { max-width: 320px; }

/* ============================================================
   CLOSED-LOOP STRIP
   ============================================================ */

.loop { padding: calc(var(--space) * 0.6) 0; background: var(--cream); color: #1a1613; }
.loop .loop-step h3 { color: #1a1613; }
.loop .loop-ring { border-color: rgba(26,22,19,0.18); background: radial-gradient(circle at 30% 30%, rgba(226,96,58,0.3), rgba(226,96,58,0.04) 68%); color: #1a1613; }
.loop-inner { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.loop-step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 140px; }
.loop-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, rgba(226,96,58,0.15), transparent 70%),
              rgba(244,239,232,0.03);
  box-shadow: 0 0 0 1px rgba(244,239,232,0.05) inset;
  transition: transform 300ms var(--t), border-color 300ms var(--t), box-shadow 300ms var(--t), color 300ms var(--t);
}
/* umplere interioara, aprinsa cand semnalul ajunge in cerc */
.loop-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(226,96,58,0.45), rgba(226,96,58,0.08) 74%);
  opacity: 0;
}
.loop-icon { position: relative; display: block; width: 26px; height: 26px; }
.loop-icon svg { display: block; width: 100%; height: 100%; }
.loop-step:hover .loop-ring { transform: scale(1.08); border-color: var(--accent); box-shadow: 0 0 24px var(--ring); color: var(--accent); }
.loop-step h3 { font-size: 0.95rem; font-weight: 620; color: var(--ink); letter-spacing: -0.01em; max-width: 12ch; }
/* linia care conecteaza pasii: firul static plus semnalul care circula pe el */
.loop-connector {
  --conn-line: var(--line);
  width: clamp(40px, 8vw, 80px); height: 1px;
  flex-shrink: 0;
  background-image: linear-gradient(90deg, transparent, var(--conn-line), transparent),
                    linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 100% 100%, 26% 100%;
  background-position: 0 0, -100% 0;
  background-repeat: no-repeat;
  animation: loopSignalX 4.2s linear infinite;
}
/* pe fundal crem firul are nevoie de culoare inchisa */
.loop .loop-connector { --conn-line: rgba(26,22,19,0.3); }
.loop-inner > .loop-connector:nth-child(2) { animation-delay: 0s; }
.loop-inner > .loop-connector:nth-child(4) { animation-delay: 1.4s; }
@keyframes loopSignalX {
  0%   { background-position: 0 0, -100% 0; }
  14%  { background-position: 0 0, 200% 0; }
  100% { background-position: 0 0, 200% 0; }
}
/* cercurile se aprind in ordine, dupa semnal */
.loop-inner > .loop-step:nth-child(1) .loop-ring { animation: loopRing 4.2s ease-in-out infinite; }
.loop-inner > .loop-step:nth-child(1) .loop-ring::before { animation: loopFill 4.2s ease-in-out infinite; }
.loop-inner > .loop-step:nth-child(3) .loop-ring { animation: loopRing 4.2s ease-in-out infinite 1.4s; }
.loop-inner > .loop-step:nth-child(3) .loop-ring::before { animation: loopFill 4.2s ease-in-out infinite 1.4s; }
.loop-inner > .loop-step:nth-child(5) .loop-ring { animation: loopRing 4.2s ease-in-out infinite 2.8s; }
.loop-inner > .loop-step:nth-child(5) .loop-ring::before { animation: loopFill 4.2s ease-in-out infinite 2.8s; }
@keyframes loopRing {
  0%, 100% { border-color: rgba(26,22,19,0.18); box-shadow: 0 0 0 0 rgba(226,96,58,0); color: #1a1613; }
  16% { border-color: var(--accent); box-shadow: 0 0 0 7px rgba(226,96,58,0.10), 0 0 20px var(--ring); color: var(--accent); }
  46% { border-color: rgba(26,22,19,0.18); box-shadow: 0 0 0 0 rgba(226,96,58,0); color: #1a1613; }
}
@keyframes loopFill {
  0%, 100% { opacity: 0; }
  16% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   SHOWCASE: circuit de patru noduri plus panouri
   ============================================================ */

.showcase { position: relative; padding: var(--space) 0; overflow: hidden; }
.showcase-stage {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(226,96,58,0.06), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(70,179,171,0.05), transparent 60%);
}
.showcase-inner { position: relative; max-width: 1440px; }
.showcase-header { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.showcase-header .eyebrow { margin-bottom: 0.8em; }
.showcase-header h2 { margin: 0 auto; max-width: 50ch; }

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.showcase-tabs {
  --tab-node: 52px;
  --tab-gap: clamp(22px, 3vw, 40px);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--tab-gap);
}
.tabs-track, .tabs-fill, .tabs-signal {
  position: absolute;
  top: calc(var(--tab-node) / 2);
  height: 2px;
  transform: translateY(-1px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}
.showcase-tabs.is-wired .tabs-track,
.showcase-tabs.is-wired .tabs-fill,
.showcase-tabs.is-wired .tabs-signal { opacity: 1; }
.tabs-track { left: var(--track-left, 0px); right: var(--track-right, 0px); background: rgba(244,239,232,0.13); }
.tabs-fill {
  left: var(--track-left, 0px);
  width: var(--fill-w, 0px);
  background: linear-gradient(90deg, rgba(226,96,58,0.35), rgba(226,96,58,0.9));
  transition: width 420ms var(--motion-out);
}
.tabs-signal {
  left: var(--signal-left, 0px);
  width: var(--signal-w, 0px);
  background: linear-gradient(90deg, transparent, rgba(255,186,150,0.95), transparent);
}
.showcase-tabs.is-counting .tabs-signal { opacity: 1; animation: tabsTravel var(--count, 10s) linear forwards; }
@keyframes tabsTravel {
  0% { transform: translate3d(0, 0, 0) translateY(-1px); opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate3d(var(--travel, 0px), 0, 0) translateY(-1px); opacity: 0; }
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-mute);
  font: inherit;
  cursor: pointer;
  transition: color 200ms var(--t);
}
.tab-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--tab-node);
  height: var(--tab-node);
  border-radius: 50%;
  border: 1px solid rgba(244,239,232,0.16);
  background: #201a16;
  transition: color 220ms var(--t), background 220ms var(--t), border-color 220ms var(--t), box-shadow 220ms var(--t);
}
.tab-btn svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-label { font-size: 0.78rem; letter-spacing: 0.02em; }
.tab-btn:hover { color: var(--ink); }
.tab-btn:hover .tab-node { border-color: rgba(226,96,58,0.4); background: rgba(244,239,232,0.08); }
.tab-btn.active,
.tab-btn[aria-selected="true"] { color: var(--accent); }
.tab-btn.active .tab-node,
.tab-btn[aria-selected="true"] .tab-node {
  border-color: rgba(226,96,58,0.85);
  background: var(--accent);
  color: #17100d;
  box-shadow: 0 0 0 4px rgba(226,96,58,0.08), 0 6px 20px rgba(226,96,58,0.18);
}
.tab-node::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--accent); border-radius: inherit; opacity: 0; pointer-events: none; }
.showcase-tabs.is-counting .tab-btn.active .tab-node::after { animation: nodePulse 3s ease-out infinite; }
@keyframes nodePulse { 0% { transform: scale(.92); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.tab-btn.active .tab-label,
.tab-btn[aria-selected="true"] .tab-label { color: var(--ink); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }

.tabs-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: .72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244,239,232,0.04);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 200ms var(--t), background 200ms var(--t), border-color 200ms var(--t);
}
.tabs-toggle svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.tabs-toggle .tabs-toggle__play { display: none; }
.tabs-toggle.is-paused .tabs-toggle__pause { display: none; }
.tabs-toggle.is-paused .tabs-toggle__play { display: block; }
.tabs-toggle:hover { color: var(--ink); background: rgba(244,239,232,0.09); border-color: rgba(226,96,58,0.35); }

.showcase-panels { position: relative; display: grid; }
.showcase-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
}
/* atributul hidden trebuie sa invinga display-ul de mai sus */
.showcase-panel[hidden] { display: none; }
.showcase-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.showcase-phone { position: relative; z-index: 4; }
.showcase-copy { text-align: left; }
.showcase-copy .eyebrow { margin-bottom: 0.6em; }
.showcase-copy h3 { font-size: clamp(1.4rem, 3.2vw, 2.2rem); margin-bottom: 0.5em; }
.showcase-copy p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.showcase-copy .principle { margin-top: 1.2em; font-size: 1rem; }

/* intrare si trecere intre ecrane */
.showcase.is-in .showcase-stage { animation: stageIn 1100ms var(--motion-out) 60ms both; }
@keyframes stageIn {
  from { opacity: .45; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}
.showcase.is-in .showcase-panel.active .showcase-main { animation: fanIn 880ms var(--motion-out) 140ms both; }
@keyframes fanIn {
  from { opacity: .35; transform: rotate(-2.2deg) scale(.955) translateY(16px); }
  to { opacity: 1; transform: none; }
}
.showcase-panels[data-dir="next"] .showcase-panel.is-entering .showcase-phone { animation: phoneFromRight 640ms var(--motion-spring) both; }
.showcase-panels[data-dir="prev"] .showcase-panel.is-entering .showcase-phone { animation: phoneFromLeft 640ms var(--motion-spring) both; }
@keyframes phoneFromRight {
  from { opacity: .25; transform: translate3d(52px, 10px, 0) rotateY(-7deg); }
  to { opacity: 1; transform: none; }
}
@keyframes phoneFromLeft {
  from { opacity: .25; transform: translate3d(-52px, 10px, 0) rotateY(7deg); }
  to { opacity: 1; transform: none; }
}
.showcase-panels[data-dir="next"] .showcase-panel.is-entering .showcase-copy { animation: copyFromRight 560ms var(--motion-out) 70ms both; }
.showcase-panels[data-dir="prev"] .showcase-panel.is-entering .showcase-copy { animation: copyFromLeft 560ms var(--motion-out) 70ms both; }
@keyframes copyFromRight { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes copyFromLeft { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }

/* ============================================================
   MEET LOCK
   ============================================================ */

.meet { padding: var(--space) 0; background: #f7f7ef; color: #1a1613; overflow: hidden; }
.meet-inner { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 5vw, 76px); align-items: center; }
.meet .lead { color: rgba(26,22,19,0.68); }
.meet-character { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vw, 30px); }
.meet-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 400 / 500;
  display: grid;
  place-items: center;
}
.meet-orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: 0.55; }
.meet-mascot {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 26px rgba(34,27,21,0.18));
  transform-origin: 50% 92%;
}
.meet-ground {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 3.2%;
  width: 48%;
  height: 3.6%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52,40,30,0.34), rgba(52,40,30,0));
}
.meet-mascot.is-react { animation: mascotReact 780ms var(--motion-spring); }
@keyframes mascotReact {
  0% { translate: 0 0; rotate: 0deg; }
  26% { translate: 0 -16px; rotate: -2.4deg; }
  58% { translate: 0 0; rotate: 1.6deg; }
  78% { translate: 0 -4px; rotate: -0.8deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
.meet-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.meet-action {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(26,22,19,0.14);
  background: rgba(255,255,255,0.65);
  color: rgba(26,22,19,0.7);
  font: inherit; font-size: 0.92rem; font-weight: 620;
  cursor: pointer;
  transition: color 200ms var(--t), background 200ms var(--t), border-color 200ms var(--t), box-shadow 200ms var(--t), transform 200ms var(--t);
}
.meet-action svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* iconitele pline (grid) pastreaza fill-ul, restul sunt contur */
svg.icon-solid { fill: currentColor; stroke: none; }
.meet-action:hover { transform: translateY(-2px); color: #1a1613; background: #fff; box-shadow: 0 10px 24px rgba(60,44,32,0.12); }
.meet-action.is-active {
  color: #b8482a;
  background: #fff;
  border-color: rgba(226,96,58,0.55);
  box-shadow: 0 8px 22px rgba(120,70,40,0.14);
}
.meet-phrase {
  margin: 0;
  min-height: 1.6em;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 560;
  color: rgba(26,22,19,0.74);
  max-width: 34ch;
}

/* ============================================================
   LOCK WORLD
   ============================================================ */

.world { padding: var(--space) 0; overflow: hidden; }
.world-heading { text-align: center; margin-bottom: clamp(34px, 6vw, 78px); }
.world-heading .narrow { margin-inline: auto; }
.world-gallery {
  width: min(1560px, calc(100% - 40px)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 38px);
}
.world-gallery figure { margin: 0; min-width: 0; }
.world-gallery img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: clamp(24px, 3vw, 44px);
  box-shadow: 0 34px 90px rgba(0,0,0,0.48), 0 0 0 1px rgba(244,239,232,0.12);
}
.world-gallery figcaption {
  margin-top: 16px; color: var(--ink-soft); text-align: center;
  font-size: 0.88rem; letter-spacing: 0.04em;
}

/* ============================================================
   TRUST
   ============================================================ */

.trust { padding: var(--space) 0; background: var(--cream); color: #1a1613; }
.trust h2 { color: #1a1613; }
.trust .trust-list li { color: rgba(26,22,19,0.72); }
.trust .quote { color: #1a1613; }
.trust-list { list-style: none; margin: 2.6em 0; padding: 0; display: grid; gap: 16px; }
.trust-list li { padding-left: 28px; position: relative; color: var(--ink-soft); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 18px rgba(70,179,171,0.7);
}
.quote {
  font-size: clamp(1.3rem, 3.4vw, 2.2rem); line-height: 1.25; letter-spacing: -0.025em;
  color: var(--cream); max-width: 26ch; margin: 0; font-weight: 620;
}

/* ============================================================
   CTA
   ============================================================ */

.cta { padding: var(--space) 0; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cta-phone { display: flex; align-items: center; justify-content: center; }
.cta-copy { text-align: left; }
.cta-copy h2 { margin-bottom: 0.5em; }
.cta-copy .lead { margin-bottom: 1.8em; }
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist input {
  flex: 1 1 230px; min-height: 50px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(244,239,232,0.06); color: var(--ink); font: inherit;
}
.waitlist input::placeholder { color: var(--ink-mute); }
.waitlist input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(226,96,58,0.16); }
.cta-copy .waitlist { justify-content: flex-start; margin: 2.4em 0 1.2em; }
.cta-copy .fine { margin-top: 0.6em; }
.beta-status { color: var(--ink-soft); }
.cta-copy .fine a { color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid transparent; transition: color 200ms var(--t), border-color 200ms var(--t); }
.cta-copy .fine a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { padding: 54px 0 44px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { flex: 1 1 100%; }

/* ============================================================
   INTARE: fara JavaScript pagina rămâne complet vizibila.
   Clasa .js o pune scriptul, deci toate starile ascunse depind de el.
   ============================================================ */

html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--t), transform 700ms var(--t); transition-delay: var(--delay, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

.hero-title { margin-bottom: 0.45em; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; }
html.js .hero-line > span {
  opacity: .25;
  transform: translateY(115%);
  animation: heroLineIn 900ms var(--motion-out) calc(var(--i, 0) * 90ms + 80ms) forwards;
}
@keyframes heroLineIn { to { opacity: 1; transform: none; } }
html.js .hero-copy .eyebrow,
html.js .hero-copy .lead,
html.js .hero-copy .actions { opacity: 0; transform: translateY(16px); animation: heroFadeIn 700ms var(--motion-out) forwards; }
html.js .hero-copy .eyebrow { animation-delay: 40ms; }
html.js .hero-copy .lead { animation-delay: 340ms; }
html.js .hero-copy .actions { animation-delay: 440ms; }
@keyframes heroFadeIn { to { opacity: 1; transform: none; } }

/* Bucla se opreste cand fila nu e vizibila sau cand hero-ul a ieșit din cadru. */
html.is-idle *, html.is-idle *::before, html.is-idle *::after { animation-play-state: paused !important; }
html.hero-rest .backdrop__glow,
html.hero-rest .hero-stage__phone .product-phone,
html.hero-rest .hero-stage__mascot img,
html.hero-rest .hero-stage__mascot::before { animation-play-state: paused; }

/* ============================================================
   MOBIL
   ============================================================ */

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 3vh 0 clamp(48px, 10vw, 90px); }
  /* Linkurile mici devin tinte de atingere de peste 32px pe telefon, fara sa
     schimbe nimic pe desktop. */
  .foot nav a,
  .cta-copy .fine a { display: inline-block; line-height: 2.3; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .hero-stage { order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); }
  .hero-stage__mascot img { max-height: 40svh; }
  .loop-inner { gap: clamp(12px, 3vw, 24px); }
  .loop-connector {
    width: 1px; height: clamp(30px, 6vw, 50px);
    background-image: linear-gradient(180deg, transparent, var(--conn-line), transparent),
                      linear-gradient(180deg, transparent, var(--accent), transparent);
    background-size: 100% 100%, 100% 26%;
    background-position: 0 0, 0 -100%;
    animation-name: loopSignalY;
  }
  @keyframes loopSignalY {
    0%   { background-position: 0 0, 0 -100%; }
    14%  { background-position: 0 0, 0 200%; }
    100% { background-position: 0 0, 0 200%; }
  }
  .showcase-tabs { --tab-node: 46px; --tab-gap: clamp(20px, 6vw, 28px); }
  .showcase-panel { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .showcase-main { order: -1; min-height: auto; }
  .product-phone--showcase { max-width: 320px; }
  .meet-inner { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
  .meet-character { order: -1; }
  .meet-stage { width: min(100%, 340px); }
  .world-gallery { grid-template-columns: 1fr; width: min(100% - 28px, 620px); }
  .cta-inner { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
  .cta-phone { order: -1; }
  .cta-copy { text-align: center; }
  .cta-copy .waitlist { justify-content: center; }
  .nav nav a:not(.btn) { display: none; }
  .nav-underline { display: none; }
}

@media (max-width: 620px) {
  .status-pill { display: none; }
  .hero-stage { gap: 4px; }
}

/* ============================================================
   MISCARE REDUSA: pagina devine statica, dar complet vizibila.
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-line > span,
  html.js .hero-line > span,
  html.js .hero-copy .eyebrow,
  html.js .hero-copy .lead,
  html.js .hero-copy .actions { opacity: 1; transform: none; animation: none; }
  .scroll-hint span,
  .status-pill::before,
  .backdrop__glow,
  .hero-stage__phone .product-phone,
  .hero-stage__mascot img,
  .hero-stage__mascot::before,
  .meet-mascot.is-react { animation: none; }
  .showcase.is-in .showcase-stage,
  .showcase.is-in .showcase-panel.active .showcase-main,
  .showcase-panels[data-dir] .showcase-panel.is-entering .showcase-phone,
  .showcase-panels[data-dir] .showcase-panel.is-entering .showcase-copy { animation: none; }
  .showcase-tabs.is-counting .tabs-signal { animation: none; opacity: 0; }
  .tabs-toggle { display: none; }
  .showcase-tabs.is-counting .tab-btn.active .tab-node::after { animation: none; }
  .tab-btn, .tab-node, .tabs-fill, .tabs-toggle, .meet-action, .btn, .nav-underline { transition: none; }
  .btn:hover, .btn:active, .meet-action:hover { transform: none; }
  .hero-stage__phone { transition: none; }
  .loop-inner > .loop-step:nth-child(1) .loop-ring,
  .loop-inner > .loop-step:nth-child(3) .loop-ring,
  .loop-inner > .loop-step:nth-child(5) .loop-ring,
  .loop-inner > .loop-step:nth-child(1) .loop-ring::before,
  .loop-inner > .loop-step:nth-child(3) .loop-ring::before,
  .loop-inner > .loop-step:nth-child(5) .loop-ring::before,
  .loop-ring::before,
  .loop-connector { animation: none; }
  .loop-ring::before { opacity: 0; }
  .loop-connector {
    background-image: linear-gradient(90deg, transparent, var(--conn-line), transparent);
    background-size: 100% 100%;
    background-position: 0 0;
    opacity: 1;
  }
  .loop-step:hover .loop-ring { transform: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .loop-connector { background-image: linear-gradient(180deg, transparent, var(--conn-line), transparent); }
}
