:root {
  --bg: #060708;
  --accent: #ff8c00;
  --accent-light: #ffb347;
  --accent-dim: #d97400;
  --accent-glow: rgba(255, 140, 0, 0.3);
  --text: #f8f5f0;
  --text-m: #c9c3b9;
  --text-l: #8b857b;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(255, 255, 255, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Outfit", sans-serif;
  --font-body: "Manrope", sans-serif;
  --mx: 62%;
  --my: 40%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-leaving {
  pointer-events: none;
  animation: page-out 0.38s var(--ease-out) forwards;
}

a {
  color: inherit;
}

@keyframes page-out {
  to {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.98);
  }
}

/* ── Atmosphere ── */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-wash,
.aurora,
.page-veil {
  position: absolute;
  inset: 0;
}

.bg-wash {
  background:
    radial-gradient(ellipse 90% 70% at 18% 12%, rgba(255, 140, 0, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 60% at 88% 82%, rgba(255, 90, 30, 0.12), transparent 48%),
    radial-gradient(ellipse 55% 45% at 52% 48%, rgba(255, 160, 40, 0.06), transparent 62%);
  animation: wash-drift 10s ease-in-out infinite alternate;
}

.aurora {
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(255, 140, 0, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 75% 60%, rgba(255, 90, 30, 0.1), transparent 55%);
  opacity: 1;
  animation: aurora-sweep 8s ease-in-out infinite alternate;
}

.page-veil {
  background: radial-gradient(
    56% 48% at var(--mx) var(--my),
    rgba(255, 140, 0, 0.28),
    rgba(255, 140, 0, 0.08) 42%,
    transparent 70%
  );
  animation: veil-breathe 5s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}

@keyframes wash-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.75;
  }
  to {
    transform: scale(1.18) translate3d(-5%, 3%, 0);
    opacity: 1;
  }
}

@keyframes aurora-sweep {
  from {
    opacity: 0.4;
    transform: translate3d(-5%, 2%, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(6%, -3%, 0) scale(1.12);
  }
}

@keyframes veil-breathe {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  /* soft edge via mask instead of an expensive blur filter */
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent);
  mask-image: radial-gradient(closest-side, #000 20%, transparent);
  will-change: transform;
}

.orb-1 {
  width: min(58vw, 620px);
  height: min(58vw, 620px);
  background: var(--accent);
  top: -22%;
  left: -14%;
  opacity: 0.28;
  animation: orb-a 7s ease-in-out infinite alternate;
}

.orb-2 {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  background: #ff4d12;
  bottom: -20%;
  right: -10%;
  opacity: 0.2;
  animation: orb-b 9s ease-in-out infinite alternate;
}

.orb-3 {
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  background: var(--accent-light);
  top: 38%;
  left: 58%;
  opacity: 0.18;
  animation: orb-c 6s ease-in-out infinite alternate;
}

@keyframes orb-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.18;
  }
  to {
    transform: translate3d(160px, 100px, 0) scale(1.28);
    opacity: 0.38;
  }
}

@keyframes orb-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
    opacity: 0.12;
  }
  to {
    transform: translate3d(-140px, -90px, 0) scale(0.82);
    opacity: 0.3;
  }
}

@keyframes orb-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.1;
  }
  to {
    transform: translate3d(-100px, 80px, 0) scale(1.22);
    opacity: 0.28;
  }
}

/* ── Flying dots ── */
.fly-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fly-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(255, 190, 120, 0.75),
    rgba(255, 140, 0, 0.4) 55%,
    rgba(255, 140, 0, 0.08) 100%
  );
  box-shadow: 0 0 calc(var(--size) * 1.4) rgba(255, 140, 0, 0.18);
  opacity: 0;
  will-change: transform, opacity;
  animation: fly-orb var(--dur) linear var(--delay) infinite;
}

.fly-orb::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 18%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 230, 190, 0.35) 45%,
    transparent 72%
  );
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fly-orb {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: var(--peak);
  }
  90% {
    opacity: var(--peak);
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0);
    opacity: 0;
  }
}

@keyframes orb-glint {
  0%,
  86%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 calc(var(--size) * 1.4) rgba(255, 140, 0, 0.18);
  }
  90%,
  93% {
    filter: brightness(1.85);
    box-shadow:
      0 0 calc(var(--size) * 2.4) rgba(255, 200, 120, 0.55),
      0 0 calc(var(--size) * 4.5) rgba(255, 255, 255, 0.22);
  }
}

