/* ============================================
   FANDORA — HOME PAGE
   ============================================ */

.page {
  padding: 0 var(--pad-page);
  max-width: 1600px;
  margin: 0 auto;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px var(--pad-page);
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  box-sizing: border-box;
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-logo { height: 31px; width: auto; display: block; }
.nav-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  border: 1px solid var(--hairline-gold);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  margin-left: -10px;
}
.nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  cursor: pointer;
  background: transparent;
}
.nav-lang b { color: var(--text-primary); font-weight: 500; }
.nav-lang .flag { font-size: 13px; letter-spacing: 0; }
.nav-lang .flag-svg { display: inline-flex; align-items: center; line-height: 1; }
.nav-lang .flag-svg svg { border-radius: 2px; display: block; }
.nav-lang .sep { opacity: 0.5; }

/* ---- Kotlin-style two-segment language toggle ---- */
/* Hide chrome i18n until lang-toggle applies (avoids EN flash). */
html:not(.lang-chrome-ready) .nav-center a,
html:not(.lang-chrome-ready) .lang-toggle,
html:not(.lang-chrome-ready) .btn-nav [data-tr],
html:not(.lang-chrome-ready) .mobile-menu-links a,
html:not(.lang-chrome-ready) .mobile-menu-cta [data-tr] {
  visibility: hidden;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.lang-toggle .lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-inevitable),
              color      var(--dur-fast) var(--ease-inevitable);
}
.lang-toggle .lang-opt:hover { color: var(--text-secondary); }
.lang-toggle .lang-opt.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.lang-toggle .lang-flag {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  background: #000;
}
.lang-toggle .lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-center {
  display: flex; justify-content: center; gap: 40px;
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.nav-center a {
  color: inherit; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-inevitable);
  letter-spacing: 0.01em;
  position: relative;
}
.nav-center a:hover { color: var(--text-primary); }
.nav-center a.active { color: var(--gold-500); }
.nav-center a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--gold-500);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  transition: all var(--dur-base) var(--ease-inevitable);
  text-decoration: none;
}
.icon-btn:hover { color: var(--gold-500); border-color: var(--hairline-gold); transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.top-motto {
  position: relative;
  margin: 8px auto 24px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-h6);
  color: var(--text-primary);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  text-align: center;
  z-index: 3;
  animation: fade-rise 1.2s var(--ease-inevitable) 0.3s both;
}
.top-motto em { font-style: normal; font-weight: 800; }

@keyframes glide-in {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes glide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Linear hero stack: HEADLINE → SHOWCASE (logo + marquee) ── */
.hero-headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 0;
  z-index: 3;
}
.hero-line {
  display: grid;
  place-items: center;
  pointer-events: none;
  padding-bottom: 0;
}
.hero-line span {
  font-family: var(--font-display);
  font-weight: 800;
  /* reduced ~20% from clamp(76px, 11.4vw, 190px) */
  font-size: clamp(61px, 9.12vw, 152px);
  letter-spacing: 0.04em;
  line-height: 0.92;
  padding-bottom: 0.04em;
  white-space: nowrap;
  background: var(--gold-metal);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-line-1 span { animation: fade-rise 1.4s var(--ease-inevitable) 0.5s both; }
.hero-line-2 span { animation: fade-rise 1.4s var(--ease-inevitable) 0.75s both; }

/* showcase: phone marquee + centered 3D logo on top */
.hero-showcase {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(360px, 46vh, 540px);
  display: grid;
  place-items: center;
  margin-top: 0;
}
.hero-logo-overlay {
  /* IMPORTANT: no `animation` here — a transform-based entrance keyframe
     would override translate(-50%, -50%) and pull the logo off-center. */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-logo-overlay .logo3d-canvas {
  width: clamp(200px, 24vw, 340px);
  height: clamp(200px, 24vw, 340px);
  border-radius: 50%;
  overflow: hidden;
  /* Hidden start state — the 3D logo sits off-screen above until its WebGL
     scene is built and rendered. logo3d.js then adds `.is-ready`, which fires
     the fly-in. This guarantees the drop plays on the real logo, not on an
     empty container while three.js is still downloading. */
  transform: translateY(-140vh);
  opacity: 0;
  will-change: transform, opacity;
}
.hero-logo-overlay .logo3d-canvas.is-ready {
  animation: logo-fly-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-overlay .logo3d-canvas { transform: none; opacity: 1; }
  .hero-logo-overlay .logo3d-canvas.is-ready { animation: none; }
}
@keyframes logo-fly-in {
  0%   { transform: translateY(-140vh); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(0);      opacity: 1; }
}
.phone-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.phone-marquee-track {
  display: flex;
  gap: 36px;
  height: 100%;
  width: max-content;
  align-items: center;
  animation: marquee-slide 34.5s linear infinite;
  padding-left: 40px;
}
.phone-marquee-track .marquee-phone {
  /* +15% over previous clamp(280, 38vh, 460) */
  height: clamp(322px, 43.7vh, 530px);
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.85));
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-logo-3d {
  position: relative;
  z-index: 4;
  width: clamp(220px, 26vw, 380px);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 30px 80px rgba(242, 195, 104, 0.22)) drop-shadow(0 10px 40px rgba(0,0,0,0.85));
  animation: fade-rise 1.6s var(--ease-inevitable) 0.2s both;
}
.hero-logo-3d .spinner {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: turntable 7s linear infinite;
  position: relative;
}
.hero-logo-3d .face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: hidden;
}
.hero-logo-3d .face svg,
.hero-logo-3d .face img { width: 100%; height: 100%; }
.hero-logo-3d .face.back { transform: rotateY(180deg); filter: brightness(0.55); }
/* fake depth — stacked planes of the logo */
.hero-logo-3d .depth {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  backface-visibility: visible;
}
.hero-logo-3d .depth svg { width: 100%; height: 100%; opacity: 0.25; }
@keyframes turntable {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.hero-built {
  position: relative;
  z-index: 6;
  text-align: center;
  margin-top: 28px;
  /* match the top motto exactly — display font, light weight, t-h6 size,
     with <b>by fans</b> picking up the 800-weight bold treatment */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-h6);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--text-primary);
  text-transform: none;
  animation: fade-rise 1s var(--ease-inevitable) 1.05s both;
}
.hero-built b { color: var(--text-primary); font-weight: 800; font-style: normal; }

