:root {
  color-scheme: light;
  --topbar-h: 60px;
  --page-max: 1008px;
  --bg: #f7fbff;
  --text: #08111f;
  --muted: #43586e;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(255, 255, 255, 0.64);
  --shadow: 0 18px 46px rgba(28, 114, 184, 0.14);
  --blue: #128df2;
  --blue-strong: #006ff2;
  --cyan: #19c8e8;
  --green: #14b86a;
  --pink: #df2d6c;
  --violet: #7764ff;
  --code-bg: #101b2d;
  --code-text: #dceeff;
  --radius-lg: 25px;
  --radius-md: 12px;
  --mx: 0px;
  --scroll: 0px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820;
  --text: #f6fbff;
  --muted: #c0cfdd;
  --panel: rgba(18, 26, 35, 0.76);
  --panel-strong: rgba(20, 28, 38, 0.94);
  --border: rgba(91, 186, 255, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --code-bg: #07101d;
  --code-text: #e8f4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(124deg, transparent 0 12%, rgba(35, 156, 246, 0.12) 12% 18%, transparent 18% 34%),
    linear-gradient(112deg, transparent 0 52%, rgba(35, 156, 246, 0.16) 52% 64%, transparent 64%),
    linear-gradient(180deg, var(--bg), #dff3ff);
}

:root[data-theme="dark"] .site-bg {
  background:
    linear-gradient(124deg, transparent 0 12%, rgba(35, 156, 246, 0.13) 12% 18%, transparent 18% 34%),
    linear-gradient(112deg, transparent 0 52%, rgba(35, 156, 246, 0.14) 52% 64%, transparent 64%),
    linear-gradient(180deg, #111820, #102d45 58%, #111820);
}

.bg-rings {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 18px solid rgba(27, 151, 238, 0.2);
  border-radius: 50%;
  outline: 2px solid rgba(27, 151, 238, 0.16);
  outline-offset: 28px;
  transform: translate3d(calc(var(--mx) * 0.02), calc(var(--scroll) * -0.03), 0);
}

.ring-one {
  top: 86px;
  left: -120px;
}

.ring-two {
  top: 270px;
  left: 42%;
  width: 260px;
  height: 260px;
  transform: translate3d(calc(var(--mx) * -0.018), calc(var(--scroll) * -0.05), 0);
}

.ring-three {
  right: -130px;
  bottom: 110px;
  width: 360px;
  height: 360px;
}

.bg-slash {
  position: absolute;
  width: 110px;
  height: 120%;
  top: -10%;
  background: rgba(38, 153, 237, 0.12);
  transform: rotate(20deg);
}

.slash-one {
  left: 72%;
}

.slash-two {
  left: 79%;
  width: 18px;
  background: rgba(38, 153, 237, 0.18);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(115deg, rgba(37, 155, 239, 0.12) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.36) 46% 50%, transparent 50%);
  background-size: 96px 96px, 280px 280px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--topbar-h);
  padding: 8px 26px;
  background: rgba(248, 252, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(42, 120, 180, 0.12);
  backdrop-filter: blur(20px);
}

.brand,
.nav-button,
.icon-button,
.primary-button,
.ghost-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  flex: 0 0 auto;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(155deg, #16bbff, #0d70f2);
  color: #fff;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 8px 18px rgba(10, 117, 219, 0.26);
}

.brand-name {
  font-size: 27px;
  font-weight: 850;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(20, 145, 244, 0.13);
  transform: translateY(-1px);
  outline: none;
}

.nav-button svg,
.icon-button svg,
.primary-button svg,
.ghost-button svg,
.copy-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.icon-button {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.section-shell {
  width: min(var(--page-max), calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: block;
  min-height: 780px;
  padding: calc(var(--topbar-h) + 94px) 0 74px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 920px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.58;
}

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

.primary-button,
.ghost-button {
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #2db3ff, var(--blue-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 111, 242, 0.24);
}

.ghost-button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.support-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.support-row span {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  width: min(908px, 100%);
  margin: 50px auto 0;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate3d(calc(var(--mx) * -0.006), 0, 0);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.48) 48%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: softSweep 4.8s ease-in-out infinite;
}

.gui-mock {
  position: relative;
  min-height: 510px;
  padding: 18px;
  background:
    radial-gradient(circle at 82% 16%, rgba(25, 200, 232, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 255, 0.62));
}

:root[data-theme="dark"] .gui-mock {
  background:
    radial-gradient(circle at 82% 16%, rgba(25, 200, 232, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(18, 26, 35, 0.95), rgba(16, 41, 61, 0.72));
}

.gui-header {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(27, 151, 238, 0.18);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: 0 12px 28px rgba(40, 113, 169, 0.12);
}

.gui-accent {
  align-self: stretch;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.gui-header strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.gui-header span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gui-mode {
  justify-self: end;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(18, 141, 242, 0.12);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.gui-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 19px;
}

.gui-actions span,
.gui-toolbar span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

:root[data-theme="dark"] .gui-actions span,
:root[data-theme="dark"] .gui-toolbar span {
  background: rgba(255, 255, 255, 0.07);
}

.gui-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.gui-flow span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.gui-flow b {
  display: inline-grid;
  width: 29px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #dff8ef;
  color: var(--green);
  font-size: 11px;
}

.gui-flow span:nth-child(n + 4) b {
  background: #ffe8ee;
  color: var(--pink);
}

.gui-body {
  display: grid;
  grid-template-columns: 0.86fr 1.26fr;
  gap: 12px;
}

.gui-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: 0 14px 30px rgba(33, 115, 182, 0.12);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.gui-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(33, 115, 182, 0.18);
}

.gui-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.gui-panel label,
.spec-grid span,
.metric-line {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.gui-input {
  height: 26px;
  border: 1px solid rgba(32, 153, 237, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 141, 242, 0.2), rgba(25, 200, 232, 0.08) 42%, transparent 42%),
    rgba(255, 255, 255, 0.76);
}

.gui-input.wide {
  margin: 5px 0 10px;
}

.gui-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 5px 0 10px;
}

.gui-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.device-panel {
  grid-row: span 2;
}

.gui-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.gui-table {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.6fr 0.7fr;
  overflow: hidden;
  border: 1px solid rgba(32, 153, 237, 0.2);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.gui-table div {
  min-height: 29px;
  padding: 8px;
  border-right: 1px solid rgba(32, 153, 237, 0.14);
  border-bottom: 1px solid rgba(32, 153, 237, 0.14);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gui-table div:nth-child(-n + 4) {
  background: rgba(18, 141, 242, 0.12);
  color: var(--blue);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(18, 141, 242, 0.08);
}

.spec-grid b {
  color: var(--text);
  font-size: 12px;
}

.gui-run,
.gui-apply {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 900;
}

.gui-progress {
  height: 10px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(18, 141, 242, 0.12);
}

.gui-progress i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  animation: progressPulse 2.4s ease-in-out infinite;
}

.result-panel {
  grid-column: 1 / -1;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 62px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(18, 141, 242, 0.08);
}

.mini-chart i {
  flex: 1;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: equalize 1.8s ease-in-out infinite;
}

.mini-chart i:nth-child(1) { height: 32%; }
.mini-chart i:nth-child(2) { height: 76%; animation-delay: -0.4s; }
.mini-chart i:nth-child(3) { height: 48%; animation-delay: -0.8s; }
.mini-chart i:nth-child(4) { height: 88%; animation-delay: -1.1s; }
.mini-chart i:nth-child(5) { height: 58%; animation-delay: -1.4s; }

.gui-apply {
  background: linear-gradient(135deg, var(--green), #22d3a6);
}

.anime-character {
  --x: 0px;
  --y: 0px;
  --patrol-x: 0px;
  --move-x: var(--x);
  --move-y: var(--y);
  --bob-y: 0px;
  --lean: 0deg;
  --squash-x: 1;
  --squash-y: 1;
  --shadow-scale: 1;
  --shadow-opacity: 0.72;
  --scale: 1;
  --pop-scale: 1.1;
  position: absolute;
  z-index: 5;
  width: 192px;
  height: 208px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 18px 22px rgba(0, 98, 170, 0.22));
  transform:
    translate3d(var(--move-x), var(--move-y), 0)
    rotate(var(--lean))
    scale(var(--scale))
    scale(var(--squash-x), var(--squash-y));
  transform-origin: 50% 100%;
  transition: filter 180ms ease, opacity 180ms ease;
  will-change: transform;
}

.anime-character::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 4px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 130, 220, 0.22), transparent 72%);
  filter: blur(3px);
  transform: translateY(6px) scaleX(var(--shadow-scale));
  opacity: var(--shadow-opacity);
}

.anime-character:hover,
.anime-character:focus-visible {
  filter: drop-shadow(0 24px 28px rgba(0, 125, 215, 0.28));
  outline: none;
}

.anime-character:focus-visible .anime-sprite {
  outline: 2px solid rgba(18, 141, 242, 0.54);
  outline-offset: 8px;
  border-radius: 18px;
}

.anime-character.is-bounced {
  animation: animeCharacterPop 520ms cubic-bezier(0.2, 0.9, 0.16, 1);
}

.anime-sprite {
  position: relative;
  z-index: 1;
  display: block;
  width: 192px;
  height: 208px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: auto 208px;
  animation: animeIdleFrames 1.55s steps(6) infinite, animeSpriteFloat 4.2s ease-in-out infinite;
}

.anime-state-idle .anime-sprite {
  background-image: url("./assets/characters/anya-idle-strip.png");
  animation: animeIdleFrames 1.55s steps(6) infinite, animeSpriteFloat 4.2s ease-in-out infinite;
}

.anime-state-run-right .anime-sprite {
  background-image: url("./assets/characters/anya-run-right-strip.png");
  animation: animeRunFrames 0.58s steps(8) infinite, animeRunBody 0.58s ease-in-out infinite;
}

.anime-state-run-left .anime-sprite {
  background-image: url("./assets/characters/anya-run-left-strip.png");
  animation: animeRunFrames 0.58s steps(8) infinite, animeRunBody 0.58s ease-in-out infinite;
}

.anime-state-wave .anime-sprite {
  background-image: url("./assets/characters/anya-wave-strip.png");
  animation: animeWaveFrames 1.05s steps(4) infinite, animeSpriteFloat 3.8s ease-in-out infinite;
}

.anime-state-cheer .anime-sprite {
  background-image: url("./assets/characters/anya-cheer-strip.png");
  animation: animeCheerFrames 0.9s steps(5) infinite, animeSpriteFloat 2.6s ease-in-out infinite;
}

.anime-state-sleepy .anime-sprite {
  background-image: url("./assets/characters/anya-sleepy-strip.png");
  animation: animeSleepyFrames 1.6s steps(5) infinite, animeSleepyBob 5.2s ease-in-out infinite;
}

.anime-state-surprise .anime-sprite {
  background-image: url("./assets/characters/anya-surprise-strip.png");
  animation: animeSurpriseFrames 0.82s steps(4) infinite;
}

.anime-state-happy .anime-sprite {
  background-image: url("./assets/characters/anya-happy-strip.png");
  animation: animeHappyFrames 1.05s steps(6) infinite, animeSpriteFloat 2.8s ease-in-out infinite;
}

.anime-state-dash .anime-sprite {
  background-image: url("./assets/characters/anya-dash-strip.png");
  animation: animeHappyFrames 0.64s steps(6) infinite, animeDashLean 0.64s ease-in-out infinite;
}

.anime-state-shy .anime-sprite {
  background-image: url("./assets/characters/anya-shy-strip.png");
  animation: animeHappyFrames 1.35s steps(6) infinite, animeSpriteFloat 4.6s ease-in-out infinite;
}

.hero-visual {
  overflow: visible;
}

.hero-character {
  right: -70px;
  top: 58px;
  --scale: 1.04;
  --pop-scale: 1.18;
}

.download-character {
  left: 58%;
  right: auto;
  bottom: 12px;
  z-index: 1;
  --move-x: -126px;
  --move-y: 0px;
  --patrol-x: -126px;
  --scale: 0.62;
  --pop-scale: 0.74;
  opacity: 0.9;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.support-character {
  right: -82px;
  top: -58px;
  --scale: 0.82;
  --pop-scale: 0.94;
  opacity: 0.88;
}

.download {
  padding: 24px 0 66px;
}

.download-card,
.command-card,
.flow-card,
.notes {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  overflow: hidden;
  min-height: 300px;
  padding: 34px 34px 30px;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(25, 200, 232, 0.28), transparent 25%),
    linear-gradient(120deg, transparent 0 58%, rgba(45, 179, 255, 0.12) 58% 100%),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(18, 141, 242, 0.08) 26px 30px);
}

