:root {
  --bg: #07111f;
  --bg-deep: #050b13;
  --bg-band: #0a1726;
  --panel: rgba(10, 23, 38, 0.92);
  --panel-strong: rgba(13, 30, 49, 0.96);
  --panel-soft: rgba(18, 42, 66, 0.72);
  --line: rgba(113, 169, 217, 0.22);
  --line-strong: rgba(94, 197, 255, 0.48);
  --text: #eef7ff;
  --muted: #a7b8ca;
  --soft: #d8e9f7;
  --blue: #4cb7ff;
  --cyan: #62e5ff;
  --teal: #5de0c6;
  --amber: #f2c879;
  --ok: #8ce0a5;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --font-body: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html.is-lightbox-open {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(13, 33, 54, 0.88) 0%, rgba(5, 11, 19, 0.96) 46%, #050b13 100%),
    repeating-linear-gradient(90deg, rgba(98, 229, 255, 0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(98, 229, 255, 0.03) 0 1px, transparent 1px 48px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body.is-lightbox-open {
  overflow: hidden;
}

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

p,
li,
h1,
h2,
h3,
.button {
  overflow-wrap: anywhere;
}

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

button {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 94px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--cyan);
  color: #03111d;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(103, 172, 230, 0.13);
  background: rgba(5, 12, 21, 0.84);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(94, 197, 255, 0.32);
  background: rgba(5, 12, 21, 0.96);
}

.nav {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0;
  min-width: max-content;
  overflow: visible;
}

.brand-logo {
  width: min(292px, calc(100vw - 128px));
  max-width: 292px;
  height: 92px;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: rgba(76, 183, 255, 0.12);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 23, 38, 0.88);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 86px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(113, 169, 217, 0.14);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(76, 183, 255, 0.16), transparent 32%),
    linear-gradient(180deg, transparent, rgba(5, 11, 19, 0.5));
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: calc(100vh - 228px);
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 40px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.34;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 1.34rem;
  font-weight: 800;
  line-height: 1.42;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--soft);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button::after {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(98, 229, 255, 0.78);
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  background: linear-gradient(135deg, rgba(76, 183, 255, 0.98), rgba(98, 229, 255, 0.86));
  color: #03111d;
  box-shadow: 0 18px 48px rgba(76, 183, 255, 0.2);
}

.button.secondary {
  background: rgba(10, 23, 38, 0.86);
  color: var(--text);
}

.button.disabled-button,
.button:disabled {
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(113, 169, 217, 0.18);
  background: rgba(16, 29, 43, 0.74);
  color: rgba(216, 233, 247, 0.58);
  box-shadow: none;
  transform: none;
}

