/* MultiSub landing page — dark, minimal, Traditional-Chinese-first.
   Pure CSS, no framework/build. Brand red used sparingly for accents. */

:root {
  --bg: #0d0d0f;
  --bg-top: #1b1b1f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-brd: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #9a9aa2;
  --brand: #e5232f;
  --brand-hi: #ff3b46;
  --radius: 16px;
  --maxw: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); } /* dark backstop so mobile Safari never shows white bands */

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, #26262c 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%);
  background-repeat: no-repeat;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

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

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

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(13, 13, 15, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
/* Brand mark = the exact SVG from extension/popup.html (two centered bars). */
.brand-mark { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; }
.brand-mark svg { width: 22px; height: 22px; }
.lb-a { fill: var(--text); opacity: 0.85; }
.lb-b { fill: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-gh { color: var(--text) !important; }
.nav-links a.btn { color: #fff; }          /* keep the nav download button white, not muted */
.nav-links a.btn:hover { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 10px 20px; border-radius: 980px; font-size: 15px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 20px -6px rgba(229, 35, 47, 0.6);
}
.btn:hover { background: var(--brand-hi); transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--surface-brd); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255, 255, 255, 0.18); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 92px 0 40px; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.hero-title { font-size: clamp(40px, 8vw, 76px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.hero-title .accent { color: var(--brand); }
.hero-sub { max-width: 620px; margin: 26px auto 0; font-size: clamp(16px, 2.4vw, 19px); color: #d0d0d6; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ── MacBook Pro frame (Apple official product bezel) ────────────── */
/* Screen inset measured from the bezel PNG's transparent cutout via canvas. */
.laptop { position: relative; max-width: 920px; margin: 60px auto 0; }
.bezel { display: block; width: 100%; height: auto; position: relative; z-index: 2; pointer-events: none; }
.screen-content {
  position: absolute; z-index: 1;
  top: 11.4%; left: 10.89%; width: 78.17%; height: 77.11%;
  overflow: hidden; border-radius: 6px; background: #000;
}

/* ── Screen scene (neutral, self-authored — no Netflix content) ──── */
.scene { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(130% 100% at 50% 8%, #33465a 0%, #1a2330 42%, #0a0d13 100%); }
.scene-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(255, 214, 170, 0.28) 0%, transparent 65%);
  filter: blur(6px);
}
.scene-silhouette {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.8) 100%);
}
.subs {
  position: absolute; left: 0; right: 0; bottom: 15%; padding: 0 6%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sub-line {
  max-width: 100%;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  padding: 2px 11px; border-radius: 4px; font-weight: 600; line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
.sub-en { font-size: clamp(12px, 2.5vw, 20px); opacity: 0.95; }
.sub-zh { font-size: clamp(13px, 2.7vw, 22px); }

.player { position: absolute; left: 5%; right: 5%; bottom: 5%; display: flex; align-items: center; gap: 12px; }
.pl-play { width: 0; height: 0; border-left: 11px solid rgba(255, 255, 255, 0.92); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.pl-track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; border-radius: 3px; background: var(--brand); }
.pl-dot { position: absolute; left: 42%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); transform: translate(-50%, -50%); }
.pl-time { color: rgba(255, 255, 255, 0.85); font-size: clamp(9px, 1.4vw, 12px); font-variant-numeric: tabular-nums; }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 32px; }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--surface-brd);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); }
.card-ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(229, 35, 47, 0.22), rgba(229, 35, 47, 0.08));
  color: var(--brand-hi); border: 1px solid rgba(229, 35, 47, 0.25);
}
.card-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Showcase: control panel */
.showcase { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; margin-top: 72px; }
.showcase-text .pill { margin-bottom: 16px; }
.showcase-h { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.showcase-text > p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.mini-list { list-style: none; }
.mini-list li { position: relative; padding: 7px 0 7px 24px; color: #d0d0d6; font-size: 15px; }
.mini-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--brand-hi); font-weight: 800; }
.showcase-visual { display: flex; justify-content: center; }
.showcase-reverse { grid-template-columns: 1.45fr 1fr; margin-top: 44px; }
.showcase-visual-wide { display: block; }
.app-shot { width: 100%; height: auto; display: block; }

