:root {
  color-scheme: light;
  --ink: #15171c;
  --muted: #626873;
  --paper: #f4f1eb;
  --paper-strong: #fffdf8;
  --night: #101216;
  --night-soft: #191c22;
  --line: rgba(21, 23, 28, 0.14);
  --line-dark: rgba(255, 255, 255, 0.15);
  --blue: #246bfe;
  --blue-deep: #1454d8;
  --coral: #f18982;
  --cream: #fff3eb;
  --success: #72e4c1;
  --shadow: 0 30px 80px rgba(12, 18, 33, 0.22);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 0;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(16, 18, 22, 0.92);
  color: #fff;
  padding: 9px 10px 9px 14px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.language-switcher {
  display: flex;
  justify-self: end;
  gap: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  padding: 3px;
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 750;
}

.language-switcher button[aria-pressed="true"] {
  background: #fff;
  color: var(--night);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: 150px max(24px, calc((100vw - 1240px) / 2)) 78px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 15px;
  color: #8db2ff;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.16em;
}

.eyebrow-dark {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 126px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  font-size: clamp(25px, 3vw, 43px);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.hero-summary {
  max-width: 570px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 740;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: #3579ff;
}

.button-secondary {
  border-color: var(--line-dark);
  background: transparent;
  color: #fff;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.hero-release {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.hero-release div {
  min-width: 120px;
}

.hero-release dt,
.platform-meta dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.hero-release dd {
  margin: 4px 0 0;
  font-weight: 720;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: #dce6f7;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-section,
.feature-section {
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  background: var(--paper-strong);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: stretch;
  gap: 14px;
  margin-top: 54px;
}

.platform-item {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f5f0;
  padding: 24px;
}

.platform-item-primary {
  background: var(--night);
  color: #fff;
}

.platform-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.platform-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-item-primary .platform-heading p {
  color: rgba(255, 255, 255, 0.5);
}

.platform-monogram {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.platform-item-primary .platform-monogram {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.platform-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
}

.platform-meta dd {
  margin: 5px 0 0;
  font-weight: 740;
}

.release-notes {
  display: -webkit-box;
  overflow: hidden;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.platform-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 44px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 750;
}

.platform-item .button-wide {
  width: 100%;
  margin-top: auto;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
}

.follow-section {
  overflow: hidden;
  background: #eaf1ff;
  padding: 86px max(24px, calc((100vw - 1240px) / 2));
}

.follow-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.follow-qr {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(32, 56, 132, 0.18);
}

.follow-copy h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.follow-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.follow-id {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 38px 0 0;
  border-top: 1px solid rgba(21, 23, 28, 0.14);
  padding-top: 22px;
  color: var(--muted);
}

.follow-id strong {
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.feature-section {
  border-top: 1px solid var(--line);
}

.compact-heading {
  max-width: 720px;
}

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

.feature-list article {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.feature-list article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.feature-list h3 {
  margin: 22px 0 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.feature-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: var(--night);
  color: #fff;
  padding: 48px max(24px, calc((100vw - 1240px) / 2)) 56px;
}

.brand-footer {
  font-size: 21px;
}

.brand-footer img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: #fff;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 18px 46px rgba(12, 18, 33, 0.25);
  color: #fff;
  padding: 12px 15px;
  font-size: 14px;
}

.subpage .site-header {
  position: sticky;
  top: 16px;
}

.document-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 100px;
}

.document-shell h1 {
  margin: 0;
  font-size: clamp(50px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.document-lead {
  max-width: 680px;
  margin: 24px 0 48px;
  color: var(--muted);
  font-size: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.document-panel {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.document-panel h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.document-panel p,
.document-panel ul {
  margin: 14px 0 0;
  color: var(--muted);
}

.document-panel li + li {
  margin-top: 9px;
}

.document-panel code {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 2px 6px;
}

.document-panel a {
  color: var(--blue);
}

.contact-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 26px;
}

.support-qr {
  width: min(100%, 300px);
  height: auto;
  margin: 24px auto 0;
  border-radius: 18px;
}

.support-follow-hint {
  text-align: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 142px;
  }

  .hero-visual {
    justify-self: start;
    width: min(78vw, 420px);
  }

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

  .platform-item-primary {
    grid-column: 1 / -1;
    min-height: 330px;
  }

}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 126px 18px 72px;
  }

  .hero h1 {
    font-size: clamp(62px, 23vw, 92px);
  }

  .hero-lead {
    font-size: 29px;
  }

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

  .hero-release {
    gap: 22px;
  }

  .hero-visual {
    width: min(100%, 360px);
    border-radius: 24px;
  }

  .download-section,
  .feature-section,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .download-section,
  .feature-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .platform-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .follow-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .follow-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .follow-qr {
    width: min(100%, 360px);
    justify-self: center;
  }

  .platform-item {
    min-height: 300px;
  }

  .platform-item-primary {
    grid-column: auto;
  }

  .platform-meta {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    margin-top: 48px;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }

  .document-shell {
    width: calc(100% - 36px);
    padding-top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
