:root {
  --bg: #08131f;
  --bg-2: #0b1a29;
  --panel: rgba(13, 28, 42, 0.72);
  --panel-strong: rgba(15, 33, 50, 0.9);
  --line: rgba(196, 233, 255, 0.12);
  --line-strong: rgba(196, 233, 255, 0.2);
  --text: #eff9ff;
  --text-soft: rgba(239, 249, 255, 0.78);
  --text-faint: rgba(239, 249, 255, 0.52);
  --accent: #ff7448;
  --accent-2: #ffc17a;
  --accent-3: #76e3ff;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
  --radius: 28px;
  --radius-sm: 20px;
  --radius-xs: 14px;
  --container: min(1200px, calc(100% - 32px));
  --header-h: 88px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(35, 100, 140, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, #06111a 100%);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; height: auto; }
button, input, textarea, select { font: inherit; }
main, section, .shell, .panel, .hero__grid, .hero-card, .token-layout, .two-col, .docs-layout, .visual-box { min-width: 0; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg__glow {
  position: absolute;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .34;
}
.bg__glow--a { left: -10vw; top: -8vw; background: rgba(118, 227, 255, 0.24); }
.bg__glow--b { right: -8vw; top: 10vh; background: rgba(255, 116, 72, 0.2); }
.bg__glow--c { left: 28vw; bottom: -18vw; background: rgba(81, 149, 255, 0.14); }
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9), rgba(0,0,0,0.08));
  opacity: .42;
}
.particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.34), rgba(118,227,255,0.14), transparent 72%);
  border: 1px solid rgba(255,255,255,0.08);
  animation: floatUp linear infinite;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px rgba(255, 116, 72, 0.5);
}

.shell { width: var(--container); margin: 0 auto; }
.section { padding: 58px 0; }
.section--compact { padding: 42px 0; }
.section--hero { padding-top: calc(var(--header-h) + 46px); }

.panel {
  background: linear-gradient(180deg, rgba(20, 40, 59, 0.72), rgba(9, 19, 29, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.panel--strong {
  background: linear-gradient(180deg, rgba(20, 40, 59, 0.9), rgba(9, 19, 29, 0.94));
}

.header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding-top: 16px;
}
.header--subpage { position: relative; }
.header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__logo {
  width: clamp(72px, 9vw, 110px);
  height: 56px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.brand__text { display: grid; gap: 2px; }
.brand__text strong { font-size: 16px; letter-spacing: .08em; }
.brand__text span { font-size: 12px; color: var(--text-soft); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a,
.mobile-menu a,
.footer__links a,
.inline-link {
  color: var(--text-soft);
  transition: color var(--transition), transform var(--transition);
}
.nav a:hover,
.mobile-menu a:hover,
.footer__links a:hover,
.inline-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.chip-button,
.menu-button,
.btn,
.modal__close {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.chip-button:hover,
.menu-button:hover,
.btn:hover,
.modal__close:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.chip-button {
  height: 42px;
  border-radius: 999px;
  padding: 0 14px;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}
.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}
.mobile-menu {
  display: none;
  margin: 10px auto 0;
  width: var(--container);
  padding: 12px;
  border-radius: 22px;
}
.mobile-menu.is-open { display: grid; }
.mobile-menu a { padding: 12px 10px; border-radius: 14px; }

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08131f;
  border-color: transparent;
}
.btn--secondary {
  background: linear-gradient(135deg, rgba(118,227,255,0.18), rgba(118,227,255,0.08));
}
.btn--ghost { background: rgba(255,255,255,0.03); }
.btn--small { min-height: 40px; padding: 0 14px; }

.is-disabled {
  opacity: .6;
  pointer-events: none;
}

body, .section, .shell, .panel, .card, .contact-card, .doc-block, .timeline-card {
  contain: layout paint;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 30px;
  align-items: center;
}
.eyebrow,
.kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(118,227,255,0.08);
  border: 1px solid rgba(118,227,255,0.12);
}
.hero__title {
  margin: 18px 0 14px;
  display: grid;
  gap: 8px;
  line-height: .94;
}
.hero__title span:first-child {
  font-size: clamp(44px, 7vw, 90px);
  letter-spacing: .06em;
}
.hero__title span:last-child {
  font-size: clamp(22px, 3vw, 38px);
  color: var(--text-soft);
  letter-spacing: .08em;
}
.hero__desc,
.section-head p,
.panel p,
.card p,
.timeline-card p,
.faq-answer {
  color: var(--text-soft);
  line-height: 1.82;
}
.hero__desc { max-width: 62ch; margin-bottom: 24px; }
.hero__meta,
.stats-grid,
.card-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}
.hero__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}
.mini-card,
.stat-card,
.card,
.contact-card,
.timeline-card,
.faq-item,
.summary-item,
.allocation-item,
.highlight-item,
.doc-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 22px;
}
.mini-card {
  padding: 14px 16px;
}
.mini-card span,
.stat-card span,
.muted-label,
.contact-card span,
.allocation-item span,
.timeline-card span,
.summary-item span {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.mini-card strong,
.stat-card strong,
.contact-card strong,
.allocation-item strong,
.timeline-card strong,
.summary-item strong { font-size: 16px; }
.hero__actions,
.hero__links,
.stack-actions,
.contract-actions,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__links { margin-top: 16px; }
.inline-link {
  padding: 10px 0;
  position: relative;
}
.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .22;
}

