/* LUMAX Player — minimal parallax + light/dark */
:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #0A0A0A;
  --muted: #5C6370;
  --line: rgba(10, 10, 10, 0.08);
  --shadow: 0 24px 70px rgba(10, 10, 10, 0.12);
  --shadow-soft: 0 12px 40px rgba(10, 10, 10, 0.08);
  --accent: #2563EB;
  --blob-1: #DBEAFE;
  --blob-2: #EDE9FE;
  --blob-3: #FFE4EC;
  --header-bg: rgba(250, 251, 252, 0.88);
  --grid-glow: radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.06), transparent 55%);
  --max: 1080px;
  --nav-h: 72px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #07080C;
  --surface: #12141A;
  --text: #F4F5F7;
  --muted: #9CA3AF;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.35);
  --accent: #60A5FA;
  --blob-1: rgba(37, 99, 235, 0.18);
  --blob-2: rgba(139, 92, 246, 0.14);
  --blob-3: rgba(236, 72, 153, 0.1);
  --header-bg: rgba(7, 8, 12, 0.88);
  --grid-glow: radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.08), transparent 55%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .45s var(--ease), color .45s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 500;
  background: linear-gradient(90deg, var(--accent), var(--text));
  transition: width .1s linear;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 400; height: var(--nav-h);
  transition: background .35s var(--ease), border-color .35s;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.brand img { height: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .9rem; color: var(--muted); transition: color .25s, transform .25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s;
}
.theme-toggle:hover { transform: scale(1.06); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.theme-toggle span {
  position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border-radius: 50%; transition: opacity .3s, transform .4s var(--ease);
}
.icon-sun {
  background: radial-gradient(circle at 30% 30%, #FDE68A, #F59E0B);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.icon-moon {
  background: linear-gradient(135deg, #6366F1, #312E81);
  opacity: 0; transform: rotate(-40deg) scale(0.5);
}
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.5); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 6px 0; border-radius: 2px; transition: transform .3s var(--ease);
}
.mobile-menu { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: var(--text); color: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.hero-left .btn-row { margin-top: 6px; }
.cta .btn-row { justify-content: center; margin-bottom: 4px; }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--text) 14%, var(--line));
  box-shadow: none;
}
.btn-outline:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.btn-sm {
  padding: 11px 20px; font-size: .82rem;
}

.mobile-menu-btns {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}

/* Load reveal */
.reveal-load {
  opacity: 0; transform: translateY(28px);
  animation: loadIn .9s var(--ease) forwards;
}
.reveal-load.delay-1 { animation-delay: .12s; }
.reveal-load.delay-2 { animation-delay: .24s; }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.feat-list .reveal:nth-child(2) { transition-delay: .08s; }
.feat-list .reveal:nth-child(3) { transition-delay: .16s; }
.feat-list .reveal:nth-child(4) { transition-delay: .24s; }

/* Scroll scenes */
.scroll-scene { position: relative; height: calc(var(--scene-mult, 3) * 100vh); }
.scene-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.para-item { will-change: transform, opacity; }

.para-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.grid-glow {
  position: absolute; inset: 0; background: var(--grid-glow);
  animation: glowPulse 8s ease-in-out infinite;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  transition: transform .12s linear;
  animation: blobDrift 12s ease-in-out infinite;
}
.blob.b1 { width: 420px; height: 420px; top: -12%; left: -8%; background: var(--blob-1); }
.blob.b2 { width: 380px; height: 380px; bottom: 5%; right: -8%; background: var(--blob-2); animation-delay: -4s; }
.blob.b3 { width: 300px; height: 300px; top: 40%; left: 40%; background: var(--blob-3); animation-delay: -7s; }

.hero-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px;
  align-items: center; position: relative; z-index: 2; width: 100%;
}
.hero-left .sub { color: var(--muted); font-size: 1rem; max-width: 400px; margin-bottom: 32px; }

