:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: rgba(0, 0, 0, 0.10);
  --blue: #0071e3;
  --blue-dark: #005bbd;
  --green: #16833a;
  --star: #ffb000;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.08);
  --primary-color: var(--blue);
  --primary-dark: var(--blue-dark);
  --primary-light: #eef5ff;
  --border-light: var(--line);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --radius-small: var(--radius-sm);
  --radius-medium: var(--radius-md);
  --shadow-heavy: var(--shadow);
  --shadow-light: var(--shadow-soft);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.top-shell,
.content-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.content-shell {
  padding-bottom: clamp(56px, 8vw, 112px);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  margin-bottom: 22px;
}

.stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.stat {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.stat.is-visible { display: inline-flex; }

.stat i {
  color: var(--blue);
  font-size: 15px;
}

.read-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  text-align: center;
}

.hero-bottom-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 42px 16px 46px;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.08) 0%,
    rgba(10, 10, 10, 0.42) 30%,
    rgba(10, 10, 10, 0.78) 68%,
    rgba(10, 10, 10, 0.96) 100%
  );
}

.hero-bottom-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.read-stat-label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.read-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  --read-digit-height: 72px;
  --read-roll-duration: 3800ms;
}

.read-counter-digit {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: var(--read-digit-height);
  padding: 0 8px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  background: linear-gradient(to bottom, #3a3a3a 0%, #3a3a3a 50%, #2a2a2a 50%, #2a2a2a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 4px 8px rgba(0,0,0,0.5);
  color: #FACC15;
  font-size: 44px;
  font-family: 'Oswald', 'Impact', 'Arial Black', sans-serif;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.read-counter-digit-strip {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform var(--read-roll-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.read-counter-digit.is-rolling .read-counter-digit-strip {
  transform: translateY(var(--read-roll-offset, 0));
}

.read-counter-digit.is-new-place {
  animation: readCounterNewPlace 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.read-counter-digit.is-new-place::before {
  content: "";
  position: absolute;
  inset: -30% -80%;
  z-index: 2;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
  transform: translateX(-70%);
  animation: readCounterShine 820ms ease-out 140ms both;
  pointer-events: none;
}

.read-counter-digit-value {
  display: grid;
  place-items: center;
  height: var(--read-digit-height);
  line-height: 1;
  transform: translateY(-0.02em);
}

.read-counter-digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: #111;
  transform: translateY(-50%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  z-index: 1;
}

.read-counter-separator {
  display: inline-flex;
  align-items: flex-end;
  height: var(--read-digit-height);
  padding: 0 2px 10px;
  color: var(--subtle);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

@keyframes readCounterNewPlace {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes readCounterShine {
  0% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  color: var(--star);
  line-height: 0;
  transform: translateY(1px);
}

.stars svg {
  width: 11px;
  height: 11px;
  display: block;
}

.langs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.lang.active {
  color: var(--text);
  background: #fff;
  font-weight: 600;
}

.lang-select {
  min-width: 92px;
  appearance: none;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 12px,
    calc(100% - 10px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hero {
  position: relative;
  width: 100%;
  min-height: min(920px, calc(100vh - 56px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-image: url("../images/immersive-reading-hero-wide.png");
  background-size: cover;
  background-position: center bottom;
  transform: translate3d(0, var(--hero-parallax, 0px), 0) scale(1.05);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.56)),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 44%);
}

.hero-content {
  width: min(1120px, 100%);
  padding: 108px 24px 248px;
  text-align: center;
  color: #fff;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.eyebrow {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 650;
}

h1 {
  max-width: 1120px;
  margin: 14px auto 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 760;
  white-space: nowrap;
}

.lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.55;
  font-weight: 400;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

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

.button.primary:hover { background: var(--blue-dark); }

.button.secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 113, 227, 0.22);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-family: inherit;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.section {
  position: relative;
  margin-top: 34px;
  padding: 60px 44px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.section.center { text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  margin: 0 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: #eef5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 740;
}

.section-desc {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}

.card {
  min-height: 230px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 23px;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 34px;
  align-items: center;
}

.details-copy {
  text-align: center;
  display: contents;
}

.details-copy .kicker,
.details-copy h2,
.details-copy .section-desc {
  grid-column: 1 / -1;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.details-visual {
  grid-column: 2;
  grid-row: 4;
  width: min(100%, 460px);
  justify-self: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.details-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 64 / 37;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.feature-list {
  grid-column: 1;
  grid-row: 4;
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.feature {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feature i {
  color: var(--green);
  font-size: 21px;
  transform: translateY(1px);
}

.feature strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
  text-align: left;
}

.step {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.step img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--text);
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 14px;
}

.step strong {
  display: block;
  font-size: 16px;
  line-height: 1.32;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.feature-card {
  display: flex;
  gap: 18px;
  min-height: 126px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  color: #fff;
  font-size: 20px;
  background: var(--blue);
}

.feature-icon.blue { background: #2563eb; }
.feature-icon.purple { background: #7c3aed; }
.feature-icon.green { background: #178f3f; }
.feature-icon.orange { background: #f08300; }

.feature-body h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.feature-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.tag-new {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: 5px;
  background: #ff4d12;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 760;
}

.cta {
  margin-top: 34px;
  padding: 62px 44px;
  text-align: center;
  color: #fff;
  background: #1d1d1f;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta h2 { color: #fff; }

.cta p {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.cta .actions { margin-top: 30px; }
.cta .button.primary { background: #fff; color: var(--text); }
.cta .button.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }

.release-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.52);
  backdrop-filter: blur(18px);
}

.release-modal.is-open { display: flex; }

.release-dialog {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--line);
}

.release-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.release-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.release-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
}

.release-close:hover {
  color: var(--text);
  background: #fff;
}

.release-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.release-body {
  max-height: calc(min(760px, 100vh - 48px) - 150px);
  overflow: auto;
  padding: 8px 30px 30px;
}

.release-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.release-item:last-child { border-bottom: 0; }

.release-date {
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.release-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.release-content p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.release-content ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.release-content li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.release-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.rm-guide {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 320px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-heavy);
  font-size: 13px;
}

.rm-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.rm-guide-title {
  font-size: 12px;
  font-weight: 600;
}

.rm-guide-badge {
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
}

.rm-guide-progress {
  height: 2px;
  background: var(--border-light);
}

.rm-guide-progress-bar {
  width: 20%;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.rm-guide-body {
  padding: 14px;
}

.rm-guide-img {
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius-small);
  line-height: 0;
}

.rm-guide-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-light);
}

.rm-guide-step {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.rm-guide-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
}

.rm-guide-step-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.rm-guide-desc {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.65;
}

.rm-guide-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 11px;
}

.rm-guide-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
}

.rm-guide-dot.is-active {
  width: 14px;
  border-radius: 3px;
  background: var(--primary-color);
}

.rm-guide-actions {
  display: flex;
  gap: 7px;
}

.rm-guide-button {
  padding: 7px 0;
  border-radius: var(--radius-small);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.rm-guide-button-prev {
  flex: 1;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-secondary);
  visibility: hidden;
}

.rm-guide-button-next {
  flex: 2;
  border: 0;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .langs { justify-content: flex-start; }
  .hero {
    min-height: 840px;
  }
  .hero-content {
    padding-bottom: 226px;
  }
  h1 { white-space: normal; }
  .hero-bottom-panel {
    padding-top: 34px;
    padding-bottom: 38px;
  }
  .read-counter {
    --read-digit-height: 66px;
  }
  .read-counter-digit {
    min-width: 48px;
    height: var(--read-digit-height);
    font-size: 40px;
  }
  .capabilities { grid-template-columns: 1fr; }
  .details-layout {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .details-visual {
    grid-column: 1;
    grid-row: auto;
    width: min(540px, 100%);
    margin: 0 auto;
  }
  .feature-list {
    grid-column: 1;
    grid-row: auto;
    max-width: 640px;
    margin: 0 auto;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .top-shell,
  .content-shell { padding-left: 12px; padding-right: 12px; }
  .content-shell { padding-bottom: 44px; }
  .top-shell { padding-top: 14px; }
  .topbar { align-items: stretch; }
  .stats,
  .langs {
    width: 100%;
    justify-content: flex-start;
  }
  .langs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .langs::-webkit-scrollbar { display: none; }
  .lang { flex: 0 0 auto; }
  .hero {
    min-height: 760px;
  }
  .hero-content {
    padding: 70px 18px 190px;
  }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .app-icon { width: 72px; height: 72px; }
  .lead { font-size: 18px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-bottom-panel {
    padding: 28px 12px 32px;
  }
  .read-stat { gap: 14px; }
  .read-stat-label {
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .read-counter {
    gap: 4px;
    flex-wrap: wrap;
    --read-digit-height: 50px;
  }
  .read-counter-digit {
    min-width: 34px;
    height: var(--read-digit-height);
    padding: 0 5px;
    border-radius: 6px;
    font-size: 29px;
  }
  .read-counter-digit::after { height: 2px; }
  .read-counter-separator {
    height: var(--read-digit-height);
    padding-bottom: 8px;
    font-size: 22px;
  }
  .section { padding: 40px 22px; border-radius: 22px; }
  .cta { padding: 40px 22px; border-radius: 22px; }
  .details-visual { border-radius: 18px; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .release-modal { padding: 12px; align-items: flex-end; }
  .release-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }
  .release-head { padding: 22px 20px 16px; }
  .release-head h2 { font-size: 24px; }
  .release-body {
    max-height: calc(100vh - 190px);
    padding: 4px 20px 24px;
  }
  .release-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
}

/* Language-aware layout refinements */
html[lang^="ar"] body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

html[lang^="ar"] h1,
html[lang^="de"] h1,
html[lang^="ru"] h1,
html[lang^="th"] h1 {
  white-space: normal;
}

html[dir="rtl"] .topbar {
  direction: rtl;
}

html[dir="rtl"] .langs {
  justify-content: flex-start;
}

html[dir="rtl"] .lang-select {
  padding-right: 10px;
  padding-left: 28px;
  background-position:
    10px 12px,
    15px 12px;
}

html[dir="rtl"] .capabilities,
html[dir="rtl"] .feature-list,
html[dir="rtl"] .steps,
html[dir="rtl"] .feature-grid {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .feature-list {
  grid-column: 2;
}

html[dir="rtl"] .details-visual {
  grid-column: 1;
}

html[dir="rtl"] .feature-card,
html[dir="rtl"] .feature {
  direction: rtl;
}

html[dir="rtl"] .feature-body h3 {
  justify-content: flex-start;
}

html[dir="rtl"] .release-head,
html[dir="rtl"] .release-item {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .release-content li {
  padding-left: 0;
  padding-right: 14px;
}

html[dir="rtl"] .release-content li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] #rm-guide {
  right: auto !important;
  left: 20px !important;
  direction: rtl;
}

@media (max-width: 980px) {
  html[dir="rtl"] .feature-list,
  html[dir="rtl"] .details-visual {
    grid-column: 1;
  }
}
