:root {
  --ink: #0a0e27;
  --ink-2: #111641;
  --ink-3: #1a2058;
  --line: #2a3270;
  --text: #eef0ff;
  --muted: #a3acdd;
  --nova: #ff6a3d;
  --flare: #ffc857;
  --core: #fff3d6;
  --up: #5be3a8;
  --down: #ff7a93;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 106, 61, 0.16), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(60, 80, 200, 0.22), transparent 70%),
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 12%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 42%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 58%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 74%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 88%, rgba(255, 255, 255, 0.6), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--flare);
  color: #1a0a00;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
}
.brand img { border-radius: 50%; }

.top nav { display: none; gap: 24px; }
.top nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.top nav a:hover { color: var(--text); }

@media (min-width: 720px) {
  .top nav { display: flex; }
}

main, .foot {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 32px;
  padding: 28px 0 56px;
  align-items: center;
}

.chip {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 32, 88, 0.6);
  color: var(--flare);
  font-weight: 600;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, var(--core) 10%, var(--flare) 45%, var(--nova) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 1.2rem;
  color: var(--muted);
}

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

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: linear-gradient(135deg, var(--flare), var(--nova));
  color: #1c0b00;
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(26, 32, 88, 0.5);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--flare); }

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(10, 14, 39, 0.6);
  max-width: 560px;
}
.ca-label { color: var(--muted); font-size: 0.9rem; }
.ca code {
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--core);
}
.copy {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--ink-3);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.copy:hover:not(:disabled) { border-color: var(--flare); }
.copy:disabled { opacity: 0.5; cursor: not-allowed; }

.hero-mark { justify-self: center; width: min(70vw, 380px); }
.hero-mark img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.25), 0 0 120px rgba(255, 106, 61, 0.35);
  animation: bloom 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes bloom {
  from { opacity: 0; transform: scale(0.55) rotate(-14deg); filter: brightness(2.4) blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding: 48px 0 72px; gap: 48px; }
  .hero-mark { width: 100%; max-width: 420px; justify-self: end; }
}

/* ---------- live panel ---------- */
.panel {
  padding: 24px var(--gutter) var(--gutter);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 32, 88, 0.7), rgba(17, 22, 65, 0.7));
  scroll-margin-top: 16px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.panel-head h2 { margin-bottom: 0; }

.status { margin: 0; color: var(--muted); font-size: 0.95rem; }
.status.ok { color: var(--up); }
.status.warn { color: var(--flare); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.stat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 14, 39, 0.65);
}
.stat dt { color: var(--muted); font-size: 0.9rem; }
.stat dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.6vw, 1.7rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stat dd.up { color: var(--up); }
.stat dd.down { color: var(--down); }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.chart {
  position: relative;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 14, 39, 0.65);
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}
.chart iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (min-width: 720px) {
  .chart { min-height: 540px; }
}

/* ---------- sections ---------- */
.about, .token, .how, .community { padding: 64px 0 0; }

.about p { max-width: 58ch; margin: 0 0 14px; color: var(--muted); font-size: 1.1rem; }
.about p:first-of-type { color: var(--text); }

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 720px;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.how ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.how li {
  position: relative;
  padding: 18px 18px 18px 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 22, 65, 0.6);
  counter-increment: step;
}
.how li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--flare), var(--nova));
  color: #1c0b00;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}
.how h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.15rem; }
.how p { margin: 0; color: var(--muted); }

@media (min-width: 860px) {
  .how ol { grid-template-columns: repeat(2, 1fr); }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot {
  margin-top: 72px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0 0 8px; max-width: 70ch; }
.foot strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark img { animation: none; }
  .btn { transition: none; }
}

/* ---------- launch data and swap ---------- */
.data-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.swap-panel { margin-top: 28px; }
.swap-copy { max-width: 68ch; color: var(--muted); }
.swap-panel .actions { margin-top: 18px; }
.chart iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 14px;
  background: #0a0e27;
}
@media (max-width: 600px) {
  .chart iframe { height: 460px; }
  .swap-panel .actions .btn { width: 100%; }
}
