:root {
  --bg: #f2f5f8;
  --bg-soft: #eaf1f8;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-soft: #3a3a3c;
  --muted: #8e8e93;
  --line: #d7e0ea;
  --accent: #007aff;
  --accent-deep: #0062cc;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --accent-glow: rgba(0, 122, 255, 0.28);
  --warn: #b54708;
  --warn-bg: #fff4e8;
  --note: #007aff;
  --note-bg: rgba(0, 122, 255, 0.08);
  --nav-h: 3.75rem;
  --sidebar-w: 16.5rem;
  --radius: 0.9rem;
  --radius-sm: 0.65rem;
  --shadow: 0 1px 2px rgba(28, 28, 30, 0.04), 0 10px 28px rgba(0, 122, 255, 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.15em;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

pre {
  overflow-x: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

pre code {
  background: none;
  padding: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 122, 255, 0.25);
}

.brand__text span,
.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

/* Hero — full-bleed brand + device composition */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
}

.hero__plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 40%, rgba(255, 255, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 70%, rgba(0, 40, 120, 0.35), transparent 60%),
    linear-gradient(155deg, #1a9bff 0%, #007aff 42%, #0051d4 78%, #003ea8 100%);
}

.hero__aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 78% 35%, rgba(90, 200, 255, 0.22), transparent 38%);
  animation: heroAurora 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroAurora {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); opacity: 0.75; }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(38rem, 100%);
  padding:
    clamp(2.5rem, 8vh, 5rem)
    1.25rem
    clamp(2.5rem, 8vh, 5rem)
    max(1.5rem, calc((100vw - 1180px) / 2 + 1.25rem));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: heroRise 0.85s var(--ease) both;
}

.hero__mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.hero__icon {
  width: clamp(56px, 10vw, 72px);
  height: clamp(56px, 10vw, 72px);
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 14px 32px rgba(0, 30, 90, 0.35);
  animation: heroIconPulse 3.4s ease-in-out infinite alternate;
}

@keyframes heroIconPulse {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.04); filter: brightness(1.06); }
}

.hero__brand {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__headline {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero .cta-row {
  justify-content: flex-start;
  gap: 0.75rem;
}

.hero .btn {
  min-height: 2.85rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.98rem;
}

.hero .btn--primary {
  background: #fff;
  color: #007aff;
  box-shadow: 0 10px 28px rgba(0, 30, 90, 0.22);
}

.hero .btn--primary:hover {
  background: #f2f8ff;
  color: #0062cc;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  pointer-events: none;
  animation: heroRise 1s var(--ease) 0.12s both;
}

.hero__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 20, 70, 0.45) 0%, transparent 70%);
  filter: blur(18px);
  transform: translate(-42%, 210%) scaleY(0.55);
  pointer-events: none;
}

.hero__shot {
  position: relative;
  width: min(26vw, 260px);
  max-width: none;
  height: auto;
  margin: 0 -2vw 0 0;
  filter: drop-shadow(0 30px 50px rgba(0, 20, 70, 0.45));
  animation: heroFloat 7s ease-in-out infinite alternate;
  transform-origin: 70% 100%;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-10px, -14px, 0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: #fff;
  color: var(--ink);
}

.btn--primary:hover {
  background: #f3f5f7;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Home */
.home-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-section {
  padding: clamp(3rem, 7vw, 4.75rem) 0;
  background: var(--surface);
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
}

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

.home-section--features,
.home-section--compat,
.home-section--setup,
.home-section--trust {
  background: var(--bg-soft);
}

.home-section--whats-new {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(0, 122, 255, 0.08), transparent 55%),
    var(--surface);
}

