/* ============================================
   Velo Video Player — Premium Cinematic Redesign
   Palette: Black + Navy + Electric Blue + Cyan
   ============================================ */

:root {
  /* Palette */
  --black: #010411;
  --navy-1: #030E2F;
  --navy-2: #041751;
  --navy-3: #042480;
  --royal: #0537B8;
  --electric: #024FF3;
  --bright: #0A83F5;
  --cyan: #0BCAFB;
  --light-cyan: #62D8F5;
  --silver: #E1EEF5;

  /* Semantic */
  --bg: var(--black);
  --text: var(--silver);
  --text-dim: rgba(225, 238, 245, 0.65);
  --text-soft: rgba(225, 238, 245, 0.45);
  --line: rgba(11, 202, 251, 0.12);
  --line-soft: rgba(225, 238, 245, 0.06);
  --glass: rgba(4, 23, 80, 0.55);
  --glass-strong: rgba(4, 23, 80, 0.85);

  /* Gradients */
  --grad-blue: linear-gradient(135deg, #024FF3 0%, #0BCAFB 100%);
  --grad-blue-soft: linear-gradient(135deg, rgba(2,79,243,0.18), rgba(11,202,251,0.18));
  --grad-hero: linear-gradient(180deg, rgba(1,4,17,0) 0%, rgba(4,23,80,0.6) 100%);

  /* Layout */
  --max-w: 1200px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; color: inherit; font-family: inherit; }
input { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(2,79,243,0.18), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(11,202,251,0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,202,251,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,202,251,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}
.bg-glow-1 { background: var(--electric); width: 600px; height: 600px; top: -10%; left: -10%; }
.bg-glow-2 { background: var(--cyan); width: 500px; height: 500px; top: 50%; right: -10%; animation-delay: -6s; }
.bg-glow-3 { background: var(--royal); width: 400px; height: 400px; bottom: -10%; left: 30%; animation-delay: -12s; opacity: 0.35; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.05); }
  66% { transform: translate(-30px,40px) scale(.95); }
}
.bg-noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.bg-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ===== Cursor glow ===== */
.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,202,251,0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
  mix-blend-mode: screen;
}
body.has-cursor .cursor-glow { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ===== Typography ===== */
.grad-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn.lg { padding: 16px 28px; font-size: 15px; }
.btn-primary {
  background: var(--grad-blue);
  color: white;
  box-shadow: 0 8px 24px -6px rgba(2, 79, 243, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(2, 79, 243, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover {
  background: rgba(11,202,251,0.08);
  border-color: rgba(11,202,251,0.4);
  color: var(--cyan);
}

/* ===== Navbar ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(1, 4, 17, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(1, 4, 17, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-blue);
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(11,202,251,0.4);
  transition: box-shadow .3s var(--ease);
}
.nav-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.nav-brand:hover .nav-logo { box-shadow: 0 0 32px rgba(11,202,251,0.7); }
.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nw-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
}
.nw-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.pill-ghost {
  padding: 8px 16px;
  border: 1px solid rgba(11, 202, 251, 0.4);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 600;
  background: rgba(11, 202, 251, 0.06);
}
.nav-links a.pill-ghost::after { display: none; }
.nav-links a.pill-ghost:hover {
  background: rgba(11, 202, 251, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}
.nav-cta { display: inline-flex; }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 0 24px 24px;
  gap: 8px;
}
.nav-drawer a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--glass);
}
.nav-drawer a.btn {
  text-align: center;
  margin-top: 8px;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.hero-meta .meta-icon { color: var(--cyan); font-size: 8px; }
.meta-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(11, 202, 251, 0.08);
  border: 1px solid rgba(11, 202, 251, 0.25);
  border-radius: 999px;
  color: var(--cyan) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.meta-policy-link:hover {
  background: rgba(11, 202, 251, 0.15);
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.meta-policy-link svg { flex-shrink: 0; }

/* ===== Phone stage ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  min-height: 580px;
}
.phone-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(11,202,251,0.25), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.phone-reflection {
  position: absolute;
  top: -10%;
  left: 10%;
  width: 80%;
  height: 30%;
  background: linear-gradient(180deg, rgba(11,202,251,0.15), transparent);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.4;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(160deg, #1a1f2e, #0a0f1c);
  border-radius: 44px;
  padding: 8px;
  border: 1px solid rgba(11,202,251,0.15);
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(11,202,251,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: phoneFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-3deg); }
  50% { transform: translateY(-12px) rotateY(-1deg); }
}
.phone-bezel {
  width: 100%;
  height: 100%;
  background: var(--black);
  border-radius: 38px;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.notch-cam {
  position: absolute;
  top: 8px; right: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1a2333;
  border: 1px solid #2a3a55;
}
.phone-side {
  position: absolute;
  right: -3px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, #1a1f2e, #2a3a55);
  border-radius: 2px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 38px;
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s var(--ease);
  display: flex;
  flex-direction: column;
}
.scene.is-active { opacity: 1; pointer-events: auto; }

/* Scene: Home */
.scene-home { padding: 50px 22px 22px; background: linear-gradient(180deg, #02193d, var(--black)); }
.ps-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  padding: 0 6px;
  margin-bottom: 22px;
}
.ps-status-icons {
  width: 40px;
  height: 10px;
  background: linear-gradient(90deg, transparent 0%, transparent 30%, var(--cyan) 30%, var(--cyan) 50%, var(--text) 50%, var(--text) 70%, var(--text) 70%);
  border-radius: 2px;
  opacity: 0.7;
}
.ps-header { margin-bottom: 24px; }
.ps-app {
  display: flex; align-items: center; gap: 12px;
}
.ps-app-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-blue);
  flex-shrink: 0;
}
.ps-app-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.ps-app-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.ps-hero {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  text-align: center;
}
.ps-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ps-hero-sub {
  font-size: 12px;
  color: var(--text-dim);
}
.ps-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--grad-blue);
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px -6px rgba(2,79,243,0.6);
  transition: transform .2s var(--ease);
}
.ps-pick.is-pressing {
  transform: scale(0.96);
  box-shadow: 0 4px 12px -4px rgba(2,79,243,0.4);
}
.ps-recent-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ps-recent-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ps-thumb {
  aspect-ratio: 16/10;
  border-radius: 6px;
  background: linear-gradient(135deg, #024FF3, #0BCAFB);
}
.ps-thumb:nth-child(2) { background: linear-gradient(135deg, #0537B8, #62D8F5); }
.ps-thumb:nth-child(3) { background: linear-gradient(135deg, #041751, #0A83F5); }
.ps-thumb:nth-child(4) { background: linear-gradient(135deg, #042480, #62D8F5); }

/* Scene: Gallery */
.scene-gallery {
  padding: 50px 14px 14px;
  background: var(--black);
}
.ps-gallery-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 6px;
}
.ps-back {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cyan);
}
.ps-gallery-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 4px;
  overflow-y: auto;
  max-height: 540px;
}
.ps-tile {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s var(--ease);
  position: relative;
}
.ps-tile-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #024FF3, #0BCAFB);
}
.ps-tile-thumb.alt { background: linear-gradient(135deg, #0537B8, #62D8F5); }
.ps-tile-thumb.alt2 { background: linear-gradient(135deg, #042480, #0BCAFB); }
.ps-tile-thumb.alt3 { background: linear-gradient(135deg, #041751, #0A83F5); }
.ps-tile-thumb.alt4 { background: linear-gradient(135deg, #024FF3, #62D8F5); }
.ps-tile-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 8px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-tile-meta {
  font-size: 9px;
  color: var(--text-dim);
  padding: 0 8px 6px;
}
.ps-tile.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(11,202,251,0.5);
  transform: scale(1.04);
}
.ps-tile-check {
  position: absolute;
  top: 6px; right: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(11,202,251,0.8);
}

/* Scene: Player */
.scene-player {
  background: #000;
  display: flex;
  flex-direction: column;
}
.ps-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.ps-player-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  pointer-events: none;
}
.ps-player-title {
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ps-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.ps-btn-play, .ps-btn-fs {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-btn-play {
  background: var(--grad-blue);
}
.play-icon {
  width: 0; height: 0;
  border-left: 10px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.ps-btn-play.is-paused .play-icon {
  border: 0;
  width: 8px; height: 10px;
  background: linear-gradient(to right, white 0%, white 40%, transparent 40%, transparent 60%, white 60%, white 100%);
  margin-left: 0;
}
.ps-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.ps-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width .2s linear;
}
.ps-time {
  font-size: 10px;
  color: white;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ps-btn-fs svg { display: block; }
.ps-loading {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ps-loading[hidden] { display: none; }
.ps-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(11,202,251,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ps-loading-text {
  font-size: 12px;
  color: var(--text-dim);
}

/* Touch cursor */
.touch-cursor {
  position: absolute;
  width: 40px; height: 40px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 10;
  transition: opacity .2s;
}
.touch-cursor.is-active { opacity: 1; }
.touch-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: touchRipple 1.4s ease-out infinite;
}
.touch-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--cyan);
}
@keyframes touchRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Floating labels around phone */
.float-label {
  position: absolute;
  padding: 6px 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.8);
  transition: all .5s var(--ease);
  pointer-events: none;
}
.float-label.is-visible {
  opacity: 1;
  transform: scale(1);
}
.fl-1 { top: 8%; left: -10%; }
.fl-2 { top: 30%; right: -16%; }
.fl-3 { bottom: 30%; left: -14%; }
.fl-4 { bottom: 12%; right: -8%; }
.fl-5 { top: 50%; left: -20%; }

/* Scene progress */
.scene-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
}
.sp-step {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all .4s var(--ease);
}
.sp-step.is-active {
  background: var(--grad-blue);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(11,202,251,0.5);
}
.sp-line {
  width: 30px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.sp-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--cyan);
  transition: left .6s var(--ease);
}
.sp-line.is-done::after { left: 0; }

/* ===== Story sections ===== */
.story {
  padding: 100px 0;
  position: relative;
}
.story-alt { background: linear-gradient(180deg, transparent, rgba(4,23,80,0.2), transparent); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-grid-reverse .story-visual { order: 2; }
.story-grid-reverse .story-text { order: 1; }
.story-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.story-text p {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 480px;
}
.story-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.story-list .num,
.story-list .chk {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Bento grid (story 2) */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 460px;
  margin: 0 auto;
}
.bento-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-blue);
  border-radius: 18px;
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
}
.bento-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(2,79,243,0.4);
}
.bc-num {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.bc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.bc-play {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  color: var(--cyan);
  opacity: 0.5;
}

/* Gallery stack (story 3) */
.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
.gs-tile {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all .4s var(--ease);
}
.gs-thumb {
  width: 60px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #024FF3, #0BCAFB);
  flex-shrink: 0;
}
.gs-thumb.alt { background: linear-gradient(135deg, #0537B8, #62D8F5); }
.gs-thumb.alt2 { background: linear-gradient(135deg, #042480, #0BCAFB); }
.gs-thumb.alt3 { background: linear-gradient(135deg, #041751, #0A83F5); }
.gs-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gs-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.gs-line.w40 { width: 40%; }
.gs-line.w70 { width: 70%; }
.gs-tile.gs-active {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(11,202,251,0.4);
  transform: translateX(8px);
}
.gs-check {
  position: absolute;
  right: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Player card (story 4) */
.player-card {
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.player-card-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(11,202,251,0.3), transparent 60%),
    linear-gradient(135deg, #024FF3, #041751);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.pcs-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 8px 14px;
}
.pcs-play {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-blue);
  position: relative;
}
.pcs-play::after {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 7px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.pcs-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.pcs-progress-fill {
  height: 100%;
  width: 35%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.pcs-time {
  font-size: 10px;
  font-weight: 600;
  color: white;
  font-variant-numeric: tabular-nums;
}
.pcs-title {
  position: absolute;
  top: 22px; left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ===== Section base ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-top: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ===== URL Player ===== */
.url-section {
  padding: 80px 0;
}
.url-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.url-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-blue);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: -1;
}
.url-head {
  text-align: center;
  margin-bottom: 32px;
}
.url-form {
  display: flex;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto 24px;
}
.url-input-wrap {
  flex: 1;
  position: relative;
  background: rgba(1,4,17,0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.url-input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(11,202,251,0.1);
}
.url-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-dim);
}
.url-input-wrap input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  outline: 0;
}
.url-input-wrap input::placeholder { color: var(--text-soft); }
.url-player {
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.up-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.up-loading {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.up-loading[hidden] { display: none; }
.up-error {
  position: absolute;
  inset: 0;
  background: rgba(1,4,17,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.up-error[hidden] { display: none; }
.up-error-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  border: 1px solid rgba(239,68,68,0.3);
}
.up-error-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.up-error-msg {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 400px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(4,23,80,0.15), transparent);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-blue-soft);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  border-color: rgba(11,202,251,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(2,79,243,0.3);
}
.feature-card:hover::before { opacity: 0.4; }
.feature-card > * { position: relative; z-index: 1; }
.fc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px -6px rgba(2,79,243,0.4);
}
.fc-icon svg { width: 24px; height: 24px; color: white; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== How it works ===== */
.how { padding: 100px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.how-step {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.how-step:hover {
  border-color: rgba(11,202,251,0.3);
  transform: translateY(-4px);
}
.how-num {
  font-size: 48px;
  font-weight: 900;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-step p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== Showcase ===== */
.showcase { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(4,23,80,0.15), transparent); }
.showcase-stage {
  position: relative;
  height: 400px;
  max-width: 800px;
  margin: 0 auto;
}
.showcase-labels {
  position: relative;
  width: 100%;
  height: 100%;
}
.sc-label {
  position: absolute;
  padding: 10px 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  animation: labelFloat 6s ease-in-out infinite;
}
.sc-label::before {
  content: '';
  position: absolute;
  width: 100px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  top: 50%;
}
.sc-l1 { top: 10%; left: 10%; animation-delay: 0s; }
.sc-l1::before { right: -100px; }
.sc-l2 { top: 25%; right: 15%; animation-delay: -1.2s; }
.sc-l2::before { left: -100px; transform: scaleX(-1); }
.sc-l3 { top: 50%; left: 15%; animation-delay: -2.4s; }
.sc-l3::before { right: -100px; }
.sc-l4 { top: 65%; right: 20%; animation-delay: -3.6s; }
.sc-l4::before { left: -100px; transform: scaleX(-1); }
.sc-l5 { top: 85%; left: 50%; transform: translateX(-50%); animation-delay: -4.8s; }
.sc-l5::before { display: none; }
@keyframes labelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.sc-l5 { animation-name: labelFloatCenter; }
@keyframes labelFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 120px 0 100px;
  position: relative;
}
.final-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.final-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 16px 0 20px;
}
.final-copy p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 480px;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.final-meta {
  margin-top: 18px !important;
  font-size: 13px !important;
  color: var(--text-soft) !important;
}
.final-visual {
  display: flex;
  justify-content: center;
}
.phone-mini {
  width: 260px;
  height: 520px;
  animation: phoneFloat 6s ease-in-out infinite;
}
.phone-final {
  background:
    radial-gradient(ellipse at center, rgba(11,202,251,0.6), transparent 70%),
    linear-gradient(180deg, #024FF3, #041751);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ps-final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
}
.ps-final-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, transparent, rgba(3,14,47,0.6));
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-blurb {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Reveal animation (safety net) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.in-view {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .story-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .story-text p { margin-left: auto; margin-right: auto; }
  .story-list { align-items: center; }
  .story-grid-reverse .story-visual { order: 0; }
  .story-grid-reverse .story-text { order: 0; }
  .final-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .final-copy p { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 700px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer.open { display: flex; }
  .hero-title { letter-spacing: -1.5px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .bento { grid-template-columns: 1fr; }
  .url-form { flex-direction: column; }
  .url-card { padding: 32px 20px; }
  .showcase-stage { height: 320px; }
  .sc-label { font-size: 12px; padding: 8px 14px; }
  .sc-label::before { display: none; }
  .hero-visual { min-height: 600px; }
  .phone-stage { max-width: 300px; }
  .phone { width: 280px; height: 560px; }
  .float-label { display: none; }
  .url-card { padding: 32px 18px; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg-glow, .phone, .sc-label, .phone-mini { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
