/* The press kit: the same wallpaper and glass as the demo, as a page to read. */

:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ink: #16151d;
  --ink-2: rgba(22, 21, 29, 0.66);
  --ink-3: rgba(22, 21, 29, 0.44);
  --accent: #0a84ff;
  --wall: linear-gradient(135deg, #86a9ff 0%, #ad9ff8 45%, #f6b2c8 80%, #ffd0b8 100%);
  --blob: rgba(255, 255, 255, 0.55);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.7);
  --edge: rgba(255, 255, 255, 0.85);
  --hairline: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(22, 20, 60, 0.12);
  --button: #16151d;
  --button-ink: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --ink-2: rgba(245, 245, 247, 0.7);
    --ink-3: rgba(245, 245, 247, 0.46);
    --wall: linear-gradient(135deg, #1e2a62 0%, #3b2b74 45%, #6c2f63 80%, #8a4a4a 100%);
    --blob: rgba(255, 255, 255, 0.1);
    --glass: rgba(36, 34, 48, 0.5);
    --glass-strong: rgba(40, 38, 52, 0.72);
    --edge: rgba(255, 255, 255, 0.16);
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 12px 34px rgba(0, 0, 0, 0.3);
    --button: #f5f5f7;
    --button-ink: #16151d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: #b9b3f6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) { body { background: #2a2350; } }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 18%, var(--blob), transparent 70%),
    radial-gradient(50% 45% at 86% 80%, var(--blob), transparent 70%),
    var(--wall);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: inset 0 0 0 0.5px var(--edge), var(--shadow);
}

/* ---------- Top bar ---------- */

.bar {
  position: sticky;
  top: 10px;
  z-index: 10;
  max-width: 1080px;
  margin: 10px auto 0;
  height: 52px;
  padding: 0 10px 0 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 650; letter-spacing: -0.01em; }