.hero-card {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 12% 12% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 63, 96, 0.72) 0%, rgba(8, 22, 34, 0) 72%);
  z-index: 0;
}
.hero-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent-3);
  background: rgba(118,227,255,0.12);
  border: 1px solid rgba(118,227,255,0.16);
}
.hero-card__rings,
.hero-card__rings::before,
.hero-card__rings::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-card__rings {
  width: 420px;
  height: 420px;
  animation: spin 28s linear infinite;
}
.hero-card__rings::before { inset: 30px; }
.hero-card__rings::after { inset: 70px; }
.hero-card__logo {
  display: none;
}
.hero-card__coin {
  position: absolute;
  width: min(30%, 172px);
  opacity: .6;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.28));
  z-index: 1;
}
.hero-card__coin--back {
  top: 110px;
  left: 34px;
  transform: rotate(-12deg);
  animation: bob 6.2s ease-in-out infinite;
}
.hero-card__coin--front {
  top: 112px;
  right: 34px;
  transform: rotate(12deg);
  animation: bob 6.6s ease-in-out infinite reverse;
}
.hero-card__mascot {
  position: relative;
  z-index: 2;
  width: min(66%, 390px);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.28));
  animation: bob 5.4s ease-in-out infinite;
}
.float-note {
  position: absolute;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(9, 18, 28, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 2px;
}
.float-note strong { font-size: 15px; }
.float-note span { font-size: 12px; color: var(--text-soft); }
.float-note--a { left: 20px; bottom: 70px; }
.float-note--b { right: 22px; top: 24px; }
.float-note--c { right: 24px; bottom: 26px; }

.section-head {
  max-width: 720px;
  margin-bottom: 22px;
}
.section-head h2,
.panel h2,
.panel h1 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 44px); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card,
.contact-card { padding: 22px; }
.card h3,
.contact-card h3,
.timeline-card h3,
.doc-block h3 { margin: 0 0 10px; font-size: 20px; }
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255,116,72,0.2), rgba(118,227,255,0.18));
  border: 1px solid var(--line);
}
.stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card { padding: 18px; }
.stat-card strong { font-size: 18px; }
.token-layout,
.two-col,
.docs-layout { display: grid; gap: 18px; }
.token-layout { grid-template-columns: 1.1fr .9fr; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col--hero { align-items: center; }
.panel { padding: 24px; }
.panel__title { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.contract-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contract-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  font-size: 14px;
}
.summary-list,
.allocation-list,
.stack-list,
.docs-content { display: grid; gap: 12px; }
.summary-item,
.allocation-item,
.highlight-item { padding: 16px; }
.allocation-item em { color: var(--text-soft); font-style: normal; line-height: 1.72; }
.bullet-list {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.9;
}
.highlight-item strong { display: block; margin-bottom: 6px; }
.cta-banner {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline-card {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 240ms ease, padding 240ms ease;
}
.faq-item.is-open .faq-answer {
  max-height: 220px;
  padding: 0 20px 18px;
}
.contact-card a { color: var(--accent-3); word-break: break-all; }
.footer { padding: 0 0 26px; }
.footer__bar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__bar p { margin: 6px 0 0; color: var(--text-soft); }

.docs-layout {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}
.sticky-card { position: sticky; top: 26px; }
.doc-block { padding: 24px; }
.doc-block p + p { margin-top: 10px; }
.visual-box {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.visual-box::before {
  content: "";
  position: absolute;
  inset: 12% 12% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 63, 96, 0.7) 0%, rgba(8, 22, 34, 0) 72%);
  z-index: 0;
}
.eco-logo {
  display: none;
}
.eco-coin {
  position: absolute;
  width: min(28%, 150px);
  opacity: .6;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.24));
  z-index: 1;
}
.eco-coin--front { left: 26px; top: 88px; transform: rotate(-10deg); }
.eco-coin--back { right: 30px; top: 88px; transform: rotate(10deg); }
.eco-mascot {
  position: relative;
  z-index: 2;
  width: min(66%, 340px);
  animation: bob 5.6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 120;
}
.modal.is-open { display: grid; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}
.modal__card {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 24px));
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

