/* ==========================================================================
   REYLEH — OFFICIAL PRODUCT LANDING PAGE STYLESHEET
   Design System: OLED Liquid Glass (Jetpack Compose / Kyant Backdrop aesthetic)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg: #050507;
  --bg-deep: #020204;
  --text: #f7f5fb;
  --text-secondary: #c2bccf;
  --muted: #8e889a;
  --muted-dark: #585362;
  
  --violet: #a985ff;
  --violet-glow: rgba(169, 133, 255, 0.35);
  --cyan: #80e9ff;
  --cyan-glow: rgba(128, 233, 255, 0.3);
  --green: #8fffc1;
  --coral: #ff708d;
  --amber: #ffc266;
  
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.22);
  --glass: rgba(14, 13, 20, 0.72);
  --glass-card: rgba(18, 17, 26, 0.68);
  --glass-hover: rgba(26, 24, 38, 0.85);
  
  --container: min(1200px, calc(100% - 40px));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--bg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Background Ambient Lighting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 82% 12%, rgba(125, 60, 235, 0.16), transparent 32%),
    radial-gradient(circle at 15% 45%, rgba(45, 170, 210, 0.08), transparent 30%),
    radial-gradient(circle at 60% 85%, rgba(153, 75, 255, 0.1), transparent 35%);
}

/* Selection */
::selection {
  color: #05040a;
  background: var(--violet);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* WebGL Background Canvas */
#webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.75;
}

main, footer, nav {
  position: relative;
  z-index: 2;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Liquid Glass Cards */
.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 45%), var(--glass-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 25px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
}

.glass-panel {
  border: 1px solid var(--line);
  background: var(--glass);
}

/* Scroll Progress Bar */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 2.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 200;
  transition: transform var(--transition-normal);
}

.nav-inner {
  width: min(1200px, calc(100% - 28px));
  height: 64px;
  margin: auto;
  padding: 0 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(135, 80, 245, 0.45);
}

.brand-icon img, .brand-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b5afc4;
}

.nav-links a {
  transition: color var(--transition-fast);
  padding: 6px 4px;
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
}

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

/* Sound FX Toggle */
.sound-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.sound-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sound-toggle.active {
  color: var(--cyan);
  border-color: rgba(128, 233, 255, 0.3);
}

/* Buttons */
.btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-bright);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #07050b;
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #ffffff 0%, #ceb7ff 100%);
  box-shadow: 0 10px 30px rgba(169, 133, 255, 0.3), inset 0 1px 0 #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 15%, #bfa2ff 100%);
  box-shadow: 0 14px 40px rgba(169, 133, 255, 0.45);
}

