/* ============================================================
   StreamTube: ad-free YouTube for Android phones
   Theme: red & black
   ============================================================ */

:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --card: rgba(255, 255, 255, 0.03);
  --card-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-red: rgba(255, 31, 61, 0.35);
  --txt: #f5f5f7;
  --muted: #9ba1a9;
  --red: #ff1f3d;
  --red-hot: #ff4757;
  --red-deep: #c8102e;
  --grad: linear-gradient(135deg, #ff1f3d 0%, #ff7a59 100%);
  --grad-text: linear-gradient(92deg, #ff1f3d 0%, #ff7a59 45%, #ff1f3d 100%);
  --shadow-red: 0 10px 40px -8px rgba(255, 31, 61, 0.45);
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 92%); }

section[id] { scroll-margin-top: 84px; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 31, 61, 0.3));
  transition: filter 0.3s ease;
}
.brand:hover .brand-logo { filter: drop-shadow(0 0 18px rgba(255, 31, 61, 0.6)); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { transform: scaleX(1); }

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

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 18px; height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 10px 4% 18px;
  background: rgba(5, 5, 7, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.btn-red {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-red);
}
.btn-red::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px -8px rgba(255, 31, 61, 0.65);
}
.btn-red:hover::after { left: 130%; }
.btn-red:active { transform: translateY(0); }

.btn-ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--line-red);
  background: rgba(255, 31, 61, 0.08);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbDrift 14s ease-in-out infinite alternate;
}
.orb-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 31, 61, 0.5), transparent 65%);
  top: -160px; right: -120px;
}
.orb-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.45), transparent 65%);
  bottom: -140px; left: -120px;
  animation-delay: -5s;
}
.orb-c {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.3), transparent 65%);
  top: 40%; left: 42%;
  animation-delay: -9s;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.12); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffb3bd;
  background: rgba(255, 31, 61, 0.09);
  border: 1px solid rgba(255, 31, 61, 0.3);
  border-radius: 999px;
}
.badge-ic {
  width: 20px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(255, 31, 61, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 31, 61, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 31, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 31, 61, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 800;
  margin: 22px 0 18px;
}

.grad {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift {
  to { background-position: 200% center; }
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-meta li + li::before {
  content: "";
  width: 1px; height: 14px;
  background: var(--line);
  margin: 0 14px;
}
.hero-meta b { color: var(--txt); font-weight: 600; }

/* --- phone mockup --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-tilt {
  position: relative;
  transform: perspective(1100px) rotateY(calc(var(--mx, 0) * -5deg)) rotateX(calc(var(--my, 0) * 4deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.phone {
  position: relative;
  width: min(285px, 68vw);
  aspect-ratio: 9 / 19.4;
  background: #101014;
  border: 1px solid #2e2e36;
  border-radius: 40px;
  padding: 9px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 60px -10px rgba(255, 31, 61, 0.35);
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: #000;
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 38%; height: 11px;
  background: #101014;
  border-radius: 999px;
  z-index: 2;
}

.phone-float { animation: floatY 6.5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero-glow {
  position: absolute;
  inset: 10% 6%;
  background: radial-gradient(ellipse at center, rgba(255, 31, 61, 0.22), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 14, 18, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8);
  animation: floatY 5.5s ease-in-out infinite;
}
.float-chip b { display: block; font-size: 0.82rem; font-family: var(--font-head); }
.float-chip small { color: var(--muted); font-size: 0.72rem; }
.chip-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  font-size: 0.95rem;
  background: rgba(255, 31, 61, 0.14);
  border: 1px solid rgba(255, 31, 61, 0.3);
  border-radius: 10px;
  color: var(--red);
}
.chip-a { top: 6%; left: -6%;  animation-delay: -1.2s; }
.chip-b { bottom: 16%; right: -9%; animation-delay: -2.6s; }
.chip-c { bottom: -3%; left: -2%; animation-delay: -4s; }

/* --- scroll hint --- */
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 3px; height: 9px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--red);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  background: var(--grad);
  transform: rotate(-1.1deg) scale(1.02);
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 18px 50px -18px rgba(255, 31, 61, 0.55);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: #0a0a0a; font-size: 0.7rem; opacity: 0.75; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, 0.05); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 58px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  margin: 14px 0 16px;
}
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 0%), rgba(255, 31, 61, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-red);
  box-shadow: 0 20px 50px -20px rgba(255, 31, 61, 0.35);
  background: var(--card-2);
}
.card:hover::before { opacity: 1; }

