:root {
  --bg: #050505;
  --bg-soft: #080808;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.46);
  --blue: #0052ff;
  --cyan: #35d7ff;
  --green: #2fffb2;
  --success: #19ff9b;
  --warning: #ffb020;
  --danger: #ff4da6;
  --radius: 8px;
  --shadow-blue: 0 0 36px rgba(0, 82, 255, 0.38);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(0, 82, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(53, 215, 255, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.skip-link:focus {
  z-index: 999;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  position: relative;
  padding: 92px 0;
}

.anchor-alias {
  position: absolute;
  top: -84px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 24px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(0, 82, 255, 0.3);
}

.brand-mark img + img {
  margin-left: -10px;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.brand small,
.footer-brand p {
  display: block;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-menu a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(53, 215, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 82, 255, 0.14);
  color: var(--cyan);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 900;
}

.nav-menu a:hover,
.nav-agent:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-cta,
.btn-primary {
  border: 1px solid rgba(53, 215, 255, 0.42);
  background: linear-gradient(135deg, var(--blue), #1a70ff);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(0, 82, 255, 0.5);
  background: rgba(0, 82, 255, 0.15);
  color: var(--text);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.btn-icon {
  margin-right: 4px;
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

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

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 124px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-plane {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(0, 82, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 255, 0.18) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  transform: perspective(600px) rotateX(62deg) translateY(-18%);
  transform-origin: top;
  animation: grid-drift 18s linear infinite;
}

.orb {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.22;
}

.orb-one {
  top: 9%;
  left: -12%;
  background: var(--blue);
}

.orb-two {
  right: -10%;
  bottom: 8%;
  background: var(--cyan);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  line-height: 0.9;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.typewriter {
  min-height: 2.3rem;
  margin: 28px 0 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 800;
}

.typewriter span::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 0.95em;
  margin-left: 4px;
  border-right: 2px solid var(--cyan);
  transform: translateY(2px);
  animation: caret 800ms steps(1) infinite;
}

.hero-sub,
.section-head p,
.mission-block p,
.tokenomics-content p,
.glass-card p,
.token-profile p,
.timeline-item p,
.step p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-sub {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.code-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 680px;
  margin-top: 24px;
}

.code-rail span,
.card-code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 82, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-rail span {
  padding: 11px 12px;
}

.code-rail b {
  margin-right: 8px;
  color: var(--cyan);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contract-strip,
.footer-contract,
.contract-line,
.inline-contract {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.contract-strip span,
.footer-contract span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.contract-strip code,
.footer-contract code,
.contract-line code,
.inline-contract code {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  text-overflow: ellipsis;
}

.contract-strip button,
.footer-contract button,
.inline-contract button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid rgba(53, 215, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(53, 215, 255, 0.1);
  color: var(--text);
  font-weight: 900;
}

.inline-contract {
  margin-top: 16px;
  padding: 8px;
}

.hero-visual {
  min-height: 560px;
  perspective: 1100px;
}

.token-stack {
  position: relative;
  height: 560px;
  transform-style: preserve-3d;
}

.core-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 215, 255, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 82, 255, 0.32), rgba(0, 0, 0, 0.12) 60%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 80px rgba(0, 82, 255, 0.38), inset 0 0 42px rgba(53, 215, 255, 0.14);
  transform: translate(-50%, -50%) rotateX(12deg) rotateY(-14deg);
}

.core-ring::before,
.core-ring::after {
  content: "";
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(0, 82, 255, 0.26);
  border-radius: 50%;
  animation: ring-spin 14s linear infinite;
}

.core-ring::after {
  inset: 34px;
  border-color: rgba(255, 255, 255, 0.16);
  animation-duration: 10s;
  animation-direction: reverse;
}

.core-ring img {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 42px rgba(53, 215, 255, 0.28);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(280px, 74vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.72);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42), 0 0 30px rgba(0, 82, 255, 0.26);
  backdrop-filter: blur(16px);
  animation: float-y 5.5s ease-in-out infinite;
}

.float-card img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.float-card span {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card strong {
  margin-top: 4px;
}

.float-card small {
  margin-top: 6px;
  color: var(--faint);
  font-weight: 800;
}

.card-miao {
  top: 54px;
  left: 0;
}

.card-miaoai {
  right: 0;
  bottom: 74px;
  animation-delay: -2.2s;
}

.terminal-card,
.dev-console {
  border: 1px solid rgba(53, 215, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 6, 15, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38), 0 0 34px rgba(0, 82, 255, 0.18);
  backdrop-filter: blur(18px);
}

.terminal-card {
  position: absolute;
  left: 10%;
  bottom: 6px;
  z-index: 3;
  width: min(390px, 86vw);
  padding: 14px;
  transform: rotateX(11deg) rotateY(11deg) translateZ(42px);
  animation: terminal-float 7s ease-in-out infinite;
}

.terminal-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.terminal-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(53, 215, 255, 0.5);
}

.terminal-dots i:nth-child(2) {
  background: var(--green);
}

.terminal-dots i:nth-child(3) {
  background: var(--blue);
}

.terminal-card pre,
.dev-console pre {
  margin: 0;
  overflow: hidden;
}

.terminal-card code,
.dev-console code {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

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

.section-head p:last-child {
  margin-bottom: 0;
}

.card-grid,
.proof-grid,
.steps,
.metric-grid,
.link-grid {
  display: grid;
  gap: 16px;
}

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

.glass-card,
.proof-card,
.token-profile,
.game-panel,
.mission-block,
.step,
.link-grid a,
.donut-card,
.tokenomics-content {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.glass-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card-code {
  display: block;
  margin-top: 24px;
  padding: 10px 11px;
}

.glass-card:hover,
.proof-card:hover,
.link-grid a:hover,
.step:hover {
  border-color: rgba(53, 215, 255, 0.38);
  box-shadow: 0 0 42px rgba(0, 82, 255, 0.24);
  transform: translateY(-4px);
}

.card-topline {
  margin-bottom: 24px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(0, 82, 255, 0.08), transparent),
    var(--bg);
}

.game-grid,
.official-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.game-panel {
  padding: 18px;
}

.game-screen {
  min-height: 470px;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(53, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 215, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(0, 82, 255, 0.22), transparent 60%),
    #06070b;
  background-size: 36px 36px, 36px 36px, auto, auto;
  overflow: hidden;
}

.game-header,
.game-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.game-header span {
  padding: 6px 9px;
  border-radius: var(--radius);
  background: rgba(47, 255, 178, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.game-arena {
  position: relative;
  height: 350px;
}

.player-token {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106px;
  height: 106px;
  padding: 6px;
  border: 1px solid rgba(53, 215, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.14);
  box-shadow: 0 0 44px rgba(0, 82, 255, 0.45);
  transform: translate(-50%, -50%);
  animation: float-y 4s ease-in-out infinite;
}

.player-token img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pickup,
.hazard {
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: pickup-pulse 2.6s ease-in-out infinite;
}

.pickup {
  background: var(--green);
  box-shadow: 0 0 24px rgba(47, 255, 178, 0.62);
}

.pickup-a {
  left: 17%;
  top: 28%;
}

.pickup-b {
  right: 18%;
  top: 22%;
  animation-delay: -0.7s;
}

.pickup-c {
  right: 30%;
  bottom: 19%;
  animation-delay: -1.4s;
}

.hazard {
  left: 27%;
  bottom: 23%;
  background: var(--danger);
  box-shadow: 0 0 24px rgba(255, 77, 166, 0.62);
}

.game-stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 900;
}

.agent-page-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 118px;
  overflow: hidden;
}

.agent-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 44px;
  align-items: center;
}

.agent-page-copy h1 {
  margin: 14px 0 0;
  max-width: 820px;
}

.agent-page-copy .hero-sub {
  max-width: 760px;
}

.agent-terminal-line {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-top: 24px;
}

.agent-terminal-line span {
  min-width: 0;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 82, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.agent-identity-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 82, 255, 0.38), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  padding: 26px;
  box-shadow: 0 30px 110px rgba(0, 82, 255, 0.24);
}

.agent-identity-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(53, 215, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(rgba(53, 215, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 215, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
  pointer-events: none;
}

.agent-portrait {
  position: relative;
  width: min(310px, 78vw);
  margin: 0 auto;
  aspect-ratio: 1;
  border: 1px solid rgba(53, 215, 255, 0.34);
  border-radius: 50%;
  background: #020713;
  box-shadow: 0 0 70px rgba(0, 82, 255, 0.42);
  animation: float-y 7s ease-in-out infinite;
}

.agent-portrait img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.agent-identity-card h2,
.agent-identity-card p {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.agent-identity-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.agent-identity-card p {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.7;
}

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

.agent-mode-card,
.agent-use-card,
.agent-safety-card,
.agent-copy-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  padding: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
}

.agent-mode-card span,
.agent-use-card span,
.agent-safety-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 999px;
  background: rgba(53, 215, 255, 0.08);
  color: var(--cyan);
  padding: 0 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.agent-mode-card h3,
.agent-use-card h3,
.agent-safety-card h3,
.agent-copy-panel h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
}

.agent-mode-card p,
.agent-use-card p,
.agent-safety-card p,
.agent-copy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.agent-copy-section {
  background:
    radial-gradient(circle at 15% 30%, rgba(0, 82, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 85% 80%, rgba(53, 215, 255, 0.09), transparent 24rem);
}

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

.agent-stack {
  display: grid;
  gap: 14px;
}

.feature-list,
.allocation-list,
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span,
.mini-stats span,
.category-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

.product-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 38%, rgba(53, 215, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent),
    var(--bg);
}

.showcase-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 44px;
  align-items: center;
}

.dev-console {
  margin-top: 26px;
  padding: 16px;
}

.dev-console code {
  color: rgba(53, 215, 255, 0.9);
  font-size: 0.86rem;
}

.screenshot-stage {
  position: relative;
  margin: 0;
  perspective: 1000px;
}

.screenshot-stage img {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(53, 215, 255, 0.26);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 54px rgba(0, 82, 255, 0.28);
  transform: rotateX(7deg) rotateY(-9deg) translateZ(0);
  transform-origin: center;
  animation: screenshot-tilt 8s ease-in-out infinite;
}

.screenshot-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: var(--radius);
  transform: rotateX(7deg) rotateY(-9deg) translate(24px, 26px);
}

.screen-glow {
  position: absolute;
  inset: 16% 8%;
  z-index: 0;
  border-radius: 40%;
  background: rgba(0, 82, 255, 0.3);
  filter: blur(52px);
}

.screenshot-stage figcaption {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mission-block {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 82% 20%, rgba(0, 82, 255, 0.22), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.036));
}

.metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 34px;
}

.metric-grid div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.metric-grid strong,
.proof-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.metric-grid span,
.proof-card span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-weight: 800;
}

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

.token-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.token-profile img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(0, 82, 255, 0.26);
}

