/* Tapir site. System fonts only: no web-font requests, fast in mainland China. */

:root {
  color-scheme: dark;
  --bg: #0b0a0a;
  --surface: #151313;
  --surface-2: #1d1a19;
  --line: rgba(244, 237, 228, 0.09);
  --text: #f4ede4;
  --muted: rgba(244, 237, 228, 0.62);
  --faint: rgba(244, 237, 228, 0.4);
  --accent: #e8b86b;
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 10, 10, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background:
    radial-gradient(48% 60% at 72% 30%, rgba(232, 184, 107, 0.16), transparent 70%),
    radial-gradient(40% 50% at 20% 10%, rgba(120, 80, 160, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  max-width: 34em;
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge span { display: grid; line-height: 1.2; }
.badge small { color: var(--faint); font-size: 12px; }
.badge strong { font-size: 18px; font-weight: 600; }
.badge[aria-disabled="true"] { cursor: default; }

.hero-note { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* Phone mockup (pure CSS, fictional titles) */

.phone {
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2b2827, #121010);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen {
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #000;
  padding: 46px 16px 0;
  font-size: 12px;
}

.screen h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -0.01em; }
.screen h4 { margin: 18px 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }

.show-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

.show-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.82));
}

.show-card .meta { position: absolute; left: 12px; right: 12px; bottom: 9px; z-index: 1; }
.show-card b { display: block; font-size: 14px; }
.show-card i { font-style: normal; color: var(--muted); }

.show-card .tick {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.posters div { aspect-ratio: 2 / 3; border-radius: 8px; }

/* Artwork stand-ins: gradients, no copyrighted posters. */
.art-1 { background: linear-gradient(135deg, #3b5568, #1a2530 55%, #c88a4a); }
.art-2 { background: linear-gradient(160deg, #6b2f2f, #251313 60%, #e0b070); }
.art-3 { background: linear-gradient(200deg, #2f4a3a, #101a14 60%, #8fb39a); }
.art-4 { background: linear-gradient(150deg, #4b3b6b, #17121f 60%, #d08aa0); }
.art-5 { background: linear-gradient(120deg, #6a5a3a, #1f1a10 60%, #e8d9a8); }

/* Sections */

section { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-lede { max-width: 38em; margin: 0 0 44px; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}

.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li { padding-top: 18px; border-top: 2px solid var(--accent); }
.principles b { display: block; margin-bottom: 6px; font-size: 18px; }
.principles span { color: var(--muted); font-size: 15px; }

/* Long-form pages (privacy, support) */

.doc { padding: clamp(48px, 8vw, 88px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc .updated { margin: 12px 0 40px; color: var(--faint); font-size: 15px; }
.doc h2 { margin-top: 48px; font-size: 24px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

.contact-card {
  margin: 32px 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card p { margin: 0 0 6px; }
.contact-card a { color: var(--accent); font-size: 20px; font-weight: 600; text-decoration: none; }

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--faint); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; }

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(80%, 300px); }
  .features { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .features, .principles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