@keyframes orb-spec {
  0%,
  86%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  90%,
  93% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.25)); }
  to { filter: drop-shadow(0 0 26px rgba(255, 140, 0, 0.7)); }
}

/* ── Top bar ── */
.topbar {
  position: fixed;
  top: clamp(12px, 2.2vh, 22px);
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  background: transparent;
  color: var(--text-l);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-switch button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang-switch button.is-active { background: var(--accent); color: #170d00; }
.lang-switch button:focus-visible,
.story-tab:focus-visible,
.site-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-l);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease-spring);
}

.site-link:hover {
  color: var(--text);
  border-color: rgba(255, 140, 0, 0.35);
  background: rgba(16, 18, 20, 0.9);
  transform: translateY(-2px);
}

.site-link svg {
  transition: transform 0.3s var(--ease-spring);
}

.site-link:hover svg {
  transform: translateX(-3px);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(72px, 11vh, 96px) clamp(22px, 4.5vw, 56px) clamp(48px, 9vh, 96px);
}

.hero__copy {
  max-width: 520px;
}

.hero__copy > .hero__badge { margin-bottom: clamp(0.8rem, 2.2vh, 1.4rem); }
@media (max-height: 760px) and (min-width: 981px) {
  .hero__brand img { margin-bottom: 0.2rem; }
  .hero__title { margin-bottom: 0.9rem; }
  .hero__lead { margin-bottom: 1.3rem; font-size: 0.95rem; }
}

.live-dock {
  position: fixed;
  left: 50%;
  bottom: clamp(48px, 7vh, 72px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__badge {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(12px);
  color: var(--accent-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: none;
  pointer-events: none;
  animation: badge-pulse 3.2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    border-color: rgba(255, 140, 0, 0.28);
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
  50% {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 22px rgba(255, 140, 0, 0.18);
  }
}

.hero__badge-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-fade 2.2s ease-in-out infinite;
}

@keyframes dot-fade {
  0%, 100% {
    opacity: 0.18;
    box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px 2px rgba(255, 140, 0, 0.6);
  }
}

.hero__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, min(5.2vw, 8.5vh), 4.15rem);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
  letter-spacing: -0.035em;
}

.hero__brand {
  display: inline-block;
  margin-bottom: 0.6rem;
  line-height: 0;
  filter: drop-shadow(0 0 16px var(--accent-glow));
  animation: logo-glow 2.8s ease-in-out infinite alternate;
  transition: transform 0.4s var(--ease-spring), filter 0.4s ease;
}

.hero__brand img {
  display: block;
  width: clamp(9rem, min(30vw, 22vh), 16rem);
  height: auto;
}

.hero__brand:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 0 28px rgba(255, 140, 0, 0.7));
}

.hero__line {
  display: block;
}

.hero__line--accent {
  background: linear-gradient(100deg, var(--accent-light) 0%, var(--accent) 45%, #ffc57a 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-line 6s linear infinite;
}

@keyframes shimmer-line {
  to { background-position: 180% center; }
}

.hero__lead {
  max-width: 40ch;
  margin: 0 0 1.85rem;
  color: var(--text-m);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__hint {
  min-height: 1.45em;
  margin: 14px 0 0;
  color: var(--text-l);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.35s ease, opacity 0.35s ease, text-shadow 0.35s ease;
}

.hero__hint.is-active {
  color: var(--accent-light);
  text-shadow: 0 0 18px rgba(255, 140, 0, 0.25);
}

.hero__crosslink {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, 0.28);
  background: rgba(255, 140, 0, 0.07);
  color: var(--text-m);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease-spring);
}
.hero__crosslink strong { color: var(--accent-light); font-weight: 700; white-space: nowrap; }
.hero__crosslink:hover { border-color: rgba(255, 140, 0, 0.5); background: rgba(255, 140, 0, 0.12); transform: translateY(-2px); }
.hero__crosslink:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-spring),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    color 0.25s ease;
}

.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 16px 40px rgba(255, 140, 0, 0.42);
}

.btn--primary:hover .btn__shine {
  transform: translateX(120%);
}

.btn--primary svg {
  transition: transform 0.3s var(--ease-spring);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 140, 0, 0.55);
  background: rgba(255, 140, 0, 0.1);
  color: #fff;
}

