:root {
  color-scheme: dark;
  --accent: #ccff04;
  --accent-rgb: 204, 255, 4;
  --bg: #050505;
  --bg-elevated: #0b0c0b;
  --panel: #101210;
  --panel-2: #151815;
  --text: #f5f7ef;
  --muted: #9ca397;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.24);
  --shadow: 0 28px 80px rgba(0,0,0,.42);
  --header: rgba(5,5,5,.74);
  --danger: #ff5667;
  --warning: #ffb545;
  --info: #6c92ff;
  --success: #ccff04;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --max: 1480px;
  --sans: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f0;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-2: #eeeeea;
  --text: #050505;
  --muted: #62665f;
  --line: rgba(0,0,0,.12);
  --line-strong: rgba(0,0,0,.24);
  --shadow: 0 28px 80px rgba(0,0,0,.14);
  --header: rgba(245,245,240,.8);
  --success: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 0%, rgba(var(--accent-rgb),.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .16;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%);
}
::selection { background: var(--accent); color: #050505; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre { font-family: var(--mono); }
.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; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.8);
}

.site-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.section.compact { padding: 80px 0; }
.section.dark-band { background: #050505; color: #f6f7ef; }
:root[data-theme="light"] .section.dark-band { background: #080808; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--header);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand-mark-wrap {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}
.brand-mark { width: 30px; height: 26px; object-fit: contain; }
.brand-mark.dark { display: block; }
.brand-mark.light { display: none; }
:root[data-theme="light"] .brand-mark.dark { display: none; }
:root[data-theme="light"] .brand-mark.light { display: block; }
.brand-word { display: grid; line-height: 1; }
.brand-word strong { font-size: .95rem; letter-spacing: .12em; }
.brand-word span { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; }
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transition: right .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.top-x-button,
.wallet-button,
.launch-button,
.theme-toggle,
.menu-button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
}
.top-x-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  transition: border-color .2s ease, transform .2s ease;
}
.top-x-button:hover { border-color: var(--accent); transform: translateY(-2px); }
.wallet-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
}
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.wallet-button.connected .wallet-dot { background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb),.8); }
.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--accent);
  color: #050505;
  border-color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}
.launch-button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(var(--accent-rgb),.25); }
.theme-toggle { width: 46px; padding: 0; display: grid; place-items: center; }
.theme-toggle-track {
  position: relative;
  width: 23px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.theme-toggle-track::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 2px;
  top: 1px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s ease, background .25s ease;
}
:root[data-theme="light"] .theme-toggle-track::after { transform: translateX(9px); background: #050505; }
.menu-button { display: none; width: 46px; padding: 0 12px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--text); }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 86px 0 70px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.hero-eyebrow,
.section-kicker,
.page-kicker,
.card-kicker,
.data-label {
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-eyebrow, .section-kicker, .page-kicker { color: var(--accent); }
.hero h1 {
  margin: 20px 0 24px;
  max-width: 920px;
  font-size: clamp(4.6rem, 8.4vw, 9.8rem);
  line-height: .83;
  letter-spacing: -.075em;
  font-weight: 700;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  text-stroke: 1.5px var(--text);
}
.hero-copy > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}
.hero-query {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.query-prefix {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: #050505;
  font-family: var(--mono);
  font-weight: 900;
}
.hero-query input,
.terminal-query input,
.search-box input,
.search-box textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.hero-query input { min-height: 46px; font-size: 1rem; }
.hero-query input::placeholder,
.search-box input::placeholder,
.search-box textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.query-submit {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: #050505;
  font-weight: 800;
}
.hero-suggestions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.suggestion-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
  font-size: .73rem;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.suggestion-chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-3px); border-color: var(--accent); }