.hero-live-row {
  position: relative;
  z-index: 6;
  display: flex; justify-content: center;
  margin-top: 22px;
  animation: fade-rise 1s var(--ease-inevitable) 1.4s both;
}
.hero-platforms-row {
  position: relative;
  z-index: 6;
  display: flex; justify-content: center;
  margin-top: 14px;
  animation: fade-rise 1s var(--ease-inevitable) 1.55s both;
}
.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-gold);
  background: rgba(242, 195, 104, 0.04);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-500);
}
.live-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #6dff9a; box-shadow: 0 0 10px #6dff9a;
  animation: pulse-live 1.6s ease-in-out infinite;
}
@keyframes pulse-live { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.hero-platforms {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-inevitable),
              box-shadow var(--dur-base) var(--ease-inevitable);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn.btn-nav {
  font-size: 12.5px;
  padding: 11px 18px;
}
.btn.btn-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--gold-metal);
  color: var(--ink-200);
  box-shadow: 0 8px 24px -8px rgba(242, 195, 104, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(242, 195, 104, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }

/* ============================================
   ARENA QUOTE
   ============================================ */
.arena-quote {
  padding: 100px var(--pad-page) 80px;
  text-align: center;
  position: relative;
}
.arena-quote .q {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.02;
  padding-bottom: 0.15em;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 18ch;
  margin: 0 auto;
}
.arena-quote .q em { font-style: normal; font-weight: 800; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.arena-quote .eyebrow { margin-bottom: 36px; }

/* ============================================
   GENERIC SECTION HEAD
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--gold-500);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 40px;
  margin-bottom: 72px;
  align-items: baseline;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  color: var(--gold-500);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-h3);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}
.section-head h2 em { font-style: normal; font-weight: 800; }
.section-head .caption {
  margin-top: 18px;
  max-width: 60ch;
  font-size: var(--t-lead);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ============================================
   PROBLEM + PLANET (unified)
   ============================================ */
.fans-section {
  padding: 120px var(--pad-page) 160px;
  position: relative;
}
.fans-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.fans-copy h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.03;
  padding-bottom: 0.12em;
  letter-spacing: var(--tracking-display);
  margin: 24px 0 28px;
}
.fans-copy h2 em { font-style: normal; font-weight: 800; }
.fans-copy h2 .gold { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fans-copy p {
  font-size: var(--t-lead);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 52ch;
  margin: 0 0 20px;
}
.fans-copy .popups {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.fans-copy .popups span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-500);
  padding: 6px 12px;
  border: 1px solid var(--hairline-gold);
  border-radius: var(--r-pill);
  background: rgba(242, 195, 104, 0.04);
}

.planet-scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  justify-self: center;
  width: 100%;
}
.planet-core {
  position: absolute; inset: 15%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(242,195,104,0.22) 0%, rgba(191,115,38,0.08) 30%, transparent 70%),
    radial-gradient(circle at 50% 50%, #1a1014 0%, #0a0405 70%, #000 100%);
  box-shadow:
    inset 0 0 80px rgba(242,195,104,0.1),
    0 0 120px rgba(94,36,28,0.4);
  overflow: hidden;
}
.planet-core::before {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(242,195,104,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,195,104,0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 75%);
  animation: planet-rotate 60s linear infinite;
}
@keyframes planet-rotate { to { background-position: 280px 0; } }

