:root {
  color-scheme: dark;
  --page: #071a23;
  --page-light: #103745;
  --text: #f4f7f8;
  --muted: #b6c7cd;
  --accent: #7ed8ce;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.065);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 0, rgba(45, 150, 145, 0.24), transparent 32rem),
    linear-gradient(145deg, var(--page-light) 0%, var(--page) 55%, #041116 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #a1e9e1; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link { color: var(--muted); font-size: 0.95rem; }
.hero { padding: 64px 0 48px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.05;
}
.intro { max-width: 850px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.intro p { margin: 24px 0 30px; }
.downloads {
  padding: 26px;
  border: 1px solid rgba(126, 216, 206, 0.4);
  border-radius: 18px;
  background: var(--panel);
}
.downloads h2 { margin: 0; font-size: 1.35rem; }
.requirements { margin: 6px 0 20px; color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #061e24;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #a1e9e1; color: #061e24; }
.button-secondary { background: transparent; color: var(--accent); }
.readme-link { font-size: 0.95rem; }
.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 42px 0 72px;
  border-top: 1px solid var(--line);
}
.contents { position: sticky; top: 24px; }
.contents h2 { margin: 0 0 14px; font-size: 1rem; }
.contents ul { margin: 0; padding: 0; list-style: none; }
.contents li + li { margin-top: 10px; }
.contents a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.contents a:hover, .contents a:focus-visible { color: var(--accent); text-decoration: underline; }
.guide { min-width: 0; overflow-wrap: anywhere; }
.guide > :first-child { margin-top: 0; }
.guide h2 { margin: 48px 0 16px; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.25; }
.guide h3 { margin: 32px 0 12px; font-size: 1.15rem; line-height: 1.4; }
.guide h2, .guide h3, .guide-note { scroll-margin-top: 24px; }
.guide p, .guide li { color: var(--muted); }
.guide strong { color: var(--text); }
.guide li + li { margin-top: 6px; }
.guide-note { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-note h2 { margin: 0 0 12px; font-size: 1.1rem; }
.guide-note p, .guide-note ul { margin: 12px 0; font-size: 0.94rem; }
.guide-note > :last-child { margin-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.88em; }
:not(pre) > code { padding: 2px 5px; border-radius: 4px; background: var(--panel); color: var(--text); }
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #041116;
  line-height: 1.65;
  overflow-wrap: normal;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
footer p { margin: 0; }
footer a { color: var(--muted); }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 8px 16px; background: var(--page); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 780px) {
  .page { width: min(100% - 32px, 620px); }
  .site-header { padding: 24px 0; }
  .hero { padding: 44px 0 32px; }
  .downloads { padding: 22px; }
  .guide-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 48px; }
  .contents { position: static; }
  .contents ul { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .contents li + li { margin-top: 0; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .download-actions { flex-direction: column; }
  .button { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
