:root {
  color-scheme: dark;
  --bg: #111113;
  --bg-soft: #1b1b1f;
  --panel: #24242a;
  --panel-strong: #2e2e35;
  --text: #f7f7f8;
  --muted: #b8b8c0;
  --subtle: #7f8088;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #0a84ff;
  --blue-strong: #0066d9;
  --green: #30d158;
  --amber: #ffb340;
  --red: #ff453a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 17, 19, 0.72);
  backdrop-filter: blur(18px);
}

.nav-links a {
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48) 54%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.22) 44%, rgba(0, 0, 0, 0.72));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1160px, calc(100% - 40px));
  min-height: 82svh;
  margin: 0 auto;
  padding: 112px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 660px;
  color: #e6e6eb;
  font-size: 20px;
}

.hero-actions,
.download-actions,
.open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 700;
  line-height: 1.2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 38px rgba(10, 132, 255, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-strong);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.section,
.download-band,
.showcase {
  padding: 86px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.download-band {
  background: #17171a;
  border-block: 1px solid var(--line);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 24px;
  align-items: center;
}

.download-layout p,
.showcase-copy p,
.open-layout p {
  max-width: 720px;
  color: var(--muted);
}

.release-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  list-style: none;
}

.release-facts li {
  padding: 18px;
  background: var(--panel);
}

.release-facts span {
  display: block;
  color: var(--subtle);
  font-size: 13px;
}

.release-facts strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-weight: 700;
}

.feature-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card,
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card {
  --feature-color: var(--blue);
  padding: 22px;
}

.feature-card::before {
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--feature-color);
  content: "";
}

.feature-card p,
.route-card p,
.route-card li {
  color: var(--muted);
}

.feature-card-blue {
  --feature-color: var(--blue);
}

.feature-card-green {
  --feature-color: var(--green);
}

.feature-card-amber {
  --feature-color: var(--amber);
}

.feature-card-red {
  --feature-color: var(--red);
}

code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

.showcase {
  background: #0c0c0e;
}

.showcase .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: center;
}

.product-shot {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.section-muted {
  background: var(--bg-soft);
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-card {
  padding: 28px;
}

.route-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.open-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c0c0e;
  color: var(--subtle);
  font-size: 14px;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding-top: 16px;
  }

  .nav-links {
    max-width: 54%;
    overflow-x: auto;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .download-layout,
  .showcase .section-inner,
  .open-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .open-layout {
    display: grid;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, 1160px);
  }

  .brand span {
    display: none;
  }

  .nav-links {
    max-width: calc(100% - 58px);
  }

  .nav-links a {
    padding: 7px 10px;
    white-space: nowrap;
  }

  .hero,
  .hero-copy {
    min-height: 86svh;
  }

  .hero-media {
    object-position: 52% center;
  }

  .hero-copy {
    width: min(100% - 28px, 1160px);
    padding-top: 104px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section,
  .download-band,
  .showcase {
    padding: 64px 0;
  }

  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .release-facts,
  .feature-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}