.planet-ring {
  position: absolute; inset: 8%;
  border: 1px dashed var(--hairline-gold);
  border-radius: 50%;
  animation: ring-spin 22s linear infinite;
}
.planet-ring.outer { inset: 0; animation-duration: 38s; animation-direction: reverse; border-style: dotted; opacity: 0.5; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.planet-ping {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 12px var(--gold-500);
}
.planet-ping::after {
  content: "";
  position: absolute; inset: -6px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  animation: ping 2.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}
.planet-ping.a { top: 22%; left: 30%; }
.planet-ping.b { top: 40%; left: 72%; animation-delay: 0.6s; }
.planet-ping.b::after { animation-delay: 0.6s; }
.planet-ping.c { top: 66%; left: 42%; animation-delay: 1.2s; }
.planet-ping.c::after { animation-delay: 1.2s; }
.planet-ping.d { top: 30%; left: 60%; animation-delay: 1.8s; }
.planet-ping.d::after { animation-delay: 1.8s; }

.planet-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--hairline-gold);
  border-radius: var(--r-xs);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  opacity: 0;
  animation: label-pop 8s ease-in-out infinite;
}
.planet-label.a { top: 18%; left: 14%; animation-delay: 0s; }
.planet-label.b { top: 36%; right: 6%; animation-delay: 1.5s; }
.planet-label.c { top: 70%; left: 16%; animation-delay: 3s; }
.planet-label.d { bottom: 14%; right: 12%; animation-delay: 4.5s; }
.planet-label.e { top: 10%; right: 18%; animation-delay: 6s; }
@keyframes label-pop {
  0%, 100% { opacity: 0; transform: translateY(8px); }
  10%, 25% { opacity: 1; transform: translateY(0); }
  35% { opacity: 0; }
}

/* ============================================
   CORE FEATURES — 3 rows x 3 phones
   ============================================ */