@keyframes floatUp {
  from { transform: translateY(0); opacity: 0; }
  10% { opacity: .85; }
  to { transform: translateY(-110vh); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__grid,
  .token-layout,
  .two-col,
  .docs-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .hero-card { min-height: 480px; }
}

@media (max-width: 780px) {
  :root { --container: min(100% - 20px, 1000px); --header-h: 78px; }
  .nav--desktop { display: none; }
  .menu-button { display: inline-flex; }
  .section { padding: 46px 0; }
  .section--hero { padding-top: calc(var(--header-h) + 26px); }
  .hero__meta,
  .card-grid--4,
  .card-grid--3,
  .stats-grid { grid-template-columns: 1fr; }
  .header__bar { padding: 12px 14px; }
  .brand__logo { width: 92px; height: 50px; }
  .panel { padding: 20px; }
  .hero-card { min-height: 430px; }
  .hero-card__coin { width: 82px; opacity: .52; }
  .hero-card__coin--back { left: 16px; top: 92px; }
  .hero-card__coin--front { right: 16px; top: 92px; }
  .eco-coin { width: 82px; opacity: .52; }
  .eco-coin--front { left: 16px; top: 88px; }
  .eco-coin--back { right: 16px; top: 88px; }
  .float-note { position: static; margin-top: 12px; }
  .hero__actions .btn,
  .stack-actions .btn,
  .contract-actions .btn,
  .cta-banner .btn { width: 100%; }
  .cta-banner,
  .footer__bar,
  .contract-box { flex-direction: column; align-items: stretch; }
}

.contract-value,
.contact-card a,
.summary-item strong,
.allocation-item em,
.doc-block p,
.timeline-card p,
.card p {
  overflow-wrap: anywhere;
}
.hero-card__logo,
.hero-card__coin,
.hero-card__mascot,
.eco-logo,
.eco-coin,
.eco-mascot,
.float-note,
.card,
.panel {
  will-change: transform;
}
@media (max-width: 780px) {
  .particles,
  .hero-card__rings { display: none; }
  .bg__grid { opacity: .2; background-size: 48px 48px; }
  .bg__glow { width: 56vw; filter: blur(44px); opacity: .26; }
  .brand { gap: 10px; }
  .brand__text span { display: none; }
  .header { padding-top: 10px; }
  .header__actions { gap: 8px; }
  .chip-button { padding: 0 12px; }
  .hero__title { gap: 10px; }
  .hero__title span:first-child { font-size: clamp(38px, 13vw, 56px); }
  .hero__title span:last-child { font-size: clamp(20px, 6vw, 28px); }
  .hero__desc { margin-bottom: 20px; }
  .hero-card { min-height: 390px; }
  .hero-card__coin { width: 68px; opacity: .44; }
  .hero-card__coin--back { left: 10px; top: 72px; }
  .hero-card__coin--front { right: 10px; top: 72px; }
  .hero-card__mascot { width: min(70%, 250px); }
  .eco-coin { width: 68px; opacity: .44; }
  .eco-coin--front { left: 10px; top: 72px; }
  .eco-coin--back { right: 10px; top: 72px; }
  .eco-mascot { width: min(70%, 245px); }
  .float-note { padding: 10px 12px; border-radius: 16px; }
  .float-note strong { font-size: 14px; }
  .float-note span { font-size: 11px; }
  .sticky-card { top: 0; }
}
@media (max-width: 420px) {
  :root { --container: min(100% - 16px, 1000px); }
  .hero__links, .footer__links { gap: 10px; }
  .contract-actions, .hero__actions, .stack-actions { gap: 10px; }
  .contact-card, .card, .timeline-card, .doc-block { padding: 16px; }
  .hero__meta { gap: 10px; }
  .header__bar { gap: 10px; }
  .brand__logo { width: 82px; height: 46px; }
  .hero-card { min-height: 360px; }
  .panel { padding: 18px; }
  .section { padding: 40px 0; }
  .faq-question { padding: 16px; }
  .faq-item.is-open .faq-answer { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .particle,
  .hero-card__rings,
  .hero-card__coin,
  .hero-card__mascot,
  .eco-mascot {
    animation: none !important;
  }
}
