/* ═════════════════════════════════════════════════════════════════════════════
 * CinePulse Ultimate — "The Projection Booth" Design System
 * 3-Color Strict Cinema Palette: Crimson Red, OLED Black, Pure White
 * Zero Tailwind Runtime. Pure Vanilla CSS.
 * ═════════════════════════════════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --ink: #0B0B0C;
  --white: #FFFFFF;
  --paper-ink: #0B0B0C;
  --crimson: #EE1E50;
  --crimson-hi: #FF2A55;
  --line: rgba(255, 255, 255, 0.14);
  --line-paper: rgba(0, 0, 0, 0.14);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-paper-muted: rgba(11, 11, 12, 0.62);
  --rim-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.20);
  --rim-paper: inset 0 1px 0 rgba(0, 0, 0, 0.12);

  --font-display-en: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display-bn: 'Anek Bangla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-en: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-bn: 'Hind Siliguri', 'Anek Bangla', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-cinematic: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body-en);
  font-size: 17px;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Bengali Typography Mode */
body.lang-bn {
  font-family: var(--font-body-bn);
}

body.lang-bn h1,
body.lang-bn h2,
body.lang-bn h3,
body.lang-bn .headline-display {
  font-family: var(--font-display-bn);
  line-height: 1.35;
  letter-spacing: 0;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--crimson);
  color: var(--white);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

/* Letterbox 2.39:1 Cinema Bars */
.letterbox-curtain {
  position: fixed;
  left: 0;
  right: 0;
  background: #000000;
  z-index: 100;
  pointer-events: none;
  transition: transform 1.2s var(--ease-cinematic);
}

.letterbox-curtain.top {
  top: 0;
  height: 5vh;
  transform: translateY(0);
}

.letterbox-curtain.bottom {
  bottom: 0;
  height: 5vh;
  transform: translateY(0);
}

body.film-started .letterbox-curtain.top {
  transform: translateY(-100%);
}

body.film-started .letterbox-curtain.bottom {
  transform: translateY(100%);
}

/* SVG Film-Grain Texture Overlay (Hero only, 5% opacity) */
.film-grain-hero {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * THE PULSE LINE (ECG Trace Spine)
 * Signature element: runs down the left edge (desktop) or top (mobile)
 * ═════════════════════════════════════════════════════════════════════════════ */

.pulse-spine-wrapper {
  position: fixed;
  top: 0;
  left: 18px;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 900px) {
  .pulse-spine-wrapper {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 4px;
  }
}

.pulse-spine-track {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.pulse-spine-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--crimson);
  box-shadow: 0 0 8px var(--crimson);
}

.pulse-ecg-heartbeat {
  position: absolute;
  left: -13px;
  width: 28px;
  height: 28px;
  color: var(--crimson);
  transition: top 0.1s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .pulse-spine-track {
    width: 100%;
    height: 3px;
  }
  .pulse-spine-progress {
    width: 0%;
    height: 100%;
  }
  .pulse-ecg-heartbeat {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
 * NAVIGATION BAR & GLASS COMPONENT 1 (Floating Pill / Mobile Dock)
 * Glass used strictly here: backdrop-filter allowed
 * ═════════════════════════════════════════════════════════════════════════════ */

.nav-header {
  position: sticky;
  top: 16px;
  z-index: 80;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--rim-highlight), 0 16px 36px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s var(--ease-cinematic);
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo-group img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* GLASS COMPONENT 2: Language Switch Pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 2px;
  cursor: pointer;
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s;
}

.lang-btn.active {
  background: var(--crimson);
  color: var(--white);
}

/* Primary Button */
.btn-cinema {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--crimson);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -4px rgba(238, 30, 80, 0.5);
  transition: background 0.15s, transform 0.15s var(--ease-spring);
}

.btn-cinema:hover {
  background: var(--crimson-hi);
  transform: translateY(-1px);
}

.btn-cinema:active {
  transform: scale(0.97);
}