.features {
  padding: 80px var(--pad-page) 60px;
  position: relative;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reversed .feature-copy { order: 2; }
.feature-row.reversed .phone3d-wrap { order: 1; }

.feature-copy .eyebrow { margin-bottom: 20px; display: block; }
.feature-copy .shock {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.5vw, 88px);
  line-height: 1.02;
  padding-bottom: 0.14em;
  letter-spacing: var(--tracking-display);
  margin: 0 0 10px;
}
.feature-copy .shock.gold { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature-copy .shock-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 28px;
  line-height: 1.18;
  padding-bottom: 0.08em;
}
.feature-copy .shock-sub em { font-style: normal; font-weight: 700; color: var(--gold-500); }
.feature-copy p {
  font-size: var(--t-lead);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 48ch;
  margin: 0 0 18px;
}
.feature-copy .list {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-copy .list li {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.feature-copy .list li .k { color: var(--gold-500); min-width: 28px; }

/* phone cluster — big turntable center + 2 side peekers */
.feature-phones,
.phone3d-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1800px;
}
.feature-phone-main {
  position: absolute;
  left: 50%; top: 50%;
  width: 52%;
  aspect-ratio: 360 / 740;
  transform-origin: center center;
  transform-style: preserve-3d;
  animation: phone-turn 14s ease-in-out infinite;
  z-index: 3;
  margin-left: calc(-26%);
  margin-top: calc(-26% * (740/360));
  border-radius: 30px;
  background: linear-gradient(135deg, #1a1014 0%, #0a0405 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 0 0 3.5px rgba(0,0,0,0.65),
    0 40px 70px -20px rgba(0,0,0,0.92),
    0 0 80px rgba(242,195,104,0.12);
  overflow: hidden;
}
@keyframes phone-turn {
  0%   { transform: rotateY(-14deg) rotateX(2deg); }
  50%  { transform: rotateY(14deg) rotateX(-2deg); }
  100% { transform: rotateY(-14deg) rotateX(2deg); }
}
.feature-phone-main .feature-phone-screen {
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  z-index: 1;
}
.feature-phone-main .feature-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-phone-reflection {
  position: absolute; inset: 0;
  border-radius: 30px;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.16) 36%, rgba(255,255,255,0.02) 54%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.feature-phone-side {
  position: absolute;
  width: 30%;
  aspect-ratio: 360 / 740;
  border-radius: 22px;
  background: linear-gradient(135deg, #1a1014 0%, #0a0405 100%);
  box-shadow:
    inset 0 0 0 1.2px rgba(255,255,255,0.06),
    inset 0 0 0 2.5px rgba(0,0,0,0.6),
    0 30px 50px -18px rgba(0,0,0,0.9),
    0 0 50px rgba(94,36,28,0.4);
  overflow: hidden;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease-inevitable), opacity var(--dur-slow) var(--ease-inevitable);
}
.feature-phone-side .feature-phone-screen {
  position: absolute;
  inset: 5px;
  border-radius: 17px;
  overflow: hidden;
  background: #000;
}
.feature-phone-side .feature-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-phone-side.left  { left: 2%;  top: 18%; transform: rotate(-11deg) translateX(22%); }
.feature-phone-side.right { right: 2%; top: 18%; transform: rotate(11deg)  translateX(-22%); }
.feature-phones:hover .feature-phone-side.left  { transform: rotate(-14deg) translateX(0%); }
.feature-phones:hover .feature-phone-side.right { transform: rotate(14deg)  translateX(0%); }

/* ============================================
   INVESTOR MINI — CARDS ROW
   ============================================ */
.edge {
  padding: 80px var(--pad-page) 100px;
  position: relative;
}
.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.edge-card {
  padding: 36px 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 70%);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: border-color var(--dur-base) var(--ease-inevitable);
}
.edge-card:hover { border-color: var(--hairline-gold); }
.edge-card .k {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: var(--gold-500);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.edge-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h5);
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-bottom: 0.08em;
  margin: 20px 0 18px;
  min-height: 2.3em;
}
.edge-card p {
  color: var(--text-secondary);
  font-size: var(--t-small);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ============================================
   VISION
   ============================================ */
.vision {
  padding: 120px var(--pad-page) 80px;
  text-align: center;
}
.vision .line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.05;
  padding-bottom: 0.12em;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0 auto 40px;
}
.vision .line em { font-style: normal; font-weight: 800; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vision-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.vision-list span { padding: 0 12px; border-right: 1px solid var(--hairline); }
.vision-list span:last-child { border-right: none; }
.vision-list b { color: var(--gold-500); font-weight: 500; }

/* ============================================
   CLOSER
   ============================================ */
.closer {
  padding: 180px var(--pad-page) 80px;
  text-align: center;
}
.closer .when {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.08;
  padding-bottom: 0.1em;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 80px;
}
.closer .you-think {
  color: var(--text-secondary);
}
.closer-logo {
  display: block;
  max-width: 420px;
  width: 70%;
  margin: 0 auto 40px;
  filter: drop-shadow(0 30px 80px rgba(242,195,104,0.2));
  object-fit: contain;
}
.closer .cta {
  margin-top: 48px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 80px var(--pad-page) 40px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.footer-brand img { height: 34px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--t-small);
  max-width: 34ch;
  line-height: var(--lh-relaxed);
  margin: 0;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-500);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: var(--t-small); transition: color var(--dur-fast) var(--ease-inevitable); }
.footer-col a:hover { color: var(--gold-500); }
.footer-col a.active { color: var(--gold-500); }
.footer-col .foot-email-k {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer-socials { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: var(--tracking-wide);
  color: var(--text-tertiary);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   REVEAL-ON-SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-emerge), transform 1.1s var(--ease-emerge);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.stag-1 { transition-delay: 0.15s; }
.reveal.stag-2 { transition-delay: 0.3s; }
.reveal.stag-3 { transition-delay: 0.45s; }

/* ============================================
   MOBILE NAV — burger + slide-down menu
   ============================================ */
.nav-burger {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-s);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform var(--dur-base) var(--ease-inevitable),
              opacity var(--dur-fast) var(--ease-inevitable);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 var(--pad-page) 28px;
  background: linear-gradient(180deg, rgba(10,4,5,0.98) 0%, rgba(10,4,5,0.96) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--hairline-gold);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-inevitable),
              opacity var(--dur-base) var(--ease-inevitable);
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
/* top row: language toggle pinned left, vertically aligned with the
   burger/X that sits in the nav bar above (matches nav height) */