.card-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--red);
  background: rgba(255, 31, 61, 0.1);
  border: 1px solid rgba(255, 31, 61, 0.25);
  margin-bottom: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-ic svg { width: 23px; height: 23px; }
.card:hover .card-ic {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 24px -4px rgba(255, 31, 61, 0.5);
}
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card p b { color: #cfd2d6; }

/* ---------- screenshots ---------- */
.shots-wrap { position: relative; }

.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 30px 8px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* The ends fade softly instead of cutting a phone in half */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.shots::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s ease;
}
.shot:hover { transform: translateY(-8px); }
.shot .phone { width: min(232px, 62vw); transition: box-shadow 0.4s ease; }
.shot:hover .phone { box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 70px -8px rgba(255, 31, 61, 0.5); }
.shot figcaption {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.shot-btn {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--txt);
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.shot-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.08);
  box-shadow: var(--shadow-red);
}
.shot-prev { left: -8px; }
.shot-next { right: -8px; }

/* ---------- touch & gestures ---------- */
.touch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-bottom: 96px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s ease;
}
.panel:hover { border-color: var(--line-red); }
.panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.panel-ic {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  font-size: 1.25rem;
  background: rgba(255, 31, 61, 0.1);
  border: 1px solid rgba(255, 31, 61, 0.25);
  border-radius: 12px;
}

.tick-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.tick-list li { padding-left: 26px; position: relative; }
.tick-list li::before {
  content: "▶";
  position: absolute;
  left: 0; top: 1px;
  font-size: 0.6rem;
  color: var(--red);
}

.panel-img { margin-top: 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
/* The mini player floats at the bottom right of the screen: the picture shows that part */
.panel-img img { width: 100%; height: 340px; object-fit: cover; object-position: center 92%; display: block; }

.gesture-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.gesture-table td {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.gesture-table td:first-child { color: var(--txt); width: 46%; }
.gesture-table tr:last-child td { border-bottom: none; }
.gesture-table b { color: var(--red-hot); }

.panel-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- sign in ---------- */
.signin {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, rgba(255, 31, 61, 0.08), rgba(255, 255, 255, 0.02) 55%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.signin::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 61, 0.16), transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
}
.signin h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 10px; }
.signin-copy > p { color: var(--muted); max-width: 52ch; }

.steps-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  counter-reset: step;
}
.steps-inline li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
}
.steps-inline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  flex: 0 0 auto;
}
.steps-inline b { color: var(--txt); }

.signin .tick-list { margin-bottom: 24px; }

.signin-visual { display: flex; justify-content: center; }
.signin-visual .phone { width: min(225px, 60vw); }