.btn-cinema-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--rim-highlight);
  transition: background 0.2s, border-color 0.2s;
}

.btn-cinema-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Bottom Dock */
@media (max-width: 820px) {
  .nav-header {
    top: auto;
    bottom: 14px;
    position: fixed;
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
    padding: 0;
  }
  .nav-dock {
    padding: 8px 14px;
    justify-content: space-around;
  }
  .nav-links {
    display: none;
  }
  .mobile-dock-links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    list-style: none;
  }
  .mobile-dock-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-family: var(--font-mono);
    text-decoration: none;
    color: var(--text-muted);
  }
  .mobile-dock-links a.active,
  .mobile-dock-links a:hover {
    color: var(--crimson-hi);
  }
  .nav-logo-group,
  .nav-actions {
    display: none;
  }
}

@media (min-width: 821px) {
  .mobile-dock-links {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE STRUCTURE & TYPOGRAPHY
 * ═════════════════════════════════════════════════════════════════════════════ */

.scene {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.scene.full-width {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Timecode replacing generic eyebrow labels */
.timecode {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.paper-scene .timecode {
  color: rgba(0, 0, 0, 0.48);
}

.scene-title {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.scene-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

.paper-scene .scene-lead {
  color: var(--text-paper-muted);
}

/* Paper Scene Contrast Switch */
.paper-scene {
  background-color: var(--white);
  color: var(--paper-ink);
  width: 100%;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 01 — HERO (Black, Letterboxed)
 * ═════════════════════════════════════════════════════════════════════════════ */

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: 80vh;
  position: relative;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero-headline {
  font-size: clamp(3rem, 7.8vw, 6.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-footnote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* Hero Right Visual: Asymmetric bleeding tilted phone */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 900;
  font-family: var(--font-display-en);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.phone-tilted {
  position: relative;
  width: 310px;
  height: 610px;
  background: var(--ink);
  border-radius: 38px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--rim-highlight), 0 35px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(238, 30, 80, 0.15);
  transform: rotate(3deg);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.4s var(--ease-spring);
}

.phone-tilted:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-screen-inner {
  width: 100%;
  height: 100%;
  background: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scrolling simulated real app catalog feed */
.hero-feed-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  animation: feedScroll 14s linear infinite;
}

@keyframes feedScroll {
  0% { transform: translateY(0); }
  50% { transform: translateY(-38%); }
  100% { transform: translateY(0); }
}

/* Abstract 2:3 Poster Tiles (NO copyright images) */
.poster-tile {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #161618 0%, #080809 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.poster-tile.crimson-tint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(238, 30, 80, 0.4) 0%, transparent 65%);
}

.poster-title-fake {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  z-index: 1;
}

.poster-meta-fake {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  z-index: 1;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 02 — "IN YOUR POCKET" (Asymmetric Bento, White Paper Scene)
 * ═════════════════════════════════════════════════════════════════════════════ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.bento-tile {
  background: #FFFFFF;
  border: 1px solid var(--line-paper);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--rim-paper), 0 8px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--rim-paper), 0 14px 30px rgba(0, 0, 0, 0.08);
}

.bento-tile h4 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--paper-ink);
}

.bento-tile p {
  font-size: 15px;
  color: var(--text-paper-muted);
  line-height: 1.5;
}

/* Tile 1: Starts Fast (Col 1-7) */
.bento-fast {
  grid-column: span 7;
}

.fast-stopwatch-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0;
}

.fast-stopwatch-digits {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 800;
  color: var(--crimson);
  letter-spacing: -0.04em;
}

.fast-stopwatch-unit {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-paper-muted);
}

/* Tile 2: Gestures Scrub Simulator (Col 8-12) */
.bento-gestures {
  grid-column: span 5;
}

.mini-gesture-pad {
  margin-top: 18px;
  height: 110px;
  background: #F4F4F5;
  border-radius: 10px;
  border: 1px solid var(--line-paper);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
  position: relative;
  cursor: grab;
  user-select: none;
}

.gesture-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gesture-bar-fill {
  width: 6px;
  height: 55px;
  background: #E4E4E7;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.gesture-bar-fill::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: var(--crimson);
  transition: height 0.15s;
}

.gesture-thumb-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Tile 3: Picture in Picture (Col 1-5) */
.bento-pip {
  grid-column: span 5;
}

.pip-viewport-sim {
  margin-top: 18px;
  height: 120px;
  background: #18181B;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.pip-floating-window {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 48px;
  background: #000000;
  border: 2px solid var(--crimson);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--white);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease-spring);
}

/* Tile 4: Offline (Col 6-12) */
.bento-offline {
  grid-column: span 7;
}

.offline-progress-track {
  margin-top: 20px;
  width: 100%;
  height: 8px;
  background: #E4E4E7;
  border-radius: 4px;
  overflow: hidden;
}

.offline-progress-fill {
  height: 100%;
  width: 84%;
  background: var(--crimson);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* Tile 5: Subtitles Live (Col 1-6) */
.bento-subtitles {
  grid-column: span 6;
}

.subtitle-preview-box {
  margin-top: 18px;
  background: #18181B;
  color: var(--white);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* Tile 6: Search & Category Chips (Col 7-12) */
.bento-search {
  grid-column: span 6;
}

.search-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 6px;
  background: #F4F4F5;
  border: 1px solid var(--line-paper);
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

/* Bottom plain row in Scene 02 */
.bento-row-plain {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.bento-subitem {
  padding: 16px;
  background: #FAFAFA;
  border: 1px solid var(--line-paper);
  border-radius: 10px;
}

.bento-subitem h5 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bento-subitem span {
  font-size: 12px;
  color: var(--text-paper-muted);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-fast, .bento-gestures, .bento-pip, .bento-offline, .bento-subtitles, .bento-search {
    grid-column: span 1;
  }
  .bento-row-plain {
    grid-column: span 1;
    grid-template-columns: 1fr 1fr;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 03 — "THE PLAYER" & GLASS COMPONENT 3 (Player Capsule)
 * Full-bleed OLED black scene with interactive cursor specular glare
 * ═════════════════════════════════════════════════════════════════════════════ */

.player-stage {
  margin-top: 48px;
  background: #060608;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--rim-highlight), 0 30px 60px rgba(0, 0, 0, 0.9);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.player-ambient-visual {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #1C050B 0%, #000000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.player-cinematic-reel {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: reelSpin 20s linear infinite;
}

@keyframes reelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* GLASS COMPONENT 3: Real Glass Player Capsule */
.player-capsule {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--rim-highlight), 0 20px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s var(--ease-spring);
}

.player-capsule:active {
  transform: scale(0.985);
}

.player-scrubber-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

.player-scrubber-fill {
  height: 100%;
  width: 58%;
  background: var(--crimson);
  border-radius: 2px;
  position: relative;
}

.player-scrubber-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.player-capsule-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-timecode-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.player-btn-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 30, 80, 0.5);
  transition: transform 0.15s var(--ease-spring);
}

.player-btn-circle:hover {
  transform: scale(1.08);
  background: var(--crimson-hi);
}

.player-btn-circle:active {
  transform: scale(0.92);
}

.player-sub-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.player-sub-btn:hover {
  border-color: var(--white);
}

.player-design-credit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 24px;
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 04 — "FOUR SCREENS" (Web Mirrors Horizontal Rail)
 * ═════════════════════════════════════════════════════════════════════════════ */

.screens-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.screen-ticket-stub {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--rim-highlight);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
}

.screen-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.screen-domain {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 6px 0;
  word-break: break-all;
}

.screen-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717A; /* Neutral grey on load */
  transition: background 0.3s;
}

.status-dot.reachable {
  background: #34D399; /* Subtle green only after fetch succeeds */
}

.status-dot.unreachable {
  background: #EF4444;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 05 — "CAN'T CONNECT?" (Practical DNS Troubleshooting)
 * ═════════════════════════════════════════════════════════════════════════════ */

.dns-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .dns-steps-grid {
    grid-template-columns: 1fr;
  }
}

.dns-step-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--rim-highlight);
  padding: 24px;
}