.button.primary { background: var(--accent); color: #050505; border-color: var(--accent); }
.button.ghost { background: color-mix(in srgb, var(--panel) 72%, transparent); }
.button.small { min-height: 42px; padding: 0 15px; font-size: .67rem; }
.button.is-disabled, .is-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
#signalCanvas {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  opacity: .8;
}
.intelligence-core {
  position: relative;
  width: min(520px, 90vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.core-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.core-ring::before,
.core-ring::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb),.8);
}
.core-ring::before { left: 13%; top: 10%; }
.core-ring::after { right: 8%; bottom: 20%; }
.core-ring.ring-two { inset: 19%; animation-direction: reverse; animation-duration: 18s; border-style: dashed; }
.core-ring.ring-three { inset: 31%; animation-duration: 12s; }
.core-disc {
  position: relative;
  z-index: 3;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 34%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transform: rotate(8deg);
  box-shadow: 0 0 100px rgba(var(--accent-rgb),.2), 0 28px 90px rgba(0,0,0,.34);
  animation: coreFloat 5.5s ease-in-out infinite;
}
.core-disc img { width: 68%; transform: rotate(-8deg); }
.core-disc .dark-mark { display: block; }
.core-disc .lime-mark { display: none; }
.core-status {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 3%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.core-status div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  backdrop-filter: blur(15px);
  padding: 12px;
  display: grid;
  gap: 5px;
}
.core-status span { color: var(--muted); font-family: var(--mono); font-size: .55rem; letter-spacing: .08em; }
.core-status strong { font-size: .77rem; }
.float-card {
  position: absolute;
  z-index: 4;
  min-width: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(22px);
  padding: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  animation: cardDrift 6s ease-in-out infinite;
}
.float-card .data-label { color: var(--muted); }
.float-card strong { display: block; margin-top: 8px; font-size: .9rem; }
.float-card small { display: block; color: var(--muted); margin-top: 4px; }
.float-card.one { left: -3%; top: 19%; }
.float-card.two { right: -5%; top: 35%; animation-delay: -2s; }
.float-card.three { left: 5%; bottom: 18%; animation-delay: -4s; }
.signal-line { height: 3px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0 68%, var(--line) 68%); }

.network-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}
.marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group { display: flex; align-items: center; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 26px;
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}
.section-head h2,
.page-hero h1,
.legal-page h1 {
  margin: 14px 0 0;
  font-size: clamp(3.1rem, 6.4vw, 7rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.75; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--panel-2) 82%, transparent));
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.bento-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.bento-card.large { grid-column: span 7; min-height: 470px; }
.bento-card.medium { grid-column: span 5; min-height: 470px; }
.bento-card.third { grid-column: span 4; }
.bento-card h3 { margin: 17px 0 12px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.bento-card p { max-width: 560px; color: var(--muted); line-height: 1.68; }
.card-index { position: absolute; right: 24px; top: 24px; font-family: var(--mono); color: var(--muted); font-size: .62rem; }
.card-visual { position: absolute; inset: auto 0 0; height: 44%; border-top: 1px solid var(--line); }
.query-stack { padding: 22px; display: grid; gap: 9px; }
.query-stack div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--bg) 50%, transparent); font-family: var(--mono); font-size: .69rem; transform: translateX(var(--offset, 0)); animation: stackPulse 6s ease-in-out infinite; }
.query-stack div:nth-child(2) { --offset: 18px; animation-delay: -2s; }
.query-stack div:nth-child(3) { --offset: 36px; animation-delay: -4s; }
.wallet-map { display: grid; place-items: center; }
.wallet-map svg { width: 100%; height: 100%; }
.data-wave { display: flex; align-items: end; gap: 7px; padding: 28px; }
.data-wave span { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; background: var(--accent); transform-origin: bottom; animation: wave 2.6s ease-in-out infinite; }
.data-wave span:nth-child(1) { height: 20%; animation-delay: -.1s; }
.data-wave span:nth-child(2) { height: 46%; animation-delay: -.3s; }
.data-wave span:nth-child(3) { height: 31%; animation-delay: -.5s; }
.data-wave span:nth-child(4) { height: 72%; animation-delay: -.7s; }
.data-wave span:nth-child(5) { height: 54%; animation-delay: -.9s; }
.data-wave span:nth-child(6) { height: 88%; animation-delay: -1.1s; }
.data-wave span:nth-child(7) { height: 67%; animation-delay: -1.3s; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pipeline-step { position: relative; min-height: 280px; padding: 30px; border-right: 1px solid var(--line); background: var(--panel); }
.pipeline-step:last-child { border-right: 0; }
.pipeline-step::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  animation: pipelineBeam 4s ease-in-out infinite;
}
.pipeline-step:nth-child(2)::after { animation-delay: -1s; }
.pipeline-step:nth-child(3)::after { animation-delay: -2s; }
.pipeline-step:nth-child(4)::after { animation-delay: -3s; }
.pipeline-number { font-family: var(--mono); color: var(--accent); font-size: .68rem; }
.pipeline-step h3 { margin: 72px 0 12px; font-size: 1.35rem; }
.pipeline-step p { margin: 0; color: var(--muted); font-size: .9rem; }