/* Popup reproduction — mirrors extension/popup.css (dark theme) */
.popup { width: 300px; padding: 16px; border-radius: 20px; background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 34px 70px -22px rgba(0, 0, 0, 0.7);
  font-size: 13px; color: #f2f2f2; }
.pp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 2px; }
.pp-brand { display: flex; align-items: center; gap: 8px; }
.pp-logo { width: 22px; height: 22px; }
.pp-lb-a { fill: #f2f2f2; opacity: 0.85; }
.pp-lb-b { fill: var(--brand); }
.pp-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.pp-switch { position: relative; width: 40px; height: 22px; border-radius: 22px; background: #bfbfc4; flex-shrink: 0; }
.pp-switch.pp-on { background: var(--brand); }
.pp-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.pp-on .pp-knob { left: 20px; }
.pp-card { background: rgba(58, 58, 61, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.pp-label { font-weight: 600; margin-bottom: 6px; }
.pp-label.pp-mt { margin-top: 12px; }
.pp-dim { font-weight: 400; color: #a0a0a5; }
.pp-select { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: #1c1c1e; }
.pp-caret { color: #a0a0a5; }
.pp-range { position: relative; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin: 9px 0; }
.pp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--brand); }
.pp-thumb { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.pp-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #a0a0a5; }
.pp-box { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.25); flex-shrink: 0; }
.pp-box.pp-checked { background: var(--brand); border-color: var(--brand); position: relative; }
.pp-box.pp-checked::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.pp-btn { padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: #1c1c1e; font-weight: 600; text-align: center; }
.pp-btn.pp-mt2 { margin-top: 10px; }
.pp-status { background: rgba(58, 58, 61, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 14px; line-height: 1.7; color: #a0a0a5; }
.pp-ok { color: #35c759; font-weight: 500; }

/* Two-column (requirements + install) */
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.reqs, .steps { list-style: none; }
.reqs li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #d0d0d6; }
.reqs li:last-child { border-bottom: none; }
.reqs strong, .steps strong { color: var(--text); }
.steps { counter-reset: s; }
.steps li { position: relative; padding: 0 0 22px 46px; color: var(--muted); font-size: 15.5px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
}
.steps a { color: var(--brand-hi); }
.steps a:hover { text-decoration: underline; }

/* Why Safari */
.center-col { text-align: center; }
.pill {
  display: inline-flex; align-items: center; line-height: 1; margin-bottom: 18px;
  padding: 8px 15px; border-radius: 980px; font-size: 13px; font-weight: 600;
  color: var(--brand-hi); background: rgba(229, 35, 47, 0.12);
  border: 1px solid rgba(229, 35, 47, 0.3); letter-spacing: 0.03em;
}
.lead-muted { max-width: 640px; margin: 0 auto 40px; color: #c6c6cc; font-size: clamp(16px, 2.3vw, 18px); }
.lead-muted strong { color: var(--text); }
.compare { display: flex; align-items: stretch; justify-content: center; gap: 18px; flex-wrap: wrap; }
.compare-item {
  flex: 1 1 220px; max-width: 280px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--surface); border: 1px solid var(--surface-brd);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.compare-win { border-color: rgba(229, 35, 47, 0.4); background: rgba(229, 35, 47, 0.06); box-shadow: 0 10px 40px -14px rgba(229, 35, 47, 0.35); }
.ci-name { font-size: 20px; font-weight: 700; }
.ci-name span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
.ci-q { margin: 16px 0 12px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; color: var(--brand-hi); letter-spacing: -0.01em; }
.ci-q-low { color: var(--muted); }
.ci-tag { font-size: 14px; font-weight: 600; color: var(--text); }
.ci-tag-low { color: var(--muted); font-weight: 500; }
.compare-vs { align-self: center; color: var(--muted); font-size: 15px; font-weight: 600; }

/* Privacy */
.narrow { max-width: 720px; }
.lead { font-size: clamp(19px, 3vw, 24px); font-weight: 600; margin-bottom: 20px; }
.muted { color: var(--muted); }
.muted strong { color: #d0d0d6; }
.privacy-list { list-style: none; margin: 6px 0 24px; }
.privacy-list li {
  position: relative; padding: 13px 0 13px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted); font-size: 15.5px;
}
.privacy-list li:last-child { border-bottom: none; }
.privacy-list li strong { color: var(--text); }
.privacy-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 12px;
  color: var(--brand-hi); font-weight: 800; font-size: 15px;
}
.privacy-net { font-size: 14.5px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { padding: 54px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.disclaimer { color: var(--muted); font-size: 13.5px; max-width: 680px; }
.disclaimer-en { font-size: 12.5px; opacity: 0.8; }
.footer-links { color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 20px; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  /* Stack the Safari-vs-others cards vertically so the "vs" sits centered
     between them instead of pushing the two cards out of alignment. */
  .compare { flex-direction: column; align-items: stretch; }
  .compare-item { max-width: 360px; width: 100%; margin: 0 auto; }
  .compare-vs { margin: 2px 0; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn):not(.nav-gh) { display: none; }
}
