:root {
  --bg: #071122;
  --bg-deep: #030817;
  --panel: rgba(10, 18, 38, 0.76);
  --panel-strong: rgba(14, 25, 52, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(184, 205, 255, 0.16);
  --line-strong: rgba(184, 205, 255, 0.28);
  --text: #f5f7ff;
  --muted: rgba(233, 239, 255, 0.76);
  --soft: rgba(233, 239, 255, 0.58);
  --accent: #8ec5ff;
  --accent-2: #9af0d6;
  --accent-3: #ffe38f;
  --danger-soft: rgba(255, 154, 154, 0.12);
  --shadow-xl: 0 40px 120px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html[data-theme="light"] {
  --bg: #eef2ff;
  --bg-deep: #f9fbff;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --panel-soft: rgba(99, 102, 241, 0.08);
  --line: rgba(99, 102, 241, 0.1);
  --line-strong: rgba(139, 92, 246, 0.2);
  --text: #172033;
  --muted: rgba(23, 32, 51, 0.76);
  --soft: rgba(23, 32, 51, 0.54);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #c084fc;
  --danger-soft: rgba(239, 68, 68, 0.08);
  --shadow-xl: 0 28px 70px rgba(99, 102, 241, 0.14);
  --shadow-lg: 0 18px 44px rgba(99, 102, 241, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-i18n-state="pending"] body[data-i18n-state="pending"] {
  visibility: hidden;
}

html[data-i18n-state="ready"] body[data-i18n-state="ready"] {
  visibility: visible;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(142, 197, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(154, 240, 214, 0.1), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(255, 227, 143, 0.08), transparent 22%),
    linear-gradient(160deg, #0a1630 0%, #08101f 44%, #040915 100%);
}

html[data-theme="light"] body,
body[data-theme="light"] {
  background:
    radial-gradient(circle at 10% 18%, rgba(139, 92, 246, 0.16), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(99, 102, 241, 0.14), transparent 20%),
    radial-gradient(circle at 75% 78%, rgba(192, 132, 252, 0.12), transparent 22%),
    linear-gradient(160deg, #f7f8ff 0%, #eef2ff 38%, #ffffff 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #b6daff;
}

code {
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent-2);
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

html[data-theme="light"] .topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 242, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
  border-color: rgba(99, 102, 241, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(142, 197, 255, 0.32), rgba(154, 240, 214, 0.18)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex: 0 0 38px;
}

html[data-theme="light"] .brand-mark {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.08)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(99, 102, 241, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--soft);
}

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

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(236, 186, 220, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(222, 178, 214, 0.14);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}

html[data-theme="light"] .nav a {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(99, 102, 241, 0.1);
}

.nav a:hover,
.nav a.active {
  border-color: rgba(142, 197, 255, 0.32);
  background: rgba(142, 197, 255, 0.12);
}

html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .nav a.active {
  border-color: rgba(99, 102, 241, 0.24);
  background: rgba(99, 102, 241, 0.1);
}

.theme-toggle {
  min-height: 40px;
  min-width: 86px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  font: inherit;
  font-size: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.language-select {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  outline: none;
}

html[data-theme="light"] .language-select {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.14);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(99, 102, 241, 0.16);
}

.theme-toggle::before {
  content: "";
  display: block;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 227, 143, 0.18), rgba(154, 240, 214, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.theme-toggle::after {
  content: "☀";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe38f, #ffd56b);
  color: #3f2a02;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.theme-toggle {
  position: relative;
}

.theme-toggle[data-mode="light"]::after {
  content: "☾";
  transform: translate(38px, -50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.hero,
.panel,
.notice,
.article,
.faq-card,
.feature-card,
.release-card,
.summary-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(22px);
}

.hero {
  padding: 34px;
  margin-top: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.lead {
  margin: 0;
  max-width: 740px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.button {
  color: #041221;
  background: linear-gradient(135deg, var(--accent), #c2ddff);
}

html[data-theme="light"] .button {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.metric-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.metric,
.chip {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
}

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

.release-card,
.summary-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(142, 197, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

html[data-theme="light"] .release-card,
html[data-theme="light"] .summary-card {
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 255, 0.92));
}

.release-card h2,
.summary-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.release-list,
.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.release-item,
.summary-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .release-item,
html[data-theme="light"] .summary-item,
html[data-theme="light"] .release-empty,
html[data-theme="light"] .faq-list details {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
}

.release-item strong,
.summary-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.release-empty {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.release-empty strong {
  display: block;
  margin-bottom: 6px;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.faq-grid,
.link-grid,
.stat-grid,
.showcase-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.showcase-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
}

.carousel-card {
  padding: 24px;
}

.carousel-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(142, 197, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.04);
  min-height: 620px;
}

html[data-theme="light"] .carousel-stage {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 34%),
    rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
}

.carousel-track {
  position: relative;
  height: 620px;
}

.carousel-slide {
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(74vw, 390px);
  height: 580px;
  transform:
    translateX(-50%)
    translateX(var(--slide-x, 0))
    translateY(var(--slide-y, 0))
    rotate(var(--slide-rotate, 0deg))
    scale(var(--slide-scale, 1));
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease;
  opacity: var(--slide-opacity, 1);
  filter: saturate(0.92);
  pointer-events: none;
}

.carousel-slide.active,
.carousel-slide.before-active,
.carousel-slide.after-active {
  pointer-events: auto;
}

.carousel-slide.active {
  filter: none;
}

.carousel-frame {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(4, 12, 28, 0.72);
  cursor: zoom-in;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .carousel-frame {
  background: rgba(255, 255, 255, 0.88);
}

.carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 15, 31, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.carousel-arrow:hover {
  border-color: var(--line-strong);
  transform: translateY(-50%) scale(1.02);
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.carousel-caption {
  color: var(--muted);
  font-size: 15px;
}

.carousel-hint {
  color: var(--soft);
  font-size: 13px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

html[data-theme="light"] .carousel-dot {
  background: rgba(99, 102, 241, 0.2);
}

.carousel-dot.active {
  width: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.showcase-notes {
  padding: 24px;
}

.showcase-notes h3 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.showcase-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.showcase-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

html[data-theme="light"] .showcase-item {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.1);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .panel,
html[data-theme="light"] .notice,
html[data-theme="light"] .article,
html[data-theme="light"] .faq-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .release-card,
html[data-theme="light"] .summary-card,
html[data-theme="light"] .carousel-card,
html[data-theme="light"] .showcase-notes {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 245, 255, 0.6)),
    rgba(255, 255, 255, 0.58);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 22px 52px rgba(99, 102, 241, 0.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 22px;
  background: rgba(2, 8, 23, 0.86);
  backdrop-filter: blur(14px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close,
.lightbox-arrow {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 15, 31, 0.72);
  color: #fff;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-close {
  grid-column: 3;
  justify-self: end;
}

.lightbox-arrow.prev {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.lightbox-arrow.next {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
}

.lightbox-media {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
}

.lightbox-caption {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: 15px;
}

.feature-card,
.faq-card,
.link-card {
  padding: 22px;
}

.feature-card h3,
.faq-card h3,
.link-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.feature-card p,
.faq-card p,
.link-card p,
.release-card p,
.summary-card p,
.release-item p,
.summary-item p,
.article p,
.article li,
.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.link-card {
  display: block;
  color: var(--text);
}

.link-card:hover,
.feature-card:hover,
.faq-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.doc-side {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.doc-side h2,
.article h1 {
  margin-top: 0;
}

.toc {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.toc a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.article {
  padding: 32px;
}

.article h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 58px);
}

.article h2 {
  margin: 28px 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.article h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.article ul {
  padding-left: 22px;
  margin: 12px 0;
}

.meta {
  margin: 0 0 16px;
  color: var(--accent);
  line-height: 1.7;
}

.notice {
  padding: 24px;
  margin-top: 18px;
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 12px;
}

.copy-address {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

html[data-theme="light"] .copy-address {
  border-color: rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.05);
}

.copy-address:hover,
.copy-address:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(142, 197, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  outline: none;
}

html[data-theme="light"] .copy-address:hover,
html[data-theme="light"] .copy-address:focus-visible {
  background: rgba(99, 102, 241, 0.08);
}

.copy-address-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-address code {
  display: block;
  max-width: 100%;
  color: var(--accent-2);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-address-hint {
  font-size: 12px;
  color: var(--soft);
}

.copy-address.is-copied {
  border-color: rgba(154, 240, 214, 0.42);
  background: rgba(154, 240, 214, 0.1);
}

.footer {
  margin-top: 20px;
  padding: 20px 24px 4px;
  color: var(--soft);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.warning {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 154, 154, 0.18);
}

/* Final visual overrides for release site polish */
.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  background:
    radial-gradient(circle at 24px 20px, rgba(255, 227, 143, 0.4), transparent 22px),
    radial-gradient(circle at calc(100% - 24px) 20px, rgba(99, 102, 241, 0.2), transparent 20px),
    linear-gradient(135deg, rgba(255, 227, 143, 0.18), rgba(154, 240, 214, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.theme-toggle::after {
  content: "\2600";
}

.theme-toggle[data-mode="light"]::after {
  content: "\263D";
}

.carousel-slide {
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.carousel-slide.before-active,
.carousel-slide.after-active {
  filter: saturate(0.98);
}

.carousel-frame {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .carousel-frame {
  border-color: rgba(99, 102, 241, 0.08);
}

@media (max-width: 980px) {
  .hero-grid,
  .doc-grid,
  .feature-grid,
  .stat-grid,
  .faq-grid,
  .link-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .doc-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 22px, 1200px);
  }

  .topbar {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .topbar-row {
    width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .language-switch,
  .theme-toggle {
    width: 100%;
    min-width: 0;
  }

  .language-switch {
    min-width: 0;
  }

  .hero,
  .article,
  .carousel-card,
  .showcase-notes,
  .release-card,
  .summary-card,
  .notice,
  .feature-card,
  .faq-card,
  .link-card {
    padding: 22px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 56px);
  }

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

  .carousel-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-stage {
    min-height: 500px;
  }

  .carousel-track {
    height: 500px;
  }

  .carousel-slide {
    width: min(82vw, 320px);
    height: 460px;
  }

  .lightbox {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: 16px;
  }

  .lightbox-close {
    grid-column: 2;
    grid-row: 1;
  }

  .lightbox-media {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .lightbox-caption {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .lightbox-arrow.prev,
  .lightbox-arrow.next {
    grid-row: 4;
    align-self: end;
  }

  .lightbox-arrow.prev {
    grid-column: 1;
    justify-self: start;
  }

  .lightbox-arrow.next {
    grid-column: 2;
    justify-self: end;
  }
}

/* Final single-theme Luma palette */
:root {
  --bg: #fff9fd;
  --bg-deep: #fff2fa;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.76);
  --panel-soft: rgba(245, 157, 203, 0.08);
  --line: rgba(236, 186, 220, 0.22);
  --line-strong: rgba(216, 168, 255, 0.3);
  --text: #35233b;
  --muted: rgba(53, 35, 59, 0.76);
  --soft: rgba(53, 35, 59, 0.54);
  --accent: #f59dcb;
  --accent-2: #d8a8ff;
  --accent-3: #ffcde3;
  --danger-soft: rgba(239, 68, 68, 0.08);
  --shadow-xl: 0 32px 90px rgba(222, 178, 214, 0.22);
  --shadow-lg: 0 20px 48px rgba(222, 178, 214, 0.15);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 16%, rgba(245, 157, 203, 0.26), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(216, 168, 255, 0.24), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(255, 205, 227, 0.26), transparent 24%),
    linear-gradient(160deg, #fffafe 0%, #fff3fb 42%, #fffdfd 100%);
}

a:hover {
  color: #cc8fc5;
}

.topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 241, 249, 0.72)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(236, 186, 220, 0.24);
}

.brand-mark {
  background:
    linear-gradient(145deg, rgba(245, 157, 203, 0.24), rgba(216, 168, 255, 0.18)),
    rgba(255, 255, 255, 0.52);
  border-color: rgba(216, 168, 255, 0.24);
}

.nav a,
.language-select {
  border-color: rgba(236, 186, 220, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.nav a:hover,
.nav a.active {
  border-color: rgba(216, 168, 255, 0.3);
  background: rgba(245, 157, 203, 0.12);
}

.hero,
.panel,
.notice,
.article,
.faq-card,
.feature-card,
.release-card,
.summary-card,
.link-card {
  background: var(--panel);
  border-color: rgba(236, 186, 220, 0.2);
  backdrop-filter: blur(22px);
}

.release-card,
.summary-card {
  background:
    radial-gradient(circle at top right, rgba(245, 157, 203, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 250, 0.86));
}

.release-item,
.summary-item,
.release-empty,
.faq-list details,
.metric,
.chip {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(236, 186, 220, 0.18);
}

.button {
  color: #fff;
  background: linear-gradient(135deg, #f59dcb, #d8a8ff);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(236, 186, 220, 0.2);
}

.theme-toggle,
[data-theme-toggle] {
  display: none !important;
}

.language-select {
  display: none !important;
}

.language-switch {
  position: relative;
  min-width: 172px;
}

.language-trigger {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 186, 220, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(222, 178, 214, 0.12);
}

.language-trigger:hover {
  border-color: rgba(216, 168, 255, 0.28);
  background: rgba(255, 255, 255, 0.62);
}

.language-trigger-text {
  white-space: nowrap;
}

.language-trigger-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.language-switch.open .language-trigger-icon {
  transform: translateY(2px) rotate(-135deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 100%;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid rgba(236, 186, 220, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 250, 0.82));
  box-shadow: 0 18px 40px rgba(222, 178, 214, 0.18);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.language-dropdown[hidden] {
  display: none !important;
}

.language-option {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option.active {
  background: rgba(245, 157, 203, 0.12);
}

.not-found-shell {
  padding-top: 28px;
}

.not-found-topbar {
  margin-bottom: 18px;
}

.not-found-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(236, 186, 220, 0.2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 16%, rgba(245, 157, 203, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(216, 168, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 250, 0.86));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.not-found-card::before,
.not-found-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.not-found-card::before {
  top: -72px;
  right: -42px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 157, 203, 0.22), transparent 70%);
}

.not-found-card::after {
  bottom: -94px;
  left: -36px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(216, 168, 255, 0.18), transparent 72%);
}

.not-found-copy,
.not-found-art {
  position: relative;
  z-index: 1;
}

.not-found-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found-badge {
  width: fit-content;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(216, 168, 255, 0.28);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.not-found-copy h1 {
  margin: 18px 0 14px;
  max-width: 10ch;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.92;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.not-found-links .link-card {
  min-height: 100%;
}

.not-found-note {
  margin: 18px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

.not-found-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-figure {
  position: relative;
  width: min(100%, 460px);
  padding: 16px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 245, 250, 0.64)),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(236, 186, 220, 0.22);
  box-shadow: 0 24px 64px rgba(222, 178, 214, 0.24);
}

.not-found-figure::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(245, 157, 203, 0.12), rgba(216, 168, 255, 0.06));
  filter: blur(16px);
  opacity: 0.85;
}

.not-found-figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(120, 78, 112, 0.14);
  filter: saturate(1.02) contrast(1.02);
}

@media (max-width: 720px) {
  .language-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .not-found-shell {
    padding-top: 18px;
  }

  .not-found-card {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 28px;
  }

  .not-found-copy h1 {
    max-width: none;
    font-size: clamp(38px, 14vw, 62px);
  }

  .not-found-links {
    grid-template-columns: 1fr;
  }

  .not-found-figure {
    width: 100%;
    padding: 12px;
    border-radius: 26px;
  }

  .not-found-figure::before {
    inset: 16px;
    border-radius: 22px;
  }

  .not-found-figure img {
    border-radius: 22px;
  }
}