.home-section--download {
  background:
    linear-gradient(180deg, #eaf3ff 0%, #f4f8fc 100%);
}

.home-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.home-title {
  font-weight: 800;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 0.85rem;
  max-width: 20ch;
}

.home-lead {
  margin: 0 0 1.75rem;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.home-section--intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 0% 20%, rgba(0, 122, 255, 0.1), transparent 58%),
    radial-gradient(ellipse 45% 55% at 100% 80%, rgba(0, 122, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #eef5fc 0%, #f7fafc 42%, #ffffff 100%);
  border-top: none;
}

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

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.home-intro__lead {
  position: relative;
  padding-left: 1.15rem;
}

.home-intro__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 122, 255, 0.2) 100%);
}

.home-intro .home-title {
  max-width: 14ch;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  margin-bottom: 1rem;
}

.home-intro .home-lead {
  max-width: 36ch;
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  color: var(--ink);
}

.home-intro__note {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-intro__caps {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  display: grid;
  gap: 0;
  border-top: 1px solid #c9daf0;
  border-bottom: 1px solid #c9daf0;
}

.home-intro__caps li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #d7e4f4;
}

.home-intro__caps li:last-child {
  border-bottom: 0;
}

.home-intro__caps strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-intro__caps span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.home-section--story {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.home-story__lead {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.home-story .home-title {
  max-width: 16ch;
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  margin-bottom: 1rem;
}

.home-story__dek {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-story__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}

.home-story__steps li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid #d7e4f4;
}

.home-story__steps li:first-child {
  padding-top: 0.15rem;
}

.home-story__steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.home-story__num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.6;
  padding-top: 0.1rem;
}

.home-story__steps strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.home-story__steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 42ch;
}

.home-story__points {
  grid-column: 1 / -1;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid #c9daf0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.home-story__points li {
  position: relative;
  padding-left: 1.05rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.4;
}

.home-story__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

.feature-grid li {
  padding: 0;
  border: 0;
  background: transparent;
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
  animation: riseIn 0.7s var(--ease) both;
}

.feature-grid li:nth-child(2) { animation-delay: 0.04s; }
.feature-grid li:nth-child(3) { animation-delay: 0.08s; }
.feature-grid li:nth-child(4) { animation-delay: 0.12s; }
.feature-grid li:nth-child(5) { animation-delay: 0.16s; }
.feature-grid li:nth-child(6) { animation-delay: 0.2s; }
.feature-grid li:nth-child(7) { animation-delay: 0.24s; }
.feature-grid li:nth-child(8) { animation-delay: 0.28s; }
.feature-grid li:nth-child(9) { animation-delay: 0.32s; }

.feature-grid h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

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

.whats-new__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.whats-new__item:nth-child(odd) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.whats-new__item:nth-child(even) {
  padding-left: 1.5rem;
}

.whats-new__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.whats-new__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.home-download {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.home-download__note {
  margin: -0.75rem 0 1.35rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.download-picks li {
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0.3rem;
}

.download-picks strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.download-picks span {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.compat-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.compat-list strong {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.compat-list span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.device-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.device-column h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--accent);
}

.device-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.device-column li {
  color: var(--ink-soft);
  font-size: 0.97rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.device-column li:last-child {
  border-bottom: 0;
}

.home-setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.setup-steps {
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-steps p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.setup-path {
  font-family: var(--font-mono);
  font-size: 0.88rem !important;
  color: var(--ink) !important;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.setup-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  text-decoration: none;
}

.setup-link:hover {
  text-decoration: underline;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item[open] {
  border-color: #9ec5f5;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
  position: relative;
  padding-right: 2.5rem;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  max-width: 52ch;
  animation: riseIn 0.35s var(--ease) both;
}

.faq-more {
  margin: 1.25rem 0 0;
}

.faq-more a {
  font-weight: 700;
  text-decoration: none;
}

.faq-more a:hover {
  text-decoration: underline;
}

.home-trust {
  max-width: 42rem;
}

.home-trust p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

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

.home-close {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(0, 122, 255, 0.04));
}

.home-close__title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.home-close p {
  margin: 0 0 1.15rem;
  max-width: 44ch;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Top-level content pages */
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  animation: riseIn 0.45s var(--ease) both;
}

.page-article h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}

.page-article h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.page-article h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.page-article p,
.page-article ul,
.page-article ol,
.page-article table {
  margin: 0 0 0.95rem;
}

.page-article ul,
.page-article ol {
  padding-left: 1.2rem;
}

.page-article li {
  margin-bottom: 0.3rem;
}

.page-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.page-article th,
.page-article td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
  min-width: 7rem;
}

.page-article th {
  background: var(--accent-soft);
  font-weight: 600;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.page-links a {
  font-weight: 600;
  text-decoration: none;
}

.page-links a:hover {
  text-decoration: underline;
}

.release-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.release-tag--stable {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: #c8ddf8;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.download-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.download-item:hover {
  transform: translateY(-2px);
  border-color: #9ec5f5;
  background: #fff;
  color: inherit;
}

.download-item strong {
  font-size: 1rem;
}

.download-item span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.download-item__action {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--accent-deep) !important;
}

@media (max-width: 700px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* Docs */
.docs-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 0.85rem);
  max-height: calc(100vh - var(--nav-h) - 1.75rem);
  overflow: auto;
  padding: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.docs-sidebar h2 {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.docs-nav > li {
  margin-bottom: 0.75rem;
}

.docs-nav a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.2rem 0 0.2rem 0.55rem;
  border-left: 2px solid transparent;
}

.docs-nav a:hover {
  color: var(--ink);
}

.docs-nav a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

.docs-nav .nav-group-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.3rem 0 0.2rem;
  padding-left: 0.55rem;
}

.docs-nav .nav-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
}

