/* 1609007 SOFTWARE: one page, mobile first. No text lives in this file. */

:root {
  --ink: #1b1d21;
  --muted: #5b6068;
  --line: #e3e1dc;
  --paper: #fbfaf7;
  --accent: #1f4fa3;
  --radius: 22px;
  --wrap: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}
:lang(zh-Hant) {
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Newsreader", "Noto Serif TC", "Songti TC", serif;
}
:lang(zh-Hans) {
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", serif;
}

/* Language switching: every translated string is an element with class "t" and
   its own lang attribute. Only the language named by <html data-lang> shows. */
html[data-lang="en"] .t:not([lang="en"]),
html[data-lang="zh-Hant"] .t:not([lang="zh-Hant"]),
html[data-lang="zh-Hans"] .t:not([lang="zh-Hans"]) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body .t { font-family: var(--sans); }
:lang(zh-Hant), :lang(zh-Hans) { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, .posters:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }

.display, .display .t {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.display:lang(zh-Hant), .display:lang(zh-Hans),
.display .t:lang(zh-Hant), .display .t:lang(zh-Hans) { letter-spacing: 0.01em; line-height: 1.25; }

.eyebrow {
  margin: 0 0 12px;
  font: 500 11.5px/1.4 "Inter", var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------- header ---- */
.site-header {
  position: relative; z-index: 10;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark {
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 16px/1 "Inter", var(--sans);
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}
.wm-secondary { font-weight: 500; letter-spacing: 0.16em; font-size: 12px; color: var(--muted); }
.site-nav { display: flex; gap: 16px; order: 3; width: 100%; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 2px; }
.lang-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 500 13px/1 var(--sans); padding: 7px 8px; border-radius: 999px;
}
.lang-btn:lang(zh-Hant) { font-family: "Noto Sans TC", "PingFang TC", sans-serif; }
.lang-btn:lang(zh-Hans) { font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ hero ---- */
.hero { padding: 44px 0 28px; }
.hero-title { margin: 0; font-size: 34px; max-width: 15em; }
.hero-title .t:lang(zh-Hant), .hero-title .t:lang(zh-Hans) { font-size: 32px; }
.hero-sub { margin: 14px 0 0; font-size: 17px; color: var(--muted); max-width: 34em; }

/* -------------------------------------------------------- carousel ---- */
.products { padding: 8px 0 24px; }
.posters {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  overscroll-behavior-x: contain;
}
.posters::-webkit-scrollbar { display: none; }
.poster {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: var(--poster-bg);
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px 22px 26px;
  min-width: 0;
}
.status {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c08a2c; flex: none;
}
.status-released::before { background: #2f8a4c; }
.poster-name { margin: 0; font-size: 34px; }
.poster-tagline { margin: 8px 0 0; font-size: 22px; font-weight: 500; color: #2a2d33; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(27, 29, 33, 0.08);
}
.cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  background: var(--ink); color: #fff;
}
.cta-more { background: transparent; color: var(--ink); border: 1px solid rgba(27, 29, 33, 0.35); }
.cta:hover { opacity: 0.88; }
.poster-media { display: flex; justify-content: center; align-items: center; min-height: 0; }
.poster-img.art { width: 100%; max-width: 420px; max-height: 300px; object-fit: contain; }
.screenshot {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.08), 0 14px 34px rgba(20, 24, 31, 0.16);
  background: #fff;
}
.poster-img.screenshot { width: auto; max-height: 360px; }

.carousel-controls { display: none; }
.dots { display: flex; gap: 8px; justify-content: center; }
.dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: #c9c6bf;
}
.dot[aria-current="true"] { background: var(--ink); }
.nav-btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px;
}
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------- product list ---- */
.product-list { padding: 48px 0 24px; }
.section-title { margin: 0; font-size: 30px; }
.section-sub { margin: 10px 0 24px; color: var(--muted); }
.items { border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid var(--line); }
.item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 18px 2px;
}
.item summary::-webkit-details-marker { display: none; }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.item-name { font-size: 22px; }
.item-head .status { margin: 0; }
.item-tagline { grid-column: 1; color: var(--muted); font-size: 15px; }
.chev {
  grid-column: 2; grid-row: 1 / span 2;
  width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.item[open] .chev { transform: rotate(-135deg); }
.item-body {
  display: flex; flex-direction: column; gap: 20px;
  margin: 0 0 22px; padding: 22px; border-radius: 18px; background: var(--item-bg);
}
.item-detail { margin: 0; }
.points { margin: 14px 0 0; padding-left: 20px; }
.points li { margin: 4px 0; }
.item-body .cta { margin-top: 16px; }
.item-media { display: flex; justify-content: center; }
.item-img.screenshot { width: 150px; border-radius: 14px; }
.item-img.art { width: 220px; }

/* -------------------------------------------------- about, contact ---- */
.about, .contact { padding: 40px 0 8px; }
.body-text { margin: 12px 0 0; font-size: 17px; max-width: 40em; }
.contact { padding-bottom: 56px; }
.contact-email { margin: 10px 0 0; font-size: 19px; font-weight: 500; }

/* ---------------------------------------------------------- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }
.copyright { color: var(--ink); font-weight: 500; }
.footer-links { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink); }

/* --------------------------------------------------------- desktop ---- */
@media (min-width: 720px) {
  .site-header { position: sticky; top: 0; }
  html { scroll-padding-top: 76px; }
  .site-nav { order: 0; width: auto; gap: 24px; }
  .hero { padding: 56px 0 32px; }
  .hero-title, .hero-title .t:lang(zh-Hant), .hero-title .t:lang(zh-Hans) { font-size: 48px; }
  .poster { padding: 40px 44px; }
  .item-body { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .item-text { flex: 1; }
}
@media (min-width: 960px) {
  .hero-title, .hero-title .t:lang(zh-Hant), .hero-title .t:lang(zh-Hans) { font-size: 56px; }
  .hero { padding: 48px 0 28px; }
  .poster {
    flex-direction: row; align-items: center; gap: 40px;
    aspect-ratio: 2.5 / 1;
    padding: 36px 64px;
  }
  .poster-text { flex: 0 0 46%; }
  .poster-media { flex: 1; height: 100%; }
  .poster-name { font-size: 52px; }
  .poster-tagline { font-size: 26px; }
  .poster-img.screenshot { max-height: 100%; }
  .poster-img.art { max-height: 100%; max-width: 100%; }
  .carousel-controls {
    display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px;
  }
  .carousel-hint { display: none; }
  .section-title { font-size: 40px; }
  .product-list { padding-top: 72px; }
}