.token-profile span {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font-weight: 900;
}

.tab.is-active {
  background: var(--blue);
  color: var(--text);
  box-shadow: 0 0 26px rgba(0, 82, 255, 0.3);
}

.tab-panels {
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
}

.tokenomics-panel {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.tokenomics-panel[hidden] {
  display: none;
}

.donut-card,
.tokenomics-content {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}

.donut-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.donut {
  width: min(230px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 82, 255, 0.22);
  animation: ring-spin 18s linear infinite;
}

.donut span {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #080808;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  transform: rotate(0deg);
  animation: ring-counter 18s linear infinite;
}

.donut-miao {
  background: conic-gradient(var(--blue) 0 55%, rgba(53, 215, 255, 0.68) 55% 70%, rgba(255, 255, 255, 0.17) 70% 100%);
}

.donut-miaoai {
  background: conic-gradient(
    var(--blue) 0 60%,
    var(--cyan) 60% 80%,
    rgba(47, 255, 178, 0.86) 80% 87%,
    rgba(255, 255, 255, 0.42) 87% 92%,
    rgba(53, 215, 255, 0.45) 92% 97%,
    rgba(255, 255, 255, 0.2) 97% 100%
  );
}

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

.allocation-list span {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  line-height: 1.5;
}

.allocation-percent span::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  width: calc(var(--pct) * 1%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(53, 215, 255, 0.4);
}

.allocation-list b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.note {
  padding: 14px;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(53, 215, 255, 0.08);
}

.contract-line {
  justify-content: space-between;
}

.contract-line a {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 900;
}

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

.proof-card {
  min-height: 158px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.roadmap-section {
  background:
    radial-gradient(circle at center left, rgba(0, 82, 255, 0.1), transparent 34rem),
    var(--bg);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 16px;
  scrollbar-color: rgba(53, 215, 255, 0.35) rgba(255, 255, 255, 0.06);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 215, 255, 0.48), transparent);
}