.button.disabled-button::after,
.button:disabled::after {
  opacity: 0.4;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(141, 224, 165, 0.22);
  border-radius: 6px;
  background: rgba(13, 43, 52, 0.62);
  color: #c9f4d6;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-screen,
.screenshot-card,
.feature-card,
.portal-card,
.page-hero-panel,
.content-nav,
.monthly-card,
.download-card,
.release-card,
.support-panel {
  border: 1px solid rgba(113, 169, 217, 0.2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-screen {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.viewer-topbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(113, 169, 217, 0.16);
  background: rgba(5, 14, 24, 0.94);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-screen img {
  aspect-ratio: 16 / 10;
  background: #07111f;
  object-fit: cover;
}

.hero-screen figcaption {
  padding: 10px 14px;
  border-top: 1px solid rgba(113, 169, 217, 0.14);
  color: var(--muted);
  font-size: 0.82rem;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #07111f;
}

.showcase-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(98, 229, 255, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(5, 14, 24, 0.18), transparent 40%);
}

.showcase-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 520ms ease;
}

.showcase-image.is-active {
  opacity: 1;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(113, 169, 217, 0.14);
  background: rgba(5, 14, 24, 0.72);
}

.showcase-tab {
  display: inline-flex;
  min-height: 34px;
  flex: 1 1 136px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(113, 169, 217, 0.22);
  border-radius: 999px;
  background: rgba(12, 28, 45, 0.78);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.showcase-tab:hover,
.showcase-tab:focus-visible {
  border-color: rgba(98, 229, 255, 0.58);
  color: var(--text);
  outline: none;
}

.showcase-tab.is-active,
.showcase-tab[aria-selected="true"] {
  border-color: rgba(98, 229, 255, 0.76);
  background: linear-gradient(135deg, rgba(76, 183, 255, 0.28), rgba(98, 229, 255, 0.13));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(98, 229, 255, 0.08), 0 0 24px rgba(76, 183, 255, 0.16);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
}

.section-copy {
  color: var(--soft);
  font-size: 1.02rem;
}

.about-logo {
  width: min(82%, 520px);
  height: auto;
  margin-top: 24px;
  padding: 12px 0;
  object-fit: contain;
}

.clinical-notice {
  margin: 22px 0 0;
  padding: 15px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(242, 200, 121, 0.08);
  color: #f4d89f;
  font-weight: 800;
}

.llm-update-note {
  margin: 18px 0 0;
  padding: 16px 17px;
  border: 1px solid rgba(76, 183, 255, 0.22);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(76, 183, 255, 0.07);
}

.llm-update-note h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
}

.llm-update-note p {
  margin: 0;
  color: var(--muted);
}

.llm-update-note p + p {
  margin-top: 8px;
}

.llm-update-emphasis {
  color: var(--cyan) !important;
  font-weight: 900;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 820px;
}

.section-head p {
  max-width: 820px;
  color: var(--muted);
}

.feature-section,
.portal-section,
.download-section,
.updates-section,
.official-video-section,
.project-section {
  background: linear-gradient(180deg, rgba(9, 24, 39, 0.72), rgba(5, 11, 19, 0.26));
  border-block: 1px solid rgba(113, 169, 217, 0.12);
}

.updates-section {
  padding: 70px 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head-row .text-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.update-grid,
.update-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-list {
  display: grid;
  border-top: 1px solid rgba(113, 169, 217, 0.18);
  border-bottom: 1px solid rgba(113, 169, 217, 0.18);
}

.updates-list-frame {
  position: relative;
}

.updates-scroll-list {
  height: clamp(540px, 62vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 18px;
  border: 1px solid rgba(113, 169, 217, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(12, 28, 45, 0.36), rgba(7, 17, 31, 0.24)),
    rgba(5, 11, 19, 0.28);
  scrollbar-color: rgba(98, 229, 255, 0.44) rgba(113, 169, 217, 0.12);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.updates-scroll-list::-webkit-scrollbar {
  width: 10px;
}

.updates-scroll-list::-webkit-scrollbar-track {
  background: rgba(113, 169, 217, 0.1);
  border-radius: 999px;
}

.updates-scroll-list::-webkit-scrollbar-thumb {
  background: rgba(98, 229, 255, 0.42);
  border: 2px solid rgba(5, 11, 19, 0.42);
  border-radius: 999px;
}

.updates-list-frame:has(.news-item:nth-child(5))::after {
  position: absolute;
  right: 16px;
  bottom: 1px;
  left: 16px;
  height: 54px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, rgba(5, 11, 19, 0), rgba(5, 11, 19, 0.88));
  content: "";
  pointer-events: none;
}

.release-card .news-list {
  margin-top: 22px;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(128px, 0.18fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 0;
}

.news-item + .news-item {
  border-top: 1px solid rgba(113, 169, 217, 0.14);
}

.news-meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.news-meta time {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.news-body {
  min-width: 0;
}

.news-body h3 {
  margin-bottom: 4px;
  font-size: 1.17rem;
}

.news-body p {
  color: var(--muted);
}

.news-item .news-link {
  margin-top: 2px;
  white-space: nowrap;
}

.update-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.14), rgba(93, 224, 198, 0.06)),
    var(--panel);
}

.update-card h3 {
  font-size: 1.2rem;
}

.update-card p {
  color: var(--muted);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.update-meta time {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.update-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(98, 229, 255, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.update-new {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 218, 112, 0.5);
  border-radius: 999px;
  background: rgba(255, 218, 112, 0.14);
  color: #ffe08a;
  font-size: 0.72rem;
  font-weight: 900;
}

.update-feed {
  margin-top: 22px;
}

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

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.1), transparent 54%),
    var(--panel);
}

.portal-card h3 {
  font-size: 1.5rem;
}

.portal-card p,
.portal-card li,
.portal-card time,
.content-nav a,
.archive-item p,
.monthly-card li,
.monthly-card p {
  color: var(--muted);
}

.release-current,
.latest-news {
  grid-column: span 2;
}

.release-current {
  border-color: rgba(98, 229, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.18), rgba(93, 224, 198, 0.08)),
    var(--panel-strong);
}

.latest-news {
  background:
    linear-gradient(135deg, rgba(98, 229, 255, 0.12), rgba(242, 200, 121, 0.06)),
    var(--panel);
}

.portal-link-card {
  min-height: 210px;
}

.portal-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 9px;
  border: 1px solid rgba(98, 229, 255, 0.28);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-status {
  color: var(--cyan);
  font-weight: 800;
}

.portal-list,
.two-column-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.portal-list li,
.two-column-list li {
  position: relative;
  padding-left: 18px;
}

.portal-list li::before,
.two-column-list li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.official-video-card {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.1), transparent 54%),
    var(--panel);
}

