/* LOCK.AI showcase. Fundal 3D fix, text deasupra. Paleta brandului. */

:root {
  --bg: #100e0c;
  --ink: #f4efe8;
  --ink-soft: #b8afa3;
  --ink-mute: #7d7469;
  --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);
  --ring-strong: rgba(226, 96, 58, 0.6);
}

* { box-sizing: border-box; }

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

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;
}

/* FUNDAL EDITORIAL STATIC */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 46% at 78% 18%, rgba(226,96,58,0.16), transparent 70%),
    radial-gradient(48% 42% at 18% 78%, rgba(70,179,171,0.09), transparent 72%),
    linear-gradient(180deg, #100e0c, #15110e 58%, #100e0c);
}
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); }

/* LOADER */
.loader {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: var(--bg); transition: opacity 600ms var(--t), visibility 600ms;
}
body:not(.loading) .loader { opacity: 0; visibility: hidden; }
.loader-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(226,96,58,0.5); animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226,96,58,0.45); }
  70% { box-shadow: 0 0 0 22px rgba(226,96,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,96,58,0); }
}

/* NAV */
.nav { position: sticky; top: 0; z-index: 6; backdrop-filter: blur(14px) saturate(150%); background: rgba(16,14,12,0.55); border-bottom: 1px solid transparent; }
.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; }
.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 { 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); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn { color: #1a1613; }
.status-pill {
  font-size: 0.68rem; font-weight: 660; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px;
  background: rgba(226, 96, 58, 0.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;
  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-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: 8vh 0 var(--space); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); 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; }

/* PRODUCT PHONE */
.product-phone {
  --sb: 12cqw;
  --r: 14cqw;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 477 / 1000;
  margin: 0 auto;
  container-type: inline-size;
}
.product-phone__bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1.9cqw;
  border-radius: var(--r);
  corner-shape: squircle;
  background: linear-gradient(150deg, #23232a, #14141a 45%, #1b1b21 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 0 1px rgba(158,151,143,0.62), 0 0 0 2px rgba(24,21,19,0.92), 0 26px 58px rgba(0,0,0,0.62);
}
.product-phone__bezel::before,
.product-phone__bezel::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(#8e877e, #2a2622);
}
.product-phone__bezel::before { top: 20%; height: 7%; }
.product-phone__bezel::after { top: 31%; height: 11%; }
.product-phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--r) - 1.9cqw);
  corner-shape: squircle;
  background: #12100e;
  isolation: isolate;
}
.product-phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.product-phone__indicator {
  position: absolute;
  z-index: 3;
  bottom: 1.2%;
  left: 50%;
  width: 34%;
  min-height: 3px;
  height: 0.5%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(244,239,232,0.6);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.product-phone__island {
  position: absolute;
  z-index: 3;
  top: 1.05%;
  left: 50%;
  width: 28.5%;
  height: 3.7%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #030303;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.product-phone::before,
.product-phone::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 3px;
  border-radius: 3px;
}
/* volume up / volume down, scalable */
.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;
}
/* power button */
.product-phone::after {
  right: -2px;
  top: 29%;
  height: 12%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#8e877e, #2a2622);
}
.product-phone__island::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #101017, #06060c 78%);
  box-shadow: none;
}
.product-phone__statusbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sb);
  padding: 0 6%;
  background: #12100e;
  color: #f4efe8;
  font-size: clamp(10px, 3.6cqw, 14px);
  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: 3.4cqw; }
.product-phone__signals svg { display: block; width: 4.3cqw; height: 2.9cqw; 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: 5.8cqw; }
.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.09), transparent 18%, transparent 66%, rgba(255,255,255,0.025));
}
.product-phone__shadow {
  position: absolute;
  z-index: -1;
  inset: 7% -11% -6%;
  border-radius: 45%;
  background: rgba(0,0,0,0.72);
  filter: blur(22px);
}
.product-phone--hero { max-width: 360px; }
.product-phone--showcase { max-width: 360px; }
.product-phone--cta { max-width: 320px; }

