:root {
  /* Efoyta brand — aligned with Cafe Manager POS & Admin */
  --bg-deep: #0b1120;
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --brand: #4f46e5;
  --brand-bright: #6366f1;
  --brand-soft: #a5b4fc;
  --purple: #7c3aed;
  --purple-soft: #c4b5fd;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --cyan: #06b6d4;
  --cyan-soft: #67e8f9;
  --success: #22c55e;
  --danger: #f87171;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --glow-brand: rgba(99, 102, 241, 0.28);
  --glow-amber: rgba(245, 158, 11, 0.22);
  --glow-purple: rgba(124, 58, 237, 0.22);
  --card: rgba(15, 23, 42, 0.72);
  --card-border: rgba(148, 163, 184, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  --page-pad: 1.5rem;
  --max-w: 1080px;
  --header-h: 88px;
  --transition: 1.9s cubic-bezier(0.45, 0, 0.15, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: max(var(--page-pad), env(safe-area-inset-left, 0px)) max(var(--page-pad), env(safe-area-inset-right, 0px));
}

.brand-word,
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 em {
  font-style: italic;
  color: var(--brand-soft);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.eyebrow.accent-purple { color: var(--purple-soft); }
.eyebrow.accent-amber { color: var(--amber-soft); }
.eyebrow.accent-ember { color: var(--cyan-soft); }
.eyebrow.accent-teal { color: var(--cyan-soft); }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-deep);
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.loader-brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* 3D canvas + ambient brand glow */
#world-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 75% -15%, rgba(99, 102, 241, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 45% at -5% 45%, rgba(124, 58, 237, 0.12), transparent 52%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(6, 182, 212, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, #0a0f1a 100%);
}

/* Mobile: darken left side so text stays readable over 3D objects */
.content-shade {
  display: none;
}

@media (max-width: 720px) {
  .content-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
      ellipse 90% 80% at 50% 40%,
      rgba(11, 17, 32, 0.55) 0%,
      rgba(11, 17, 32, 0.82) 70%,
      rgba(11, 17, 32, 0.9) 100%
    );
  }
}

/* Header — floating glass bar */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: max(0.7rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  pointer-events: none;
  background: transparent;
  border: 0;
}

.nav {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(1080px, 100%);
  min-height: 58px;
  gap: 0.75rem;
  padding: 0.4rem 0.45rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(165, 180, 252, 0.16);
  box-shadow:
    0 16px 48px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.1rem 0.55rem 0.1rem 0.12rem;
  border-radius: 999px;
}

.nav-logo {
  display: inline-flex;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.nav-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-word {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.scene-dots {
  display: none;
}

.scene-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  justify-self: center;
  gap: 0.12rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-menu a {
  position: relative;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.nav-cta:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-bright), var(--purple));
}

.nav-menu a.is-current:not(.nav-cta) {
  color: var(--text);
  background: rgba(99, 102, 241, 0.22);
  box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.28);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-bright), var(--purple));
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 22px var(--glow-brand);
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.42);
}

.nav-cta-bar {
  justify-self: end;
}

.nav-cta-in-menu {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Scenes */
.scenes {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
}

.scene[hidden] {
  display: none !important;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  opacity: 0;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.scene.scene-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.scene.scene-entering {
  visibility: visible;
  pointer-events: none;
  z-index: 3;
}

.scene.scene-leaving {
  visibility: visible;
  pointer-events: none;
  z-index: 2;
}

body.is-transitioning {
  cursor: progress;
}

body.is-transitioning .scene-controls,
body.is-transitioning .site-header {
  pointer-events: none;
}

.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(124, 58, 237, 0.12), transparent 55%);
}

/* Alternating gear cluster — behind content, right on even pages / left on odd */
.page-sweep {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  opacity: 0.92;
}

.page-sweep-cluster {
  position: absolute;
  top: 30%;
  left: 0;
  width: clamp(130px, 20vw, 200px);
  height: clamp(160px, 24vh, 240px);
  will-change: transform;
}