.btn--ghost svg {
  transition: transform 0.3s var(--ease-spring);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* ── Stage ── */
.hero__stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  isolation: isolate;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(12px);
  transition:
    opacity 0.9s var(--ease-out) 0.42s,
    transform 0.9s var(--ease-out) 0.42s,
    filter 0.9s var(--ease-out) 0.42s;
}

body:not(.is-entering) .hero__stage {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Gentle 3D tilt that follows the pointer (set from JS) */
body:not(.is-entering) .hero__stage.is-ready {
  transform: perspective(1600px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: opacity 0.9s var(--ease-out) 0.42s, filter 0.9s var(--ease-out) 0.42s, transform 0.25s ease-out;
}

.stage-glow {
  position: absolute;
  width: 78%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.18), transparent 68%);
  animation: stage-float 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.stage-ring {
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 0, 0.14);
  box-shadow:
    inset 0 0 60px rgba(255, 140, 0, 0.04),
    0 0 40px rgba(255, 140, 0, 0.05);
  pointer-events: none;
  z-index: 0;
  animation: ring-float 14s ease-in-out infinite alternate;
}

@keyframes stage-float {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.06);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(4%, -1%, 0) scale(1.02);
    opacity: 0.7;
  }
}

@keyframes ring-float {
  0% {
    transform: translate3d(-2.5%, 1.5%, 0) scale(0.97) rotate(-4deg);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(2%, -2.5%, 0) scale(1.04) rotate(3deg);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.01) rotate(6deg);
    opacity: 0.65;
  }
}

.device-orbit {
  position: absolute;
  z-index: 2;
  transition:
    opacity 0.35s var(--ease-out),
    filter 0.35s var(--ease-out);
}

.device-orbit--web {
  width: min(580px, 96%);
  top: 5%;
  left: 0;
  animation: idle-web 7.5s ease-in-out infinite;
}

