@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700;800&family=JetBrains+Mono:wght@400;600&family=Manrope:wght@400;500;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg-0: #060b11;
  --bg-1: #0a1720;
  --bg-2: #102534;
  --panel: rgba(8, 19, 29, 0.84);
  --panel-strong: rgba(11, 27, 39, 0.92);
  --text: #f1f8fc;
  --text-soft: #abc1cf;
  --text-dim: #7f97aa;
  --line-soft: rgba(131, 188, 220, 0.18);
  --line-strong: rgba(131, 188, 220, 0.44);
  --accent: #43efbb;
  --accent-2: #95ff91;
  --accent-3: #f3ff8c;
  --danger: #ff9c70;
  --focus: rgba(67, 239, 187, 0.55);
  --shadow-1: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-2: 0 26px 72px rgba(0, 0, 0, 0.48);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.62;
  background:
    radial-gradient(1300px 820px at 6% -8%, rgba(67, 239, 187, 0.21), transparent 63%),
    radial-gradient(1000px 720px at 88% -12%, rgba(149, 255, 145, 0.16), transparent 58%),
    radial-gradient(760px 520px at 50% 118%, rgba(243, 255, 140, 0.1), transparent 52%),
    linear-gradient(155deg, #071019 0%, #040911 58%, #02060c 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(136, 193, 224, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 193, 224, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.76), transparent 84%);
  z-index: -3;
}

body::after {
  background: radial-gradient(circle at center, transparent 58%, rgba(1, 5, 8, 0.72) 100%);
  z-index: -2;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  max-width: var(--container);
  margin: 0.84rem auto 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 16, 25, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.92rem;
  padding: 0.52rem 0.84rem;
  box-shadow: var(--shadow-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.54rem;
  color: #eff9ff;
  font-family: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 40%, #ffffff, var(--accent));
  box-shadow:
    0 0 0 3px rgba(67, 239, 187, 0.2),
    0 0 16px rgba(67, 239, 187, 0.62);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: 0.2rem;
}

.nav a {
  color: #b7cadd;
  font-size: 0.8rem;
  letter-spacing: 0.025em;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav a:hover {
  color: #f0fcff;
  text-decoration: none;
  border-color: rgba(67, 239, 187, 0.34);
  background: rgba(67, 239, 187, 0.12);
}

.nav a.active {
  color: #f0fcff;
  border-color: rgba(67, 239, 187, 0.42);
  background: rgba(67, 239, 187, 0.2);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(13, 24, 34, 0.9);
  color: var(--text);
  padding: 0;
  font-size: 1.04rem;
  line-height: 1;
  cursor: pointer;
}

.lang-switch {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.lang-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(13, 26, 39, 0.64);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.lang-icon-button img {
  width: 18px;
  height: 18px;
}

.lang-icon-button:hover,
.lang-icon-button:focus-visible,
.lang-icon-button[aria-expanded="true"] {
  opacity: 1;
  border-color: var(--line-strong);
  background: rgba(13, 33, 45, 0.95);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 0.48rem);
  right: 0;
  min-width: 120px;
  padding: 0.34rem;
  display: none;
  flex-direction: column;
  gap: 0.12rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(8, 19, 31, 0.96);
  box-shadow: var(--shadow-1);
}

.lang-popover[data-open="true"] {
  display: flex;
}

.lang-popover a {
  color: #d5e6f2;
  border-radius: 8px;
  padding: 0.3rem 0.48rem;
  font-size: 0.82rem;
}

.lang-popover a:hover {
  text-decoration: none;
  color: #f4feff;
  background: rgba(67, 239, 187, 0.16);
}

.lang-popover a.active {
  color: #f4feff;
  background: rgba(67, 239, 187, 0.22);
}

.lang-popover a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main {
  max-width: var(--container);
  margin: 1rem auto 0;
  padding: 0 1.25rem 3.2rem;
}

.section {
  position: relative;
  margin: 1rem 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(7, 18, 28, 0.94), rgba(5, 14, 23, 0.9));
  box-shadow: var(--shadow-1);
  padding: 1.3rem;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(138deg, rgba(67, 239, 187, 0.3), rgba(149, 255, 145, 0.12)) border-box;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.24;
}

.section-hero {
  padding: 1.5rem;
  border-color: rgba(67, 239, 187, 0.4);
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(67, 239, 187, 0.16) inset;
}

.section-hero::after {
  content: "";
  position: absolute;
  top: -36%;
  right: -16%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 239, 187, 0.24), transparent 66%);
  filter: blur(7px);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.95) 54%, rgba(0, 0, 0, 0.36) 100%);
}