.btn-cyan {
  color: #04090d;
  background: linear-gradient(135deg, #ffffff 0%, #80e9ff 100%);
  box-shadow: 0 10px 30px rgba(128, 233, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-small {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.btn-badge {
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 100px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 86px;
  left: 14px;
  right: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(14, 13, 20, 0.98);
  border: 1px solid var(--line-bright);
  z-index: 199;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  padding: 145px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ded9e8;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-bottom: 24px;
}

.gradient {
  color: transparent;
  background: linear-gradient(110deg, #ffffff 0%, #c4a6ff 30%, #80e9ff 65%, #ffffff 90%);
  background-size: 220% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientShine 7s linear infinite;
}

@keyframes gradientShine {
  to { background-position: 220% center; }
}

#morphWord {
  display: inline-block;
  transition: opacity 0.28s, transform 0.28s, filter 0.28s;
}

#morphWord.changing {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}

.hero-copy > p {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #8c8697;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   3D SMARTPHONE DEVICE MOCKUP
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 75, 245, 0.28), transparent 70%);
  filter: blur(75px);
  z-index: 0;
}

.device {
  position: relative;
  z-index: 2;
  width: min(320px, 82vw);
  aspect-ratio: 300 / 620;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 46px;
  background: linear-gradient(150deg, #504c59 0%, #17161f 25%, #050507 70%, #3e3848 100%);
  box-shadow: -28px 45px 95px rgba(0, 0, 0, 0.8), 0 0 80px rgba(135, 75, 245, 0.2);
  transform: rotateY(-9deg) rotateX(4deg) rotateZ(3deg);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.4, 1);
  user-select: none;
}

.screen {
  position: relative;
  height: 100%;
  padding: 15px 14px;
  overflow: hidden;
  border-radius: 38px;
  background: radial-gradient(circle at 75% 18%, rgba(125, 65, 215, 0.3), transparent 30%), #050508;
  display: flex;
  flex-direction: column;
}

.island {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 80px;
  height: 22px;
  border-radius: 20px;
  transform: translateX(-50%);
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.status {
  margin: 0 6px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  color: #a49fad;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-top .brand {
  font-size: 0.95rem;
}

.app-top .brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.avatar {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #442a6d, #1e1330);
  font-size: 0.65rem;
  font-weight: 800;
  color: #e5d9ff;
}

.search {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #7d7788;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-tabs {
  margin: 12px 0 10px;
  display: flex;
  justify-content: space-between;
  color: #817b8b;
  font-size: 0.58rem;
  font-weight: 800;
}

.phone-tabs span {
  padding: 4px 7px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.phone-tabs .active {
  color: #ffffff;
  background: rgba(169, 133, 255, 0.28);
  border: 1px solid rgba(169, 133, 255, 0.4);
}

.cover {
  position: relative;
  height: 215px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #090710;
  isolation: isolate;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.78) contrast(1.1);
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 4, 10, 0.2) 0%, rgba(5, 4, 10, 0.15) 30%, rgba(5, 4, 10, 0.85) 75%, rgba(5, 4, 10, 0.98) 100%);
}

.cover > * {
  position: relative;
  z-index: 2;
}

.cover small {
  color: #e5d9f2;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cover h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 5px 0 2px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.cover p {
  margin: 0;
  color: #d1c8db;
  font-size: 0.58rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.play-disc {
  position: absolute !important;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #171022;
  background: #ffffff;
  font-size: 0.72rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.rail-title {
  margin: 14px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.rail-title span {
  color: var(--violet);
  font-size: 0.54rem;
  cursor: pointer;
}

.mini-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mini {
  position: relative;
  aspect-ratio: 0.72;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  background: #0e0c16;
  font-size: 0.45rem;
  font-weight: 800;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.mini-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
  transition: transform 0.3s ease;
}

.mini:hover .mini-img {
  transform: scale(1.12);
  filter: brightness(0.85);
}

.mini::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(5, 4, 10, 0.85) 100%);
}

.mini span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.phone-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #726b7c;
  background: rgba(18, 16, 25, 0.96);
  font-size: 0.82rem;
}

.phone-nav .active {
  color: var(--violet);
}

/* Floating Glass Badges */
.float-chip {
  position: absolute;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ded9e8;
  font-size: 0.72rem;
  animation: chipFloat 5.5s ease-in-out infinite;
}

.float-chip strong {
  display: block;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.float-chip small {
  color: var(--muted);
  font-size: 0.62rem;
}

.chip-one {
  top: 18%;
  left: -4%;
}

.chip-two {
  right: -5%;
  bottom: 16%;
  animation-delay: -2.8s;
}

.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(169, 133, 255, 0.18);
  color: var(--violet);
  font-size: 0.95rem;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* --------------------------------------------------------------------------
   MARQUEE TICKER & STATS ROW
   -------------------------------------------------------------------------- */
.ticker {
  padding: 16px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 7, 12, 0.94);
  transform: rotate(-0.7deg) scale(1.02);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 32px;
  color: #bcb6c8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: tickerSlide 30s linear infinite;
}

.ticker-track i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--violet);
}

@keyframes tickerSlide {
  to { transform: translateX(-50%); }
}

.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 26px 36px;
  border-radius: var(--radius-lg);
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 42px;
  background: var(--line);
}

@media (max-width: 768px) {
  .metric-divider { display: none; }
  .metrics-strip { justify-content: center; gap: 28px; padding: 22px 18px; }
}