.dns-step-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 12px;
}

.dns-step-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dns-step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.dns-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 8px 12px;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.btn-mini-copy {
  background: transparent;
  border: none;
  color: var(--crimson-hi);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 06 — "YOUR TICKET" DOWNLOAD (White Paper Scene, Peak Moment)
 * ═════════════════════════════════════════════════════════════════════════════ */

.ticket-wrapper {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.cinema-ticket {
  width: 100%;
  max-width: 780px;
  background: #FFFFFF;
  border: 1px solid var(--line-paper);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px) {
  .cinema-ticket {
    grid-template-columns: 1fr;
  }
}

.ticket-left {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px dashed rgba(0, 0, 0, 0.18);
  position: relative;
}

.ticket-header-admit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--crimson);
  text-transform: uppercase;
}

.ticket-app-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--paper-ink);
  margin: 12px 0 6px 0;
}

.ticket-specs-list {
  list-style: none;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-paper-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-right-stub {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #FAFAFA;
  transition: transform 0.6s var(--ease-spring);
}

.ticket-right-stub.tearing {
  transform: translate(20px, 30px) rotate(4deg);
  opacity: 0.9;
}

.ticket-qr-container {
  width: 130px;
  height: 130px;
  background: #FFFFFF;
  border: 1px solid var(--line-paper);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-qr-container svg {
  width: 100%;
  height: 100%;
}

.ticket-honest-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-paper-muted);
  margin-top: 14px;
}