.hero {
  display: grid;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.05rem;
  grid-template-columns: 1.15fr 0.85fr;
}

.eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 0.24rem 0.74rem;
  border: 1px solid rgba(67, 239, 187, 0.4);
  border-radius: 999px;
  background: rgba(67, 239, 187, 0.12);
  color: #d9ffec;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.24;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1 {
  margin: 0.82rem 0 0.7rem;
  font-size: clamp(2rem, 4.2vw, 3.08rem);
  letter-spacing: 0.012em;
  max-width: 13ch;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.42rem, 2.9vw, 2.04rem);
  letter-spacing: 0.014em;
}

h3 {
  margin: 0 0 0.44rem;
  font-size: 1.02rem;
}

.subtitle {
  margin: 0;
  color: #b8cbda;
  max-width: 62ch;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.62rem 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

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

.button.primary {
  color: #052017;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(67, 239, 187, 0.3);
}

.button.secondary {
  color: #e2f2fa;
  border-color: var(--line-soft);
  background: rgba(12, 29, 42, 0.88);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(67, 239, 187, 0.14);
}

.button.ghost {
  color: #c8dcec;
  border-color: rgba(131, 188, 220, 0.32);
  background: transparent;
}

.button.ghost:hover {
  border-color: rgba(67, 239, 187, 0.45);
}

.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero-stats {
  margin-top: 0.88rem;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-box {
  position: relative;
  border: 1px solid rgba(131, 188, 220, 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(8, 21, 32, 0.92), rgba(6, 17, 27, 0.78));
  padding: 0.68rem;
}

.metric-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(67, 239, 187, 0.9), rgba(149, 255, 145, 0.2));
}

.metric-box strong {
  display: block;
  font-family: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.58rem;
  color: #e0fff4;
  line-height: 1;
}

.metric-box span {
  margin-top: 0.24rem;
  display: block;
  color: #95b4c7;
  font-size: 0.74rem;
}

.hero-visual {
  display: grid;
  gap: 0.66rem;
  align-content: start;
}

.hero-figure {
  margin: 0;
  border: 1px solid rgba(131, 188, 220, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(9, 20, 31, 0.88);
  padding: 0.6rem;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 11px;
  border: 1px solid rgba(131, 188, 220, 0.24);
}

.hero-figure figcaption {
  margin-top: 0.44rem;
  font-size: 0.79rem;
  color: #9eb8c9;
}

.pulse-panel {
  border: 1px solid rgba(131, 188, 220, 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(8, 23, 34, 0.95), rgba(7, 20, 31, 0.8));
  padding: 0.72rem;
}

.panel-title {
  margin: 0 0 0.42rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9ffea;
}

.pulse-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.34rem;
}

.pulse-panel li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 9px;
  border: 1px solid rgba(131, 188, 220, 0.2);
  background: rgba(6, 16, 26, 0.84);
  padding: 0.34rem 0.42rem;
}

.pulse-panel li span {
  font-size: 0.75rem;
  color: #b8d0de;
}

.pulse-panel li strong {
  font-size: 0.73rem;
  color: #8fffbe;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-intro {
  margin: 0 0 0.78rem;
  color: var(--text-soft);
  max-width: 70ch;
}

.card-spotlight {
  border-color: rgba(67, 239, 187, 0.34);
  background:
    radial-gradient(circle at top right, rgba(67, 239, 187, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(10, 30, 36, 0.95), rgba(7, 19, 28, 0.88));
}

.story-path {
  display: grid;
  gap: 0.74rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.82rem;
}

.story-step {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(131, 188, 220, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(9, 22, 33, 0.92), rgba(6, 17, 27, 0.82));
  padding: 0.9rem;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.story-step::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 239, 187, 0.82), rgba(149, 255, 145, 0.1));
  opacity: 0.58;
}

.story-step:hover,
.story-step.is-active {
  transform: translateY(-2px);
  border-color: rgba(67, 239, 187, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
  background:
    radial-gradient(circle at top right, rgba(67, 239, 187, 0.14), transparent 46%),
    linear-gradient(145deg, rgba(10, 29, 40, 0.96), rgba(7, 18, 29, 0.9));
}

.story-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  margin-bottom: 0.62rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 239, 187, 0.28);
  background: rgba(67, 239, 187, 0.12);
  color: #dfffee;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.story-step h3 {
  margin-bottom: 0.4rem;
}

.story-step p {
  margin: 0;
  color: var(--text-soft);
}

.game-lattice {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lattice-feature,
.card,
.arch-node,
.timeline-item,
.proof-card {
  border: 1px solid rgba(131, 188, 220, 0.18);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 0.86rem;
}

.lattice-feature {
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.lattice-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 239, 187, 0.38);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
}

