/* Tube Karaoke — landing page styles
   Colors come from the iOS app: BrandRed #E7383A, LaunchBackground #080505, icon red #FF0000. */
:root {
  --red: #e7383a;
  --red-hot: #ff2a2d;
  --red-deep: #8f0f14;
  --bg: #080505;
  --bg-2: #120a0a;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f6eeee;
  --muted: #b8a9a9;
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans Khmer", "Noto Sans Lao", "Noto Sans Myanmar", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans Hebrew", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--red-hot), #ff9a6b);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 5, 5, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 18px rgba(255, 0, 0, .35); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--red-hot); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang-btn, .home-btn {
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.lang-btn:hover, .home-btn:hover { border-color: var(--red); background: rgba(231, 56, 58, .15); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); width: 40px; height: 40px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s; position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); color: #fff; box-shadow: 0 10px 30px rgba(255, 42, 45, .35); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: shine 3.2s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 42, 45, .5); }
.btn-ghost { border: 1px solid var(--card-border); background: var(--card); color: var(--text); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
.btn svg { width: 20px; height: 20px; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -6%; z-index: -3;
  background: url("../img/background.jpg") center / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 70% 30%, transparent 0%, rgba(8, 5, 5, .35) 55%, var(--bg) 100%),
    linear-gradient(180deg, rgba(8, 5, 5, .2) 0%, rgba(8, 5, 5, .55) 70%, var(--bg) 100%);
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1%); } }

.bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bokeh i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 100, .55), rgba(255, 40, 40, 0) 70%);
  filter: blur(2px); animation: drift linear infinite; opacity: 0;
}
@keyframes drift {
  0% { transform: translateY(20px) scale(.8); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .7; }
  100% { transform: translateY(-160px) scale(1.15); opacity: 0; }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(231, 56, 58, .14); border: 1px solid rgba(231, 56, 58, .4); color: #ffb3b3;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 0 rgba(255, 42, 45, .7); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 42, 45, .7); } 100% { box-shadow: 0 0 0 12px rgba(255, 42, 45, 0); } }

.hero h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.gradient-text {
  background: linear-gradient(90deg, #fff 0%, #ff6b6b 30%, var(--red-hot) 50%, #ffb38a 70%, #fff 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) .15s forwards, flow 6s linear infinite;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes flow { to { background-position: 200% center; } }

.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-meta b { color: var(--text); }

/* Big icon with equalizer rings */
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 60, 60, .45); inset: 18%; animation: ripple 3.6s var(--ease) infinite; }
.ring:nth-child(2) { animation-delay: 1.2s; }
.ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ripple { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.app-icon {
  width: 54%; height: auto; aspect-ratio: 1; border-radius: 22.5%; position: relative; z-index: 2;
  box-shadow: 0 30px 80px rgba(255, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.notes { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.notes span { position: absolute; font-size: 26px; color: #ffd0d0; text-shadow: 0 0 18px rgba(255, 60, 60, .9); opacity: 0; animation: note 5s ease-in infinite; }
@keyframes note {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx, 40px), -180px) rotate(var(--rot, 25deg)) scale(1.1); opacity: 0; }
}
.eq { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: flex-end; height: 56px; z-index: 2; }
.eq i { width: 7px; border-radius: 4px; background: linear-gradient(to top, var(--red-deep), var(--red-hot), #ffb38a); animation: eq 1s ease-in-out infinite alternate; }
@keyframes eq { from { height: 12%; } to { height: 100%; } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--card-border); background: linear-gradient(90deg, rgba(231, 56, 58, .08), rgba(231, 56, 58, .02)); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-size: 20px; font-weight: 800; padding: 0 28px; color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: 28px; }
.marquee-track span::after { content: "✦"; color: var(--red-hot); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker { color: var(--red-hot); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 900; letter-spacing: -.8px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border);
  overflow: hidden; transform-style: preserve-3d; transition: border-color .3s, background .3s;
}
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 60, 60, .18), transparent 45%);
}
.feature:hover { border-color: rgba(255, 80, 80, .4); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; font-size: 26px;
  background: linear-gradient(135deg, rgba(255, 42, 45, .25), rgba(143, 15, 20, .25)); border: 1px solid rgba(255, 80, 80, .35);
  transition: transform .5s var(--ease);
}
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.12); }
.feature h3 { font-size: 20px; margin-bottom: 8px; position: relative; }
.feature p { color: var(--muted); font-size: 15.5px; position: relative; }