.download-card > * {
  position: relative;
  z-index: 1;
}

.download-card > .download-character {
  position: absolute;
  z-index: 1;
}

.download-card > div:first-child,
.download-card .release-meta {
  grid-column: 1;
}

.download-card > .primary-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.download-card h2,
.section-heading h2,
.notes h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.download-card h2 {
  max-width: 690px;
  font-size: clamp(30px, 3.4vw, 42px);
}

.download-card p,
.section-heading p,
.flow-card p,
.notes li {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.download-card p {
  max-width: 720px;
  margin: 16px 0 0;
}

.release-meta {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.release-meta span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.install,
.workflow,
.notes,
.support {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.download {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 820px;
  margin: 12px 0 0;
}

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

.command-card {
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(225, 244, 255, 0.58)),
    var(--panel);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
}

.card-head h3 {
  margin: 0;
  font-size: 22px;
}

.copy-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(18, 141, 242, 0.12);
  color: var(--blue);
  cursor: pointer;
}

pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

.workflow {
  padding: 70px 0 36px;
}

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

.flow-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at 82% 72%, rgba(25, 200, 232, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 255, 0.62));
}

.flow-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(18, 141, 242, 0.18);
  border-radius: 28px;
  transform: rotate(14deg);
}

.flow-card span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.flow-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.flow-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 420px;
  font-size: 16px;
}

