:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --paper: #fdfcf9;
  --ink: #1b1d22;
  --muted: #53555f;
  --rule: #dddad3;
  --warm-ink: #7c451c;
  --amber: #ffc06b;
  --night: #101318;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #9a4b10; outline-offset: 5px; }
section[id] { scroll-margin-block-start: 1.5rem; }

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 76rem);
  margin-inline: auto;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .55rem 1rem;
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 1;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}

.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row { min-height: 4.5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .57rem;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.052em;
  text-decoration: none;
}

.matrix-mark {
  display: grid;
  width: 1.58rem;
  height: 1.58rem;
  grid: repeat(2, 5px) / repeat(2, 5px);
  place-content: center;
  gap: 2px;
  border-radius: .36rem;
  background: var(--ink);
}

.matrix-mark i { background: #fff9ec; border-radius: 1px; }
.matrix-mark i:nth-child(2) { background: var(--amber); }

.nav { display: flex; align-self: stretch; gap: clamp(1.15rem, 3vw, 2.25rem); }
.nav a {
  display: grid;
  align-content: center;
  padding: .3rem .15rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 610;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--ink); }

.home-hero { background: var(--canvas); border-bottom: 1px solid var(--rule); }
.home-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 1.02fr) minmax(0, 1.48fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.6rem);
  padding-block: clamp(3.5rem, 7vw, 6.45rem);
}