/* 3-Step Install Guidance */
.install-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 680px) {
  .install-steps-row {
    grid-template-columns: 1fr;
  }
}

.install-step-item {
  padding: 16px;
  border-radius: 10px;
  background: #F4F4F5;
  border: 1px solid var(--line-paper);
}

.install-step-item strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.install-step-item span {
  font-size: 12px;
  color: var(--text-paper-muted);
}

/* Build it yourself block */
.build-yourself-box {
  margin-top: 36px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  border-radius: 12px;
  background: #0B0B0C;
  color: var(--white);
  border: 1px solid var(--line);
}

.build-yourself-box pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #A1A1AA;
  overflow-x: auto;
  margin-top: 8px;
  line-height: 1.6;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 07 — OPEN SOURCE (Comparison Table, Clean Hairlines)
 * ═════════════════════════════════════════════════════════════════════════════ */

.opensource-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .opensource-grid {
    grid-template-columns: 1fr;
  }
}

.mit-badge-giant {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--crimson);
}

.github-live-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  gap: 20px;
}

/* Clean 2-column symmetry table */
.symmetry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.symmetry-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.symmetry-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.symmetry-table td strong {
  color: var(--white);
}

/* Short Inline FAQ (Plain open text, no accordion) */
.inline-faq-block {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.inline-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .inline-faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-entry h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}

.faq-entry p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * SCENE 08 — END CREDITS (Film Rolling Credits Layout)
 * ═════════════════════════════════════════════════════════════════════════════ */

.credits-roll {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.credits-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.credits-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}

.credits-name a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credits-name a:hover {
  color: var(--crimson-hi);
}

.credits-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.support-server-box {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--rim-highlight);
  padding: 24px;
  text-align: left;
}

.support-server-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-server-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-legal-notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════════
 * ACCESSIBILITY & REDUCED MOTION PREFERENCE
 * ═════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .letterbox-curtain {
    display: none !important;
  }
  .hero-feed-scroll {
    animation: none !important;
  }
  .player-cinematic-reel {
    animation: none !important;
  }
  .phone-tilted {
    transform: none !important;
  }
}