.official-video-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(113, 169, 217, 0.2);
  border-radius: 7px;
  background: #07111f;
}

.official-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.official-video-note {
  width: 100%;
  padding: 16px 18px;
  border-left: 2px solid rgba(98, 229, 255, 0.58);
  background: rgba(6, 17, 29, 0.5);
  color: var(--muted);
}

.official-video-note p {
  margin: 0;
}

.official-video-note p + p {
  margin-top: 8px;
}

.official-video-card .portal-actions {
  margin-top: 0;
  padding-top: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--cyan);
  font-weight: 900;
}

.text-link::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
  outline: none;
}

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

.feature-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.08), transparent 48%),
    var(--panel);
  cursor: zoom-in;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: rgba(98, 229, 255, 0.5);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28), 0 0 28px rgba(76, 183, 255, 0.12);
  outline: none;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(113, 169, 217, 0.16);
  background: #07111f;
  object-fit: cover;
  transition: filter 180ms ease;
}

.feature-card:hover .feature-image,
.feature-card:focus-visible .feature-image {
  filter: brightness(1.12) saturate(1.08);
}

.feature-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.module-index {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 9px;
  border: 1px solid rgba(98, 229, 255, 0.28);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-card p,
.screenshot-card p,
.download-card p,
.release-card li,
.support-panel p {
  color: var(--muted);
}

.feature-card p,
.screenshot-card p,
.download-card p,
.support-panel p {
  margin-bottom: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card {
  min-width: 0;
  overflow: hidden;
}

.screenshot-card img {
  aspect-ratio: 16 / 10;
  background: #07111f;
  cursor: zoom-in;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.screenshot-card img:hover,
.screenshot-card img:focus-visible {
  filter: brightness(1.12) saturate(1.08);
  outline: 2px solid rgba(98, 229, 255, 0.72);
  outline-offset: -2px;
  transform: scale(1.01);
}

.screenshot-copy {
  padding: 20px;
  border-top: 1px solid rgba(113, 169, 217, 0.16);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 15, 0.88);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100vh - 52px);
  overflow: hidden;
  border: 1px solid rgba(98, 229, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 38, 61, 0.94), rgba(5, 14, 24, 0.98)),
    var(--panel-strong);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.62);
  transform: none;
  transition: none;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(113, 169, 217, 0.18);
}