.display-name {
  display: block;
  font-size: clamp(4rem, 8.8vw, 8.1rem);
  font-weight: 780;
  line-height: .88;
  letter-spacing: -.085em;
}
.brand-dot { color: #a75722; }
.home-subtitle {
  display: block;
  margin-top: 1.3rem;
  font-size: clamp(1.6rem, 3.8vw, 3.05rem);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.home-copy > p {
  max-width: 23rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.035rem;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1rem;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border-radius: .46rem;
  padding: .58rem 1.16rem;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 690;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #393b43; }
.button-text { padding-inline: .35rem; }
.button-text:hover, .row-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }

.featured {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  min-height: 18rem;
  aspect-ratio: 1.55;
  border-radius: .85rem;
  color: #fff;
  background: #121824;
  text-decoration: none;
}
.featured::after {
  position: absolute;
  z-index: -1;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #070c14e8);
  content: "";
}
.featured-photo {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 48%;
  transition: transform 500ms ease;
}
.featured:hover .featured-photo { transform: scale(1.045); }
.featured-caption {
  position: absolute;
  inset: auto auto 0 0;
  display: flex;
  align-items: center;
  gap: .72rem;
  padding: clamp(1rem, 2.4vw, 1.55rem);
}
.featured-caption strong, .featured-caption span { display: block; line-height: 1.35; }
.featured-caption strong { font-size: 1.23rem; letter-spacing: -.025em; }
.featured-caption span { margin-top: .17rem; color: #e1dfda; font-size: .875rem; }

.catalog { padding-block: clamp(3.25rem, 6.5vw, 5.4rem) clamp(3.7rem, 8vw, 7rem); }
.catalog h2, .features h2, .availability h2 {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-weight: 740;
  letter-spacing: -.06em;
  line-height: 1.22;
}
.product-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.product-row {
  display: grid;
  grid-template-columns: minmax(11rem, .87fr) minmax(0, 1.5fr) max-content;
  align-items: center;
  min-height: 5.55rem;
  gap: .75rem 1.6rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.product-name { display: flex; align-items: center; gap: .75rem; }
.product-name h3 { font-size: 1.22rem; font-weight: 740; line-height: 1.2; letter-spacing: -.025em; }
.product-name a { text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: .22em; }
.product-icon { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; }
.product-row p { color: var(--muted); }
.row-link { color: var(--warm-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }

.product-page .site-header {
  border-color: #30343c;
  background: #12151b;
  color: #f9f5ef;
}
.product-page .matrix-mark { background: #333740; }
.product-page .nav a { color: #c8c8cb; }
.product-page .nav a:hover, .product-page .nav a[aria-current="page"] { color: #fffaf2; }
.product-page .nav a[aria-current="page"] { border-color: var(--amber); }
.product-page .site-header :focus-visible, .tt-hero :focus-visible { outline-color: var(--amber); }

.tt-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(39rem, max(32rem, calc(94svh - 4.5rem)));
  overflow: hidden;
  background: var(--night);
  color: #fffaf2;
}
.tt-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(82vw, 78rem);
}
.tt-art img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; }
.tt-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night), #101318f5 10%, #101318b8 27%, #1013180e 61%), linear-gradient(0deg, #10131887, transparent 26%);
  content: "";
}
.tt-hero-content { padding-block: clamp(3.6rem, 7vw, 6.3rem); }
.hero-app-icon { width: clamp(3.8rem, 6vw, 5.35rem); height: auto; margin: -.34rem 0 .9rem -.3rem; }
.tt-hero h1 {
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: .94;
}
.tt-tagline {
  margin-top: 1.12rem;
  font-size: clamp(1.42rem, 3vw, 2.3rem);
  letter-spacing: -.046em;
  line-height: 1.3;
  font-weight: 650;
}
.tt-lead {
  max-width: 21rem;
  margin-top: .85rem;
  color: #dfdce0;
  line-height: 1.85;
}
.button-amber { background: var(--amber); color: #211607; }
.button-amber:hover { background: #ffd49c; }
.button-quiet { color: #fffaf2; border: 1px solid #77747c; }
.button-quiet:hover { background: #fff1dd1c; }

.features { padding-block: clamp(3.5rem, 7vw, 6.15rem); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.4rem, 5vw, 4rem);
  margin-block: 2rem;
}
.feature-grid article { padding-block: 1.2rem 0; border-top: 1px solid var(--rule); }
.feature-grid h3 { margin-block: .65rem .4rem; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.03em; }
.feature-grid p, .availability p { color: var(--muted); line-height: 1.8; }
.feature-icon { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; color: var(--warm-ink); }
.feature-disc { border: 2px solid currentColor; border-radius: 50%; }
.feature-disc::after { width: .48rem; height: .48rem; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
.feature-library { grid-template-rows: repeat(3, 2px); justify-items: start; align-content: center; gap: 5px; }
.feature-library i { display: block; width: 1.55rem; height: 2px; border-radius: 2px; background: currentColor; }
.feature-library i:last-child { width: 1rem; }
.feature-eq { grid-template-columns: repeat(3, 3px); align-items: end; gap: 5px; justify-content: start; }
.feature-eq i { display: block; width: 3px; height: .77rem; border-radius: 2px; background: currentColor; }
.feature-eq i:nth-child(2) { height: 1.48rem; }
.feature-eq i:nth-child(3) { height: 1.03rem; }

.formats { border-block: 1px solid var(--rule); }
.formats summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .95rem;
  color: var(--warm-ink);
  font-weight: 710;
  cursor: pointer;
  list-style: none;
}
.formats summary::-webkit-details-marker { display: none; }
.formats summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.formats[open] summary::after { content: "−"; }
.formats-body { padding-bottom: 1.1rem; color: var(--muted); }
.formats-body dl { display: grid; gap: .45rem; }
.formats-body dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: .3rem .8rem; }
.formats-body dt { font-weight: 670; color: var(--ink); }

.availability { padding-block: clamp(2.8rem, 5vw, 4.6rem); border-top: 1px solid var(--rule); background: #f4eee5; }
.availability-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 1.4rem;
}
.availability p { margin-top: .55rem; }
.system-specs { display: grid; gap: .65rem; }
.system-specs > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .7rem; }
.system-specs dt { font-weight: 710; }
.system-specs dd { color: var(--muted); }

.site-footer { border-top: 1px solid var(--rule); }
.footer-row { min-height: 4.7rem; font-size: .9rem; color: var(--muted); }
.site-footer a { text-decoration: none; font-weight: 620; }

@media (max-width: 55rem) {
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 1.8rem; }
  .featured { min-height: 17rem; }
  .tt-art { width: 86vw; }
  .tt-art::after { background: linear-gradient(90deg, var(--night), #101318e8 20%, #10131875 52%, #10131810 100%); }
}

@media (max-width: 42rem) {
  .header-row { min-height: 3.7rem; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 2.75rem; }
  .display-name { font-size: clamp(4.25rem, 12vw, 6rem); }
  .home-subtitle { margin-top: .85rem; }
  .home-copy > p { margin-top: .75rem; }
  .actions { margin-top: 1.15rem; }
  .featured { min-height: 13.5rem; aspect-ratio: 1.58; }
  .catalog { padding-block: 3rem 3.7rem; }
  .product-row { grid-template-columns: minmax(0,1fr) max-content; gap: .35rem .6rem; }
  .product-row p { grid-area: 2 / 1 / 3 / 3; padding-inline-start: 3.5rem; }
  .product-name h3 { font-size: 1.11rem; }
  .tt-hero { min-height: auto; grid-template-rows: auto auto; }
  .tt-art { position: relative; z-index: 0; grid-row: 2; width: 100%; height: clamp(13rem, 60vw, 23rem); }
  .tt-art::after { background: linear-gradient(180deg, var(--night), #10131849 20%, transparent 54%); }
  .tt-hero-content { grid-row: 1; padding-block: 2.5rem .45rem; }
  .tt-hero h1 { font-size: clamp(3.55rem, 11vw, 5.1rem); }
  .tt-tagline { margin-top: .85rem; }
  .tt-lead { margin-top: .6rem; }
  .features { padding-block: 3.15rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); margin-block-start: 1.3rem; gap: 1.2rem; }
  .feature-grid article { padding-block-start: 1rem; }
  .feature-grid h3 { margin-top: .4rem; }
  .formats-body dl { gap: .8rem; }
  .formats-body dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .availability-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