.page-sweep-streak {
  position: absolute;
  top: 48%;
  left: -8%;
  width: 116%;
  height: 2px;
  opacity: 0;
  transform: scaleX(0.4);
  background: linear-gradient(90deg, transparent, #6366f1 30%, #fbbf24 50%, #67e8f9 70%, transparent);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

.page-sweep-gear {
  position: absolute;
  filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.45));
}

.page-sweep-gear svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sweep-gear-lg {
  width: clamp(80px, 13vw, 132px);
  height: clamp(80px, 13vw, 132px);
  top: 18%;
  left: 22%;
}

.sweep-gear-md {
  width: clamp(48px, 8vw, 76px);
  height: clamp(48px, 8vw, 76px);
  top: 58%;
  left: 0;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.4));
}

.sweep-gear-sm {
  width: clamp(34px, 5.5vw, 50px);
  height: clamp(34px, 5.5vw, 50px);
  top: 2%;
  left: 58%;
  filter: drop-shadow(0 0 12px rgba(103, 232, 249, 0.35));
}

@media (max-width: 720px) {
  .page-sweep-cluster {
    top: 42%;
    width: clamp(88px, 24vw, 120px);
    height: clamp(110px, 18vh, 150px);
    opacity: 0.75;
  }
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.scene.scene-leaving,
.scene.scene-entering {
  will-change: transform, opacity;
}

.scene-copy {
  max-width: 520px;
  min-width: 0;
}

.scene-copy-center {
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}

.scene-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.scene-note {
  font-size: 0.95rem;
  color: var(--text-subtle);
  font-style: italic;
}

.scene-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Shift copy block right — sits in center-left, not flush to column edge */
@media (min-width: 1025px) {
  .scene-split .scene-copy {
    margin-left: clamp(3.5rem, 12vw, 9.5rem);
    margin-right: auto;
  }
}

.glass {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.75));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(165, 180, 252, 0.06);
}

/* Lobby */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-pills span,
.hero-pills a.hero-pill-link {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-muted);
  text-decoration: none;
}

.hero-pills a.hero-pill-link {
  color: var(--purple-soft);
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

.hero-pills a.hero-pill-link:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* Product orbit — circular connected nodes on lobby */
.product-orbit-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(380px, 72vw);
  pointer-events: auto;
}

.lobby-orbit-kicker,
.lobby-orbit-hint {
  display: none;
}

#lobby::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 95% 55% at 50% 88%, rgba(99, 102, 241, 0.14), transparent 62%),
    radial-gradient(ellipse 70% 45% at 15% 25%, rgba(124, 58, 237, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 35% at 88% 40%, rgba(6, 182, 212, 0.06), transparent 50%);
}

#lobby .scene-inner {
  position: relative;
  z-index: 1;
}

.lobby-orbit-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-orbit {
  position: relative;
  width: min(340px, 88vw);
  height: min(340px, 88vw);
  margin-inline: auto;
}

.product-orbit.is-hidden {
  pointer-events: none;
}

.product-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.orbit-ring {
  fill: none;
  stroke: rgba(99, 102, 241, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: orbit-spin 48s linear infinite;
  transform-origin: 160px 160px;
}

.orbit-link {
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 1.5;
  stroke-linecap: round;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.product-orbit-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
  pointer-events: none;
}

.orbit-hub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.orbit-hub-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.product-orbit-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-node {
  --orbit-r: clamp(108px, 34vw, 128px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(100px, 28vw, 118px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
  backdrop-filter: blur(18px);
  cursor: pointer;
  text-align: center;
  z-index: 3;
  pointer-events: auto;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.orbit-node-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.orbit-node:hover .orbit-node-glow,
.orbit-node:focus-visible .orbit-node-glow {
  opacity: 1;
}

.orbit-node-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.orbit-node strong {
  font-family: Fraunces, serif;
  font-size: 0.88rem;
  line-height: 1.2;
}

.orbit-node > span:last-child {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.orbit-node-stock {
  transform: translate(-50%, -50%) rotate(-90deg) translateY(calc(-1 * var(--orbit-r))) rotate(90deg);
}

.orbit-node-cafe {
  transform: translate(-50%, -50%) rotate(30deg) translateY(calc(-1 * var(--orbit-r))) rotate(-30deg);
}

.orbit-node-verify {
  transform: translate(-50%, -50%) rotate(150deg) translateY(calc(-1 * var(--orbit-r))) rotate(-150deg);
}

.orbit-node-stock .orbit-node-glow {
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.25), transparent 70%);
}

.orbit-node-cafe .orbit-node-glow {
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.28), transparent 70%);
}

.orbit-node-verify .orbit-node-glow {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.25), transparent 70%);
}