.lightbox-kicker {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.lightbox-bar h2 {
  margin: 0;
  font-size: 1.3rem;
}

.lightbox-close {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(98, 229, 255, 0.36);
  border-radius: 7px;
  background: rgba(8, 22, 36, 0.78);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(98, 229, 255, 0.78);
  outline: none;
}

.lightbox-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 18px 68px;
  background:
    repeating-linear-gradient(90deg, rgba(98, 229, 255, 0.035) 0 1px, transparent 1px 36px),
    #050e19;
  transform: none;
  transition: none;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  border: 1px solid rgba(113, 169, 217, 0.18);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  opacity: 1;
  transition: opacity 180ms ease;
}

.lightbox-stage img.is-switching {
  opacity: 0;
}

.lightbox-arrow {
  position: absolute;
  top: calc(50% - 23px);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(98, 229, 255, 0.34);
  border-radius: 50%;
  background: rgba(7, 20, 34, 0.84);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: none;
}

.lightbox-arrow.previous {
  left: 16px;
}

.lightbox-arrow.next {
  right: 16px;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  border-color: rgba(98, 229, 255, 0.84);
  background: rgba(76, 183, 255, 0.18);
  outline: none;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(113, 169, 217, 0.18);
  color: var(--muted);
}

.lightbox-footer p {
  margin: 0;
}

.lightbox-footer span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: flex;
  min-height: 310px;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.download-card.highlighted {
  border-color: rgba(98, 229, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.16), rgba(93, 224, 198, 0.06)),
    var(--panel-strong);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.edition,
.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.edition {
  background: rgba(76, 183, 255, 0.16);
  color: var(--cyan);
}

.badge {
  background: rgba(242, 200, 121, 0.13);
  color: var(--amber);
}

.download-card h3 {
  font-size: 1.58rem;
}

.download-card > .button {
  margin-top: auto;
}

.download-actions {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.download-actions .button {
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
  margin-top: 0;
  padding-inline: 10px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.download-actions .button.secondary {
  flex: 0 0 auto;
}

.release-card {
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(76, 183, 255, 0.12), transparent 45%),
    var(--panel);
}

.release-stack,
.content-flow,
.support-layout,
.monthly-layout {
  display: grid;
  gap: 18px;
}

.release-version {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(98, 229, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

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

.release-card li {
  position: relative;
  padding-left: 20px;
}

.release-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.release-card .portal-actions {
  margin-top: 6px;
}

.page-hero {
  padding: 86px 0 70px;
  border-bottom: 1px solid rgba(113, 169, 217, 0.14);
  background:
    linear-gradient(90deg, rgba(76, 183, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(8, 22, 37, 0.86), rgba(5, 11, 19, 0.92));
}

.page-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 54px;
}

.page-hero-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.16), rgba(93, 224, 198, 0.06)),
    var(--panel-strong);
}

.page-hero-panel h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.page-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-updated time {
  color: var(--soft);
  font-weight: 800;
}

.content-section {
  background: rgba(5, 11, 19, 0.52);
}

.content-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(190px, 0.24fr) minmax(0, 1fr);
  gap: 24px;
}

.content-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.content-nav a {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.content-nav a:hover,
.content-nav a:focus-visible {
  background: rgba(76, 183, 255, 0.12);
  color: var(--text);
  outline: none;
}

.archive-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(113, 169, 217, 0.16);
}

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

.caution-card {
  border-color: rgba(242, 200, 121, 0.32);
  background:
    linear-gradient(135deg, rgba(242, 200, 121, 0.1), transparent 46%),
    var(--panel);
}

.support-methods {
  display: grid;
  gap: 18px;
}

.support-method {
  padding-top: 18px;
  border-top: 1px solid rgba(113, 169, 217, 0.16);
}

.support-method:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-method p {
  color: var(--muted);
}

.support-safety-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(242, 200, 121, 0.22);
  border-radius: 8px;
  background: rgba(242, 200, 121, 0.06);
}

.support-safety-note h4 {
  margin-bottom: 10px;
  color: #f4d89f;
  font-size: 1rem;
}