.hero-phone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68vh; }
.hero-phone { perspective: 1100px; }
.hero-phone .product-phone {
  transform: translateX(-8%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 420ms var(--motion-out);
  transform-style: preserve-3d;
  animation: phoneFloat 5.5s ease-in-out infinite;
}
.character-card {
  margin: 0; overflow: hidden; background: #f7f7ef;
  box-shadow: 0 26px 80px rgba(0,0,0,0.42), 0 0 0 1px rgba(244,239,232,0.14);
}
.character-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-character {
  position: absolute; z-index: 1;
  inset: 3% -34% 9% -24%;
  border-radius: 56px;
  transform: rotate(1.5deg);
}
.hero-character img { object-fit: cover; object-position: center; }
.real-build-note { position: relative; z-index: 4; margin: 14px 0 0; color: var(--ink-mute); font-size: 0.76rem; letter-spacing: 0.04em; }

.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); } }

/* 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%); }
.loop .loop-connector { background: linear-gradient(90deg, transparent, rgba(26,22,19,0.28), transparent); }
.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 {
  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);
}
.loop-step:hover .loop-ring { transform: scale(1.08); border-color: var(--accent); box-shadow: 0 0 24px var(--ring); }
.loop-step h3 { font-size: 0.95rem; font-weight: 620; color: var(--ink); letter-spacing: -0.01em; max-width: 12ch; }
.loop-connector {
  width: clamp(40px, 8vw, 80px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  flex-shrink: 0;
}

/* FULL-BLEED SHOWCASE */
.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-tabs {
  display: flex; justify-content: center; gap: clamp(8px, 1.5vw, 16px);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.tab-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  appearance: none; border: 1px solid var(--line); border-radius: 16px; 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), box-shadow 200ms var(--t);
}
.tab-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-btn:first-child svg { fill: currentColor; stroke: none; }
.tab-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tab-btn.active.is-counting .tab-progress { animation: tab-progress 10s linear forwards; }
@keyframes tab-progress { to { transform: scaleX(1); } }
.tab-btn:hover { color: var(--ink); background: rgba(244,239,232,0.08); border-color: rgba(226,96,58,0.3); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tab-btn.active,
.tab-btn[aria-selected="true"] {
  color: #1a1613; background: var(--cream); border-color: var(--cream); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(226,96,58,0.25);
}

.showcase-panels { position: relative; height: 800px; }
.showcase-panel {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(0.98);
  transition: opacity 400ms var(--t), transform 400ms var(--t), visibility 400ms;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: clamp(30px, 5vw, 80px); align-items: center;
}
.showcase-panel.active {
  opacity: 1; visibility: visible; transform: 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; }

/* MEET */
.meet { padding: var(--space) 0; background: #f7f7ef; color: #1a1613; overflow: hidden; }
.meet-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 6vw, 88px); align-items: center; }
.meet .lead { color: rgba(26,22,19,0.68); }
.meet-character { min-height: 58vh; display: grid; place-items: center; }
.meet-character img {
  display: block; width: min(100%, 440px); aspect-ratio: 2 / 3; object-fit: contain;
  border-radius: 42px;
  filter: drop-shadow(0 34px 28px rgba(34,27,21,0.16));
}

/* 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;
}

/* FINAL 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-phone-frame { max-width: 320px; }
.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; }
.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%; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .loader-dot { animation: none; }
  .tab-btn { transition: none; }
  .tab-btn.active.is-counting .tab-progress { animation: none; }
  .showcase-panel { transition: none; }
}

/* MOBIL */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
  .hero { min-height: auto; padding-top: 4vh; }
  .hero-phone { min-height: 590px; order: -1; overflow: clip; width: 100%; }
  .hero-phone .product-phone { max-width: 278px; transform: translateX(-10%); }
  .hero-character { inset: 5% -30% 15% -30%; border-radius: 38px; transform: none; }
  .hero-character img { object-position: 14% center; }
  .loop-inner { gap: clamp(12px, 3vw, 24px); }
  .loop-connector {
    width: 1px; height: clamp(30px, 6vw, 50px);
    background: linear-gradient(180deg, transparent, var(--line), transparent);
  }
  .showcase-panel { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .showcase-panels { height: 850px; }
  .showcase-main { order: -1; min-height: auto; }
  .product-phone--showcase { max-width: 300px; }
  .meet-inner { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 48px); }
  .meet-character { min-height: auto; order: -1; }
  .meet-character img { width: min(100%, 360px); }
  .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):not(.status-pill) { display: none; }
}