.mobile-menu-top {
  display: flex;
  align-items: center;
  min-height: 76px;
}
.mobile-menu-top .lang-toggle { margin-left: 0; }
.mobile-menu-links { display: flex; flex-direction: column; padding-top: 6px; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color var(--dur-fast) var(--ease-inevitable);
}
.mobile-menu-links a:hover { color: var(--gold-500); }
.mobile-menu-links a.active { color: var(--gold-500); }
/* foot row: Download (flexes to fill) + enlarged social icons, right */
.mobile-menu-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.mobile-menu-cta {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 50px;
  padding: 13px 16px;
}
.mobile-socials { display: flex; gap: 8px; flex: 0 0 auto; }
.mobile-socials .icon-btn { width: 50px; height: 50px; }
.mobile-socials .icon-btn svg { width: 18px; height: 18px; }
.mobile-menu-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body:not(.menu-open) .mobile-menu-scrim { display: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .nav-center { display: none; }
  .nav-right { display: none; }
  .nav-left .lang-toggle { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .nav-burger { display: flex; }
}
@media (max-width: 860px) {
  .top-motto { margin: 0 auto 28px; }
  .hero { padding-top: 84px; }
  .hero-showcase { min-height: 340px; }
  .phone-marquee-track .marquee-phone { height: 320px; }
  .hero-logo-overlay .logo3d-canvas { width: 200px; height: 200px; }
  .fans-grid { grid-template-columns: 1fr; gap: 60px; }
  .feature-row,
  .feature-row.reversed { grid-template-columns: 1fr; gap: 60px; }
  /* phones always BELOW the copy when stacked (markup uses .phone3d-wrap) */
  .feature-row .feature-copy,
  .feature-row.reversed .feature-copy { order: 1; }
  .feature-row .phone3d-wrap,
  .feature-row.reversed .phone3d-wrap { order: 2; }
  .edge-grid { grid-template-columns: 1fr; }
  .edge-card { min-height: 0; }
  .edge-card h3 { min-height: 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }
  .feature-row { margin-bottom: 120px; }
  /* decorative phone clusters fly in from ±55vw — clip so they never
     create sideways scroll once the columns are stacked */
  .features, .fans-section { overflow-x: clip; }
}

/* ── Phones / small screens: keep big type inside the viewport ── */
@media (max-width: 720px) {
  /* hero headline: let it shrink below the 61px floor so the longer
     Spanish line ("DE LOS FANDOMS") never clips at the edges */
  .hero-line span {
    font-size: clamp(30px, 10.4vw, 64px);
    letter-spacing: 0.02em;
    word-spacing: -0.12em;
  }
  .arena-quote { padding: 72px var(--pad-page) 56px; }
  .arena-quote .q { font-size: clamp(38px, 11vw, 64px); }
  .fans-section { padding: 80px var(--pad-page) 100px; }
  .features { padding: 56px var(--pad-page) 40px; }
  .edge { padding: 56px var(--pad-page) 72px; }
  .vision { padding: 80px var(--pad-page) 56px; }
  .closer { padding: 110px var(--pad-page) 64px; }
  .closer .when { margin-bottom: 56px; }
  .vision-list { gap: 14px 20px; }
  .vision-list span { border-right: none; padding: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .hero-line span { font-size: clamp(26px, 10vw, 44px); }
  .feature-copy .shock { font-size: clamp(38px, 13vw, 56px); }
}


/* ============================================
   LANGUAGE TOGGLE (EN/ES content blocks)
   ============================================ */
html:not(.is-lang-es):not(.is-lang-pt) [data-lang-block="es"],
html:not(.is-lang-es):not(.is-lang-pt) [data-lang-block="pt"],
body:not(.is-lang-es):not(.is-lang-pt) [data-lang-block="es"],
body:not(.is-lang-es):not(.is-lang-pt) [data-lang-block="pt"] { display: none !important; }
html.is-lang-es [data-lang-block="en"],
html.is-lang-es [data-lang-block="pt"],
body.is-lang-es [data-lang-block="en"],
body.is-lang-es [data-lang-block="pt"] { display: none !important; }
html.is-lang-pt [data-lang-block="en"],
html.is-lang-pt [data-lang-block="es"],
body.is-lang-pt [data-lang-block="en"],
body.is-lang-pt [data-lang-block="es"] { display: none !important; }

/* Globe popup card — periodic left→right shine (clipped by overflow:hidden) */
.globe-popup-card .globe-popup-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.globe-popup-card .globe-popup-shine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 36%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.60) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: globe-card-shine var(--shine-period, 5s) linear infinite;
  animation-delay: var(--shine-delay, 0s);
}
@keyframes globe-card-shine {
  0% { left: -40%; }
  11% { left: 110%; }
  11.01%, 100% { left: 110%; }
}
