:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #151b29;
  --muted: #657086;
  --line: #dfe5ef;
  --blue: #1677ff;
  --indigo: #4058d8;
  --purple: #6e56cf;
  --coral: #ef7468;
  --green: #159a74;
  --gold: #b98122;
  --content: 1180px;
  --shadow-lg: 0 28px 80px rgba(31, 46, 82, 0.16);
  --shadow-md: 0 18px 48px rgba(31, 46, 82, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  /* clip 不产生滚动容器，避免破坏后代 position: sticky（hidden 会导致吸顶失效） */
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

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

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

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(203, 212, 227, 0.72);
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(20px);
}

.nav {
  width: min(var(--content), calc(100% - 40px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.16s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: var(--text);
}

.section-contained,
.hero-grid,
.hero-facts {
  width: min(var(--content), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.hero-home {
  position: relative;
  min-height: min(900px, calc(100svh - 64px));
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(250, 251, 254, 0.98) 0%, rgba(240, 245, 255, 0.95) 58%, rgba(249, 243, 247, 0.94) 100%);
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-home::before {
  top: 0;
  right: 0;
  width: 46%;
  height: 36%;
  border-bottom: 1px solid rgba(64, 88, 216, 0.13);
  background: rgba(255, 255, 255, 0.24);
  transform: skewY(7deg);
  transform-origin: top right;
}

.hero-home::after {
  right: -6%;
  bottom: 8%;
  width: 56%;
  height: 1px;
  background: rgba(64, 88, 216, 0.17);
  transform: rotate(-7deg);
}

.hero-grid {
  position: relative;
  z-index: 3;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 20px;
  padding: 58px 0 30px;
}

.hero-copy-block {
  position: relative;
  z-index: 4;
  max-width: 590px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--indigo);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy-block h1 {
  margin-bottom: 18px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 800;
}

.hero-copy-block h2 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: 42px;
  line-height: 1.18;
}

.hero-copy {
  max-width: 550px;
  margin-bottom: 28px;
  color: #47546a;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.android-hero-download {
  position: relative;
}

.android-hero-qr-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 12px);
  left: 0;
  width: 164px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  text-align: center;
}

.android-hero-qr-popover img {
  width: 142px;
  height: 142px;
}

.android-hero-qr-popover strong {
  font-size: 14px;
}

.android-hero-download:hover .android-hero-qr-popover,
.android-hero-download:focus-within .android-hero-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

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

.button.primary {
  color: #fff;
  background: #315dde;
  box-shadow: 0 12px 28px rgba(49, 93, 222, 0.24);
}

.button.secondary {
  color: var(--text);
  border-color: #cfd7e5;
  background: rgba(255, 255, 255, 0.82);
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.device-stage {
  position: relative;
  min-width: 0;
  height: 690px;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  background: #edf2f8;
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-front {
  z-index: 3;
  top: 8px;
  left: 180px;
  width: 286px;
  height: 636px;
}

.phone-middle {
  z-index: 2;
  top: 82px;
  left: 28px;
  width: 242px;
  height: 538px;
  transform: rotate(-5deg);
  opacity: 0.93;
}

.phone-back {
  z-index: 1;
  top: 126px;
  right: -12px;
  width: 224px;
  height: 498px;
  transform: rotate(5deg);
  opacity: 0.82;
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(168, 180, 202, 0.54);
}

.hero-facts div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 28px;
  border-right: 1px solid rgba(168, 180, 202, 0.54);
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong {
  font-size: 17px;
}

.hero-facts span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.section-head {
  max-width: 740px;
  margin-bottom: 44px;
}

.wide-head {
  max-width: 820px;
}

.section h2,
.product-band h2,
.privacy-band h2,
.contact-section h2,
.platform-heading h2 {
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.13;
}

.section-head > p:last-child,
.platform-heading > div:last-child > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.capability-list article {
  min-height: 210px;
  padding: 30px 26px 28px;
  border-right: 1px solid var(--line);
}

.capability-list article:first-child {
  padding-left: 0;
}

.capability-list article:last-child {
  border-right: 0;
}

.capability-index {
  display: block;
  margin-bottom: 38px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 800;
}

.capability-list h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.capability-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.product-band {
  padding: 104px 0;
}

.android-band {
  border-top: 1px solid #dbe4ef;
  border-bottom: 1px solid #dbe4ef;
  background: #edf3f7;
}

.platform-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 58px;
}

.platform-heading h2 {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo);
  font-size: 15px;
  font-weight: 750;
  border-bottom: 1px solid currentColor;
}

.android-story {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(220px, 286px) minmax(320px, 1fr) minmax(210px, 270px);
  align-items: center;
  gap: 42px;
  padding: 34px 0;
}

.tall-shot,
.detail-gallery button,
.mac-stage button {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.tall-shot {
  width: 100%;
  height: 636px;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.tall-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-shot {
  height: 600px;
  transform: translateY(44px);
}

.story-copy {
  max-width: 470px;
  justify-self: center;
}

.story-label {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

.story-copy h3 {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.2;
}

.story-copy > p:not(.story-label) {
  color: #516075;
  font-size: 17px;
}

.story-points {
  margin: 34px 0 0;
  border-top: 1px solid #ced8e5;
}

.story-points div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ced8e5;
}

.story-points dt {
  font-weight: 760;
}

.story-points dd {
  color: var(--muted);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 80px;
}

.detail-gallery article {
  grid-column: span 2;
  min-width: 0;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid #cfd9e5;
}

.detail-gallery article:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.detail-gallery button {
  width: 142px;
  height: 316px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

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

.gallery-progress {
  display: none;
}

.macos-section {
  padding-bottom: 132px;
}

.mac-stage {
  position: relative;
  min-height: 600px;
  padding: 0 70px 40px 0;
}

.mac-window {
  width: calc(100% - 88px);
  overflow: visible !important;
}

.mac-window img {
  width: 100%;
}

.mac-menu {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 248px;
  border: 1px solid #cfd7e5 !important;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.privacy-band {
  padding: 92px 0;
  color: #f8f9fc;
  background: #171a20;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 80px;
  align-items: start;
}

.privacy-band .eyebrow {
  color: #95aaff;
}

.privacy-band h2 {
  margin-bottom: 0;
  max-width: 500px;
}

.privacy-copy > p {
  margin-bottom: 26px;
  color: #c7cedb;
  font-size: 18px;
}

.privacy-copy ul {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: #aeb7c8;
}

.privacy-copy li {
  position: relative;
  padding-left: 18px;
}

.privacy-copy li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f9cff;
}

.light-link {
  color: #c9d4ff;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 46, 82, 0.07);
}

.android-download {
  border-top: 4px solid var(--indigo);
}

.macos-download {
  border-top: 4px solid #252a34;
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.platform-name {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.download-card h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.version-chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--indigo);
  background: #edf1ff;
  font-size: 13px;
  font-weight: 750;
}

.download-card > p {
  color: var(--muted);
}

.full-button {
  width: 100%;
  margin: 8px 0 12px;
}

.android-download-actions {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}

.android-qr-link {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.android-qr-link img {
  width: 138px;
  height: 138px;
  border: 1px solid var(--line);
  background: #fff;
}

.android-download-actions .full-button {
  margin-top: 0;
}

.android-download-page-link {
  font-size: 13px;
}

.download-meta {
  min-height: 44px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.install-steps {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.install-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.install-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd7e5;
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.install-steps strong {
  display: block;
  margin-bottom: 2px;
}

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

.install-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.install-note summary {
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.install-note p {
  margin: 12px 0;
}

.copy-block {
  position: relative;
}

.copy-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px 80px 14px 14px;
  border-radius: 8px;
  color: #e8edf7;
  background: #1c2230;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  border: 1px solid #53617a;
  border-radius: 6px;
  color: #e8edf7;
  background: #2b3447;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-section h2 {
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-links button,
.contact-links a {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.contact-links button::after,
.contact-links a::after {
  content: "›";
  color: var(--muted);
  font-size: 24px;
}

.footer {
  width: min(var(--content), calc(100% - 40px));
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer > span:last-child {
  display: flex;
  gap: 18px;
}

.mobile-download-bar {
  display: none;
}

/* Android download page */
.download-nav-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.android-download-hero {
  min-height: min(760px, calc(100svh - 64px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #dbe4ef;
  background: #eef3f7;
}

.android-download-hero-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 72px;
  align-items: center;
  margin: 0 auto;
  padding: 54px 0;
}

.android-download-copy {
  max-width: 650px;
}

.android-download-copy h1 {
  margin-bottom: 22px;
  font-size: 58px;
  line-height: 1.08;
}

.android-download-intro {
  max-width: 620px;
  margin-bottom: 30px;
  color: #4f5c70;
  font-size: 19px;
}

.android-download-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.android-download-primary .button {
  min-width: 188px;
}

.android-download-primary > span,
.device-download-note {
  color: var(--muted);
  font-size: 13px;
}

.device-download-note {
  margin: 14px 0 0;
}

.wechat-download-guide {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--coral);
  color: #62352f;
  background: #fff2f0;
}

.wechat-download-guide span {
  font-size: 14px;
}

.android-download-showcase {
  position: relative;
  height: 580px;
}

.download-page-phone {
  position: absolute;
  top: 0;
  left: 34px;
  width: 242px;
  height: 538px;
  overflow: hidden;
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.download-page-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-page-qr {
  position: absolute;
  right: 0;
  bottom: 16px;
  width: 188px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.download-page-qr img {
  width: 162px;
  height: 162px;
}

.download-page-qr strong {
  font-size: 14px;
}

.download-page-qr span {
  color: var(--muted);
  font-size: 11px;
}

.android-release-facts {
  width: min(var(--content), calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.android-release-facts > div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.android-release-facts > div:first-child {
  padding-left: 0;
}

.android-release-facts > div:last-child {
  border-right: 0;
}

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

.android-release-facts strong {
  font-size: 17px;
}

.android-install-section {
  width: min(var(--content), calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 92px;
  margin: 0 auto;
  padding: 104px 0;
}

.android-install-heading h2,
.android-file-section h2 {
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.16;
}

.android-install-heading > p:last-child {
  color: var(--muted);
}

.android-install-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.android-install-flow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.android-install-flow li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd7e5;
  border-radius: 50%;
  color: var(--indigo);
  font-weight: 800;
}

.android-install-flow strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.android-install-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.android-file-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: 92px;
  padding: 88px max(20px, calc((100vw - var(--content)) / 2));
  color: #f8f9fc;
  background: #171a20;
}

.android-file-section .eyebrow {
  color: #95aaff;
}

.android-file-details {
  margin: 0;
  border-top: 1px solid #3b414d;
}

.android-file-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #3b414d;
}

.android-file-details dt {
  color: #9fa9ba;
}

.android-file-details dd {
  min-width: 0;
  margin: 0;
}

.android-file-details code {
  color: #dce4f6;
  overflow-wrap: anywhere;
}

.android-download-footer {
  border-top: 0;
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(8, 11, 18, 0.74);
  backdrop-filter: blur(10px);
}

.preview-dialog,
.contact-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
}

.preview-shell,
.dialog-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.preview-card,
.dialog-card {
  position: relative;
  width: min(92vw, 1040px);
  max-height: 90vh;
  overflow: auto;
  padding: 46px 20px 20px;
  border-radius: 8px;
  background: #fff;
}

.preview-card img {
  max-width: 100%;
  max-height: calc(90vh - 92px);
  margin: 0 auto;
  object-fit: contain;
}

.dialog-card {
  width: min(92vw, 390px);
}

.dialog-card img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.dialog-title {
  margin-bottom: 14px;
  font-weight: 750;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

/* Shared document and changelog pages */
.doc-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.doc-page > h1,
.changelog-head h1 {
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.08;
}

.doc-page > h2 {
  margin: 52px 0 14px;
  font-size: 28px;
}

.doc-page > p,
.doc-page > ul {
  color: #4f5c70;
}

.doc-page a:not(.brand):not(.button) {
  color: var(--indigo);
}

.doc-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.doc-page footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.changelog-page {
  width: min(var(--content), calc(100% - 40px));
}

.changelog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.changelog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.release-filters {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.release-filters button {
  min-width: 82px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.release-filters button[aria-pressed="true"] {
  color: var(--text);
  background: #eef2f7;
  font-weight: 750;
}

.changelog-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.changelog-nav {
  position: sticky;
  top: 92px;
}

.changelog-nav-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.changelog-nav-toggle {
  display: none;
}

.changelog-timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.version-link {
  display: grid;
  gap: 1px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted) !important;
}

.version-link[aria-current="true"] {
  color: var(--indigo) !important;
}

.version-name {
  font-weight: 750;
}

.version-date {
  font-size: 12px;
}

.changelog-main {
  display: grid;
  gap: 18px;
}

.release-card {
  scroll-margin-top: 88px;
}

.release-date {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.release-meta h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--indigo);
  background: #edf1ff;
  font-size: 12px;
  vertical-align: middle;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  vertical-align: middle;
}

.android-badge {
  color: #087d5c;
  background: #e5f5ef;
}

.macos-badge {
  color: #475569;
  background: #edf2f7;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 34, 74, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 74, 0.22);
}

[hidden] {
  display: none !important;
}

.release-summary {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.45;
}

.release-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #536075;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  }

  .hero-copy-block h1 {
    font-size: 58px;
  }

  .hero-copy-block h2,
  .section h2,
  .product-band h2,
  .privacy-band h2,
  .contact-section h2,
  .platform-heading h2 {
    font-size: 38px;
  }

  .phone-front {
    left: 140px;
    width: 260px;
    height: 578px;
  }

  .phone-middle {
    left: 10px;
    width: 220px;
    height: 489px;
  }

  .phone-back {
    width: 200px;
    height: 444px;
  }

  .android-story {
    gap: 26px;
  }

  .detail-gallery article {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .detail-gallery button {
    width: 112px;
    height: 249px;
  }

  .android-download-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 36px;
  }

  .android-download-copy h1 {
    font-size: 50px;
  }

  .download-page-phone {
    left: 0;
  }

  .download-page-qr {
    width: 166px;
  }

  .download-page-qr img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
  }

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

  .hero-copy-block {
    max-width: 680px;
  }

  .device-stage {
    width: min(100%, 600px);
    height: 580px;
    margin: 0 auto;
  }

  .phone-front {
    left: 34%;
  }

  .phone-middle {
    left: 7%;
  }

  .hero-facts,
  .capability-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts div:last-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid rgba(168, 180, 202, 0.54);
  }

  .capability-list article:nth-child(2) {
    border-right: 0;
  }

  .capability-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .capability-list article:nth-child(3) {
    padding-left: 0;
  }

  .platform-heading,
  .privacy-layout,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .android-story {
    grid-template-columns: minmax(190px, 0.72fr) minmax(270px, 1fr);
  }

  .secondary-shot {
    display: none;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery article,
  .detail-gallery article:nth-last-child(-n + 2) {
    grid-column: auto;
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .detail-gallery button {
    width: 150px;
    height: 333px;
  }

  .mac-stage {
    min-height: 460px;
    padding-right: 40px;
  }

  .mac-menu {
    width: 190px;
  }

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

  .contact-section {
    gap: 34px;
  }

  .changelog-layout {
    grid-template-columns: 1fr;
  }

  .changelog-nav {
    position: static;
  }

  .changelog-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .version-link {
    padding-right: 10px;
  }

  .android-download-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 0 56px;
  }

  .android-download-copy {
    max-width: 680px;
  }

  .android-download-showcase {
    width: min(100%, 520px);
    height: 500px;
    margin: 0 auto;
  }

  .download-page-phone {
    left: 20%;
    width: 210px;
    height: 467px;
  }

  .download-page-qr {
    right: 4%;
  }

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

  .android-release-facts > div:nth-child(2) {
    border-right: 0;
  }

  .android-release-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .android-release-facts > div:nth-child(3) {
    padding-left: 0;
  }

  .android-install-section,
  .android-file-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 76px;
  }

  body.android-download-page {
    padding-bottom: 0;
  }

  .hero-home {
    min-height: auto;
  }

  .section-contained,
  .hero-grid,
  .hero-facts,
  .nav,
  .footer,
  .doc-page,
  .changelog-page {
    width: min(100% - 28px, var(--content));
  }

  .hero-grid {
    gap: 0;
    padding-top: 30px;
    padding-bottom: 14px;
  }

  .hero-copy-block h1 {
    margin-bottom: 12px;
    font-size: 40px;
  }

  .hero-copy-block h2 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .android-hero-qr-popover {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .device-stage {
    width: min(100%, 390px);
    height: 310px;
    margin-top: 12px;
  }

  .phone-frame {
    border-width: 4px;
    border-radius: 20px;
  }

  .phone-front {
    top: 0;
    left: 31%;
    width: 136px;
    height: 302px;
  }

  .phone-middle {
    top: 38px;
    left: -2%;
    width: 114px;
    height: 253px;
  }

  .phone-back {
    top: 52px;
    right: -4%;
    width: 103px;
    height: 229px;
  }

  .hero-facts,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts div,
  .hero-facts div:first-child,
  .hero-facts div:last-child {
    grid-column: auto;
    min-height: 78px;
    padding: 10px 8px;
    border-top: 0;
    border-right: 1px solid rgba(168, 180, 202, 0.54);
  }

  .hero-facts div:last-child {
    border-right: 0;
  }

  .hero-facts strong {
    font-size: 14px;
  }

  .hero-facts span {
    font-size: 11px;
    line-height: 1.45;
  }

  .section,
  .product-band {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section h2,
  .product-band h2,
  .privacy-band h2,
  .contact-section h2,
  .platform-heading h2 {
    font-size: 32px;
  }

  .capability-list article,
  .capability-list article:first-child,
  .capability-list article:nth-child(3) {
    min-height: 160px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-list article:last-child {
    border-bottom: 0;
  }

  .capability-index {
    margin-bottom: 22px;
  }

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

  .android-story {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
  }

  .story-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
    margin-bottom: 20px;
  }

  .story-copy h3 {
    font-size: 29px;
  }

  .tall-shot,
  .secondary-shot {
    display: block;
    height: 390px;
    border-width: 4px;
    border-radius: 20px;
    transform: none;
  }

  .detail-gallery {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 278px;
    gap: 18px;
    overflow-x: auto;
    margin: 56px -14px 0;
    padding: 0 14px 20px;
    scroll-snap-type: x mandatory;
  }

  .detail-gallery article {
    grid-template-columns: 124px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .detail-gallery button {
    width: 124px;
    height: 276px;
  }

  .gallery-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
  }

  .gallery-progress strong {
    color: var(--text);
  }

  .gallery-progress-track {
    width: 88px;
    height: 3px;
    overflow: hidden;
    background: #d5deea;
  }

  .gallery-progress-track > span {
    width: 20%;
    height: 100%;
    display: block;
    background: var(--indigo);
    transition: width 0.18s ease;
  }

  .macos-section {
    padding-bottom: 92px;
  }

  .mac-stage {
    min-height: 245px;
    padding: 0 24px 24px 0;
  }

  .mac-window {
    width: calc(100% - 28px);
  }

  .mac-menu {
    width: 92px;
  }

  .privacy-band {
    padding: 72px 0;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-copy > p {
    font-size: 16px;
  }

  .download-card {
    padding: 22px;
  }

  .download-card h3 {
    font-size: 23px;
  }

  .download-card-head {
    gap: 12px;
  }

  .android-download-actions {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .android-qr-link {
    display: none;
  }

  .copy-block pre {
    padding: 48px 12px 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .copy-btn {
    right: auto;
    left: 8px;
  }

  .footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .mobile-download-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-top: 1px solid #cfd7e5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 30px rgba(31, 46, 82, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .mobile-download-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-download-bar > span {
    font-size: 13px;
  }

  .mobile-download-bar .button {
    width: auto;
    min-height: 42px;
    padding: 0 18px;
  }

  .doc-page {
    padding: 52px 0 80px;
  }

  .doc-page > h1,
  .changelog-head h1 {
    font-size: 38px;
  }

  .doc-page > h2 {
    margin-top: 38px;
    font-size: 24px;
  }

  .changelog-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .changelog-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .changelog-actions > :last-child {
    grid-column: 1 / -1;
  }

  .changelog-nav-title {
    display: none;
  }

  .changelog-nav-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface);
    font-weight: 750;
    cursor: pointer;
  }

  .changelog-timeline {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .changelog-timeline.is-open {
    display: grid;
  }

  .doc-card {
    padding: 20px;
  }

  .download-nav-back {
    font-size: 13px;
  }

  .android-download-hero-inner,
  .android-release-facts,
  .android-install-section {
    width: min(100% - 28px, var(--content));
  }

  .android-download-hero-inner {
    gap: 30px;
    padding: 40px 0 34px;
  }

  .android-download-copy h1 {
    margin-bottom: 16px;
    font-size: 38px;
  }

  .android-download-intro {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .android-download-primary {
    display: grid;
    gap: 10px;
  }

  .android-download-showcase {
    height: 312px;
  }

  .download-page-phone {
    left: 50%;
    width: 138px;
    height: 307px;
    border-width: 4px;
    border-radius: 21px;
    transform: translateX(-50%);
  }

  .download-page-qr {
    display: none;
  }

  .android-release-facts > div,
  .android-release-facts > div:first-child,
  .android-release-facts > div:nth-child(3) {
    min-height: 98px;
    padding: 16px 12px;
  }

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

  .android-install-section {
    gap: 28px;
    padding: 72px 0;
  }

  .android-install-heading h2,
  .android-file-section h2 {
    font-size: 31px;
  }

  .android-install-flow li {
    padding: 18px 0;
  }

  .android-file-section {
    gap: 28px;
    padding: 72px 14px;
  }

  .android-file-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .android-download-footer {
    width: min(100% - 28px, var(--content));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