.live-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.metric-panel,
.activity-panel,
.news-card,
.terminal-panel,
.result-panel,
.search-panel,
.data-panel,
.legal-card,
.docs-card,
.token-card,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
}
.metric-panel { padding: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.metric {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}
.metric span { color: var(--muted); font-family: var(--mono); font-size: .59rem; letter-spacing: .1em; text-transform: uppercase; }
.metric strong { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.metric small { color: var(--muted); }
.activity-panel { overflow: hidden; }
.panel-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.panel-topbar strong { font-size: .88rem; }
.live-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; }
.live-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb),.8); animation: blink 1.8s ease-in-out infinite; }
.activity-list { display: grid; }
.activity-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(110px, auto);
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child { border-bottom: 0; }
.activity-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .69rem; }
.activity-row span, .activity-row small { color: var(--muted); font-size: .72rem; }
.activity-row strong { justify-self: end; font-family: var(--mono); font-size: .72rem; }
.skeleton { position: relative; overflow: hidden; background: var(--panel-2); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.5s infinite; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.news-card:hover { transform: translateY(-7px); border-color: var(--accent); }
.news-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-image img { transform: scale(1.035); }
.news-content { padding: 22px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 18px 0 11px; font-size: 1.3rem; line-height: 1.18; letter-spacing: -.02em; }
.news-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.62; }
.news-link { display: inline-flex; margin-top: 18px; color: var(--accent); font-family: var(--mono); font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.token-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(120deg, var(--panel), color-mix(in srgb, var(--accent) 7%, var(--panel)));
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
}
.token-banner::before { content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -180px; top: -190px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb),.3); box-shadow: 0 0 90px rgba(var(--accent-rgb),.08); }
.token-mark { width: 110px; height: 110px; border-radius: 26px; background: var(--accent); display: grid; place-items: center; }
.token-mark img { width: 72%; }
.token-copy h2 { margin: 10px 0 10px; font-size: clamp(2.5rem, 5vw, 5.5rem); line-height: .9; letter-spacing: -.06em; }
.token-copy p { max-width: 720px; margin: 0; color: var(--muted); }
.token-address { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.token-address code { max-width: 520px; overflow-wrap: anywhere; color: var(--muted); font-size: .68rem; }
.token-actions { display: grid; gap: 10px; min-width: 190px; }

.final-cta {
  text-align: center;
  padding: 150px 0;
}
.final-cta .mark-large { width: 110px; height: 90px; margin: 0 auto 34px; object-fit: contain; }
.final-cta h2 { max-width: 1000px; margin: 0 auto; font-size: clamp(4rem, 9vw, 10rem); line-height: .82; letter-spacing: -.08em; }
.final-cta p { max-width: 650px; margin: 28px auto; color: var(--muted); font-size: 1.05rem; }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark-wrap { width: 48px; height: 48px; }
.footer-brand strong { display: block; letter-spacing: .1em; }
.footer-brand span { display: block; color: var(--muted); margin-top: 5px; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-links a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

/* Page hero */
.page-hero { padding: 100px 0 70px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .6fr); gap: 50px; align-items: end; }
.page-hero h1 { max-width: 1050px; }
.page-hero p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.page-stat-card { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); padding: 24px; }
.page-stat-card strong { display: block; font-size: 3rem; letter-spacing: -.05em; }
.page-stat-card span { color: var(--muted); font-family: var(--mono); font-size: .65rem; }