.notes {
  margin-top: 28px;
  margin-bottom: 64px;
  padding: 26px 30px;
}

.notes ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.notes li + li {
  margin-top: 8px;
}

.support {
  position: relative;
  margin-bottom: 70px;
}

.support .section-heading,
.support-grid {
  position: relative;
  z-index: 1;
}

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

.support-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 150px;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.support-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(25, 200, 232, 0.26), transparent 34%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.support-card:hover,
.support-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(28, 114, 184, 0.22);
  outline: none;
}

.support-card:hover::after,
.support-card:focus-visible::after {
  opacity: 1;
}

.support-card svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.support-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.support-card strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sponsor-card {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 105, 180, 0.2), transparent 34%),
    var(--panel);
}

.footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(24px, calc((100% - var(--page-max)) / 2));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel), transparent 12%);
  color: var(--muted);
}

.footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.footer span,
.asset-credit {
  margin: 0;
  color: var(--muted);
}

.asset-credit {
  max-width: 560px;
  text-align: right;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.asset-credit a {
  color: var(--blue);
  text-decoration: none;
}

.asset-credit a:hover,
.asset-credit a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.miku-pet {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 24;
  width: 132px;
  height: 148px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition:
    transform 1600ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    filter 220ms ease;
  filter: drop-shadow(0 18px 24px rgba(0, 110, 180, 0.22));
  will-change: transform;
}

.miku-pet.is-ready {
  opacity: 1;
}

.miku-pet img {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(112px, 86%);
  transform: translateX(-50%);
  animation: petIdle 2.8s ease-in-out infinite;
}

.pet-shadow {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 8px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 120, 190, 0.24), transparent 72%);
  filter: blur(2px);
  animation: petShadow 2.8s ease-in-out infinite;
}