.hero-stack {
  position: relative; height: min(50vh, 420px); min-height: 300px;
  perspective: 1400px;
}
.float-card {
  position: absolute; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transform-origin: center; border: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.float-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.fc-back { width: 70%; top: 0; left: 0; z-index: 1; transform: rotate(-5deg); }
.fc-mid { width: 76%; top: 12%; right: 0; z-index: 2; transform: rotate(3deg); }
.fc-front { width: 86%; bottom: 0; left: 7%; z-index: 3; transform: rotate(-1deg); }

.float-idle { animation: cardFloat 6s ease-in-out infinite; }
.float-idle.delay-1 { animation-delay: -2s; }
.float-idle.delay-2 { animation-delay: -4s; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* Story scene */
.scene-story { --scene-mult: 3.5; }
.story-bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.story-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  transition: transform .1s linear;
}
.story-ring.sr1 { width: min(88vw, 720px); height: min(88vw, 720px); }
.story-ring.sr2 {
  width: min(68vw, 520px); height: min(68vw, 520px);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.story-wrap { position: relative; z-index: 2; text-align: center; width: 100%; }
.story-text { margin-bottom: 40px; }
.story-text h2 { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.story-label { color: var(--muted); font-size: .95rem; margin-top: 8px; transition: opacity .35s; }
.story-stage {
  position: relative; width: min(92vw, 800px); height: min(48vw, 440px);
  margin: 0 auto; perspective: 1200px;
}
.story-slide {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line);
  opacity: 0; transform: translateY(80px) scale(.88) rotateX(12deg);
}
.story-slide img { width: 100%; height: 100%; object-fit: cover; }
.story-slide.active { opacity: 1; }

/* Player slide — animated logo inside stream area only */
.story-slide-player { background: #070b14; }
.player-live-inner {
  position: absolute;
  left: 0; right: 0;
  top: 8.5%; bottom: 0;
  display: grid; place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.live-logo-stage {
  position: relative;
  width: clamp(72px, 18vw, 132px);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.live-logo-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 22%;
  position: relative; z-index: 3;
  animation: liveLogoFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 28px rgba(37, 99, 235, 0.45));
}
.live-logo-glow {
  position: absolute; inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, rgba(37, 99, 235, 0.12) 42%, transparent 72%);
  animation: liveGlowPulse 2.8s ease-in-out infinite;
  z-index: 1;
}
.live-logo-ring {
  position: absolute; inset: -18%;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  z-index: 2;
  animation: liveRingSpin 10s linear infinite;
}
.live-logo-ring.ring-2 {
  inset: -32%;
  border-color: rgba(96, 165, 250, 0.18);
  animation-duration: 14s;
  animation-direction: reverse;
}
.player-live-inner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
  animation: liveShimmer 4s ease-in-out infinite;
}

@keyframes liveLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
@keyframes liveGlowPulse {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes liveRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes liveShimmer {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateX(120%); }
}

.story-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.story-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  display: block; transition: width .35s var(--ease), background .35s;
}
.story-dots i.on { width: 28px; border-radius: 4px; background: var(--accent); }

/* Features */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.feat-list { list-style: none; max-width: 560px; margin: 0 auto; }
.feat-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease), padding-left .35s var(--ease);
}
.feat-list li:first-child { border-top: 1px solid var(--line); }
.feat-list li:hover { padding-left: 8px; transform: translateX(4px); }
.feat-list strong { font-weight: 600; }
.feat-list span { color: var(--muted); font-size: .9rem; text-align: right; }

/* CTA + FAQ */
.cta { text-align: center; margin-bottom: 64px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 28px; }
.store-hint { margin-top: 14px; font-size: .82rem; color: var(--muted); min-height: 1.2em; }
.store-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px;
  margin-bottom: 48px;
}
.store-links a {
  font-size: .85rem; color: var(--muted); padding: 6px 0;
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.store-links a:hover { color: var(--text); border-bottom-color: var(--accent); }
.faq { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.qa {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); transition: border-color .3s, box-shadow .3s;
}
.qa:hover { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; background: none; border: 0; font-weight: 500;
  cursor: pointer; text-align: left; color: var(--text); font-size: .92rem;
}
.qa .ic { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.qa .ic::before, .qa .ic::after {
  content: ""; position: absolute; background: var(--text); border-radius: 1px;
}
.qa .ic::before { top: 6px; left: 0; right: 0; height: 2px; }
.qa .ic::after { left: 6px; top: 0; bottom: 0; width: 2px; transition: transform .3s var(--ease); }
.qa.open .ic::after { transform: scaleY(0); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.qa .a p { padding: 0 20px 18px; color: var(--muted); font-size: .88rem; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a, .copy { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

/* Legal pages */
.legal { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; font-size: .95rem; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--text); text-decoration: underline; }

@keyframes loadIn {
  to { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .35; transform: scaleY(.55); }
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.06); }
}
@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

@media (max-width: 960px) {
  .scroll-scene { height: auto !important; }
  .scene-sticky { position: relative; height: auto; padding: 100px 0 60px; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-left .sub { margin-inline: auto; }
  .hero-stack { height: 280px; max-width: 360px; margin: 0 auto; }
  .scroll-cue, .story-ring { display: none; }
  .story-stage { height: 220px; }
  .story-slide { position: relative; margin-bottom: 12px; opacity: 1 !important; transform: none !important; }
  .story-slide:not(:first-child) { display: none; }
  .story-dots { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 399;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 20px 24px; display: none; flex-direction: column; gap: 12px;
  }
  .mobile-menu.open { display: flex; }
  .feat-list li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .feat-list span { text-align: left; }
  .float-idle { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal-load, .reveal, .float-card, .story-slide { opacity: 1 !important; transform: none !important; }
}