.orbit-node-stock:hover,
.orbit-node-stock:focus-visible {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 28px var(--glow-amber);
}

.orbit-node-cafe:hover,
.orbit-node-cafe:focus-visible {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 28px var(--glow-purple);
}

.orbit-node-verify:hover,
.orbit-node-verify:focus-visible {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.22);
}

/* Fullscreen dive — zooms into product then navigates to its scene */
.product-dive {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-deep);
}

.product-dive.is-open {
  pointer-events: auto;
}

.product-dive[hidden] {
  display: none !important;
}

.product-dive-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(11, 17, 32, 0.4) 35%, rgba(11, 17, 32, 0.98) 72%);
  opacity: 0;
  pointer-events: none;
}

.product-dive-tunnel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vmax;
  height: 100vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.product-dive-tunnel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.5);
  box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.15);
}

.product-dive-tunnel span:nth-child(2) { border-color: rgba(124, 58, 237, 0.45); }
.product-dive-tunnel span:nth-child(3) { border-color: rgba(6, 182, 212, 0.4); }
.product-dive-tunnel span:nth-child(4) { border-color: rgba(245, 158, 11, 0.35); }
.product-dive-tunnel span:nth-child(5) { border-color: rgba(99, 102, 241, 0.3); }
.product-dive-tunnel span:nth-child(6) { border-color: rgba(167, 139, 250, 0.25); }

.product-dive-amber .product-dive-tunnel span { border-color: rgba(245, 158, 11, 0.45); }
.product-dive-purple .product-dive-tunnel span { border-color: rgba(124, 58, 237, 0.45); }
.product-dive-ember .product-dive-tunnel span { border-color: rgba(6, 182, 212, 0.45); }

.product-dive-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 50%);
  opacity: 0;
  pointer-events: none;
}

.product-dive-fly {
  position: fixed;
  font-size: 2.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

@media (min-width: 1025px) {
  .product-orbit-wrap {
    min-height: 380px;
  }

  .product-orbit {
    width: 360px;
    height: 360px;
  }

  .orbit-node {
    width: 118px;
    padding: 1rem 0.75rem;
  }

  .orbit-node strong {
    font-size: 0.95rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--purple));
  color: #fff;
  box-shadow: 0 8px 32px var(--glow-brand);
}

.btn-full {
  width: 100%;
}

.scene-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.platform-tags {
  display: flex;
  gap: 0.4rem;
}

.platform-tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--text-muted);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list.compact {
  padding-inline-start: 0.15rem;
}

.feature-list.compact li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.feature-list.compact li::before {
  content: "→";
  position: absolute;
  left: 0.15rem;
  color: var(--brand-bright);
  font-size: 0.75rem;
}

/* Scene panels */
.scene-panel {
  position: relative;
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.scene-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--purple));
  opacity: 0.85;
}

#stock .scene-panel::before {
  background: linear-gradient(90deg, var(--amber), #fbbf24);
}

#cafe .scene-panel::before {
  background: linear-gradient(90deg, var(--purple), var(--brand-bright));
}

#verify .scene-panel::before {
  background: linear-gradient(90deg, var(--cyan), var(--brand));
}

.scene-panel-label {
  display: none;
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
}

.mini-dash {
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.mini-dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mini-dash-row strong {
  color: var(--text);
  font-size: 1.1rem;
}

.mini-dash-row.warn strong {
  color: var(--amber-soft);
}

.mini-dash-row.live strong {
  color: var(--success);
}

.verify-card {
  text-align: center;
  padding: 1rem;
}

.verify-status {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.verify-status.ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.verify-card p {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: Fraunces, serif;
  margin-bottom: 0.25rem;
}

.verify-card small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Platform */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.platform-tile {
  padding: 1.25rem;
}

.platform-tile strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan-soft);
}