/* --------------------------------------------------------------------------
   GENERIC SECTION HEADINGS
   -------------------------------------------------------------------------- */
.section {
  padding: 125px 0;
  position: relative;
}

.heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.heading.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading.center .kicker {
  justify-content: center;
}

.heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 18px;
}

.heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.heading.center p {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   CATALOG & DISCOVERY SECTION
   -------------------------------------------------------------------------- */
.catalog {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.catalog-top {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.catalog-top strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
}

.concept-badge {
  color: #8c8698;
  font-size: 0.68rem;
  margin-top: 2px;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-bar {
  position: relative;
  min-width: 200px;
}

.search-bar input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.search-bar input:focus {
  border-color: rgba(169, 133, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #797384;
  font-size: 0.75rem;
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter {
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #9c96a8;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.filter:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.filter.active {
  color: #ffffff;
  border-color: rgba(169, 133, 255, 0.35);
  background: rgba(153, 104, 255, 0.2);
}

/* Media Cards Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-card {
  cursor: pointer;
  animation: cardFadeIn 0.35s both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.poster {
  position: relative;
  aspect-ratio: 0.72;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #090812;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85) contrast(1.08) saturate(1.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.32) 0%, rgba(5, 5, 8, 0.1) 32%, rgba(5, 5, 8, 0.78) 72%, rgba(5, 5, 8, 0.98) 100%);
  transition: background 0.35s;
}

.media-card:hover .poster {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(169, 133, 255, 0.25);
}

.media-card:hover .poster-img {
  transform: scale(1.07);
  filter: brightness(0.98) contrast(1.12) saturate(1.2);
}

.media-card:hover .poster::after {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.18) 0%, rgba(5, 5, 8, 0.05) 30%, rgba(5, 5, 8, 0.7) 70%, rgba(5, 5, 8, 0.96) 100%);
}

.poster-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-type {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(4, 3, 9, 0.88);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ded9e8;
}

.media-rating {
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--amber);
}

.poster h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.poster p {
  margin: 0 0 8px;
  color: #ded8e8;
  font-size: 0.65rem;
  line-height: 1.4;
}

.meta-tags {
  display: flex;
  gap: 6px;
  font-size: 0.54rem;
  font-weight: 700;
}

.meta-tags span {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #e5dfee;
}

/* --------------------------------------------------------------------------
   INTERACTIVE MEDIA3 GESTURE PLAYER DEMO
   -------------------------------------------------------------------------- */
.player-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: center;
  gap: 28px;
}

.player-shell {
  padding: 12px;
  border-radius: var(--radius-xl);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(187, 122, 255, 0.22), transparent 28%), #08070d;
  transition: aspect-ratio 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.5s;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}

.video-stage.portrait {
  max-width: 310px;
  aspect-ratio: 9 / 16;
  margin: auto;
}

/* Ambient Canvas / Visualizer Inside Player */
.player-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cinema-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid rgba(224, 195, 255, 0.45);
  border-radius: 38% 62% 51% 49%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 10%),
    radial-gradient(circle at 30% 30%, #9c6cda, #382657 45%, #08060f 75%);
  box-shadow: 0 0 70px rgba(141, 86, 226, 0.4), inset -15px -20px 45px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  animation: cinemaOrb 9s ease-in-out infinite;
  transition: transform 0.4s;
}

@keyframes cinemaOrb {
  50% { border-radius: 63% 37% 36% 64%; transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
}

.video-top {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.video-top h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 2px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.video-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
}

.quality-badge {
  padding: 5px 9px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 12;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #161020;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast), background var(--transition-fast), opacity 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
}

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffffff;
}

/* Interactive Ripple HUD & Gesture Center Display */
.hud {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 15;
  min-width: 140px;
  padding: 12px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  opacity: 0;
  background: rgba(8, 7, 14, 0.95);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
}

.video-stage.show-hud .hud {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-stage.show-hud .big-play {
  opacity: 0;
}

.brightness-mask {
  position: absolute;
  inset: 0;
  z-index: 8;
  opacity: 0;
  background: #000000;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* Captions / Subtitles display */
.subtitles-box {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffff80;
  font-size: 0.76rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  display: none;
  max-width: 85%;
  text-align: center;
}

.subtitles-box.active {
  display: block;
}

/* Player On-Screen Controls */
.controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 14;
}

.seek {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan) 42%, rgba(255, 255, 255, 0.2) 42%);
  cursor: pointer;
  transition: height 0.15s;
}

.seek:hover {
  height: 6px;
}

.seek::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

.control-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  color: #ded8e8;
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  font-weight: 600;
  margin-left: 6px;
}