.device-orbit--phone {
  width: 172px;
  right: 2%;
  bottom: 6%;
  z-index: 4;
  animation: idle-phone 6.4s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Freeze float while hovering so hover transform feels instant */
.device-orbit:has(.device:hover),
.device-orbit:has(.device:focus-visible),
.hero__stage[data-focus='web'] .device-orbit--web,
.hero__stage[data-focus='phone'] .device-orbit--phone {
  animation-play-state: paused;
}

@keyframes idle-web {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes idle-phone {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.device {
  position: relative;
  display: block;
  width: 100%;
  z-index: 2;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-h);
  background: linear-gradient(165deg, #1c2126, #0b0d0f 75%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  isolation: isolate;
  transform-origin: 50% 60%;
  will-change: transform;
  /* transform first — snappy hover; opacity delay only used on entrance below */
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    opacity 0.7s var(--ease-out);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 12;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.22s ease;
}

.hero__stage.is-ready .device {
  opacity: 1;
}

/* Delay only opacity on entrance — never delay hover transform */
.hero__stage.is-ready .device--web {
  transition-delay: 0s, 0s, 0s, 0.1s;
}

.hero__stage.is-ready .device--phone {
  transition-delay: 0s, 0s, 0s, 0.26s;
}

.device:hover,
.device:focus-visible {
  z-index: 5;
}

.device:hover::after,
.device:focus-visible::after {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 140, 0, 0.72),
    0 0 0 1px rgba(255, 140, 0, 0.28);
}

.device--web {
  border-radius: 16px;
  transform: rotate(-2.6deg) scale(1) translateZ(0);
}

.device--web:hover,
.device--web:focus-visible,
.hero__stage[data-focus='web'] .device--web {
  transform: rotate(-0.8deg) translate3d(0, -10px, 0) scale(1.045);
  box-shadow:
    0 42px 100px rgba(0, 0, 0, 0.58),
    0 0 48px rgba(255, 140, 0, 0.2);
}

.device--phone {
  border-radius: 36px;
  padding: 8px;
  overflow: visible;
  background:
    linear-gradient(155deg, #3a3d42 0%, #1c1e22 28%, #0a0b0d 72%, #1a1c20 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  transform: rotate(3.6deg) scale(1) translateZ(0);
}

.device--phone:hover,
.device--phone:focus-visible,
.hero__stage[data-focus='phone'] .device--phone {
  transform: rotate(1.4deg) translate3d(0, -12px, 0) scale(1.055);
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(255, 140, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

/* CTA ↔ device focus coupling */
.hero__stage[data-focus='web'] .device-orbit--web,
.hero__stage[data-focus='phone'] .device-orbit--phone {
  z-index: 6;
}

.hero__stage[data-focus='web'] .device--web::after,
.hero__stage[data-focus='phone'] .device--phone::after {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 140, 0, 0.75),
    0 0 0 1px rgba(255, 140, 0, 0.3);
}

.hero__stage[data-focus='web'] .device--web {
  box-shadow:
    0 46px 110px rgba(0, 0, 0, 0.6),
    0 0 52px rgba(255, 140, 0, 0.24);
}

.hero__stage[data-focus='phone'] .device--phone {
  box-shadow:
    0 48px 110px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(255, 140, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.hero__stage[data-focus='web'] .device-orbit--phone,
.hero__stage[data-focus='phone'] .device-orbit--web {
  opacity: 0.55;
  filter: brightness(0.82);
}

.hero__stage[data-focus='web'] .device--phone,
.hero__stage[data-focus='phone'] .device--web {
  transform: scale(0.98) translateZ(0);
}

.btn.is-linked {
  border-color: rgba(255, 140, 0, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.2), 0 12px 28px rgba(255, 140, 0, 0.18);
}

.btn--ghost.is-linked {
  background: rgba(255, 140, 0, 0.1);
  color: #fff;
}

.device__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.device__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3f45;
}

.device__chrome span:nth-child(1) { background: #ff5f57; }
.device__chrome span:nth-child(2) { background: #febc2e; }
.device__chrome span:nth-child(3) { background: #28c840; }

.device__chrome p {
  margin-left: 8px;
  color: var(--text-l);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.device__screen {
  overflow: hidden;
  background: #050607;
  line-height: 0;
}

.device__bezel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device__screen--phone {
  border-radius: 28px;
  overflow: hidden;
  /* Match app toolbar (#231f1c) — fills above the lowered nav */
  background: #231f1c;
  padding-top: 26px;
}

.device__island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 5;
  width: 56px;
  height: 16px;
  border-radius: 20px;
  background: #050505;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device__island::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1a2a3a 0%, #0a1018 70%);
  box-shadow: inset 0 0 0 1px rgba(80, 140, 200, 0.25);
  transform: translateY(-50%);
}

.device__side {
  position: absolute;
  background: linear-gradient(90deg, #2c2e32, #121316);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.device__side--silent {
  left: -3px;
  top: 72px;
  width: 3px;
  height: 16px;
  border-radius: 2px 0 0 2px;
}

.device__side--vol-up {
  left: -3px;
  top: 102px;
  width: 3px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.device__side--vol-down {
  left: -3px;
  top: 138px;
  width: 3px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.device__side--power {
  right: -3px;
  top: 118px;
  width: 3px;
  height: 42px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(270deg, #2c2e32, #121316);
}

.device__shots {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #050607;
  contain: paint;
}

.device--web .device__shots {
  aspect-ratio: 16 / 10;
}

.device--phone .device__shots {
  aspect-ratio: 393 / 852;
}

.device__story {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  will-change: opacity;
  transform: translateZ(0);
}

.hero__stage[data-story='0'] .device__story[data-story-frame='0'],
.hero__stage[data-story='1'] .device__story[data-story-frame='1'],
.hero__stage[data-story='2'] .device__story[data-story-frame='2'] {
  opacity: 1;
}

.device__shot {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transition: opacity 0.34s ease-in-out;
}

.device__shot--light {
  z-index: 1;
  opacity: 1;
}

.device__shot--dark {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.hero__stage.is-dark .device__shot--light {
  opacity: 0;
}

.hero__stage.is-dark .device__shot--dark {
  opacity: 1;
}

/* ── Theme toggle (iOS-style spring slide) ── */
.shot-theme-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  pointer-events: auto;
}

.shot-theme {
  --ios-spring: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-h);
  background: rgba(10, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.shot-theme__indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 0;
  width: calc((100% - 6px) / 2);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateX(0);
  transition: transform 0.16s var(--ios-spring);
  pointer-events: none;
  will-change: transform;
}

.shot-theme[data-theme='dark'] .shot-theme__indicator {
  transform: translateX(100%);
}

.shot-theme__btn {
  position: relative;
  z-index: 1;
  min-width: 4.7rem;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-l);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.12s var(--ios-spring);
  -webkit-tap-highlight-color: transparent;
}

.shot-theme__btn.is-active {
  color: #fff;
}

.shot-theme__btn:hover:not(.is-active) {
  color: var(--accent-light);
}

/* ── Screen tour tabs ── */
.story-tabs {
  position: absolute;
  left: 50%;
  bottom: -6px;
  z-index: 20;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-h);
  background: rgba(10, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.story-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 7.2rem;
  padding: 8px 12px 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-l);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.story-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.story-tab.is-active { color: var(--text); background: rgba(255, 140, 0, 0.12); }
.story-tab__bar {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.story-tab__bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.story-tab.is-active .story-tab__bar span { transform: scaleX(1); }
.story-tab.is-running .story-tab__bar span {
  animation: story-progress var(--story-ms, 3600ms) linear forwards;
}
@keyframes story-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Entrance / reveal ── */
[data-enter] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(var(--enter-step, 0) * 110ms + 80ms);
}

body:not(.is-entering) [data-enter] {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-enter='0'] { --enter-step: 0; }
[data-enter='1'] { --enter-step: 1; }
[data-enter='2'] { --enter-step: 2; }
[data-enter='3'] { --enter-step: 3; }
[data-enter='4'] { --enter-step: 4; }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    filter 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 76px 18px 56px;
  }

  .hero__copy {
    max-width: none;
    text-align: center;
  }

  .hero__title {
    margin-bottom: 0.85rem;
  }

  .hero__lead {
    margin: 0 auto 1.2rem;
  }

  .hero__actions {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

  .hero__hint {
    text-align: center;
    margin-top: 10px;
  }

  .hero__line--accent {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--accent-light);
    color: var(--accent-light);
  }


  .hero__stage {
    min-height: 340px;
    order: -1;
  }

  .hero__copy {
    order: 1;
  }

  .device-orbit--web {
    width: 88%;
    left: 0;
    top: 8%;
  }

  .device-orbit--phone {
    width: 124px;
    right: 2%;
    bottom: 3%;
  }

  .device--phone {
    border-radius: 30px;
    padding: 6px;
  }

  .device__bezel,
  .device__screen--phone {
    border-radius: 24px;
  }

  .device__screen--phone {
    padding-top: 20px;
  }

  .device__island {
    width: 44px;
    height: 13px;
    top: 7px;
  }

  .stage-ring {
    width: min(70%, 300px);
  }

  .shot-theme-wrap {
    top: 0;
  }

  .story-tabs { bottom: -14px; }
  .story-tab { min-width: 0; padding: 7px 10px 6px; }
}

@media (max-width: 640px) {
  .hero {
    gap: 14px;
    padding: 72px 14px 48px;
  }

  .hero__stage {
    min-height: 260px;
  }

  .device-orbit--web {
    width: 82%;
    top: 8%;
  }

  .device-orbit--phone {
    width: 96px;
    bottom: 1%;
  }

  .device--phone {
    border-radius: 24px;
    padding: 5px;
  }

  .device__bezel,
  .device__screen--phone {
    border-radius: 19px;
  }

  .device__screen--phone {
    padding-top: 15px;
  }

  .device__island {
    width: 34px;
    height: 10px;
    top: 5px;
  }

  .device__side {
    display: none;
  }


  .site-link {
    padding: 8px 11px;
    font-size: 0.78rem;
  }
  .story-tab { font-size: 0.68rem; padding: 6px 8px 5px; }
  .hero__copy > .hero__badge { margin-left: auto; margin-right: auto; }

  .hero__lead {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 46px;
  }

  .hero__brand img {
    width: clamp(9rem, 40vw, 12rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero__hint {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Atmosphere + stage floats stay on — Windows often enables reduce-motion by default */
  .hero__line--accent {
    animation: none !important;
  }

  .hero__badge-dot {
    animation: dot-fade 2.8s ease-in-out infinite !important;
  }

  .hero__line--accent {
    -webkit-text-fill-color: var(--accent-light);
    background: none;
  }

  .device {
    opacity: 1;
  }

  /* Keep the theme pill sliding even when other motion is reduced */
  .shot-theme__btn {
    transition: color 0.2s ease !important;
  }

  [data-reveal],
  [data-enter],
  .hero__stage {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