/* ---------- Showcase (CSS phone mockup) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.steps { list-style: none; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 18px; border-radius: 18px; border: 1px solid transparent; transition: background .35s, border-color .35s;
}
.steps li.active, .steps li:hover { background: var(--card); border-color: var(--card-border); }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; background: rgba(231, 56, 58, .15); border: 1px solid rgba(231, 56, 58, .4); color: #ffb3b3;
  transition: background .35s, color .35s;
}
.steps li.active::before { background: var(--red-hot); color: #fff; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

.device-wrap { perspective: 1400px; display: grid; place-items: center; }
.device {
  width: min(100%, 560px); aspect-ratio: 16 / 10; border-radius: 34px; padding: 14px; position: relative;
  background: linear-gradient(145deg, #2a2424, #0d0a0a); box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0 90px rgba(255, 40, 40, .15);
  transform: rotateY(-14deg) rotateX(6deg); transition: transform .8s var(--ease);
}
.device:hover { transform: rotateY(0) rotateX(0); }
.screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; position: relative; background: #000; }
.screen-stage {
  position: absolute; inset: 0;
  background: url("../img/background.jpg") center / cover;
  display: grid; place-items: center;
}
.screen-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65)); }
.lyrics { position: relative; z-index: 2; text-align: center; font-weight: 800; font-size: clamp(13px, 2.1vw, 20px); line-height: 1.7; }
.lyric-line { display: block; position: relative; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.lyric-line .fill {
  position: absolute; inset: 0; color: #ffd84d; overflow: hidden; white-space: nowrap; width: 0;
  text-shadow: 0 0 12px rgba(255, 200, 60, .6); animation: sing 4s linear infinite;
}
.lyric-line:nth-child(2) .fill { animation-delay: 2s; }
@keyframes sing { 0% { width: 0; } 45%, 100% { width: 100%; } }
.panel {
  position: absolute; z-index: 3; top: 10px; bottom: 10px; right: 10px; width: 38%; border-radius: 14px;
  background: rgba(10, 6, 6, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08);
  padding: 10px; display: flex; flex-direction: column; gap: 7px; animation: panel 8s var(--ease) infinite;
}
@keyframes panel { 0%, 8% { transform: translateX(115%); } 18%, 80% { transform: translateX(0); } 92%, 100% { transform: translateX(115%); } }
.panel-title { font-size: 10px; font-weight: 800; color: #ffb3b3; letter-spacing: .5px; }
.song { display: flex; gap: 7px; align-items: center; padding: 5px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.song .thumb { width: 34px; height: 22px; border-radius: 4px; flex: none; background: linear-gradient(135deg, var(--c1, #ff5a5a), var(--c2, #6b0f12)); }
.song .meta { flex: 1; min-width: 0; }
.song .meta b, .song .meta s { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); text-decoration: none; }
.song .meta s { margin-top: 4px; width: 60%; background: rgba(255, 255, 255, .22); }
.song.playing { background: rgba(231, 56, 58, .22); outline: 1px solid rgba(255, 80, 80, .5); }
.mini-eq { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.mini-eq i { width: 2px; background: var(--red-hot); animation: eq .6s ease-in-out infinite alternate; }
.fab {
  position: absolute; z-index: 4; left: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--red); font-size: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  animation: fab 8s var(--ease) infinite;
}
@keyframes fab { 0%, 6% { transform: scale(1); } 9% { transform: scale(.82); } 12%, 100% { transform: scale(1); } }
.controls { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; }
.controls span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 34px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.stat strong { display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 900; background: linear-gradient(180deg, #fff, #ff7b7b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--card-border); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: rgba(255, 80, 80, .4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--red-hot); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); animation: fadeUp .45s var(--ease); }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 80px 24px; border-radius: 32px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep));
}
.cta::before {
  content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: -60%; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .22), transparent 30%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta img { width: 92px; height: auto; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: float 5s ease-in-out infinite; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; font-size: 18px; }
.cta .btn { background: #fff; color: var(--red-deep); }
.cta .btn:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--card-border); padding: 22px 0 30px; margin-top: 110px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); transition: color .25s, text-decoration-color .25s; }
.footer-links a:hover { color: var(--text); text-decoration-color: currentColor; }
.disclaimer { margin-top: 26px; font-size: 12.5px; line-height: 1.7; max-width: 900px; opacity: .85; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 140px 0 50px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.legal-hero .hero-bg { opacity: .55; }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8, 5, 5, .4), var(--bg)); }
.legal-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: -1px; }
.legal-hero p { color: var(--muted); margin-top: 10px; }
.legal { max-width: 820px; margin-inline: auto; }
.toc { padding: 22px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-border); margin-bottom: 40px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 30px; color: var(--muted); font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--text); }
.legal h2 { font-size: 24px; margin: 44px 0 14px; padding-top: 10px; scroll-margin-top: 90px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: #ddd0d0; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: #ff8f8f; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.legal th { color: var(--text); background: rgba(255, 255, 255, .04); }
.legal td { color: #d6c8c8; }
.note { padding: 16px 20px; border-left: 3px solid var(--red-hot); background: rgba(231, 56, 58, .08); border-radius: 0 12px 12px 0; margin: 18px 0; }
[data-lang-block] { display: none; }
html[lang="vi"] [data-lang-block="vi"], html[lang="en"] [data-lang-block="en"] { display: block; }
[data-lang-inline] { display: none; }
html[lang="vi"] [data-lang-inline="vi"], html[lang="en"] [data-lang-inline="en"] { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; order: -1; }
  .hero { padding-top: 90px; }
  .hero { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .device { transform: none; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: rgba(8, 5, 5, .96); border-bottom: 1px solid var(--card-border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 17px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(8, 5, 5, .96); }
  .menu-btn { display: block; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .toc ol { columns: 1; }
  .panel { width: 46%; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bokeh, .notes { display: none; }
}

.home-btn { text-decoration: none; display: inline-block; }
@media (max-width: 480px) { .hero-visual { max-width: 220px; } }

/* Store badges (official artwork from Google and Apple — keep as provided, same height) */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store { display: inline-block; border-radius: 10px; transition: transform .3s var(--ease), filter .3s; }
.store img { height: 52px; width: auto; display: block; }
.store img[data-lang-inline] { display: none; }
html[lang="vi"] .store img[data-lang-inline="vi"], html[lang="en"] .store img[data-lang-inline="en"] { display: block; }
.store:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 24px rgba(255, 42, 45, .35)); }
.cta .stores { justify-content: center; }
@media (max-width: 960px) { .hero .stores { justify-content: center; } }
@media (max-width: 400px) { .store img { height: 44px; } }