.timeline-item {
  position: relative;
  min-height: 280px;
  padding: 74px 18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.048);
}

.timeline-item > span {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 215, 255, 0.42);
  border-radius: 50%;
  background: #050505;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 82, 255, 0.28);
}

.timeline-item.now {
  border-color: rgba(53, 215, 255, 0.35);
  box-shadow: 0 0 34px rgba(0, 82, 255, 0.18);
}

.timeline-item em {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(47, 255, 178, 0.12);
  color: var(--green);
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

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

.step {
  min-height: 230px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.step b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.16);
  color: var(--cyan);
  font-family: var(--font-display);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.faq-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 82, 255, 0.11), transparent 26rem),
    var(--bg);
}

.faq-grid {
  align-items: start;
}

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

.faq-list details {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 58px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.75;
}

.official-grid {
  align-items: start;
}

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

.link-grid a {
  min-height: 96px;
  padding: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-grid span {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  padding: 38px 0 92px;
  border-top: 1px solid var(--line-soft);
  background: #030303;
}

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

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-contract {
  margin-top: 0;
}

.footer-rights {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.mobile-playbar {
  display: none;
}

.ai-agent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
}

.agent-launcher {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(53, 215, 255, 0.68);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 28% 24%, rgba(53, 215, 255, 0.95), var(--blue) 58%, #001c66);
  color: var(--text);
  box-shadow: 0 0 44px rgba(0, 82, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.agent-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 56px rgba(0, 82, 255, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.agent-launcher img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.agent-pulse {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(53, 215, 255, 0.32);
  border-radius: 50%;
  animation: agent-pulse 2.4s ease-in-out infinite;
}

.agent-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(460px, calc(100vw - 24px));
  height: min(680px, calc(100dvh - 112px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(53, 215, 255, 0.25);
  border-radius: 24px;
  background:
    linear-gradient(rgba(53, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 215, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(0, 82, 255, 0.2), transparent 15rem),
    rgba(5, 5, 5, 0.94);
  background-size: 32px 32px, 32px 32px, auto, auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 44px rgba(0, 82, 255, 0.26);
  backdrop-filter: blur(22px);
}

.agent-panel[hidden] {
  display: none;
}

.agent-body {
  display: grid;
  min-height: 0;
}

.agent-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  min-width: 0;
  min-height: 0;
}

.agent-panel.is-fullscreen {
  position: fixed;
  inset: 0;
  width: auto;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 82, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 86%, rgba(53, 215, 255, 0.09), transparent 26rem),
    linear-gradient(180deg, #07090d, #040506 54%, #050505);
  background-size: auto;
  box-shadow: none;
}

.agent-panel.is-fullscreen .agent-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  width: min(1440px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding: 22px 0 18px;
}

.agent-panel.is-fullscreen .agent-main {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
  min-height: 0;
}

.agent-panel-glow {
  position: absolute;
  inset: -120px -90px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(53, 215, 255, 0.2);
  filter: blur(28px);
  pointer-events: none;
}

.ai-agent.is-open .agent-launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.agent-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.agent-panel.is-fullscreen .agent-header {
  min-height: 76px;
  padding: 12px 24px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(18px);
}

.agent-window-actions {
  display: flex;
  gap: 6px;
}

.agent-header > div:nth-child(2) {
  min-width: 0;
}

.agent-avatar img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(53, 215, 255, 0.34);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(53, 215, 255, 0.42);
}

.agent-header strong,
.agent-header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-header strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.agent-header small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
}

.agent-window-actions button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.08rem;
}

.agent-status {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.agent-status strong {
  color: rgba(255, 255, 255, 0.86);
}

.agent-status em {
  color: rgba(148, 163, 184, 0.9);
  font-style: normal;
}

.agent-hero-card {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 14px 0;
  padding: 14px;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at right, rgba(0, 82, 255, 0.22), transparent 12rem),
    rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.agent-panel.is-fullscreen .agent-hero-card {
  display: flex;
  width: min(900px, 100%);
  margin: 0 auto 12px;
  padding: 18px 20px;
  border-color: rgba(53, 215, 255, 0.18);
  background:
    radial-gradient(circle at right, rgba(0, 82, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.agent-hero-card small,
.agent-hero-card strong {
  display: block;
}

.agent-hero-card small {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-hero-card strong {
  margin-top: 5px;
  font-family: var(--font-display);
  line-height: 1.2;
}

.agent-hero-card em {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  font-style: normal;
}

.agent-hero-card > span {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.22);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 82, 255, 0.26);
}

.agent-live-grid {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 0;
}

.agent-panel.is-fullscreen .agent-live-grid {
  display: grid;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}

.agent-panel.is-fullscreen .agent-live-grid article {
  background: rgba(255, 255, 255, 0.035);
}

.agent-live-grid article {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.agent-live-grid span,
.agent-live-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-live-grid span {
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-live-grid strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 0.8rem;
}

.coming-online {
  position: relative;
  color: rgba(255, 255, 255, 0.56) !important;
}

.coming-online::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 0.8em;
  margin-left: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(53, 215, 255, 0.32), transparent);
  animation: shimmer 1.4s linear infinite;
  vertical-align: -1px;
}

.agent-trust-banner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin: 10px 12px 0;
  padding: 10px 11px;
  border: 1px solid rgba(25, 255, 155, 0.18);
  border-radius: 16px;
  background: rgba(25, 255, 155, 0.045);
}

.agent-panel.is-fullscreen .agent-trust-banner {
  width: min(900px, 100%);
  margin: 12px auto 0;
}

.agent-trust-banner strong {
  color: var(--text);
  font-size: 0.78rem;
}

.agent-trust-banner span {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
}

.agent-status span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(47, 255, 178, 0.6);
}

.agent-messages {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  scroll-behavior: smooth;
}

.agent-panel.is-fullscreen .agent-messages {
  width: min(900px, 100%);
  max-width: 900px;
  max-height: none;
  margin: 0 auto;
  padding: 26px 0;
}

.agent-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.agent-panel.is-fullscreen .agent-message {
  max-width: min(760px, 100%);
  margin-bottom: 16px;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.agent-panel.is-fullscreen .agent-message-ai {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
}

.agent-panel.is-fullscreen .agent-message-user {
  background: rgba(0, 82, 255, 0.18);
  border-color: rgba(53, 215, 255, 0.18);
}

.agent-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent-panel.is-fullscreen .agent-message p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.agent-message img {
  display: block;
  width: min(260px, 100%);
  margin-top: 10px;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: var(--radius);
}

.agent-message-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.agent-message-actions button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 900;
}

.agent-message-user {
  margin-left: auto;
  border-color: rgba(0, 82, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.34), rgba(53, 215, 255, 0.12));
}

.agent-message-ai {
  margin-right: auto;
  border-color: rgba(53, 215, 255, 0.16);
}

.agent-suggestions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
  scrollbar-width: none;
}