.miku-tip {
  position: absolute;
  right: 82px;
  top: 4px;
  min-width: 96px;
  max-width: 160px;
  padding: 8px 12px;
  border: 1px solid rgba(25, 200, 232, 0.42);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
}

.miku-pet.is-talking .miku-tip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.miku-pet:hover {
  filter: drop-shadow(0 20px 28px rgba(0, 190, 220, 0.34));
}

.miku-pet.is-patted img {
  animation: petPat 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sparkle-dot {
  position: fixed;
  z-index: 35;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--cyan) 22% 60%, transparent 62%);
  pointer-events: none;
  animation: sparkleOut 760ms ease-out forwards;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--topbar-h) + 54px);
  }

  .hero-character {
    right: -34px;
    bottom: -52px;
    --scale: 0.76;
    --pop-scale: 0.88;
    opacity: 0.82;
  }

  .download-character,
  .support-character {
    display: none;
  }

  .download-card,
  .command-grid,
  .flow-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    align-items: start;
  }

  .download-card > div:first-child,
  .download-card .release-meta,
  .download-card > .primary-button {
    grid-column: auto;
    grid-row: auto;
  }

}

@media (max-width: 680px) {
  :root {
    --topbar-h: 104px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 6px 10px;
    align-content: center;
    padding: 8px 12px;
  }

  .brand {
    min-height: 40px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .brand-name {
    font-size: 24px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    gap: 6px;
  }

  .nav-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 16px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .section-shell {
    width: min(var(--page-max), calc(100% - 32px));
  }

  .hero {
    gap: 28px;
    padding-bottom: 36px;
  }

  .hero-character {
    display: none;
  }

  .lead {
    font-size: 17px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .hero-visual img {
    min-height: 250px;
  }

  .gui-mock {
    min-height: 430px;
    padding: 12px;
  }

  .gui-body {
    grid-template-columns: 1fr;
  }

  .device-panel,
  .result-panel {
    grid-row: auto;
    grid-column: auto;
  }

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

  .gui-flow span:last-child {
    grid-column: 1 / -1;
  }

  .download-card {
    padding: 22px;
  }

  .workflow {
    padding-top: 48px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-top: 6px;
  }

  .asset-credit {
    max-width: none;
    margin-top: 14px;
    text-align: left;
  }

}

@keyframes animeIdleFrames {
  100% {
    background-position: -1152px 0;
  }
}

@keyframes animeRunFrames {
  100% {
    background-position: -1536px 0;
  }
}

@keyframes animeWaveFrames {
  100% {
    background-position: -768px 0;
  }
}

@keyframes animeCheerFrames {
  100% {
    background-position: -960px 0;
  }
}

@keyframes animeSleepyFrames {
  100% {
    background-position: -960px 0;
  }
}

@keyframes animeSurpriseFrames {
  100% {
    background-position: -768px 0;
  }
}

@keyframes animeHappyFrames {
  100% {
    background-position: -1152px 0;
  }
}

@keyframes animeSpriteFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes animeRunBody {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1, 1);
  }
  24% {
    transform: translateY(-4px) rotate(-1.5deg) scale(1.025, 0.975);
  }
  50% {
    transform: translateY(1px) rotate(0deg) scale(0.985, 1.025);
  }
  74% {
    transform: translateY(-3px) rotate(1.5deg) scale(1.018, 0.982);
  }
}