.lattice-feature p,
.card p,
.arch-node p,
.timeline-item p,
.proof-card p {
  margin: 0;
  color: var(--text-soft);
}

.lattice-feature span {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.8rem;
  color: #8cefbf;
}

.lattice-feature.is-primary {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(13, 35, 42, 0.94), rgba(9, 24, 34, 0.86));
  border-color: rgba(67, 239, 187, 0.36);
}

.lattice-feature.is-alert {
  border-color: rgba(255, 156, 112, 0.34);
  background: linear-gradient(145deg, rgba(33, 21, 18, 0.84), rgba(17, 15, 22, 0.8));
}

.lattice-feature.is-alert span {
  color: #ffc6a9;
}

.grid {
  display: grid;
  gap: 0.74rem;
}

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

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

.card {
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 239, 187, 0.34);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.screens-grid {
  margin-top: 0.74rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(131, 188, 220, 0.18);
  background: rgba(5, 14, 23, 0.9);
}

.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.screen-card figcaption {
  margin: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.79rem;
  color: #a9c0cf;
  border-top: 1px solid rgba(131, 188, 220, 0.2);
}

.quickstart {
  margin-top: 0.75rem;
}

.quickstart-grid {
  margin-top: 0.82rem;
}

.quickstart-card {
  height: 100%;
}

.release-meta {
  margin: 0 0 0.72rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.release-meta strong {
  color: #f3fffe;
}

.release-meta a {
  font-size: 0.84rem;
}

.download-surface {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.9fr);
  gap: 0.9rem;
  align-items: stretch;
}