/* ============================================================
   MOTION PASS - tokens, intrare coregrafata, miscare de personaj
   Doar transform, opacity, translate si rotate. Fara layout shift.
   ============================================================ */

:root {
  --motion-out: cubic-bezier(.16, 1, .3, 1);
  --motion-spring: cubic-bezier(.2, 1.35, .25, 1);
  --motion-fast: 180ms;
  --motion-medium: 520ms;
  --motion-slow: 900ms;
}

/* Intrare coregrafata: sprânceana, titlul pe linii, textul, butoanele. */
.hero-title { margin-bottom: 0.45em; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: block;
  transform: translateY(115%);
  opacity: .25;
  transition: transform var(--motion-slow) var(--motion-out), opacity 700ms ease;
  transition-delay: calc(var(--i, 0) * 90ms + 100ms);
}
.hero-copy .eyebrow,
.hero-copy .lead,
.hero-copy .actions {
  opacity: 0;
  transform: translateY(16px);
}
html.motion-ready .hero-line > span { transform: translateY(0); opacity: 1; }
html.motion-ready .hero-copy .eyebrow,
html.motion-ready .hero-copy .lead,
html.motion-ready .hero-copy .actions {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--motion-out), transform 700ms var(--motion-out);
}
html.motion-ready .hero-copy .eyebrow { transition-delay: 50ms; }
html.motion-ready .hero-copy .lead { transition-delay: 430ms; }
html.motion-ready .hero-copy .actions { transition-delay: 540ms; }

/* Telefonul pluteste lent, iar invelisul tine perspectiva pentru unghiuri. */
@keyframes phoneFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* Mascota respira, iar cardul ei are o lumina care pulseaza foarte discret. */
.hero-character img { animation: mascotIdle 7s ease-in-out infinite; }
@keyframes mascotIdle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.hero-character::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 50% 42%, rgba(226, 96, 58, .18) 0%, transparent 70%);
  opacity: .55;
  animation: mascotGlow 9s ease-in-out infinite;
}
@keyframes mascotGlow {
  0%, 100% { opacity: .38; }
  50% { opacity: .72; }
}

/* Unghiurile urmeaza mouse-ul doar pe desktop, prin variabilele puse de script. */
@media (pointer: fine) {
  .hero-phone { --rx: 0deg; --ry: 0deg; }
}

/* Miscarea redusa: pagina devine practic statica, cu totul vizibil. */
@media (prefers-reduced-motion: reduce) {
  html.motion-ready .hero-line > span,
  .hero-line > span { transform: none; opacity: 1; transition: none; }
  html.motion-ready .hero-copy .eyebrow,
  html.motion-ready .hero-copy .lead,
  html.motion-ready .hero-copy .actions,
  .hero-copy .eyebrow, .hero-copy .lead, .hero-copy .actions { opacity: 1; transform: none; transition: none; }
  .hero-phone .product-phone, .hero-character img, .hero-character::after { animation: none; }
  .hero-phone .product-phone { transition: none; }
}

/* ============================================================
   SHOWCASE INTERACTIV - evantai la intrare, trecere cu arc intre ecrane,
   stari tactile pe butoane. Doar transform si opacity.
   ============================================================ */

.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; }
}

/* Evantai o singura data, cand sectiunea intra in cadru. */
.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; }
}

/* Trecerea intre ecrane: telefonul intra din directia mersului, cu arc, copy-ul in pas cu el. */
.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; } }

/* Butoane: apasare tactila, sageta care se misca, un singur inel la confirmare. */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(.965); box-shadow: none; }
.btn svg, .btn .arrow { transition: transform var(--motion-fast) var(--motion-out); }
.btn:hover svg, .btn:hover .arrow { transform: translateX(3px); }
.btn::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; border: 1px solid rgba(219, 119, 67, .75); border-radius: 999px;
  opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none;
}
.btn.is-ack::after { animation: ackRing 700ms var(--motion-out); }
@keyframes ackRing {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

@media (prefers-reduced-motion: reduce) {
  .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,
  .btn.is-ack::after { animation: none; }
  .btn:active { transform: none; }
  .btn:hover svg, .btn:hover .arrow { transform: none; }
}
