:root {
  color-scheme: light dark;
  --background: #f6f3f1;
  --surface: #ffffff;
  --surface-muted: #ebe7e4;
  --text: #171719;
  --text-muted: #626066;
  --border: #d7d1ce;
  --brand: #8e1735;
  --brand-strong: #681126;
  --brand-soft: #f1dfe4;
  --teal: #087f83;
  --header: rgba(246, 243, 241, 0.92);
  --shadow: 0 22px 60px rgba(41, 25, 29, 0.14);
  --focus: #087f83;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111113;
    --surface: #1b1b1e;
    --surface-muted: #242428;
    --text: #f5f3f2;
    --text-muted: #b6b1b4;
    --border: #3a373b;
    --brand: #e34f74;
    --brand-strong: #f07291;
    --brand-soft: #3b2028;
    --teal: #55c9ca;
    --header: rgba(17, 17, 19, 0.9);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    --focus: #73d6d6;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a,
button,
summary {
  touch-action: manipulation;
}

button,
summary,
a[href] {
  cursor: pointer;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: var(--header);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 48px;
  gap: 10px;
  font-size: 19px;
  font-weight: 760;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a,
.footer-links a {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 0;
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--brand);
}

.language-switch {
  justify-self: end;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.language-switch:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(360px, 5fr);
  align-items: center;
  min-height: calc(100dvh - 72px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 64px;
  gap: 72px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(64px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 540;
  line-height: 1.35;
}

.release-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.release-line strong {
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 750;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button svg,
.download-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 24%, transparent);
}

.button-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 32%, transparent);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.download-note {
  max-width: 580px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.icon-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
}

.hero-icon {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-icon-main {
  z-index: 2;
  top: 3%;
  right: 2%;
  width: 78%;
}

.hero-icon-back {
  z-index: 1;
  bottom: 1%;
  left: 0;
  width: 48%;
  opacity: 0.96;
}

.version-stamp {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 4%;
  display: grid;
  min-width: 168px;
  padding: 15px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.version-stamp span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.version-stamp strong {
  font-size: 26px;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
  border-top: 1px solid var(--border);
}

.release-strip p {
  display: grid;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.release-strip p + p {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.release-strip strong {
  font-size: 15px;
}

.release-strip span {
  color: var(--text-muted);
  font-size: 13px;
}

.section {
  padding: 96px max(24px, calc((100vw - var(--container)) / 2));
}

.install-section {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 4fr);
  column-gap: 72px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.08;
}

.section-heading > p:last-child {
  align-self: end;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 17px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  padding: 32px 0;
  gap: 20px;
}

.download-item + .download-item {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
}

.platform-mark svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.platform-label {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-item h3,
.ipa-row h3 {
  margin-bottom: 3px;
  font-size: 23px;
}

.download-item p:not(.platform-label),
.ipa-row p:not(.platform-label) {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  gap: 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 750;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.download-link:hover {
  background: var(--brand);
  color: #ffffff;
}

.artifact-note {
  grid-column: 2 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 64px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  min-width: 0;
  padding-right: 28px;
  gap: 18px;
}

.steps li + li {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.steps > li > span,
.feature-number {
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.steps p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.ipa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
}

.ipa-row > div {
  max-width: 760px;
}

.features-section {
  background: var(--background);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid article {
  min-height: 250px;
  padding: 28px 24px 32px 0;
}

.feature-grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.feature-grid h3 {
  margin: 68px 0 10px;
  font-size: 20px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-section {
  background: var(--surface);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  min-height: 68px;
  padding: 20px 48px 20px 0;
  font-size: 18px;
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 4px;
  content: "+";
  color: var(--brand);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 820px;
  padding: 0 48px 22px 0;
  color: var(--text-muted);
}

.support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.support-links a {
  display: grid;
  grid-template-columns: 24px 1fr;
  min-height: 104px;
  padding: 24px;
  gap: 14px;
  transition: background-color 180ms ease, color 180ms ease;
}

.support-links a + a {
  border-left: 1px solid var(--border);
}

.support-links a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.support-links svg {
  width: 24px;
  height: 24px;
}

.support-links span {
  display: grid;
}

.support-links small {
  color: var(--text-muted);
  font-size: 12px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
  gap: 24px;
}

footer p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: start;
  gap: 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.license-line {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 56px;
    gap: 48px;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-item + .download-item {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .feature-grid article + article {
    border-left: 1px solid var(--border);
  }

  .feature-grid article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .feature-grid article:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 8px 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: calc(100dvh - 64px);
    padding: 48px 20px 36px;
  }

  h1 {
    font-size: 58px;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    width: min(100%, 420px);
  }

  .release-strip {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
  }

  .release-strip p + p {
    padding-left: 0;
    border-left: 0;
  }

  .section {
    padding: 72px 20px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .download-grid,
  .steps,
  .feature-grid,
  .support-links {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 28px 0;
  }

  .download-item + .download-item {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .download-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .artifact-note {
    grid-column: 1 / -1;
  }

  .steps {
    gap: 0;
  }

  .steps li,
  .steps li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--border);
  }

  .ipa-row {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .feature-grid article,
  .feature-grid article + article,
  .feature-grid article:nth-child(3) {
    min-height: auto;
    padding: 24px 0 28px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .feature-grid article:first-child {
    border-top: 0;
  }

  .feature-grid h3 {
    margin-top: 30px;
  }

  .support-links a + a {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

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