.download-surface-main,
.download-support-card {
  border: 1px solid rgba(131, 188, 220, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(67, 239, 187, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(9, 25, 37, 0.94), rgba(7, 18, 30, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.download-surface-main {
  padding: 1rem;
}

.download-platform-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.78rem;
}

.download-platform-chip {
  border: 1px solid rgba(131, 188, 220, 0.28);
  border-radius: 999px;
  background: rgba(7, 18, 30, 0.72);
  color: var(--text-soft);
  padding: 0.48rem 0.88rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 130ms ease, transform 130ms ease, background 130ms ease, color 130ms ease;
}

.download-platform-chip:hover,
.download-platform-chip:focus-visible {
  border-color: rgba(67, 239, 187, 0.54);
  color: #f3fffe;
  transform: translateY(-1px);
}

.download-platform-chip.is-active {
  background: linear-gradient(135deg, rgba(67, 239, 187, 0.18), rgba(45, 106, 255, 0.14));
  border-color: rgba(67, 239, 187, 0.62);
  color: #f3fffe;
  box-shadow: inset 0 0 0 1px rgba(67, 239, 187, 0.14);
}

.download-surface-main h3,
.download-support-card h3 {
  margin: 0;
}

.download-primary-copy {
  margin: 0.42rem 0 0;
  color: var(--text-soft);
  max-width: 36rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.download-primary-footnote {
  margin: 0.82rem 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.download-support-card {
  padding: 1rem;
}

.download-support-list {
  margin: 0.84rem 0 0;
  display: grid;
  gap: 0.72rem;
}

.download-support-list div {
  padding-top: 0.72rem;
  border-top: 1px solid rgba(131, 188, 220, 0.18);
}

.download-support-list div:first-child {
  padding-top: 0;
  border-top: none;
}

.download-support-list dt {
  color: #f3fffe;
  font-weight: 600;
  margin-bottom: 0.18rem;
}

.download-support-list dd {
  margin: 0;
  color: var(--text-soft);
}

.download-advanced {
  margin-top: 0.82rem;
  border: 1px dashed rgba(131, 188, 220, 0.26);
  border-radius: var(--radius-lg);
  padding: 0.92rem;
  background: rgba(6, 14, 24, 0.56);
}

.download-advanced-title {
  margin: 0 0 0.38rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.download-advanced-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.download-advanced-list li + li {
  margin-top: 0.42rem;
}

.download-note {
  margin: 0.72rem 0 0;
  color: var(--text-soft);
}

pre {
  margin: 0.64rem 0 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.78rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(131, 188, 220, 0.26);
  background: linear-gradient(145deg, rgba(2, 7, 12, 0.96), rgba(7, 18, 29, 0.9));
}

pre code {
  display: block;
  white-space: pre;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.79rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin: 0.24rem 0;
}

.proof-switcher {
  margin: 0 0 0.74rem;
  display: grid;
  gap: 0.4rem;
}

.proof-switcher-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3c7bf;
}

.proof-switcher-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proof-switch-btn {
  border: 1px solid rgba(131, 188, 220, 0.24);
  border-radius: 999px;
  background: rgba(11, 26, 38, 0.84);
  color: #c8dded;
  padding: 0.28rem 0.68rem;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 130ms ease, color 130ms ease, background-color 130ms ease;
}

.proof-switch-btn:hover {
  border-color: rgba(67, 239, 187, 0.4);
  color: #f0fcff;
}

.proof-switch-btn.is-active {
  border-color: rgba(67, 239, 187, 0.52);
  color: #e6fff3;
  background: rgba(67, 239, 187, 0.2);
}

.proof-switch-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.proof-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card {
  background: rgba(9, 21, 33, 0.84);
}

.proof-card h3 {
  margin-bottom: 0.42rem;
}

.proof-card pre {
  margin-top: 0;
}

.proof-card-key {
  border-color: rgba(67, 239, 187, 0.38);
  background: linear-gradient(150deg, rgba(8, 31, 34, 0.92), rgba(9, 21, 32, 0.82));
}

.proof-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #c7dce9;
}

.proof-list li {
  margin: 0.22rem 0;
}

[data-proof-code][data-proof-visible="false"] {
  display: none;
}

.proof-strip {
  margin-top: 0.74rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.proof-strip .proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(131, 188, 220, 0.24);
  background: rgba(8, 19, 31, 0.88);
  color: #b9cfdd;
  font-size: 0.76rem;
  padding: 0.3rem 0.64rem;
}

.proof-strip .proof-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(131, 188, 220, 0.9);
}

.proof-strip .proof-chip.is-highlight {
  color: #ebfff5;
  border-color: rgba(67, 239, 187, 0.5);
  background: linear-gradient(140deg, rgba(20, 53, 50, 0.9), rgba(10, 29, 33, 0.9));
  box-shadow: 0 10px 18px rgba(67, 239, 187, 0.15);
}

.proof-strip .proof-chip.is-highlight::before {
  background: rgba(67, 239, 187, 0.98);
  box-shadow: 0 0 0 2px rgba(67, 239, 187, 0.22);
}

.proof-timeline {
  margin-top: 0.74rem;
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-timeline-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(131, 188, 220, 0.18);
  background: rgba(11, 23, 34, 0.78);
  padding: 0.62rem 0.72rem;
}

.proof-timeline-item span {
  display: inline-flex;
  color: #99c3b7;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.proof-timeline-item p {
  margin: 0.34rem 0 0;
  color: #c8dceb;
  font-size: 0.86rem;
}

[data-proof-event][data-proof-visible="false"] {
  display: none;
}

.timeline {
  display: grid;
  gap: 0.6rem;
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66rem;
  bottom: 0.66rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(131, 188, 220, 0.28);
}

.timeline-item.done::before {
  background: linear-gradient(180deg, rgba(67, 239, 187, 0.98), rgba(67, 239, 187, 0.32));
}

.timeline-item.active::before {
  background: linear-gradient(180deg, rgba(149, 255, 145, 0.98), rgba(67, 239, 187, 0.35));
  box-shadow: 0 0 15px rgba(149, 255, 145, 0.35);
  animation: timeline-rail 2.7s ease-in-out infinite;
}

.timeline-item.next::before {
  background: linear-gradient(180deg, rgba(243, 255, 140, 0.94), rgba(243, 255, 140, 0.28));
}

.timeline-item h3 {
  margin-bottom: 0.36rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.44rem;
  border-radius: 999px;
  padding: 0.2rem 0.54rem;
  font-size: 0.72rem;
  border: 1px solid transparent;
}

.status-tag::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
}

.status-tag.done {
  color: #adffd9;
  background: rgba(67, 239, 187, 0.15);
  border-color: rgba(67, 239, 187, 0.35);
}

.status-tag.done::before {
  content: "✓";
  color: #0a2a1f;
  background: rgba(173, 255, 217, 0.94);
}

.status-tag.active {
  color: #e2ffd8;
  background: rgba(149, 255, 145, 0.2);
  border-color: rgba(149, 255, 145, 0.36);
  animation: timeline-chip 2.1s ease-in-out infinite;
}

.status-tag.active::before {
  content: "•";
  color: #112f1f;
  background: rgba(198, 255, 182, 0.96);
  box-shadow: 0 0 9px rgba(149, 255, 145, 0.5);
}

.status-tag.next {
  color: #fffec8;
  background: rgba(243, 255, 140, 0.22);
  border-color: rgba(243, 255, 140, 0.36);
}

.status-tag.next::before {
  content: ">";
  color: #313314;
  background: rgba(255, 254, 200, 0.94);
}

.architecture-figure {
  margin: 0 0 0.78rem;
  border: 1px solid rgba(131, 188, 220, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(6, 15, 24, 0.9);
}

.architecture-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 35 / 18;
  object-fit: cover;
}

.architecture-figure figcaption {
  margin: 0;
  padding: 0.56rem 0.66rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(131, 188, 220, 0.2);
}

.architecture-flow {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arch-node {
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.arch-node:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 239, 187, 0.34);
  box-shadow: 0 11px 20px rgba(0, 0, 0, 0.22);
}

.doc-links {
  margin: 0;
  padding-left: 1.16rem;
}

.doc-links li {
  margin: 0.22rem 0;
}

.docs-main {
  max-width: var(--container);
}

.docs-hero .subtitle {
  max-width: 66ch;
}

.docs-grid {
  display: grid;
  gap: 0.86rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doc-card {
  display: grid;
  gap: 0.42rem;
  padding: 0.98rem 1.02rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(131, 188, 220, 0.24);
  background: linear-gradient(150deg, rgba(12, 27, 39, 0.92), rgba(7, 14, 24, 0.96));
}

.doc-card h3,
.doc-card p {
  margin: 0;
}

.doc-kicker {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7ffe5;
  font-size: 0.74rem;
}

.doc-meta {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.doc-entry-note {
  margin: 0.72rem 0 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: #8ea8bb;
  font-size: 0.83rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 380ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes timeline-chip {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(149, 255, 145, 0.12);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(149, 255, 145, 0.05);
  }
}

@keyframes timeline-rail {
  0%,
  100% {
    opacity: 0.86;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .story-path,
  .cards-3,
  .architecture-flow,
  .proof-grid,
  .proof-timeline,
  .screens-grid,
  .game-lattice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-surface {
    grid-template-columns: 1fr;
  }

  .lattice-feature.is-primary {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .topbar {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0.56rem 0.78rem;
  }

  .hero-grid,
  .story-path,
  .cards-3,
  .cards-2,
  .architecture-flow,
  .proof-grid,
  .proof-timeline,
  .screens-grid,
  .game-lattice,
  .docs-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .lattice-feature.is-primary {
    grid-column: auto;
  }

  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions .button {
    width: 100%;
    justify-content: center;
  }

  .menu-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin-left: auto;
    margin-right: 2.3rem;
  }

  .lang-switch {
    position: absolute;
    right: 0.8rem;
    top: 0.26rem;
    margin: 0;
  }

  .lang-icon-button {
    width: 40px;
    height: 40px;
  }

  .lang-icon-button img {
    width: 18px;
    height: 18px;
  }

  .nav {
    position: absolute;
    top: 3.06rem;
    right: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.32rem;
    width: min(82vw, 280px);
    padding: 0.72rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-soft);
    background: rgba(7, 15, 25, 0.98);
    box-shadow: var(--shadow-2);
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    border-radius: 10px;
    border: 1px solid rgba(131, 188, 220, 0.2);
  }

  main {
    padding: 0 0.9rem 2.2rem;
    margin-top: 0.66rem;
  }

  .section {
    margin: 0.8rem 0;
    padding: 1rem;
    border-radius: 18px;
  }

  .section-hero {
    padding: 1.1rem;
  }

  h1 {
    font-size: clamp(1.74rem, 9vw, 2.2rem);
    max-width: 16ch;
  }

  h2 {
    font-size: clamp(1.2rem, 6vw, 1.52rem);
  }

  h3 {
    font-size: 0.95rem;
  }

  .subtitle,
  .section-intro,
  .card p,
  .lattice-feature p,
  .arch-node p,
  .proof-card p,
  .timeline-item p {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .cta-row {
    gap: 0.48rem;
  }

  .button {
    padding: 0.54rem 0.84rem;
    font-size: 0.88rem;
  }

  .metric-box strong {
    font-size: 1.32rem;
  }

  .metric-box span {
    font-size: 0.72rem;
  }

  .proof-strip .proof-chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.56rem;
  }

  .proof-card pre {
    max-height: 8.6rem;
    overflow: auto;
  }

  pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0.54rem 0.62rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .button.ghost {
    width: calc(50% - 0.24rem);
    min-width: 0;
  }

  .cta-row .button.ghost + .button.ghost {
    width: calc(50% - 0.24rem);
  }
}

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

  .hero-canvas {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .card,
  .lattice-feature,
  .arch-node,
  .timeline-item.active::before,
  .status-tag.active {
    transition: none;
    animation: none;
  }
}
