/* CineChase site — shared tokens and components (index, /privacy, /support). */
:root {
  --bg: #16181D;
  --bg-deep: #0F1115;
  --surface: #1D2027;
  --surface-2: #262A33;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --brand: #DE6628;
  --brand-ink: #F08A52;
  --premium: #E88523;
  --text: #FFFFFF;
  --text-2: rgba(255,255,255,0.74);
  --text-3: rgba(255,255,255,0.56);
  --radius: 16px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.link:hover { border-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* i18n: only the active language is shown */
[lang-zh] { display: none !important; }
html[data-lang="zh"] [lang-en] { display: none !important; }
html[data-lang="zh"] [lang-zh] { display: revert !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(22,24,29,.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); background: transparent; cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--line-2); }
.nav-cta { font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); transition: transform .25s var(--ease); white-space: nowrap; }
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* buttons */
.btn { appearance: none; border: 0; margin: 0; font: inherit; font-weight: 650; font-size: 15px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--brand); color: #fff; cursor: pointer; transition: transform .25s var(--ease), filter .25s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #fff; color: #000; font-weight: 650; font-size: 16px; line-height: 1.1; transition: transform .25s var(--ease); }
.store small { display: block; font-size: 11px; font-weight: 500; color: #3a3a3a; }
.store svg { width: 24px; height: 24px; flex: none; }
.store:hover { transform: translateY(-2px); }
.store.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.store.ghost small { color: var(--text-3); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); }
.card h3 { font-size: 21px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p, .card li { color: var(--text-2); font-size: 16px; }
.card ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; color: var(--text); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }

/* sections */
section { padding: clamp(72px, 9vw, 128px) 0; scroll-margin-top: 64px; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--text-2); }

/* sub pages (privacy, support) */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); position: relative; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(222,102,40,.16), transparent 70%); pointer-events: none; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); }
.page-head p { margin-top: 18px; max-width: 60ch; font-size: 19px; color: var(--text-2); }
.page-head .updated { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.prose { padding: 0 0 clamp(72px, 9vw, 120px); }
.prose .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .prose .grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--text-2); font-size: 16px; display: grid; gap: 10px; }
.faq ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--text-3); font-size: 14px; background: var(--bg-deep); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
footer .brand { font-size: 15px; color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
footer nav a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } footer nav { justify-content: flex-start; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store, .nav-cta, .lift { transition: none !important; }
}
.contact { margin-top: 32px; }
html[data-lang="zh"] .store small[lang-zh] { display: block !important; }