.support-safety-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.support-safety-note li {
  color: var(--muted);
  font-size: 0.94rem;
}

.monthly-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.12), rgba(93, 224, 198, 0.06)),
    var(--panel);
}

.monthly-thumb {
  position: relative;
  display: grid;
  min-height: 430px;
  margin: 0;
  padding: 18px;
  place-items: center;
  align-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(113, 169, 217, 0.16);
  background:
    radial-gradient(circle at 50% 38%, rgba(98, 229, 255, 0.15), transparent 42%),
    repeating-linear-gradient(90deg, rgba(98, 229, 255, 0.055) 0 1px, transparent 1px 28px),
    #06101c;
  color: var(--cyan);
}

.monthly-thumb img {
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 560px;
  border: 1px solid rgba(113, 169, 217, 0.22);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.monthly-thumb-compact {
  min-height: 360px;
}

.monthly-current .portal-actions {
  margin-top: 4px;
}

.monthly-body {
  min-width: 0;
  padding: 28px;
}

.monthly-body ul,
.monthly-intro ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 20px;
}

.monthly-backnumber-section {
  display: grid;
  gap: 18px;
}

.monthly-issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.monthly-issue-card {
  min-width: 0;
}

.monthly-issue-link {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(113, 169, 217, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.08), transparent 48%),
    rgba(5, 16, 28, 0.86);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.monthly-issue-link:hover,
.monthly-issue-link:focus-visible {
  border-color: rgba(98, 229, 255, 0.5);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 28px rgba(76, 183, 255, 0.12);
  outline: none;
}

.monthly-empty-card {
  display: grid;
  overflow: hidden;
  border: 1px dashed rgba(113, 169, 217, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.07), transparent 56%),
    rgba(5, 16, 28, 0.62);
}

.monthly-empty-visual {
  display: grid;
  min-height: 190px;
  align-content: center;
  gap: 14px;
  padding: 28px;
  border-bottom: 1px solid rgba(113, 169, 217, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(98, 229, 255, 0.04) 0 1px, transparent 1px 34px),
    #06101c;
}

.monthly-empty-visual span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(98, 229, 255, 0.2), rgba(98, 229, 255, 0.04));
}

.monthly-empty-visual span:nth-child(2) {
  width: 72%;
}

.monthly-empty-visual span:nth-child(3) {
  width: 46%;
}

.monthly-issue-cover,
.monthly-detail-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.monthly-issue-cover {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(113, 169, 217, 0.14);
  background:
    radial-gradient(circle at 50% 38%, rgba(98, 229, 255, 0.12), transparent 42%),
    #06101c;
}