@keyframes animeSleepyBob {
  0%, 100% {
    transform: translateY(3px) rotate(0deg);
  }
  50% {
    transform: translateY(7px) rotate(-1deg);
  }
}

@keyframes animeDashLean {
  0%, 100% {
    transform: translateX(0) rotate(-3deg);
  }
  50% {
    transform: translateX(4px) rotate(3deg);
  }
}

@keyframes animeCharacterPop {
  0%, 100% {
    transform:
      translate3d(var(--move-x), var(--move-y), 0)
      rotate(var(--lean))
      scale(var(--scale))
      scale(var(--squash-x), var(--squash-y));
  }
  42% {
    transform:
      translate3d(var(--move-x), var(--move-y), 0)
      translateY(-18px)
      rotate(var(--lean))
      scale(var(--pop-scale))
      scale(1.08, 0.92);
  }
  72% {
    transform:
      translate3d(var(--move-x), var(--move-y), 0)
      translateY(4px)
      rotate(var(--lean))
      scale(var(--scale))
      scale(0.96, 1.06);
  }
}

@keyframes softSweep {
  0%, 58% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes progressPulse {
  0%, 100% {
    width: 54%;
  }
  50% {
    width: 86%;
  }
}

@keyframes equalize {
  0%, 100% {
    transform: scaleY(0.78);
  }
  50% {
    transform: scaleY(1.08);
  }
}

@keyframes sparkleOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.4);
  }
}

@keyframes petIdle {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) translateY(-8px) rotate(2deg);
  }
}

@keyframes petShadow {
  0%, 100% {
    transform: scaleX(0.92);
    opacity: 0.62;
  }
  50% {
    transform: scaleX(1.08);
    opacity: 1;
  }
}

@keyframes petPat {
  0% {
    transform: translateX(-50%) scale(1);
  }
  35% {
    transform: translateX(-50%) scale(1.08, 0.92);
  }
  72% {
    transform: translateX(-50%) scale(0.92, 1.08) translateY(-7px);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