/* ============================================================
   INSTALL
   ============================================================ */
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch; /* the three cards the same height */
}
.step {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-5px);
  border-color: var(--line-red);
  box-shadow: 0 18px 44px -18px rgba(255, 31, 61, 0.3);
}
.step-num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow-red);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.step p b { color: #cfd2d6; }
.step p:last-child { margin-bottom: 0; }

.apk-table { display: grid; gap: 9px; margin-top: 18px; }
.apk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.apk-row:hover {
  border-color: var(--line-red);
  background: rgba(255, 31, 61, 0.08);
  transform: translateX(3px);
}
.apk-name b { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.apk-name small { color: var(--muted); font-size: 0.76rem; }
.apk-dl {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.update-note {
  margin-top: 34px;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 31, 61, 0.25);
  background: rgba(255, 31, 61, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
}
.update-note b { color: #ffb3bd; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 12px; }

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq[open] { border-color: var(--line-red); background: var(--card-2); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq-x { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.3s ease;
}
.faq-x::after { transform: rotate(90deg); }
.faq[open] .faq-x::after { transform: rotate(0deg); }

.faq p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.93rem;
}
.faq p b { color: #cfd2d6; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(255, 31, 61, 0.22), transparent 70%),
    var(--bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.cta-inner { text-align: center; position: relative; }
.cta-mark {
  width: 80px;
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 10px 34px rgba(255, 31, 61, 0.5));
  animation: floatY 5.5s ease-in-out infinite;
}
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 32px; }
.cta-btns { justify-content: center; margin-top: 0; }
.cta-flare {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 31, 61, 0.14), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover { color: var(--red-hot); transform: translateX(3px); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-note { color: #6d737b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Steps 2 and 3: their key points in the same rows as step 1's downloads, kept at the bottom so the cards line up */
.step .apk-table { margin-top: auto; }
.step p + .apk-table { padding-top: 6px; }
.apk-info { cursor: default; }
.apk-info .apk-dl { color: var(--red-hot); font-weight: 700; }

.panel-wide { grid-column: 1 / -1; }
.tick-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 900px) { .tick-cols { grid-template-columns: 1fr; } }

/* ---------- music ---------- */
.music { position: relative; overflow: hidden; isolation: isolate; }
.music-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.42; animation: orbDrift 18s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; left: -140px; top: 8%; background: radial-gradient(circle, #ff1f3d, transparent 70%); }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 30%; background: radial-gradient(circle, #7b5cff, transparent 70%); animation-duration: 22s; }
.orb-3 { width: 420px; height: 420px; left: 35%; bottom: -160px; background: radial-gradient(circle, #ff9a3d, transparent 70%); animation-duration: 26s; }
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 25px) scale(0.95); }
}

.music-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-top: 8px; }
.music-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.music-features li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.music-features li:hover { border-color: var(--line-red); transform: translateX(4px); }
.music-features b { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 3px; }
.music-features span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.mf-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,31,61,0.22), rgba(123,92,255,0.18));
  border: 1px solid rgba(255,255,255,0.08); color: #fff;
}
.mf-ic svg { width: 20px; height: 20px; }

.music-phones { position: relative; height: 640px; }
.music-phones .phone { position: absolute; top: 50%; left: 50%; }
.mp-center { width: min(272px, 58vw); transform: translate(-50%, -50%); z-index: 3;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,0.9), 0 0 90px -10px rgba(255,31,61,0.45), 0 0 140px -30px rgba(123,92,255,0.5); }
.mp-center.phone-float { animation: floatCenter 6.5s ease-in-out infinite; }
@keyframes floatCenter { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 14px)); } }
.mp-side { width: min(230px, 46vw); z-index: 2; opacity: 0.92; filter: saturate(1.05); }
.mp-left { transform: translate(-112%, -46%) rotate(-9deg); }
.mp-right { transform: translate(12%, -46%) rotate(9deg); }
.mp-chip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; white-space: nowrap; }

.landscape-wrap { margin: 72px auto 0; max-width: 980px; text-align: center; }
.landscape {
  aspect-ratio: 1600 / 727; background: #101014; border: 1px solid #2e2e36; border-radius: 34px; padding: 10px;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,0.9), 0 0 80px -20px rgba(255,31,61,0.35), 0 0 120px -40px rgba(123,92,255,0.45);
}
.landscape img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block; }
.landscape-wrap figcaption { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.landscape-wrap figcaption b { color: var(--txt); }

.music-row { display: flex; justify-content: center; gap: 36px; margin-top: 64px; flex-wrap: wrap; }
.music-row .phone { width: min(220px, 70vw); }

@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .music-grid { grid-template-columns: 1fr; gap: 32px; }
  .music-phones { height: 560px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-visual { order: -1; }
  .chip-a { left: 2%; }
  .chip-b { right: 0; }
  .chip-c { left: 4%; }

  .touch-grid, .signin { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-mobile { display: none; }
}

@media (max-width: 640px) {
  .music-phones { height: 480px; }
  .mp-center { width: 220px; }
  .mp-side { width: 170px; }
  .mp-left { transform: translate(-98%, -46%) rotate(-9deg); }
  .mp-right { transform: translate(-2%, -46%) rotate(9deg); }
  .landscape { border-radius: 22px; padding: 6px; }
  .landscape img { border-radius: 17px; }
  .music-row { gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .card { padding: 20px 16px; }
  .card h3 { font-size: 0.94rem; }
  .card p { font-size: 0.82rem; }
  .section { padding: 80px 0; }
  .hero { padding-top: 110px; }
  .float-chip { padding: 8px 11px; }
  .float-chip small { display: none; }
  .signin { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { justify-content: center; }
  .hero-meta li + li::before { margin: 0 10px; }
  .shot-btn { display: none; }
  .scroll-hint { display: none; }
}

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

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .mp-center.phone-float { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
