:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  color: #152422;
  background: #f5f8f7;
  --brand: #0b6f61;
  --brand-dark: #074b42;
  --coral: #e86856;
  --ink: #152422;
  --muted: #61716e;
  --line: #d7e0de;
  --surface: #ffffff;
  --soft: #eaf3f1;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #f5f8f7; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: #084f46;
  color: #fff;
}
.header-inner, .hero-inner, .release-inner, .content-section, .security-inner, .footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { width: 38px; height: 38px; flex: 0 0 38px; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-switch { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; overflow: hidden; }
.language-switch button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: #fff; letter-spacing: 0; }
.language-switch button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); font-weight: 800; }

.download-hero { background: #0b6f61; color: #fff; overflow: hidden; }
.hero-inner { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: center; gap: 64px; padding: 54px 0 62px; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: .79rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.download-hero .eyebrow { color: #ffd0c9; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: 3.15rem; line-height: 1.1; letter-spacing: 0; }
.lead { max-width: 680px; margin: 20px 0 0; color: #e4f2ef; font-size: 1.15rem; line-height: 1.8; }
.edition-selector { max-width: 720px; margin-top: 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.edition-selector button { position: relative; min-width: 0; min-height: 102px; padding: 13px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid rgba(255,255,255,.4); border-radius: 7px; background: rgba(5,61,53,.38); color: #fff; text-align: start; }
.edition-selector button[aria-pressed="true"] { border-color: #fff; background: #fff; color: var(--brand-dark); box-shadow: 0 8px 24px rgba(2,42,36,.2); }
.edition-selector button > i { margin-top: 3px; font-size: 20px; }.edition-selector button span { min-width: 0; display: grid; gap: 5px; }.edition-selector button strong { font-size: .96rem; }.edition-selector button small { color: #d5ebe6; line-height: 1.4; }.edition-selector button[aria-pressed="true"] small { color: var(--muted); }
.edition-selector button:first-child span { padding-inline-end: 72px; }
.edition-selector button > b { position: absolute; top: 8px; inset-inline-end: 8px; padding: 3px 6px; border-radius: 4px; background: #e86856; color: #fff; font-size: .63rem; }
.edition-compatibility { margin: 9px 0 0; color: #d5ebe6; font-size: .82rem; }
.download-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 30px; }
.download-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 2px solid #fff; border-radius: 7px; background: #fff; color: var(--brand-dark); font-weight: 900; text-decoration: none; box-shadow: 0 12px 28px rgba(2,42,36,.22); }
.download-button:hover { background: #f5fffc; }
.download-button.disabled { pointer-events: none; opacity: .65; }
.download-button i { font-size: 1.05rem; }
.icon-button { width: 54px; min-width: 54px; min-height: 54px; border: 1px solid rgba(255,255,255,.65); border-radius: 7px; background: transparent; color: #fff; font-size: 1rem; }
.icon-button:hover { background: rgba(255,255,255,.12); }
.release-status, .device-hint { margin: 15px 0 0; color: #d5ebe6; font-size: .91rem; }
.release-status.error { color: #ffd0c9; }
.device-hint { max-width: 650px; padding-inline-start: 12px; border-inline-start: 3px solid #ffc65a; color: #fff0cb; }
.product-visual { display: grid; justify-items: center; gap: 20px; }
.icon-stage { display: grid; width: 246px; max-width: 80%; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 8px; background: #f4fbf9; box-shadow: 22px 24px 0 #e86856; }
.icon-stage img { width: 78%; height: 78%; object-fit: contain; }
.platform-label { display: inline-flex; align-items: center; gap: 9px; color: #e4f2ef; font-weight: 700; }

.release-band { border-bottom: 1px solid var(--line); background: var(--surface); }
.release-inner { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(230px, 1.5fr); }
.release-inner > div { min-width: 0; padding: 20px 22px; border-inline-end: 1px solid var(--line); }
.release-inner > div:first-child { padding-inline-start: 0; }
.release-inner > div:last-child { border-inline-end: 0; padding-inline-end: 0; }
.release-inner span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; }
.release-inner strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.integrity-item { position: relative; padding-inline-end: 48px !important; }
.integrity-item strong { font-family: Consolas, monospace; font-size: .76rem; direction: ltr; text-align: start; }
.copy-hash { position: absolute; inset-inline-end: 0; top: 24px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--brand); }

.content-section { padding-top: 76px; padding-bottom: 82px; }
.section-heading { max-width: 690px; }
.section-heading > p:last-child { margin:14px 0 0; color:var(--muted); line-height:1.7; }
h2 { margin: 0; color: var(--ink); font-size: 2rem; line-height: 1.25; letter-spacing: 0; }
.platform-section { padding-bottom:18px; }
.platform-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:30px; }
.platform-card { min-width:0; min-height:150px; padding:22px; display:grid; grid-template-columns:48px minmax(0,1fr); gap:16px; align-items:start; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.platform-card > i { width:48px; height:48px; display:grid; place-items:center; border-radius:7px; background:#edf1f0; color:#687673; font-size:21px; }
.platform-card.available { border-color:#8ccaba; }.platform-card.available > i { background:#dff4ed; color:var(--brand); }
.platform-card h3 { margin:1px 0 8px; font-size:1.05rem; }.platform-card p { margin:0 0 13px; color:var(--muted); line-height:1.55; font-size:.9rem; }.platform-card strong { color:var(--brand); font-size:.8rem; }.platform-card:not(.available) strong { color:#8a6c24; }
.web-app-card { color:inherit; text-decoration:none; }.web-app-card:hover { border-color:#4eac93; background:#f6fcfa; }
.download-statistics-section { border-top:1px solid var(--line); }.download-statistics-toolbar { display:grid; grid-template-columns:repeat(3,minmax(150px,1fr)) auto; gap:12px; align-items:end; margin-top:28px; }.download-statistics-toolbar label { display:grid; gap:6px; color:var(--muted); font-size:.82rem; }.download-statistics-toolbar select,.download-statistics-toolbar input { width:100%; min-height:42px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }.download-statistics-toolbar button { min-height:42px; padding:0 15px; border:0; border-radius:6px; background:var(--brand); color:#fff; font-weight:800; }.download-statistics-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }.download-statistics-summary article { padding:17px; border:1px solid var(--line); border-radius:7px; background:#fff; }.download-statistics-summary span { display:block; color:var(--muted); font-size:.8rem; }.download-statistics-summary strong { display:block; margin-top:5px; color:var(--brand-dark); font-size:1.6rem; }.download-statistics-daily { display:grid; gap:6px; margin-top:14px; }.download-statistics-daily article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:20px; align-items:center; padding:10px 13px; border-inline-start:4px solid #e86856; background:#fff; }.download-statistics-daily span { color:var(--muted); font-size:.82rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.steps article { position: relative; min-height: 240px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.steps article > span { position: absolute; inset-inline-end: 20px; top: 15px; color: #c5d1cf; font-size: 2.5rem; font-weight: 900; }
.steps article > i { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 7px; background: var(--soft); color: var(--brand); font-size: 1.15rem; }
.steps h3 { margin: 24px 0 9px; color: var(--ink); font-size: 1.08rem; letter-spacing: 0; }
.steps p, .update-section > p { margin: 0; color: var(--muted); line-height: 1.75; }

.security-section { border-block: 1px solid #123d38; background: #132f2c; color: #fff; }
.security-inner { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 34px; padding-top: 56px; padding-bottom: 56px; }
.security-mark { display: grid; width: 108px; height: 108px; place-items: center; border: 1px solid #557a74; border-radius: 8px; background: #1b4741; color: #67d3bd; font-size: 2rem; }
.security-section h2 { color: #fff; }
.security-section p:not(.eyebrow) { max-width: 820px; margin: 15px 0 0; color: #cfe2de; line-height: 1.8; }
.release-notes { padding: 12px 14px; border-inline-start: 3px solid var(--coral); background: rgba(255,255,255,.05); }
.update-section > p { max-width: 840px; margin-top: 20px; }

footer { padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { color: var(--brand); font-weight: 700; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.noscript { margin: 0; padding: 14px; background: #fff0cb; text-align: center; }

[dir="ltr"] .icon-stage { box-shadow: -22px 24px 0 #e86856; }

@media (max-width: 800px) {
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding: 44px 0 54px; }
  .hero-copy { order: 2; }
  .product-visual { order: 1; }
  .icon-stage { width: 178px; box-shadow: 14px 14px 0 #e86856; }
  [dir="ltr"] .icon-stage { box-shadow: -14px 14px 0 #e86856; }
  h1 { font-size: 2.35rem; }
  .release-inner { grid-template-columns: 1fr 1fr; }
  .release-inner > div, .release-inner > div:first-child, .release-inner > div:last-child { padding: 16px; border: 0; border-bottom: 1px solid var(--line); }
  .release-inner > div:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
	.platform-grid { grid-template-columns:1fr; }
	.download-statistics-toolbar { grid-template-columns:1fr 1fr; }.download-statistics-toolbar button { width:100%; }
  .steps article { min-height: 0; }
}

@media (max-width: 520px) {
  .header-inner, .hero-inner, .release-inner, .content-section, .security-inner, .footer-inner { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 62px; }
  .brand span { font-size: .9rem; }
  .brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .language-switch button { min-height: 34px; padding: 0 8px; font-size: .78rem; }
  .lead { font-size: 1rem; }
  .edition-selector { grid-template-columns: 1fr; }
  .download-actions { display: grid; grid-template-columns: 1fr 54px; }
  .download-button { padding: 0 14px; }
  .release-inner { width: 100%; grid-template-columns: 1fr; }
  .release-inner > div, .release-inner > div:nth-last-child(-n+2) { padding-inline: 18px; border-bottom: 1px solid var(--line); }
  .release-inner > div:last-child { border-bottom: 0; }
  .content-section { padding-top: 58px; padding-bottom: 62px; }
  h2 { font-size: 1.65rem; }
  .security-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
  .security-mark { width: 64px; height: 64px; font-size: 1.35rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 24px; }
	.download-statistics-toolbar,.download-statistics-summary { grid-template-columns:1fr; }.download-statistics-daily article { grid-template-columns:1fr auto; }.download-statistics-daily article span:last-child { grid-column:1/-1; }
}

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