:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #1f2937;
  --muted: #5f6b7a;
  --border: #d9e0ea;
  --border-strong: #c8d1df;
  --brand: #2563eb;
  --brand-dark: #1749a6;
  --brand-soft: #eaf2ff;
  --ios: #147ce5;
  --android: #198754;
  --warning: #9a6700;
  --warning-soft: #fff8d8;
  --shadow: 0 14px 38px rgba(30, 50, 80, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(37, 99, 235, 0.09), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

a {
  color: var(--brand-dark);
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(200, 209, 223, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1b64df, #3b82f6);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 14px;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.language-link {
  margin-left: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 15%, #f4f8ff 100%);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero-actions,
.card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 670;
  text-decoration: none;
}

.button:hover {
  border-color: #9db8e9;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

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

.button-primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.platform-badge,
.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.platform-badge.ios {
  background: #e8f3ff;
  color: #075cae;
}

.platform-badge.android {
  background: #e8f7ef;
  color: #12643e;
}

.version-badge {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.support-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 32px;
}

.side-nav {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
}

.side-nav-title {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav li + li {
  margin-top: 3px;
}

.side-nav a {
  display: block;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.side-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.prose {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(30, 50, 80, 0.055);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 92px;
  color: #172033;
  line-height: 1.28;
}

.prose h2 {
  margin: 2.15em 0 0.75em;
  padding-bottom: 0.42em;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.38rem, 3vw, 1.72rem);
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 1.65em 0 0.55em;
  font-size: 1.14rem;
}

.prose p {
  margin: 0.78em 0;
}

.prose ul,
.prose ol {
  padding-left: 1.45em;
}

.prose li + li {
  margin-top: 0.32em;
}

.prose code {
  padding: 0.16em 0.38em;
  border-radius: 6px;
  background: #eef2f7;
  color: #26364d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f4f7fa;
  line-height: 1.48;
}

.prose pre code {
  padding: 0;
  background: transparent;
  white-space: pre;
  overflow-wrap: normal;
}

.callout {
  margin: 1.25em 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: #f0f6ff;
}

.callout.warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.callout-title {
  display: block;
  margin-bottom: 3px;
  font-weight: 760;
}

.faq-item {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.faq-item summary {
  position: relative;
  padding: 15px 46px 15px 16px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.4;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-52%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  color: #344054;
}

.faq-answer > :first-child {
  margin-top: 0;
}

.release-entry {
  position: relative;
  margin: 18px 0;
  padding: 2px 20px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.release-entry.latest {
  border-color: #9dbcf4;
  background: linear-gradient(155deg, #f6faff, #fff);
  box-shadow: 0 9px 24px rgba(37, 99, 235, 0.08);
}

.release-entry h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0.85em;
}

.release-entry h3 {
  font-size: 1.03rem;
}

.hub-section {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.platform-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(30, 50, 80, 0.055);
}

.platform-card h2 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.platform-card p {
  margin: 0;
  color: var(--muted);
}

.platform-card .meta {
  margin-top: 15px;
  color: var(--text);
  font-size: 14px;
}

.resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.resource-link {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-weight: 680;
  text-decoration: none;
}

.resource-link span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
}

.resource-link:hover {
  border-color: #9db8e9;
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #eef2f7;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

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

@media (max-width: 860px) {
  .header-inner {
    padding: 11px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .side-nav {
    position: static;
    max-height: none;
  }

  .side-nav ol {
    columns: 2;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .page-shell {
    padding-top: 22px;
  }

  .page-hero {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

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

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .side-nav ol {
    columns: 1;
  }

  .prose {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .release-entry {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .side-nav,
  .site-footer,
  .hero-actions {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .page-hero,
  .prose,
  .release-entry {
    border-color: #bbb;
    box-shadow: none;
  }

  .support-layout {
    display: block;
  }
}