.agent-suggestions::-webkit-scrollbar {
  display: none;
}

.agent-panel.is-fullscreen .agent-suggestions {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0 0 12px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
}

.agent-suggestions button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(53, 215, 255, 0.2);
  border-radius: 999px;
  background: rgba(53, 215, 255, 0.1);
  color: var(--text);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.agent-suggestions button span {
  margin-right: 6px;
  color: var(--cyan);
}

.agent-upload {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 12px 8px;
  padding: 8px;
  border: 1px solid rgba(53, 215, 255, 0.22);
  border-radius: 16px;
  background: rgba(53, 215, 255, 0.08);
}

.agent-panel.is-fullscreen .agent-upload {
  width: min(900px, 100%);
  margin: 0 auto 10px;
}

.agent-upload[hidden] {
  display: none;
}

.agent-upload img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
}

.agent-upload strong,
.agent-upload span {
  display: block;
  min-width: 0;
}

.agent-upload span {
  overflow: hidden;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-upload button {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 9px 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.agent-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 58px 48px 58px;
  gap: 7px;
  align-items: end;
  padding: 10px 12px 7px;
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.agent-panel.is-fullscreen .agent-form {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.agent-tool-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(53, 215, 255, 0.28);
  border-radius: 14px;
  background: rgba(53, 215, 255, 0.1);
  color: var(--cyan);
  font-size: 1.18rem;
  font-weight: 900;
  overflow: hidden;
}

.agent-tool-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.agent-form textarea {
  min-height: 42px;
  max-height: 104px;
  resize: none;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  padding: 11px 10px;
  outline: none;
  line-height: 1.35;
}

.agent-panel.is-fullscreen .agent-form textarea {
  min-height: 54px;
  border-color: transparent;
  background: transparent;
  font-size: 1rem;
}

.agent-form textarea:focus {
  border-color: rgba(53, 215, 255, 0.45);
}

.agent-form button,
.agent-generate-button {
  border: 1px solid rgba(53, 215, 255, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #1a70ff);
  color: var(--text);
  min-height: 42px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(0, 82, 255, 0.28);
}

.agent-wallet-button {
  background: rgba(255, 255, 255, 0.075) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.7rem;
}

.agent-generate-button {
  background: rgba(53, 215, 255, 0.1);
  color: var(--cyan);
  font-size: 0.72rem;
}

.agent-disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 12px 11px;
  color: var(--faint);
  font-size: 0.67rem;
  font-weight: 800;
}

.agent-panel.is-fullscreen .agent-disclaimer {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 9px 0 16px;
  text-align: center;
}

.agent-toolkit {
  display: none;
}

.agent-panel.is-fullscreen .agent-toolkit {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.toolkit-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.toolkit-card span,
.toolkit-card label {
  display: block;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toolkit-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  line-height: 1.2;
}

.toolkit-actions {
  display: grid;
  gap: 8px;
}

.toolkit-actions button,
.scanner-row button,
.style-presets button {
  min-height: 40px;
  border: 1px solid rgba(53, 215, 255, 0.18);
  border-radius: 12px;
  background: rgba(53, 215, 255, 0.07);
  color: var(--text);
  padding: 0 12px;
  font-weight: 900;
  text-align: left;
}

.scanner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  margin-top: 10px;
}

.scanner-row input {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 10px;
  outline: none;
}

.risk-result {
  margin-top: 10px;
}

.risk-result p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.55;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.risk-unknown {
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: rgba(255, 176, 32, 0.12);
  color: var(--warning);
}

.risk-safe {
  border: 1px solid rgba(25, 255, 155, 0.3);
  background: rgba(25, 255, 155, 0.12);
  color: var(--success);
}

.risk-warning {
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: rgba(255, 176, 32, 0.12);
  color: var(--warning);
}

.risk-high {
  border: 1px solid rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.13);
  color: var(--danger);
}

.style-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.style-presets button {
  flex: 1 1 auto;
  min-height: 34px;
  text-align: center;
  font-size: 0.76rem;
}

.official-contracts code {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

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

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 28px rgba(0, 82, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
  50% {
    box-shadow: 0 0 48px rgba(0, 82, 255, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 52px 52px;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-counter {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translate3d(0, 0, 24px);
  }
  50% {
    transform: translate3d(0, -18px, 36px);
  }
}

@keyframes terminal-float {
  0%,
  100% {
    transform: rotateX(11deg) rotateY(11deg) translate3d(0, 0, 42px);
  }
  50% {
    transform: rotateX(6deg) rotateY(16deg) translate3d(0, -16px, 58px);
  }
}

@keyframes screenshot-tilt {
  0%,
  100% {
    transform: rotateX(7deg) rotateY(-9deg) translateY(0);
  }
  50% {
    transform: rotateX(4deg) rotateY(-4deg) translateY(-14px);
  }
}

@keyframes pickup-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.34);
    opacity: 1;
  }
}

@keyframes agent-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(10px);
  }
}