.docs-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
  animation: riseIn 0.45s var(--ease) both;
}

.docs-article h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.docs-article h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.docs-article h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
}

.docs-article p,
.docs-article ul,
.docs-article ol,
.docs-article table {
  margin: 0 0 0.95rem;
}

.docs-article ul,
.docs-article ol {
  padding-left: 1.2rem;
}

.docs-article li {
  margin-bottom: 0.3rem;
}

.docs-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.docs-article th,
.docs-article td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
  min-width: 7.5rem;
}

.docs-article th {
  background: var(--accent-soft);
  font-weight: 600;
}

.callout {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
}

.callout--warn {
  background: var(--warn-bg);
  border-color: #e4d0ba;
  color: var(--warn);
}

.callout--note {
  background: var(--note-bg);
  border-color: #c5d8e6;
  color: var(--note);
}

.callout strong {
  display: block;
  margin-bottom: 0.2rem;
  color: inherit;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.pager a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.pager a:hover {
  color: var(--accent-deep);
}

.pager span {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.official-sources {
  margin-top: 1.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid #c8ddf8;
  font-size: 0.95rem;
}

.docs-mobile-bar {
  display: none;
  margin-bottom: 0.65rem;
}

.sidebar-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

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

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.7rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    padding: clamp(2rem, 6vh, 3rem) 1.5rem 1.25rem;
  }

  .hero__mark {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__headline,
  .hero__lead {
    max-width: 28ch;
  }

  .hero .cta-row {
    justify-content: center;
  }

  .hero__visual {
    min-height: 0;
    justify-content: center;
    align-items: flex-end;
    margin-top: 0.5rem;
  }

  .hero__visual::before {
    right: 50%;
    transform: translateX(50%) scaleY(0.55);
    width: 70%;
  }

  .hero__shot {
    width: min(36vw, 140px);
    margin: 0 0 -1.5vh;
    animation: none;
  }

  .home-intro,
  .home-story,
  .home-download,
  .home-setup,
  .feature-grid,
  .whats-new,
  .compat-list,
  .device-columns {
    grid-template-columns: 1fr;
  }

  .home-story__lead {
    position: static;
  }

  .home-story .home-title {
    max-width: 20ch;
  }

  .home-story__points {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .whats-new__item:nth-child(odd),
  .whats-new__item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .home-title {
    max-width: 22ch;
  }

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-mobile-bar {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    z-index: 35;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: min(19rem, 88vw);
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
  }

  body.sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(26, 31, 36, 0.35);
    z-index: 30;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
}
