:root {
  color-scheme: dark;
  --navy: #060d1e;
  --ink: #f2f7ff;
  --muted: #a7b9d3;
  --line: #243a59;
  --accent: #65caff;
  --gutter: clamp(1.125rem, 3.8vw, 4.5rem);
  --frame: min(100% - 2 * var(--gutter), 84rem);
  font-family: "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 63rem 38rem at 78% 20rem, #102653 0%, transparent 75%),
    var(--navy);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }

.skip-link {
  position: fixed;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead, .hero, .product, .download, .site-footer {
  width: var(--frame);
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: clamp(4.25rem, 6.5vw, 5.75rem);
  border-bottom: 1px solid var(--line);
}
.masthead-brand, .masthead-nav a, .footer-content a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.masthead-brand img { width: clamp(6.35rem, 11vw, 9rem); }
.masthead-nav, .footer-content nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.7vw, 2.6rem);
  font-size: 0.91rem;
}
.masthead-nav a:hover, .site-footer a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: clamp(30rem, 70svh, 46rem);
  border-bottom: 1px solid var(--line);
}
.hero-content {
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 5.3rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }
:lang(zh-CN) .hero h1 { line-height: 1.17; letter-spacing: -0.05em; font-weight: 650; }
.hero-summary, .product-copy p {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.7;
}
.hero-summary { margin-top: clamp(1.25rem, 2.1vw, 1.9rem); }
:lang(zh-CN) .hero-summary, :lang(zh-CN) .product-copy p { max-width: 24em; }

.hero-media {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.hero-media::before {
  position: absolute;
  z-index: -1;
  inset: 5% 0;
  background: radial-gradient(ellipse at 56% 57%, #1559ab91, #143e7652 44%, transparent 71%);
  content: "";
}
.hero-media::after {
  position: absolute;
  z-index: -1;
  inset: 47% 0 7%;
  background:
    linear-gradient(#64baff20 1px, transparent 1px),
    linear-gradient(90deg, #64baff20 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(ellipse at 55% 64%, black 4%, transparent 72%);
  transform: perspective(30rem) rotateX(55deg);
  transform-origin: center bottom;
  content: "";
}
.hero-media img {
  position: absolute;
  inset: 3% 0;
  width: 100%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 1.4rem 2.3rem #03091ba0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: fit-content;
  min-height: 3.2rem;
  padding: 0.65rem 1.08rem;
  border-radius: 0.25rem;
  color: #081528;
  background: var(--accent);
  font-size: 0.94rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.button span { font-size: 1.2rem; line-height: 1; }
.button:hover { background: #a7e4ff; }
.hero .button { margin-top: clamp(1.45rem, 2.7vw, 2.4rem); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2.5rem, 5.25vw, 6rem);
  padding-block: clamp(3.6rem, 6.5vw, 6.25rem);
}
.product-copy { grid-column: 2; grid-row: 1; }
.product h2, .download h2 {
  font-size: clamp(2.35rem, 4.65vw, 4.7rem);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.06em;
}
:lang(zh-CN) h2 { line-height: 1.17; letter-spacing: -0.052em; font-weight: 650; }
.product-copy p { margin-top: clamp(1rem, 2.25vw, 1.8rem); }
.product-screen {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(27rem, 46vw, 41rem);
  padding: clamp(1.7rem, 3vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #0e2144;
}
.product-screen::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, #164c8c55, #061127ed 82%),
    linear-gradient(115deg, #0a244cb8, #112c5dc4),
    url("/assets/tonneau-hero.webp") center 54% / cover;
  content: "";
}
.product-screen img {
  width: clamp(11.5rem, 19.5vw, 16rem);
  height: auto;
  border: 0.4rem solid #0c1629;
  border-radius: clamp(1.25rem, 2.5vw, 1.8rem);
  background: #0c1629;
  box-shadow: 0 0 0 1px #719bd18c, 0 1.7rem 3.8rem #030914b8;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6.5vw, 6.5rem);
}
.download h2 { font-size: clamp(2.25rem, 4.25vw, 4.3rem); }
.download-list { min-width: 0; }
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 1.6rem;
  padding-block: 1.45rem;
  border-top: 1px solid var(--line);
}
.download-row:last-child { border-bottom: 1px solid var(--line); }
.download-row > div { min-width: 0; }
.download-row h3 { font-size: 1.35rem; line-height: 1.15; font-weight: 640; }
.download-row h3 + p { margin-top: 0.5rem; }
.download-row p, .checksum, .site-footer { color: var(--muted); }
.checksum { margin-top: 0.25rem; font-size: 0.84rem; }
.checksum summary { cursor: pointer; width: fit-content; padding-block: 0.35rem; }
.checksum code { display: block; overflow-wrap: anywhere; padding-top: 0.25rem; }
.status { text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding-bottom: 1.5rem; font-size: 0.88rem; }
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  padding-block: 0.95rem;
}
.footer-content nav { flex-wrap: wrap; gap: 0 1.4rem; }
.filing-link { display: block; width: fit-content; margin-inline: auto; padding-block: 0.45rem; }

@media (max-width: 66rem) {
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
  .download { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) {
  .masthead-nav { font-size: 0.82rem; }
  .hero, .product { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; }
  .hero-content { padding-block: clamp(2.35rem, 8vw, 3.7rem) 0; }
  .hero h1 { font-size: clamp(2.5rem, 8.7vw, 4.5rem); }
  .hero-media { aspect-ratio: 1.26; max-height: 26rem; }
  .product { gap: 1.8rem; }
  .product-copy { grid-column: auto; grid-row: auto; }
  .product-screen { grid-column: auto; grid-row: auto; min-height: auto; padding-block: 2rem; }
  .product-screen img { width: clamp(11rem, 51vw, 15rem); }
}
@media (max-width: 35rem) {
  .footer-content { align-items: flex-start; flex-direction: column; }
  .download-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
