@property --trail-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/Unbounded.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f0e2;
  --paper-2: #efe6d3;
  --paper-3: #e7dbbf;
  --surface: #fffcf4;
  --surface-2: #f9f3e7;
  --line: rgba(42, 33, 57, 0.12);
  --line-strong: rgba(42, 33, 57, 0.22);
  --ink: #241d33;
  --ink-2: #50465d;
  --muted: #6b5f72;
  --violet: #6a45c0;
  --violet-700: #4b2d8f;
  --violet-soft: #ece4fa;
  --violet-softer: #f6f0fc;
  --mint: #2f8a66;
  --mint-soft: #dfeee5;
  --amber: #a56a12;
  --amber-soft: #f4e6bf;
  --danger: #b34552;
  --shadow: rgba(36, 29, 51, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 560ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191422;
  --paper-2: #211a2f;
  --paper-3: #2a2139;
  --surface: #251d33;
  --surface-2: #2d2340;
  --line: rgba(247, 240, 227, 0.12);
  --line-strong: rgba(247, 240, 227, 0.24);
  --ink: #f7f0e3;
  --ink-2: #d6c9dd;
  --muted: #b4a6bd;
  --violet: #b79bff;
  --violet-700: #d3c2ff;
  --violet-soft: #3a2b5c;
  --violet-softer: #30234c;
  --mint: #86dbb8;
  --mint-soft: #203d34;
  --amber: #f0c56b;
  --amber-soft: #3d3320;
  --danger: #f08d96;
  --shadow: rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .brand-name, .footer-brand strong { font-family: "Unbounded", "Manrope", sans-serif; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { left: 16px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.progress-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.progress-line span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--violet);
  transform-origin: left;
  transition: width 80ms linear;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand-version {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-button:hover { color: var(--violet-700); border-color: var(--violet); background: var(--violet-softer); }
.theme-toggle .icon { width: 17px; height: 17px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.site-nav a { transition: color var(--dur-fast) var(--ease); }
.site-nav a:hover { color: var(--violet-700); }
.site-nav .nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--violet-700);
  font-weight: 600;
}
.site-nav .nav-cta:hover { border-color: var(--violet); background: var(--violet-softer); }
.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

/* Fact ribbon */
.fact-ribbon {
  overflow: hidden;
  background: #2b2338;
  color: #f7f0e3;
  border-bottom: 1px solid rgba(247, 240, 227, 0.16);
}
.fact-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 8px 0;
  animation: ribbon 38s linear infinite;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact-ribbon:hover .fact-track { animation-play-state: paused; }
.fact-track i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.52; }

/* Shared */
.section { padding: 96px 0; }
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.section-label span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--violet-700);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-lead { max-width: 680px; margin-bottom: 0; color: var(--ink-2); font-size: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.button .icon { width: 18px; height: 18px; }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--violet); color: #fff; }
.button-primary:hover { background: var(--violet-700); }
:root[data-theme="dark"] .button-primary { background: var(--ink); color: #241d33; }
:root[data-theme="dark"] .button-primary:hover { background: #fff; }
.button-quiet { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-quiet:hover { border-color: var(--violet); color: var(--violet-700); background: var(--violet-softer); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--violet-700);
  font-size: 14px;
  font-weight: 600;
}
.text-link .icon { width: 17px; height: 17px; transition: transform var(--dur-fast) var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }

/* Border trail: one hairline, one accent, no glow */
.border-trail {
  position: absolute;
  inset: -1px;
  z-index: 4;
  border-radius: var(--trail-radius, 20px);
  padding: 1px;
  background: conic-gradient(from var(--trail-angle), transparent 0 62%, var(--violet) 76%, transparent 90% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.72;
  pointer-events: none;
  animation: border-trail 10s linear infinite;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 72px 0 88px;
  overflow: hidden;
  isolation: isolate;
}
.hero-shader,
.hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2; }
.hero-shader {
  opacity: 0.9;
  background:
    radial-gradient(90% 70% at 78% 18%, rgba(106,69,192,0.06), transparent 68%),
    radial-gradient(70% 80% at 20% 80%, rgba(47,138,102,0.04), transparent 70%),
    var(--paper);
}
.hero-shader.is-static { background-size: cover; }
.hero-mesh {
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 78%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero-copy { animation: rise var(--dur-slow) var(--ease) both; }
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.hero-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.hero-status.is-online i { background: var(--mint); }
.hero-status.is-error i { background: var(--danger); }
.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.025em;
}
.hero-copy h1 span { display: block; animation: rise 620ms var(--ease) both; }
.hero-copy h1 span:nth-child(2) { animation-delay: 80ms; }
.lead { max-width: 560px; margin-bottom: 28px; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: "Unbounded", sans-serif; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-facts span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.hero-visual { position: relative; animation: rise var(--dur-slow) var(--ease) 80ms both; }
.app-shot {
  position: relative;
  max-width: 680px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 24px 56px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.4);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  will-change: transform;
}
.app-shot::before,
.app-shot::after {
  content: "";
  position: absolute;
  top: 12px;
  z-index: 2;
  width: 64px;
  height: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  opacity: 0.75;
}
.app-shot::before { left: -18px; transform: rotate(-32deg); }
.app-shot::after { right: -18px; transform: rotate(32deg); }
.app-topbar {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--violet-700);
  color: #f7f2ff;
  font-size: 12px;
  font-weight: 600;
}
.app-dots { display: inline-flex; gap: 5px; }
.app-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.app-version { margin-left: auto; color: rgba(255,255,255,0.68); font-variant-numeric: tabular-nums; }
.app-body { display: grid; grid-template-columns: 164px minmax(0, 1fr); min-height: 348px; }
.app-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
}
.app-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.app-brand img { border-radius: 6px; outline: 1px solid var(--line); outline-offset: -1px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 12px; }
.app-nav-item .icon { width: 15px; height: 15px; }
.app-nav-item.active { background: var(--violet-soft); color: var(--violet-700); font-weight: 600; }
.app-level { margin-top: auto; font-size: 11px; color: var(--muted); }
.app-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.app-bar span { display: block; width: var(--pct, 0%); height: 100%; background: var(--violet); }
.app-main { padding: 20px; }
.app-main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.app-kicker { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.app-title { margin-bottom: 0; font-size: 18px; font-weight: 600; }
.app-count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.app-search .icon { width: 14px; height: 14px; }
.app-rows { margin: 14px 0 0; padding: 0; list-style: none; }
.app-rows li { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); }
.app-rows li:last-child { border-bottom: 0; }
.app-cat { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 600; }
.cat-study { background: var(--violet-soft); color: var(--violet-700); }
.cat-mail { background: var(--mint-soft); color: var(--mint); }
.cat-game { background: var(--amber-soft); color: var(--amber); }
.app-item { display: flex; flex-direction: column; min-width: 0; }
.app-item b { font-size: 13px; font-weight: 600; }
.app-item small { color: var(--muted); font-size: 11px; }
.app-secret { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.app-secret code { color: var(--ink-2); font-size: 12px; letter-spacing: 2px; }
.app-mini {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.app-mini .icon { width: 14px; height: 14px; }
.app-mini:hover { background: var(--violet-soft); color: var(--violet-700); }
.app-progress-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.app-sticker {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 18px var(--shadow);
  transform: rotate(-3deg);
  animation: rise var(--dur-slow) var(--ease) 200ms both;
}
.hero-mascot { position: absolute; top: -56px; right: -18px; width: 210px; height: auto; animation: mascot-in 720ms var(--ease) 180ms both; }
.hero-boot {
  position: absolute;
  left: -22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 11px;
  box-shadow: 0 8px 24px var(--shadow);
  animation: rise var(--dur-slow) var(--ease) 260ms both;
}
.hero-boot img { width: 50px; height: auto; border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; }
.hero-caption { margin: 12px 0 0; text-align: right; color: var(--muted); font-size: 12px; }

/* Features */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 20px; }
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.feature-card-lead { background: var(--violet-softer); border-color: var(--violet-soft); }
.feature-proof {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--violet-soft);
  border-radius: 10px;
  background: var(--surface);
}
.feature-proof code { color: var(--violet-700); font-size: 14px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.feature-proof span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feature-index {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; background: var(--violet-soft); color: var(--violet-700); }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.feature-card p { color: var(--ink-2); font-size: 14px; }
.feature-meta { margin-top: auto; margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Safety */
.safety-inner { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.safety-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 520px;
  padding: 14px 16px;
  border-left: 3px solid var(--violet);
  border-radius: 0 10px 10px 0;
  background: var(--violet-softer);
  color: var(--ink-2);
  font-size: 13px;
}
.safety-note .icon { color: var(--violet); }
.safety-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.safety-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.safety-card h3 { margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.plain-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.plain-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.plain-list .icon { width: 16px; height: 16px; }
.plain-list.good .icon { color: var(--mint); }
.plain-list.neutral .icon { color: var(--violet); }
.safety-foot { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.data-gate { position: relative; display: grid; place-items: center; height: 64px; }
.gate-line { width: 100%; height: 24px; overflow: visible; }
.gate-line path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.data-packet {
  position: absolute;
  top: 14px;
  left: 0;
  padding: 2px 6px;
  border: 1px solid var(--violet-soft);
  border-radius: 5px;
  background: var(--surface);
  color: var(--violet-700);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  opacity: 0;
}
.safety-diagram.is-flowing .data-packet { animation: packet 3.2s var(--ease) infinite; }
.gate-lock { position: absolute; top: 2px; left: 50%; width: 18px; height: 18px; margin-left: -9px; fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linecap: round; background: var(--paper); }

/* Learning */
.learn { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learn-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
.learn-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.learn-points div { display: flex; flex-direction: column; }
.learn-points strong { font-family: "Unbounded", sans-serif; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.learn-points span { color: var(--muted); font-size: 12px; }
.learn-mascot { width: 180px; height: auto; margin-top: 16px; }
.lesson-path { position: relative; margin: 0; padding: 0; list-style: none; }
.lesson-path::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 900ms var(--ease);
}
.lesson-path.is-visible::before { transform: scaleY(1); }
.lesson-path li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lesson-path li:last-child { border-bottom: 0; }
.lesson-path.is-visible li { opacity: 1; transform: translateY(0); }
.lesson-path.is-visible li:nth-child(1) { transition-delay: 80ms; }
.lesson-path.is-visible li:nth-child(2) { transition-delay: 140ms; }
.lesson-path.is-visible li:nth-child(3) { transition-delay: 200ms; }
.lesson-path.is-visible li:nth-child(4) { transition-delay: 260ms; }
.lesson-path.is-visible li:nth-child(5) { transition-delay: 320ms; }
.lesson-path.is-visible li:nth-child(6) { transition-delay: 380ms; }
.lesson-path.is-visible li:nth-child(7) { transition-delay: 440ms; }
.lesson-num {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--violet-700);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lesson-path li:nth-child(-n+3) .lesson-num { background: var(--violet); border-color: var(--violet); color: #fff; }
.lesson-path b { display: block; font-size: 14px; font-weight: 600; }
.lesson-path small { display: block; color: var(--muted); font-size: 12px; }

/* Playground */
.playground { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.play-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.play-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 452px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.play-card > *:not(.play-mascot) { position: relative; z-index: 1; }
.play-mascot { position: absolute; top: -16px; right: -12px; width: 128px; height: auto; opacity: 0.68; }
.play-kicker { margin-bottom: -6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.play-card h3 { margin-bottom: 0; font-size: 20px; font-weight: 600; }
.gen-output {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.gen-output code { flex: 1; font-size: 18px; letter-spacing: 1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gen-groups { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.gen-groups label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.gen-groups input, .check-line input { accent-color: var(--violet); }
.gen-control { width: 100%; }
.gen-control label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.gen-control output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--violet-700); }
.gen-control input { width: 100%; accent-color: var(--violet); }
.strength { display: flex; align-items: center; gap: 12px; width: 100%; }
.strength-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.strength-bar span { display: block; width: var(--pct, 0%); height: 100%; background: var(--violet); transition: width 280ms var(--ease), background-color 280ms var(--ease); }
#strength-label { min-width: 116px; color: var(--muted); font-size: 12px; text-align: right; }
.entropy { display: flex; justify-content: space-between; width: 100%; margin: -4px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.field-label { color: var(--muted); font-size: 13px; }
.field {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field:focus { border-color: var(--violet); }
.hash-result { position: relative; width: 100%; padding: 14px 44px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.hash-result span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.hash-result code { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.hash-copy { position: absolute; top: 8px; right: 8px; }
.check-line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.salt-line { margin: -6px 0 0; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.play-note { margin-top: auto; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.flash { animation: flash 320ms var(--ease); }

/* Rating */
.rating-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.rating-side { display: flex; align-items: center; gap: 16px; }
.rating-mascot { width: 110px; height: auto; }
.board-tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; }
.board-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: var(--tab-width, 0px);
  height: calc(100% - 8px);
  border-radius: 7px;
  background: var(--violet);
  transform: translateX(var(--tab-x, 0px));
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}
.board-tab { position: relative; z-index: 1; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.board-tab:hover { color: var(--violet-700); }
.board-tab.is-active { color: #fff; }
:root[data-theme="dark"] .board-tab.is-active { color: #241d33; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-bottom: 20px; }
.podium:empty { display: none; }
.podium-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(8px);
  animation: rise var(--dur-slow) var(--ease) both;
}
.podium-slot[data-place="1"] { order: 2; min-height: 132px; border-color: var(--violet); background: var(--violet-softer); }
.podium-slot[data-place="2"] { order: 1; min-height: 108px; }
.podium-slot[data-place="3"] { order: 3; min-height: 96px; }
.podium-place { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.podium-name { font-size: 15px; font-weight: 600; }
.podium-score { margin-top: auto; font-family: "Unbounded", sans-serif; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.podium-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.podium-bar span { display: block; height: 100%; background: var(--violet); transform-origin: left; animation: grow 560ms var(--ease) both; }
.board-shell { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.board-meta, .board-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; color: var(--muted); font-size: 12px; }
.board-meta { border-bottom: 1px solid var(--line); }
.board-foot { border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board-status { display: inline-flex; align-items: center; gap: 8px; }
.board-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.board-status.is-online i { background: var(--mint); }
.board-status.is-error i { background: var(--danger); }
.board-scroll { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.board-table th { padding: 12px 20px; text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--line); }
.board-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table tbody tr:hover { background: var(--paper); }
.board-table .rank { width: 84px; color: var(--muted); }
.board-table .rank.top { color: var(--violet-700); font-weight: 600; }
.board-table .player { font-weight: 600; }
.board-table .title { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.board-table .score { font-weight: 600; }
.board-empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.board-table tbody tr.row-in { animation: row-in 320ms var(--ease) both; }
.board-note { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 12px; }
.board-note a { color: var(--violet-700); text-decoration: underline; }

/* Downloads */
.download { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 260px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.download-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.download-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.download-card p { margin-bottom: 0; color: var(--ink-2); font-size: 14px; }
.download-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--violet-soft); color: var(--violet-700); }
.download-wide { --trail-radius: 16px; grid-column: 1 / -1; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 0; }
.download-wide .download-icon { align-self: start; }
.download-wide .button { align-self: center; }
.download-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.download-links a { color: var(--violet-700); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--violet-soft); }
.download-links a:hover { border-color: var(--violet); }
.hash { margin-top: auto; color: var(--muted); font-size: 12px; }
.hash summary { cursor: pointer; }
.hash code { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 11px; }
.hash-button { margin-top: 8px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 11px; cursor: pointer; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; }
.faq-inner .section-head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--violet); font-size: 20px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 720px; margin: -4px 0 18px; color: var(--ink-2); font-size: 14px; }
.faq-list code { padding: 1px 6px; border-radius: 5px; background: var(--paper-2); font-size: 13px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 36px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 15px; font-weight: 600; }
.footer-brand div span { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); font-size: 13px; }
.footer-links a:hover { color: var(--violet-700); }
.footer-partners { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.footer-partners img { width: auto; height: 34px; opacity: 0.86; outline: 1px solid var(--line); outline-offset: -1px; border-radius: 4px; }
.footer-note { width: 100%; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mascot-in {
  from { opacity: 0; transform: translateY(-12px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flash {
  0% { background: var(--violet-soft); }
  100% { background: var(--paper); }
}
@keyframes packet {
  0% { opacity: 0; transform: translateX(8px); }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateX(92px); }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes ribbon {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes border-trail {
  to { --trail-angle: 360deg; }
}

@media (max-width: 1100px) {
  .hero-inner { gap: 40px; }
  .site-nav { gap: 16px; }
  .brand-version { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-lead { grid-column: span 2; }
  .safety-inner { gap: 40px; }
  .learn-inner { gap: 40px; }
  .safety-diagram { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy, .hero-visual { max-width: 720px; }
  .hero-mascot { width: 180px; top: -40px; }
  .safety-inner, .learn-inner, .faq-inner { grid-template-columns: 1fr; }
  .learn-mascot { display: none; }
  .rating-side { gap: 8px; }
  .rating-mascot { width: 84px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .menu-button { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 12px 30px var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 8px 10px; border-radius: 8px; }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav .nav-cta { text-align: center; margin-top: 4px; }
  .theme-toggle { align-self: flex-start; }
  .section { padding: 72px 0; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .play-grid { grid-template-columns: 1fr; }
  .play-card { min-height: 0; }
  .download-wide { grid-template-columns: 40px minmax(0, 1fr); }
  .download-wide .button { grid-column: 2; justify-self: start; }
  .rating-head { flex-direction: column; align-items: flex-start; }
  .safety-diagram { grid-template-columns: 1fr; }
  .data-gate { height: 44px; transform: rotate(90deg) scale(0.7); }
  .safety-foot { grid-column: 1; }
  .footer-partners { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { padding: 48px 0 64px; }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 38px); }
  .lead { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 16px; }
  .hero-mascot { position: static; width: 140px; margin: -32px 8px 0 auto; }
  .hero-boot { left: 8px; bottom: 8px; }
  .hero-caption { text-align: left; }
  .feature-grid, .safety-columns, .download-grid { grid-template-columns: 1fr; }
  .feature-card-lead { grid-column: auto; }
  .feature-proof { flex-direction: column; gap: 4px; }
  .download-wide { grid-template-columns: 40px minmax(0, 1fr); }
  .download-wide .button { grid-column: 2; }
  .learn-points { grid-template-columns: 1fr 1fr; }
  .play-mascot { width: 92px; opacity: 0.5; }
  .board-meta, .board-foot { flex-direction: column; gap: 4px; }
  .podium { grid-template-columns: 1fr; }
  .podium-slot[data-place="1"], .podium-slot[data-place="2"], .podium-slot[data-place="3"] { order: initial; min-height: 0; }
  .footer-inner { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-shader { opacity: 1; }
  .lesson-path li, .lesson-path::before { opacity: 1; transform: none; }
}