.platform-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tech-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-row span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand-soft);
}

/* About */
.about-stack {
  display: grid;
  gap: 0.85rem;
}

.about-tile {
  padding: 1.15rem 1.25rem;
}

.about-tile strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brand-soft);
  font-size: 0.9rem;
}

.about-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-list.compact li {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 1rem;
}

.contact-list li > span:first-child {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.contact-list a:hover {
  color: var(--brand-soft);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form label span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(11, 17, 32, 0.5);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  border-color: var(--brand-bright);
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
}

.scene-footer {
  margin-top: 2rem;
  padding-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.scene-footer p {
  margin: 0;
}

.scene-footer a:hover {
  color: var(--text);
}

/* Scene controls */
.scene-controls {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scene-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.scene-arrow:hover {
  color: var(--text);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 16px var(--glow-brand);
  transform: scale(1.05);
}

.scene-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-subtle);
  writing-mode: vertical-rl;
  opacity: 0.7;
  transition: opacity 0.4s;
}

.scene-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* SEO fallback */
.seo-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Privacy page (unchanged layout) */
body.legal-body {
  overflow: auto;
  height: auto;
}

.legal-page {
  padding: 6rem 0 4rem;
  max-width: 720px;
  margin-inline: auto;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page .page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 75% -15%, rgba(99, 102, 241, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 45% at -5% 45%, rgba(124, 58, 237, 0.12), transparent 52%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, #0a0f1a 100%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0.01s;
  }

  .scenes {
    perspective: none;
  }

  .loader-brand {
    animation: none;
  }

  .transition-veil {
    display: none;
  }

  .page-sweep {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .scene-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scene-panel {
    max-width: 400px;
  }

}

@media (max-width: 960px) {
  :root {
    --header-h: 76px;
  }

  .nav {
    display: flex;
    min-height: 54px;
    border-radius: 22px;
  }

  .scene {
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    transform-style: flat;
    will-change: auto;
    padding-top: calc(var(--header-h) + 0.4rem);
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    touch-action: pan-y;
  }

  .scene-inner {
    flex: 0 0 auto;
    padding-block: 0.25rem 1.25rem;
  }

  #contact.scene {
    padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
  }

  #contact .scene-footer {
    flex: 0 0 auto;
    padding-bottom: 2rem;
  }

  .container {
    padding-inline: max(1.15rem, env(safe-area-inset-left, 0px))
      max(1.15rem, env(safe-area-inset-right, 0px));
  }

  .scene-copy,
  .scene-copy-center {
    text-align: center;
    margin-inline: auto;
    max-width: 36rem;
  }

  .scene-lead {
    margin-inline: auto;
  }

  .hero-pills {
    justify-content: center;
  }

  .feature-list,
  .contact-list {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }

  .scene-actions {
    justify-content: center;
  }

  .scene-footer {
    text-align: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem;
    border-radius: 20px;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(165, 180, 252, 0.16);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.78rem 0.9rem;
    font-size: 0.95rem;
  }

  .nav-cta-bar {
    display: none;
  }

  .nav-cta-in-menu {
    display: inline-flex;
    margin-top: 0.35rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 1.25rem;
  }

  .container {
    padding-inline: max(1.25rem, env(safe-area-inset-left, 0px))
      max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .nav-brand {
    min-width: 0;
  }

  .brand-word {
    font-size: 1.05rem;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  .scene {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 0.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }

  .scene-inner {
    padding-block: 0.5rem 1rem;
  }

  .scene-copy-center {
    max-width: none;
  }

  h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    overflow-wrap: break-word;
  }

  .scene-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-pills {
    margin-top: 1.25rem;
  }

  /* Lobby — airy hero, then products */
  #lobby.scene {
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 1.15rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }

  #lobby .scene-inner {
    overflow: visible;
    min-height: min-content;
  }

  #lobby .lobby-split {
    gap: 2.35rem;
  }

  #lobby .scene-copy {
    padding-bottom: 0.25rem;
  }

  #lobby .eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    opacity: 0.85;
  }

  #lobby h1 {
    font-size: clamp(1.5rem, 6.6vw, 1.92rem);
    line-height: 1.28;
    font-weight: 650;
    margin: 0 auto 0.9rem;
    max-width: 18.5rem;
  }

  #lobby .scene-lead {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 20.5rem;
    margin: 0 auto;
  }

  #lobby .hero-pills {
    margin: 1.35rem auto 0;
    gap: 0.5rem;
    max-width: 20rem;
    justify-content: center;
  }

  #lobby .hero-pills span {
    font-size: 0.72rem;
    padding: 0.42rem 0.78rem;
    letter-spacing: 0.01em;
  }

  .lobby-orbit-kicker {
    display: block;
    margin: 0 0 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-soft);
    text-align: center;
  }

  .lobby-orbit-hint {
    display: block;
    margin: 1.1rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.9;
  }

  .product-orbit-wrap {
    margin-top: 0.15rem;
    min-height: 0;
    padding: 0 0.5rem 1.5rem;
    overflow: visible;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .lobby-orbit-stage {
    width: 100%;
    padding: 1.35rem 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(129, 140, 248, 0.18);
    background:
      linear-gradient(165deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.75)),
      radial-gradient(ellipse 80% 70% at 50% 45%, rgba(99, 102, 241, 0.12), transparent 65%);
    box-shadow:
      0 20px 50px rgba(2, 6, 23, 0.45),
      inset 0 1px 0 rgba(165, 180, 252, 0.08);
  }

  .product-orbit {
    width: min(268px, 78vw);
    height: min(268px, 78vw);
  }

  #lobby .orbit-ring {
    stroke: rgba(129, 140, 248, 0.35);
  }

  #lobby .orbit-link {
    stroke: rgba(165, 180, 252, 0.32);
  }

  #lobby .orbit-node {
    border-color: rgba(165, 180, 252, 0.22);
    background: linear-gradient(165deg, rgba(51, 65, 85, 0.85), rgba(15, 23, 42, 0.92));
  }

  .orbit-node {
    --orbit-r: clamp(88px, 27vw, 104px);
    width: clamp(78px, 23vw, 94px);
    padding: 0.62rem 0.4rem;
    gap: 0.28rem;
    border-radius: 16px;
  }

  .orbit-node strong {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .orbit-node > span:last-child {
    font-size: 0.64rem;
    line-height: 1.35;
  }

  .orbit-node-icon {
    font-size: 1.15rem;
  }

  .orbit-hub-label {
    font-size: 0.58rem;
  }

  .scene-split:not(.lobby-split) {
    gap: 1.35rem;
  }

  .scene-panel {
    display: flex;
    width: min(100%, 22rem);
    min-height: auto;
    margin-inline: auto;
    padding: 1.15rem 1rem 1.25rem;
  }

  .scene-panel-label {
    display: block;
  }

  .mini-dash {
    gap: 0.55rem;
  }

  .mini-dash-row {
    padding: 0.7rem 0.85rem;
    font-size: 0.84rem;
  }

  .mini-dash-row strong {
    font-size: 1rem;
  }

  .verify-card {
    padding: 0.5rem 0.25rem 0.25rem;
  }

  .verify-card p {
    font-size: 1.55rem;
  }

  .about-stack {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .contact-form {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .scene-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .scene-actions .btn {
    width: 100%;
  }

  .platform-tags {
    justify-content: center;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .scene-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .scene-controls {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .scene-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .scene-hint {
    display: none;
  }
}

@media (max-width: 720px) and (max-height: 780px) {
  #lobby.scene {
    padding-top: calc(var(--header-h) + 0.85rem + env(safe-area-inset-top, 0px));
  }

  #lobby .lobby-split {
    gap: 1.35rem;
  }

  #lobby h1 {
    font-size: clamp(1.42rem, 6vw, 1.75rem);
    margin-bottom: 0.75rem;
  }

  #lobby .scene-lead {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  #lobby .hero-pills {
    margin-top: 1.1rem;
  }

  .product-orbit {
    width: min(252px, 80vw);
    height: min(252px, 80vw);
  }

  .orbit-node {
    --orbit-r: clamp(80px, 25vw, 96px);
    width: clamp(74px, 22vw, 88px);
    padding: 0.55rem 0.35rem;
  }
}