.brand span { color: var(--ink-3); font-weight: 500; }
.bar nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.bar nav a:not(.pill) { color: var(--ink-2); }
.bar nav a:not(.pill):hover { color: var(--ink); text-decoration: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.pill:hover { text-decoration: none; opacity: 0.88; }
.pill:active { transform: scale(0.97); }
.pill.dark { background: var(--button); color: var(--button-ink); box-shadow: 0 6px 18px rgba(22, 20, 60, 0.22); }
.pill.big { height: 48px; padding: 0 24px; font-size: 15.5px; }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pill .meta { font-weight: 500; opacity: 0.6; font-size: 13px; }

/* ---------- Page ---------- */

main { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }

.hero { text-align: center; padding: 72px 0 40px; }
.hero .icon { display: block; margin: 0 auto 22px; filter: drop-shadow(0 16px 28px rgba(30, 20, 80, 0.28)); animation: rise 0.9s var(--ease) both; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
h1 { margin: 6px 0 0; font: 700 clamp(44px, 7vw, 76px)/1 var(--font-display); letter-spacing: -0.035em; }
.tagline { margin: 10px 0 0; font: 600 clamp(20px, 2.6vw, 26px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink-2); }
.lede { max-width: 560px; margin: 16px auto 0; font-size: 17px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* Views lead the reception: a tall tile beside the other six. */
.stat.lead { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.stat.lead b { margin-top: 18px; }
.stat.lead b { font-size: 64px; letter-spacing: -0.04em; }
.stat.lead span { font-size: 14px; }
.stat { border-radius: 20px; padding: 20px 20px 18px; color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 0 0 0.5px var(--edge), 0 16px 40px rgba(22, 20, 60, 0.18); }
.stat:active { transform: scale(0.985); }
.stat .ico { display: block; width: 20px; height: 20px; margin-bottom: 14px; fill: none; stroke: var(--ink-3); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat.lead .ico { width: 28px; height: 28px; margin-bottom: auto; stroke: var(--ink-2); }
.stat b { display: block; font: 700 34px/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: baseline; justify-content: center; gap: 7px; text-align: center; }
.note .live { flex: none; transform: translateY(-1px); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(48, 209, 88, 0); } }

.block { margin-top: 64px; }
.block h2 { margin: 0 0 16px; font: 700 28px/1.2 var(--font-display); letter-spacing: -0.025em; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.head h2 { margin: 0; }

.facts { margin: 0; border-radius: 22px; padding: 6px 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 0; border-bottom: 0.5px solid var(--hairline); }
.facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font-size: 13px; font-weight: 500; color: var(--ink-3); padding-top: 1px; }
.facts dd { margin: 0; font-size: 14.5px; }
.code { padding: 1px 6px; border-radius: 6px; font: 500 12.5px var(--font-mono); text-align: left; background: rgba(128, 128, 140, 0.14); }
.code:hover { background: rgba(128, 128, 140, 0.24); }

.segmented { display: inline-flex; padding: 3px; border-radius: 12px; }
.segmented button { height: 30px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.segmented button[aria-selected="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 0 0 0.5px var(--edge); }

.copy-set { display: grid; gap: 12px; }
.copy-set[hidden] { display: none; }
.copy-set.enter > * { animation: fade-up 0.45s var(--ease) both; }
.copy-set.enter > :nth-child(2) { animation-delay: 0.04s; }
.copy-set.enter > :nth-child(3) { animation-delay: 0.08s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.copy { border-radius: 20px; padding: 18px 22px 20px; }
.copy header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.copy h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.copy p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; max-width: 72ch; }
.copy-btn { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(10, 132, 255, 0.1); }
.copy-btn:hover { background: rgba(10, 132, 255, 0.18); }
.copy-btn.done { color: #fff; background: #30d158; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { border-radius: 20px; padding: 20px 22px; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

.media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.asset { margin: 0; border-radius: 22px; padding: 10px; display: flex; flex-direction: column; }
.asset.wide { grid-column: 1 / -1; }
.frame { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; background: rgba(128, 128, 140, 0.12); }
.asset.wide .frame { aspect-ratio: 16 / 9; background: #000; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-asset .frame img { width: 46%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(30, 20, 80, 0.25)); }
.checker { background-color: rgba(255, 255, 255, 0.5); background-image: conic-gradient(rgba(128, 128, 140, 0.12) 25%, transparent 0 50%, rgba(128, 128, 140, 0.12) 0 75%, transparent 0); background-size: 18px 18px; }
@media (prefers-color-scheme: dark) { .checker { background-color: rgba(0, 0, 0, 0.2); } }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 4px 8px; }
figcaption b { display: block; font-size: 14.5px; font-weight: 600; }
figcaption span { display: block; font-size: 12.5px; color: var(--ink-3); }
figcaption .pill { height: 32px; font-size: 13.5px; background: var(--glass-strong); box-shadow: inset 0 0 0 0.5px var(--edge); }
.fine { margin: 14px 4px 0; font-size: 13px; color: var(--ink-3); }

.links { border-radius: 22px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.links a { padding: 18px 20px; color: var(--ink); border-right: 0.5px solid var(--hairline); transition: background 0.2s; }
.links a:last-child { border-right: 0; }
.links a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.18); }
.links b { display: block; font-size: 14.5px; font-weight: 600; }
.links span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact { border-radius: 26px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.contact img { filter: drop-shadow(0 8px 16px rgba(30, 20, 80, 0.25)); }
.contact h2 { margin: 0 0 4px; font-size: 24px; }
.contact p { margin: 0; color: var(--ink-2); max-width: 520px; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 20px calc(36px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--ink-3); }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat.lead { grid-row: auto; grid-column: 1 / -1; }
  .stat.lead b { font-size: 52px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-last-child(2) { border-bottom: 0.5px solid var(--hairline); }
  .features { grid-template-columns: 1fr 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
  .links a:nth-child(2) { border-right: 0; }
  .links a:nth-child(-n + 2) { border-bottom: 0.5px solid var(--hairline); }
  .contact { grid-template-columns: auto 1fr; }
  .contact .pill { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bar { margin: 8px 12px 0; top: 8px; }
  .bar nav a:not(.pill) { display: none; }
  main { padding: 0 16px 32px; }
  .hero { padding: 48px 0 28px; }
  .actions .pill { width: 100%; }
  .stat b { font-size: 28px; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .features, .media { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .links a { border-right: 0; border-bottom: 0.5px solid var(--hairline); }
  .links a:last-child { border-bottom: 0; }
  .contact { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .contact .pill { width: 100%; font-size: 14px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