/* Explore terminal */
.terminal-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.terminal-sidebar { position: sticky; top: 98px; display: grid; gap: 14px; }
.terminal-panel { overflow: hidden; }
.terminal-panel .panel-topbar { background: var(--panel-2); }
.example-list { display: grid; padding: 12px; gap: 8px; }
.example-query { width: 100%; text-align: left; border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 13px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.example-query:hover { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.terminal-main { min-width: 0; }
.terminal-query {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
}
.terminal-query input { min-height: 52px; padding: 0 12px; font-size: 1.02rem; }
.terminal-output { margin-top: 16px; min-height: 500px; }
.empty-terminal { min-height: 500px; display: grid; place-items: center; text-align: center; padding: 40px; }
.empty-terminal-mark { width: 76px; height: 64px; margin: 0 auto 18px; opacity: .45; }
.empty-terminal h3 { margin: 0; font-size: 1.6rem; }
.empty-terminal p { max-width: 470px; margin: 12px auto 0; color: var(--muted); }
.answer-block { padding: 28px; }
.answer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.answer-source { color: var(--accent); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.answer-block > p { margin: 0; font-size: 1.05rem; line-height: 1.8; }
.plan-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-family: var(--mono); font-size: .6rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.result-stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.result-stat span { display: block; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
.result-stat strong, .result-stat code { display: block; margin-top: 9px; overflow-wrap: anywhere; font-size: .88rem; }
.evidence-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.evidence-link { display: inline-flex; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--muted); font-family: var(--mono); font-size: .61rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-link:hover { border-color: var(--accent); color: var(--text); }
.result-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; }
.result-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.result-table th, .result-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .74rem; }
.result-table th { color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.result-table tr:last-child td { border-bottom: 0; }
.result-table code { font-size: .67rem; }
.limit-note { margin-top: 22px; border-left: 2px solid var(--warning); padding-left: 13px; color: var(--muted); font-size: .76rem; }

/* Search pages */
.tool-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 18px; align-items: start; }
.search-panel { position: sticky; top: 98px; padding: 28px; }
.search-panel h2 { margin: 8px 0 10px; font-size: 2rem; letter-spacing: -.04em; }
.search-panel p { color: var(--muted); font-size: .88rem; }
.search-box { display: grid; gap: 10px; margin-top: 24px; }
.search-box input, .search-box textarea { min-height: 52px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 0 14px; background: var(--panel-2); }
.search-box textarea { min-height: 120px; resize: vertical; padding-top: 14px; }
.result-panel { min-height: 580px; overflow: hidden; }
.profile-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.profile-icon { width: 62px; height: 62px; border-radius: 18px; background: var(--accent); color: #050505; display: grid; place-items: center; font-family: var(--mono); font-weight: 900; }
.profile-header h2 { margin: 0; font-size: 1.5rem; }
.profile-header code { display: block; max-width: 100%; margin-top: 5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.profile-badge { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.profile-body { padding: 24px; }
.profile-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-table { margin-top: 20px; }

/* Radar */
.radar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 9px 13px; color: var(--muted); font-size: .72rem; }
.filter-tab.active { background: var(--accent); color: #050505; border-color: var(--accent); }
.radar-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.radar-feed { overflow: hidden; }
.radar-side { display: grid; gap: 18px; }
.block-stack { display: grid; gap: 8px; padding: 16px; }
.block-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; align-items: center; }
.block-row strong { font-family: var(--mono); font-size: .72rem; }
.block-row span { color: var(--muted); font-size: .7rem; }
.block-row small { color: var(--muted); }

/* Dashboards */
.dashboard-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.dashboard-sidebar { display: grid; gap: 10px; align-content: start; }
.dashboard-template { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px; text-align: left; }
.dashboard-template.active { border-color: var(--accent); }
.dashboard-template strong { display: block; }
.dashboard-template span { display: block; color: var(--muted); margin-top: 6px; font-size: .75rem; }
.dashboard-stage { display: grid; gap: 16px; }
.dashboard-card { padding: 24px; }
.dashboard-card h3 { margin: 0 0 18px; font-size: 1.2rem; }
.chart-shell { min-height: 340px; position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, rgba(var(--accent-rgb),.05), transparent); }
.chart-shell svg { width: 100%; height: 340px; overflow: visible; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: drawLine 2s ease forwards; }
.chart-area { fill: url(#chartGradient); opacity: .22; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* News page */
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.news-filters button { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 9px 13px; color: var(--muted); }
.news-filters button.active { background: var(--accent); color: #050505; border-color: var(--accent); }
.news-grid.expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid.expanded .news-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; }
.news-grid.expanded .news-card:first-child .news-image { aspect-ratio: auto; min-height: 420px; border-bottom: 0; border-right: 1px solid var(--line); }
.news-grid.expanded .news-card:first-child .news-content { display: grid; align-content: center; padding: 38px; }
.news-grid.expanded .news-card:first-child h3 { font-size: 2.1rem; }

/* Token */
.token-hero { padding: 110px 0 80px; }
.token-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .65fr); gap: 50px; align-items: center; }
.token-hero h1 { margin: 12px 0 20px; font-size: clamp(5rem, 11vw, 12rem); line-height: .8; letter-spacing: -.08em; }
.token-hero h1 span { color: var(--accent); }
.token-hero p { max-width: 720px; color: var(--muted); font-size: 1.04rem; }
.token-orb {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.token-orb::before, .token-orb::after { content: ""; position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; animation: spin 18s linear infinite; }
.token-orb::before { inset: 4%; }
.token-orb::after { inset: 18%; animation-direction: reverse; animation-duration: 12s; border-style: dashed; }
.token-coin { position: relative; z-index: 2; width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 30px 100px rgba(var(--accent-rgb),.18); }
.token-coin img { width: 68%; }
.token-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.token-card { padding: 28px; }
.token-card h3 { margin: 18px 0 10px; font-size: 1.5rem; }
.token-card p { margin: 0; color: var(--muted); }
.balance-checker { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.balance-result { min-height: 250px; padding: 26px; display: grid; place-items: center; text-align: center; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 190px; gap: 28px; align-items: start; }
.docs-sidebar, .docs-outline { position: sticky; top: 100px; }
.docs-nav { display: grid; gap: 5px; }
.docs-nav-group { margin-bottom: 20px; }
.docs-nav-title { display: block; margin-bottom: 9px; color: var(--muted); font-family: var(--mono); font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.docs-nav a { border-left: 2px solid transparent; padding: 8px 11px; color: var(--muted); font-size: .78rem; }
.docs-nav a:hover { color: var(--text); border-left-color: var(--accent); }
.docs-content { min-width: 0; }
.docs-section { scroll-margin-top: 110px; margin-bottom: 58px; padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.docs-section:last-child { border-bottom: 0; }
.docs-section h1 { margin: 12px 0 18px; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .92; letter-spacing: -.06em; }
.docs-section h2 { margin: 0 0 16px; font-size: 2rem; letter-spacing: -.04em; }
.docs-section h3 { margin: 30px 0 10px; font-size: 1.2rem; }
.docs-section p, .docs-section li { color: var(--muted); line-height: 1.75; }
.docs-card { padding: 22px; margin-top: 18px; }
.docs-code { position: relative; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: #070807; color: #e8f1df; overflow: hidden; }
.docs-code-header { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.12); color: #8e9788; font-family: var(--mono); font-size: .6rem; }
.docs-code button { border: 0; background: transparent; color: var(--accent); font-family: var(--mono); font-size: .58rem; }
.docs-code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: .72rem; line-height: 1.7; }
.docs-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.docs-table th, .docs-table td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; font-size: .78rem; }
.docs-table th { color: var(--muted); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }

/* Legal */
.legal-page { max-width: 960px; }
.legal-page > p { max-width: 760px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal-card { margin-top: 34px; padding: clamp(24px, 4vw, 44px); }
.legal-card section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-card section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-card h2 { margin: 0 0 12px; font-size: 1.45rem; }
.legal-card p { margin: 0; color: var(--muted); line-height: 1.75; }

/* Status and toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  max-width: min(380px, calc(100vw - 44px));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  font-size: .82rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.loading-state { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.loader-ring { width: 46px; height: 46px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
.error-state { margin: 20px; border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--line)); border-radius: 14px; padding: 16px; color: var(--danger); }

/* 404 */
.not-found { min-height: calc(100vh - 78px); display: grid; place-items: center; text-align: center; padding: 50px 24px; }
.not-found h1 { margin: 0; font-size: clamp(7rem, 24vw, 20rem); color: var(--accent); line-height: .7; letter-spacing: -.08em; }
.not-found h2 { margin: 40px 0 10px; font-size: 2rem; }
.not-found p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--delay,0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--delay,0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes coreFloat { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-14px); } }
@keyframes cardDrift { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes stackPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; border-color: var(--accent); } }
@keyframes wave { 0%,100% { transform: scaleY(.72); opacity: .6; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes pipelineBeam { 0%,100% { transform: scaleX(.15); opacity: .25; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes blink { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

@media (max-width: 1250px) {
  .main-nav { gap: 14px; }
  .main-nav a:nth-child(5), .main-nav a:nth-child(6) { display: none; }
  .wallet-button { display: none; }
  .hero-grid { grid-template-columns: 1fr .82fr; }
  .hero-visual { min-height: 540px; }
  .docs-layout { grid-template-columns: 230px minmax(0,1fr); }
  .docs-outline { display: none; }
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    min-height: calc(100vh - 78px);
    display: none;
    align-content: start;
    justify-items: stretch;
    padding: 32px 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: grid; }
  .main-nav a, .main-nav a:nth-child(5), .main-nav a:nth-child(6) { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .main-nav a::after { display: none; }
  .menu-button { display: block; }
  .header-actions .top-x-button, .header-actions .launch-button { display: none; }
  .hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .token-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 590px; width: min(640px,100%); margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; }
  .bento-card.large, .bento-card.medium { grid-column: span 6; }
  .bento-card.third { grid-column: span 6; }
  .pipeline { grid-template-columns: repeat(2,1fr); }
  .pipeline-step:nth-child(2) { border-right: 0; }
  .pipeline-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .live-grid, .tool-grid, .radar-layout, .balance-checker { grid-template-columns: 1fr; }
  .search-panel, .terminal-sidebar { position: static; }
  .terminal-layout { grid-template-columns: 1fr; }
  .terminal-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .token-banner { grid-template-columns: auto 1fr; }
  .token-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: repeat(3,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .profile-metrics, .dashboard-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 28px, var(--max)); }
  .site-header { min-height: 70px; padding: 10px 14px; gap: 10px; }
  .main-nav { inset: 70px 0 auto; min-height: calc(100vh - 70px); }
  .brand-word span { display: none; }
  .brand-mark-wrap { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .theme-toggle, .menu-button { width: 42px; min-height: 42px; }
  .section { padding: 84px 0; }
  .hero { padding: 58px 0 50px; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.2rem); }
  .hero-query { grid-template-columns: auto 1fr; }
  .query-submit { grid-column: 1 / -1; width: 100%; }
  .hero-visual { min-height: 440px; }
  .intelligence-core { width: 420px; max-width: 100%; }
  .float-card { min-width: 150px; padding: 11px; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
  .float-card.three { left: 2%; bottom: 14%; }
  .core-status { left: 2%; right: 2%; }
  .core-status div { padding: 8px; }
  .section-head h2, .page-hero h1, .legal-page h1 { font-size: clamp(2.9rem, 14vw, 5rem); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.large, .bento-card.medium, .bento-card.third { grid-column: 1; min-height: 390px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipeline-step:last-child { border-bottom: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 86px minmax(0,1fr); }
  .activity-row strong { grid-column: 2; justify-self: start; }
  .news-grid, .news-grid.expanded { grid-template-columns: 1fr; }
  .news-grid.expanded .news-card:first-child { grid-column: 1; display: block; }
  .news-grid.expanded .news-card:first-child .news-image { min-height: 0; aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); }
  .token-banner { grid-template-columns: 1fr; }
  .token-mark { width: 86px; height: 86px; }
  .token-actions { grid-column: 1; display: grid; }
  .site-footer { grid-template-columns: 1fr; padding: 38px 14px; }
  .footer-links { justify-content: flex-start; }
  .footer-note { flex-direction: column; }
  .terminal-sidebar { grid-template-columns: 1fr; }
  .terminal-query { grid-template-columns: 1fr; }
  .result-grid, .profile-metrics, .dashboard-stats, .token-info-grid { grid-template-columns: 1fr; }
  .tool-grid { gap: 14px; }
  .profile-header { grid-template-columns: auto 1fr; }
  .profile-badge { grid-column: 1 / -1; justify-self: start; }
  .radar-toolbar { align-items: flex-start; }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .docs-nav { grid-template-columns: repeat(2,1fr); }
  .docs-nav-group { margin: 0; }
  .docs-section h1 { font-size: clamp(2.9rem, 14vw, 4.7rem); }
  .token-hero h1 { font-size: clamp(4.5rem, 24vw, 7.5rem); }
  .final-cta h2 { font-size: clamp(4rem, 19vw, 7rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  #signalCanvas { display: none; }
}

/* Final responsive safeguards */
.hero-grid > *,
.page-hero-grid > *,
.tool-grid > *,
.terminal-layout > *,
.token-hero-grid > * { min-width: 0; }
.hero-query,
.hero-query input,
.terminal-query,
.terminal-query input { min-width: 0; max-width: 100%; }

@media (max-width: 1020px) {
  .header-actions .top-x-button { display: inline-flex; }
  .header-actions .top-x-button { min-height: 42px; padding: 0 10px; font-size: .6rem; }
}

@media (max-width: 760px) {
  .hero-copy,
  .hero-query,
  .hero-suggestions,
  .hero-actions { max-width: 100%; }
  .hero-copy > p { overflow-wrap: anywhere; }
  .hero-query input { width: 100%; }
  .suggestion-chip { max-width: 100%; }
}

@media (max-width: 760px) {
  .docs-table { display: block; max-width: 100%; overflow-x: auto; }
  .docs-code, .docs-code pre { max-width: 100%; }
}

.docs-layout > *,
.docs-nav,
.docs-nav-group,
.docs-content,
.docs-section { min-width: 0; max-width: 100%; }

@media (max-width: 760px) {
  .docs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-nav a, .docs-nav-title { overflow-wrap: anywhere; }
}

.docs-nav-group { display: grid; gap: 5px; }
