:root {
  --ink: #17232d;
  --muted: #526674;
  --paper: #f3f8fc;
  --panel: #ffffff;
  --line: #cbdde9;
  --night: #081923;
  --deep: #00395d;
  --deep-2: #0d2635;
  --blue: #0067a8;
  --accent: #00a4ef;
  --accent-ink: #0067a8;
  --accent-soft: #d9effb;
  --accent-light: #7bd3fb;
  --accent-pale: #d7effc;
  --amber: #f2be63;
  --amber-soft: #423217;
  --red: #ff8d8d;
  --purple: #cf9cff;
  --shadow: 0 18px 54px rgba(0, 79, 130, 0.22), 0 2px 8px rgba(0, 79, 130, 0.12);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  color: #eff8fd;
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.research-panel :focus-visible,
.screenshot-section :focus-visible,
.languages-section :focus-visible,
.features-section :focus-visible,
.release-section :focus-visible,
.download-section :focus-visible,
.site-footer :focus-visible,
.legal-page :focus-visible {
  outline-color: var(--accent-light);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: rgba(0, 57, 93, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(238, 249, 255, 0.82);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 84svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: var(--deep);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -2;
}

.hero::before {
  background-image: url("docs/screenshots/pc-reader.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero::after {
  z-index: -1;
  background: rgba(0, 39, 65, 0.74);
}

.hero-inner {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 72px;
  text-align: center;
}

.hero-version {
  margin: 0 0 16px;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(238, 249, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.release-warning {
  display: grid;
  gap: 4px;
  max-width: 680px;
  margin: 24px auto 0;
  border: 1px solid rgba(242, 190, 99, 0.72);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 16px 18px;
  color: #fff1d2;
  background: rgba(66, 50, 23, 0.88);
  text-align: left;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.release-warning strong {
  color: var(--amber);
}

.release-warning span {
  color: rgba(255, 241, 210, 0.86);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.primary-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--accent-light);
  box-shadow: 0 18px 44px rgba(0, 103, 168, 0.3);
}

.secondary-button {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.intro-grid,
.feature-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.intro-grid article,
.feature-grid article {
  min-height: 186px;
  padding: 28px;
  background: var(--deep-2);
}

.intro-grid span {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-grid h3,
.feature-grid h3 {
  display: block;
  margin-top: 8px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(1.14rem, 2vw, 1.45rem);
  line-height: 1.12;
}

.intro-grid p,
.feature-grid p {
  margin: 0;
  color: rgba(238, 249, 255, 0.72);
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.download-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.download-section p {
  margin: 18px auto 0;
  color: rgba(238, 249, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.learning-section {
  color: #eff8fd;
  background:
    radial-gradient(circle at 8% 5%, rgba(0, 164, 239, 0.14), transparent 30%),
    radial-gradient(circle at 92% 24%, rgba(101, 200, 245, 0.09), transparent 28%),
    var(--night);
}

.learning-heading,
.research-panel,
.learning-loop,
.learning-benefits {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.learning-heading {
  max-width: 900px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learning-section .section-kicker {
  color: var(--accent-light);
}

.learning-heading h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #eff8fd;
  font-size: clamp(2.35rem, 5.5vw, 5.4rem);
  line-height: 0.96;
}

.learning-heading > p:last-child {
  max-width: 820px;
  margin: 24px auto 0;
  color: #a8c6d8;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
}

.learning-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(38px, 6vw, 70px);
  padding: 0;
  list-style: none;
}

.learning-loop li {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid #28536b;
  border-radius: 12px;
  padding: 26px;
  background: #0d2635;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.learning-loop li::after {
  position: absolute;
  right: -18px;
  bottom: -58px;
  color: rgba(123, 211, 251, 0.08);
  content: attr(data-step);
  font-size: 9rem;
  font-weight: 950;
  line-height: 1;
}

.learning-loop li > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.learning-loop strong {
  display: block;
  margin-top: 22px;
  color: #eff8fd;
  font-size: 1.25rem;
  line-height: 1.15;
}

.learning-loop p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #a8c6d8;
}

.learning-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #28536b;
  border-radius: 12px;
  background: #28536b;
}

.learning-benefits article {
  padding: 30px;
  background: #0d2635;
}

.learning-benefits span {
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-benefits h3 {
  margin: 10px 0 12px;
  color: #eff8fd;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.learning-benefits p {
  margin: 0;
  color: #a8c6d8;
}

.research-panel {
  margin-top: clamp(46px, 7vw, 82px);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 58px);
  color: #eff8fd;
  background: #0d2635;
  border: 1px solid #28536b;
  box-shadow: var(--shadow);
}

.research-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px clamp(28px, 5vw, 72px);
  align-items: end;
}

.research-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--accent-light);
}

.research-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.research-heading > p:last-child {
  margin: 0;
  color: rgba(239, 248, 253, 0.72);
  font-size: 1.05rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.research-grid figure {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  margin: 0;
  border: 1px solid #28536b;
  border-radius: 10px;
  padding: 28px;
  background: #123449;
}

.research-grid blockquote {
  margin: 0;
}

.research-grid blockquote p {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.2;
}

.research-grid figcaption {
  margin-top: 28px;
  color: rgba(239, 248, 253, 0.68);
  font-size: 0.88rem;
}

.research-grid figcaption a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--accent-light);
  font-weight: 850;
}

.research-note {
  margin: 18px 0 0;
  border-left: 4px solid var(--amber);
  padding: 18px 20px;
  color: rgba(255, 241, 210, 0.86);
  background: var(--amber-soft);
}

.research-note strong {
  color: var(--amber);
}

.screenshot-section {
  background: var(--night);
}

.slideshow {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.slide-frame {
  position: relative;
  min-height: min(65vw, 640px);
  overflow: hidden;
  border: 1px solid #28536b;
  border-radius: 8px;
  background: #0d2635;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slide figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 3vw, 34px);
  color: #eff8fd;
  background: #0d2635;
}

.slide figcaption strong {
  flex: 0 0 auto;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.slide figcaption span {
  max-width: 660px;
  color: rgba(239, 248, 253, 0.72);
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border: 1px solid #28536b;
  border-radius: 50%;
  background: #123449;
  cursor: pointer;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-dots {
  display: flex;
  gap: 9px;
}

.slide-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(239, 248, 253, 0.62);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slide-dots button.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.languages-section {
  color: #ffffff;
  background: var(--night);
}

.languages-section .section-heading h2 {
  color: #ffffff;
}

.languages-section .section-heading p {
  color: rgba(239, 248, 253, 0.72);
}

.language-grid {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.language-grid span {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #ffffff;
  border: 1px solid #28536b;
  border-radius: 8px;
  background: #0d2635;
  font-weight: 800;
}

.language-grid img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 4px;
  object-fit: cover;
}

.features-section {
  background: var(--deep);
}

.release-section {
  background: var(--night);
}

.release-section .intro-grid article {
  background: #123449;
}

.features-section .section-heading h2,
.download-section h2 {
  color: #ffffff;
}

.features-section .section-heading p,
.download-section p {
  color: rgba(239, 248, 253, 0.74);
}

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

.feature-grid article:nth-child(1) {
  border-top: 4px solid var(--red);
}

.feature-grid article:nth-child(2) {
  border-top: 4px solid var(--accent);
}

.feature-grid article:nth-child(3) {
  border-top: 4px solid var(--accent-light);
}

.feature-grid article:nth-child(4) {
  border-top: 4px solid var(--amber);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  background: #005a95;
  color: #ffffff;
}

.download-section > div {
  width: min(620px, 100%);
}

.download-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.download-section .channel-links {
  font-size: 0.95rem;
}

.channel-links a {
  color: var(--accent-pale);
  font-weight: 800;
}

.package-install {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  border: 1px solid rgba(123, 211, 251, 0.42);
  border-left: 4px solid var(--accent-light);
  border-radius: 8px;
  padding: 14px 16px;
  color: #eff8fd;
  background: rgba(8, 25, 35, 0.72);
  box-shadow: 0 14px 34px rgba(0, 38, 63, 0.24);
}

.package-install strong {
  color: var(--accent-light);
}

.package-install code {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(239, 248, 253, 0.76);
  background: var(--night);
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

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

.legal-page {
  min-height: 100svh;
  padding-top: 82px;
  background: var(--night);
}

.legal-hero,
.legal-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-hero {
  padding: clamp(64px, 10vw, 118px) 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.legal-hero p {
  margin: 18px 0 0;
  color: var(--accent-light);
  font-weight: 850;
}

.legal-content {
  padding: 38px 0 clamp(64px, 10vw, 120px);
}

.legal-content h2 {
  margin: 32px 0 8px;
  color: #ffffff;
  font-size: clamp(1.28rem, 3vw, 1.8rem);
}

.legal-content p {
  margin: 0;
  color: rgba(239, 248, 253, 0.74);
}

.legal-content a {
  color: var(--accent-light);
  font-weight: 850;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
  }

  .intro-grid,
  .feature-grid,
  .learning-loop,
  .learning-benefits,
  .research-heading,
  .research-grid,
  .language-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 1px;
  }

  .slide-frame {
    min-height: 580px;
  }

  .slide img {
    object-fit: contain;
    background: #0d2635;
  }

  .slide figcaption {
    display: block;
  }

  .slide figcaption span {
    display: block;
    margin-top: 6px;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .learning-loop li {
    min-height: auto;
  }

  .research-heading .section-kicker {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    width: min(100% - 28px, 720px);
    padding-top: 100px;
  }

  .hero-actions,
  .download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .slide-frame {
    min-height: 500px;
  }

  .site-footer {
    display: grid;
  }
}

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

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