@media (max-width: 1120px) {
  .nav-menu {
    gap: 13px;
    font-size: 0.78rem;
  }

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

  .tokenomics-panel {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

  .agent-panel.is-fullscreen .agent-body {
    grid-template-columns: 1fr;
  }

  .agent-panel.is-fullscreen .agent-toolkit {
    display: none;
  }
}

@media (max-width: 900px) {
  .section-pad {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  }

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

  .nav-menu a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .nav-agent {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    text-align: left;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .agent-page-hero {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-grid,
  .game-grid,
  .official-grid,
  .showcase-grid,
  .faq-grid,
  .agent-page-grid {
    grid-template-columns: 1fr;
  }

  .agent-mode-grid,
  .agent-use-grid,
  .agent-safety-grid,
  .agent-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 470px;
  }

  .token-stack {
    height: 470px;
  }

  .three,
  .token-duo,
  .proof-grid,
  .tokenomics-panel {
    grid-template-columns: 1fr;
  }

  .screenshot-stage img {
    width: min(480px, 100%);
  }

  .timeline {
    display: block;
    overflow: visible;
    padding-left: 30px;
  }

  .timeline::before {
    top: 12px;
    bottom: 12px;
    left: 26px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-item {
    min-height: auto;
    margin-bottom: 14px;
    padding-top: 22px;
    padding-left: 58px;
  }

  .timeline-item > span {
    left: -30px;
    top: 18px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    width: min(100% - 20px, 1240px);
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.2rem);
  }

  .typewriter {
    min-height: 4.4rem;
  }

  .code-rail {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 52px;
  }

  .contract-strip,
  .footer-contract,
  .contract-line,
  .inline-contract {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-strip button,
  .footer-contract button,
  .inline-contract button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .token-stack {
    height: 390px;
  }

  .terminal-card {
    left: 0;
    bottom: -8px;
    width: min(320px, 92vw);
    transform: none;
  }

  .terminal-card code,
  .dev-console code {
    font-size: 0.72rem;
  }

  .core-ring {
    width: min(270px, 76vw);
  }

  .float-card {
    width: min(245px, 80vw);
  }

  .card-miao {
    top: 0;
  }

  .card-miaoai {
    bottom: 6px;
  }

  .game-screen {
    min-height: 380px;
  }

  .game-arena {
    height: 260px;
  }

  .game-stats,
  .game-header {
    flex-wrap: wrap;
  }

  .metric-grid,
  .steps,
  .allocation-list,
  .link-grid,
  .faq-grid,
  .agent-mode-grid,
  .agent-use-grid,
  .agent-safety-grid,
  .agent-copy-grid {
    grid-template-columns: 1fr;
  }

  .agent-identity-card {
    padding: 18px;
  }

  .agent-terminal-line span {
    font-size: 0.72rem;
  }

  .screenshot-stage img {
    transform: none;
    animation: none;
  }

  .screenshot-stage::before {
    transform: translate(10px, 12px);
  }

  .token-profile {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 18px;
  }

  .token-profile img {
    width: 72px;
    height: 72px;
  }

  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer {
    padding-bottom: 98px;
  }

  .mobile-playbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: block;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(16px);
  }

  .mobile-playbar a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--blue);
    box-shadow: var(--shadow-blue);
    font-weight: 900;
  }

  .ai-agent {
    right: 12px;
    bottom: 78px;
  }

  .agent-launcher {
    width: 60px;
    height: 60px;
  }

  .agent-panel {
    position: fixed;
    right: 6px;
    left: 6px;
    bottom: 6px;
    width: auto;
    height: min(90dvh, 720px);
    border-radius: 24px 24px 18px 18px;
  }

  .agent-panel.is-fullscreen {
    inset: 0;
    height: 100dvh;
    border-radius: 0;
  }

  .agent-messages {
    min-height: 0;
  }

  .agent-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 10px;
    gap: 9px;
  }

  .agent-avatar img {
    width: 40px;
    height: 40px;
  }

  .agent-window-actions button {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 0.98rem;
  }

  .agent-status {
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .agent-form {
    grid-template-columns: 38px minmax(0, 1fr) 54px 42px 54px;
    gap: 6px;
    padding: 8px 9px 6px;
  }

  .agent-panel.is-fullscreen .agent-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-tool-button,
  .agent-form button {
    min-height: 40px;
  }

  .agent-form textarea {
    min-height: 40px;
    padding: 10px 9px;
  }

  .agent-message {
    max-width: 94%;
  }

  .agent-trust-banner {
    margin: 8px 10px 0;
    padding: 8px 10px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