/* Player Side Options */
.player-options {
  display: grid;
  gap: 12px;
}

.player-option {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.player-option:hover {
  border-color: var(--line-bright);
  transform: translateX(3px);
}

.option-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--violet);
  background: rgba(169, 133, 255, 0.14);
  font-size: 1.1rem;
}

.player-option strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.player-option small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.slider-row {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 75px 1fr;
  align-items: center;
  gap: 12px;
  color: #b5afc2;
  font-size: 0.72rem;
  font-weight: 600;
}

.slider-row input {
  width: 100%;
  accent-color: var(--violet);
}

.demo-note {
  margin: 14px 4px 0;
  color: var(--muted-dark);
  font-size: 0.68rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   LIVE WATCH PARTY DEMO
   -------------------------------------------------------------------------- */
.party-demo {
  padding: 16px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.party-watch {
  position: relative;
  min-height: 500px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, rgba(122, 75, 205, 0.3), transparent 35%), #0a0812;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.party-head {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sync {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d1c9df;
  font-size: 0.74rem;
  font-weight: 700;
}

.room-label {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

#roomCode {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  transition: color var(--transition-fast);
}

#roomCode:hover {
  color: #ffffff;
}

.party-orb {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 47% 53% 30% 70%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 14%),
    linear-gradient(145deg, rgba(156, 101, 241, 0.6), rgba(28, 16, 51, 0.3));
  box-shadow: 0 0 95px rgba(141, 84, 230, 0.35);
  transform: translate(-50%, -50%);
  animation: partyMorph 9s ease-in-out infinite;
}

@keyframes partyMorph {
  50% { border-radius: 65% 35% 62% 38%; transform: translate(-50%, -50%) rotate(140deg); }
}

.reaction-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.flying-reaction {
  position: absolute;
  bottom: 80px;
  font-size: 2rem;
  animation: reactionUp 1.8s ease-out forwards;
}

@keyframes reactionUp {
  0% { opacity: 1; transform: translateY(0) scale(0.6); }
  50% { transform: translateY(-130px) rotate(-15deg) scale(1.4); }
  100% { opacity: 0; transform: translateY(-270px) rotate(25deg) scale(1.6); }
}

.party-bottom {
  position: relative;
  z-index: 6;
}

.viewers {
  margin-bottom: 16px;
  display: flex;
}

.viewer {
  width: 32px;
  height: 32px;
  margin-right: -8px;
  border: 2px solid #0a0812;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.party-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reactions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.reaction {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  transition: transform 0.15s, background 0.15s;
}

.reaction:hover {
  transform: scale(1.15) translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

/* Watch Party Chat */
.chat {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.chat h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 3px;
  font-size: 1.15rem;
}

.chat-sub {
  color: var(--muted);
  font-size: 0.68rem;
}

.messages {
  flex: 1;
  margin: 18px 0;
  padding-right: 6px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 270px;
}

.message {
  max-width: 86%;
  font-size: 0.74rem;
  line-height: 1.55;
  animation: msgPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px); }
}

.message strong {
  display: block;
  margin-bottom: 3px;
  color: var(--violet);
  font-size: 0.62rem;
}

.message span {
  display: block;
  padding: 10px 13px;
  border-radius: 14px;
  color: #ded8e8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.mine {
  align-self: flex-end;
}

.message.mine strong {
  text-align: right;
  color: var(--cyan);
}

.message.mine span {
  background: rgba(146, 101, 233, 0.25);
  border-color: rgba(146, 101, 233, 0.35);
  color: #ffffff;
}