.monthly-issue-cover img {
  width: auto;
  max-width: min(100%, 220px);
  max-height: 310px;
  border: 1px solid rgba(113, 169, 217, 0.2);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.monthly-issue-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.monthly-issue-body .release-version {
  margin-bottom: 0;
  width: fit-content;
}

.monthly-issue-body h3,
.monthly-issue-body p {
  margin: 0;
}

.monthly-detail-cover {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.monthly-detail-cover img {
  width: auto;
  max-width: min(100%, 360px);
  max-height: 520px;
  border: 1px solid rgba(113, 169, 217, 0.22);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.monthly-sample-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(113, 169, 217, 0.16);
}

.monthly-sample-section h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.monthly-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.monthly-sample-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(113, 169, 217, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(76, 183, 255, 0.08), transparent 62%),
    rgba(5, 16, 28, 0.9);
}

.monthly-sample-card img {
  aspect-ratio: 3 / 4;
  border-bottom: 1px solid rgba(113, 169, 217, 0.14);
  background: #06101c;
  object-fit: cover;
}

.monthly-sample-card figcaption {
  min-height: 58px;
  padding: 10px 11px;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.sample-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(98, 229, 255, 0.42);
  border-radius: 6px;
  background: rgba(4, 14, 25, 0.78);
  color: var(--cyan);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.aria-message {
  border-color: rgba(93, 224, 198, 0.3);
  background:
    linear-gradient(135deg, rgba(93, 224, 198, 0.12), transparent 42%),
    var(--panel);
}

.support-section {
  padding-top: 72px;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(76, 183, 255, 0.12), rgba(93, 224, 198, 0.06)),
    var(--panel-strong);
}

.support-panel h2 {
  margin-bottom: 10px;
}

.support-mail {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(98, 229, 255, 0.42);
  border-radius: 7px;
  background: rgba(4, 16, 28, 0.58);
  color: var(--cyan);
  font-weight: 800;
}

.support-mail:hover,
.support-mail:focus-visible {
  border-color: rgba(98, 229, 255, 0.78);
  outline: none;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.support-mail.subtle {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(113, 169, 217, 0.14);
  background: rgba(4, 12, 22, 0.84);
}

.footer-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

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

  .release-current,
  .latest-news {
    grid-column: span 1;
  }

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

  .download-actions .button {
    gap: 6px;
    padding-inline: 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 74px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 72px 0;
  }

  .desktop-break {
    display: none;
  }

  .updates-section {
    padding: 58px 0;
  }

  .official-video-card {
    gap: 22px;
    padding: 26px;
  }

  .updates-scroll-list {
    height: 860px;
    padding-inline: 14px;
  }

  .updates-list-frame:has(.news-item:nth-child(5))::after {
    right: 14px;
    left: 14px;
  }

  .updates-scroll-list .news-item {
    gap: 8px;
    padding: 14px 0;
  }

  .updates-scroll-list .news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .updates-scroll-list .news-body h3 {
    font-size: 1.04rem;
  }

  .updates-scroll-list .news-body p {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .updates-scroll-list .news-item .news-link {
    margin-top: 0;
  }

  .section-head-row {
    display: grid;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .news-item .news-link {
    justify-self: start;
    white-space: normal;
  }

  .nav {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(113, 169, 217, 0.2);
    border-radius: 8px;
    background: rgba(5, 12, 21, 0.97);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 42px;
    padding: 10px 12px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 62px;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 1.16rem;
  }

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

  .button {
    width: 100%;
  }

  .download-actions {
    flex-wrap: wrap;
  }

  .download-actions .button,
  .download-actions .button.secondary {
    flex: 1 1 100%;
    gap: 10px;
    padding-inline: 18px;
    font-size: 0.92rem;
    white-space: normal;
  }

  .screenshot-grid,
  .download-grid,
  .update-grid,
  .update-feed,
  .portal-grid,
  .project-grid,
  .content-grid,
  .monthly-card {
    grid-template-columns: 1fr;
  }

  .content-nav {
    position: static;
  }

  .two-column-list {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-height: calc(100vh - 28px);
  }

  .lightbox-bar,
  .lightbox-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lightbox-stage {
    padding: 56px 12px;
  }

  .lightbox-stage img {
    max-height: 62vh;
  }

  .lightbox-arrow {
    top: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
    transform: none;
  }

  .lightbox-arrow.previous {
    right: 60px;
    left: auto;
  }

  .lightbox-arrow.next {
    right: 12px;
  }

  .support-panel {
    display: grid;
  }

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

  .monthly-thumb {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(113, 169, 217, 0.16);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 20px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .brand-logo {
    width: min(236px, calc(100vw - 96px));
    max-width: calc(100vw - 96px);
    height: 70px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .monthly-sample-grid {
    grid-template-columns: 1fr;
  }

  .download-card,
  .portal-card,
  .page-hero-panel,
  .content-nav,
  .release-card,
  .monthly-body,
  .support-panel,
  .screenshot-copy {
    padding: 18px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .feature-card-body {
    padding: 18px;
  }

  .about-logo {
    width: 100%;
    max-width: 420px;
    margin-top: 18px;
  }

  .viewer-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px;
  }

  .support-mail {
    width: 100%;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