/* Top CTA in the nav */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 800; color: #fff; text-decoration: none; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep)); box-shadow: 0 6px 20px rgba(255, 42, 45, .35);
  transition: transform .3s var(--ease), box-shadow .3s; animation: ctaPulse 2.6s ease-in-out infinite;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  animation: shine 3.2s ease-in-out infinite;
}
.nav-cta svg { width: 16px; height: 16px; flex: none; animation: bob 1.6s ease-in-out infinite; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 42, 45, .5); }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 6px 20px rgba(255, 42, 45, .35); } 50% { box-shadow: 0 6px 28px rgba(255, 42, 45, .65); } }
@keyframes bob { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (max-width: 480px) {
  .nav-cta { padding: 8px 12px; font-size: 12px; gap: 6px; }
  .nav .brand { font-size: 0; gap: 0; }
}
.brand, .brand img { flex: none; }
@media (max-width: 400px) {
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-cta { padding: 8px 11px; }
  .nav-cta svg { display: none; }
  .lang-btn { padding: 6px 10px; }
  .menu-btn { width: 34px; }
}
.cta-short { display: none; }
@media (max-width: 359px) { .cta-long { display: none; } .cta-short { display: inline; } }

/* ---------- Language menu (landing pages) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--card-border); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; transition: border-color .25s, background .25s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--red); background: rgba(231, 56, 58, .15); }
.lang-menu ul {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; list-style: none;
  width: 240px; max-height: min(70vh, 480px); overflow-y: auto; padding: 8px;
  background: rgba(16, 10, 10, .97); border: 1px solid var(--card-border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fadeUp .25s var(--ease);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 15px; }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu a[aria-current="page"] { color: #fff; background: rgba(231, 56, 58, .25); font-weight: 700; }
@media (max-width: 400px) { .lang-menu summary { padding: 6px 9px; } .lang-menu summary svg { display: none; } }

/* ---------- Right-to-left (Arabic, Hebrew) ---------- */
[dir="rtl"] .marquee-track { direction: ltr; }
[dir="rtl"] .nav-links a::after { transform-origin: left; }
[dir="rtl"] .nav-links a:hover::after { transform-origin: right; }
[dir="rtl"] .reveal.from-left { transform: translateX(50px); }
[dir="rtl"] .reveal.from-right { transform: translateX(-50px); }
[dir="rtl"] .reveal.in { transform: none; }
[dir="rtl"] .device { direction: ltr; transform: rotateY(14deg) rotateX(6deg); }
[dir="rtl"] .device:hover { transform: none; }
[dir="rtl"] .hero h1 { letter-spacing: 0; }
@media (max-width: 960px) { [dir="rtl"] .device { transform: none; } }

/* Long words (German, Finnish…) must not overflow on phones */
h1, h2, h3, .lead { overflow-wrap: anywhere; hyphens: auto; }

/* CJK: no spaces between words, so keep headings smaller and break only at natural points */
:lang(ja) .hero h1, :lang(zh) .hero h1, :lang(ko) .hero h1 { font-size: clamp(34px, 5vw, 62px); letter-spacing: 0; line-height: 1.15; }
:lang(ja) h1, :lang(ja) h2, :lang(zh) h1, :lang(zh) h2 { overflow-wrap: normal; line-break: strict; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; overflow-wrap: normal; }
h1 .line > span, .section-head h2 { text-wrap: balance; }

/* Footer bottom row: copyright */
.footer-bottom {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--card-border);
  text-align: center; font-size: 13px; color: var(--muted);
}
@media (max-width: 760px) {
}