.message.system span {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-style: italic;
}

.join-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.join-row input, .chat-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  transition: var(--transition-fast);
}

.join-row input:focus, .chat-form input:focus {
  border-color: rgba(169, 133, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.chat-form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.chat-form .btn {
  min-height: 42px;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   ARCHITECTURE & TECH HIGHLIGHTS
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.tech-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(169, 133, 255, 0.4);
}

.tech-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--violet);
  background: rgba(169, 133, 255, 0.12);
  font-size: 1.3rem;
}

.tech-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.tech-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   COMPARISON MATRIX
   -------------------------------------------------------------------------- */
.matrix-container {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  margin-top: 30px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.matrix-table th, .matrix-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.matrix-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #bcb6c7;
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table th.highlight, .matrix-table td.highlight {
  background: rgba(169, 133, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
}

.matrix-table td.check {
  color: var(--green);
  font-weight: 800;
}

.matrix-table td.cross {
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   INSTALLATION STEPPER & FAQ
   -------------------------------------------------------------------------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}

.install-step {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  position: relative;
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(169, 133, 255, 0.3);
  margin-bottom: 8px;
  line-height: 1;
}

.install-step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.install-step p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
  margin: 0;
}

.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--line-bright);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--violet);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s;
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 24px 22px;
}

/* --------------------------------------------------------------------------
   DOWNLOAD CALL TO ACTION CARD
   -------------------------------------------------------------------------- */
.download-card {
  position: relative;
  overflow: hidden;
  padding: 70px 36px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.download-card::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: -240px;
  left: 50%;
  border-radius: 45% 55% 62% 38%;
  transform: translateX(-50%);
  background: rgba(139, 92, 232, 0.3);
  filter: blur(75px);
  animation: morphSphere 8s infinite;
}

.download-card > * {
  position: relative;
  z-index: 2;
}

.download-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-card p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

#releaseMeta {
  margin-top: 22px;
  color: #8c8699;
  font-size: 0.74rem;
  font-weight: 600;
}

.checksum-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-family: monospace;
  font-size: 0.65rem;
  color: #a49fad;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  color: #7d7788;
  font-size: 0.74rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION & DIALOGS
   -------------------------------------------------------------------------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  max-width: calc(100% - 30px);
  padding: 12px 22px;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  opacity: 0;
  color: #ffffff;
  background: rgba(22, 19, 31, 0.98);
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: #0f0e16;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  margin: auto;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

dialog h2 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

dialog ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

dialog li {
  margin: 10px 0;
  color: #b7b0c2;
  font-size: 0.86rem;
  line-height: 1.65;
}

/* Media Details Modal */
#mediaModal {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
}

.modal-header {
  position: relative;
  height: 240px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0f0e16;
  overflow: hidden;
  isolation: isolate;
}

.modal-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.72) contrast(1.08);
}

.modal-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 14, 22, 0.25) 0%, rgba(15, 14, 22, 0.82) 65%, #0f0e16 100%);
}

.modal-header > * {
  position: relative;
  z-index: 2;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.72rem;
}

.modal-meta-row span {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy > p, .eyebrow {
    margin-inline: auto;
  }
  .hero-actions, .hero-meta {
    justify-content: center;
  }
  .hero-visual {
    min-height: 620px;
  }
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid, .tech-grid, .install-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-layout {
    grid-template-columns: 1fr;
  }
  .party-demo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  :root {
    --container: calc(100% - 24px);
  }
  .section {
    padding: 85px 0;
  }
  .hero {
    padding-top: 110px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero-visual {
    min-height: 560px;
  }
  .float-chip {
    display: none;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid, .tech-grid, .install-grid {
    grid-template-columns: 1fr;
  }
  .catalog {
    padding: 16px;
  }
  .catalog-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-bar {
    width: 100%;
  }
  .video-stage:not(.portrait) {
    aspect-ratio: 4 / 3;
  }
  .time {
    display: none;
  }
  .party-watch, .chat {
    min-height: 440px;
    padding: 16px;
  }
  .download-card {
    padding: 45px 18px;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
