/* ==========================================================================
   INTENT — CYBER-Y2K (Phosphor Dark) × Editorial DeFi Infrastructure
   12-col grid up to 1240px, 8px spacing module, 1px crisp borders
   ========================================================================== */

:root {
  --bg: #10141B;
  --bg-well: #141A24;
  --surface: #1B2330;
  --surface-top: #232D3E;
  --border: rgba(156, 170, 189, 0.22);
  --border-strong: rgba(156, 170, 189, 0.38);

  --text: #ECF4F8;
  --text-muted: #9CAABD;
  --lime: #C6F76E;
  --lime-hover: #D4FA8D;
  --lime-ink: #0E131A;
  --cyan: #86C8F1;
  --warn: #F4B860;
  --danger: #F27D7D;

  --font-display: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1240px;
  --chamfer: 12px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% 14%, rgba(134, 200, 241, 0.08), transparent 42%),
    linear-gradient(rgba(156, 170, 189, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 170, 189, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.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 {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 20, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(134, 200, 241, 0.35);
  background: rgba(134, 200, 241, 0.08);
  padding: 3px 8px;
}

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

.main-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 140ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 0 10px;
  min-height: 40px;
}

.network-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  flex-shrink: 0;
}

.network-select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 18px 8px 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 6px) 52%, calc(100% - 1px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.network-select option {
  background: var(--surface);
  color: var(--text);
}

.btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.btn-wallet:hover {
  border-color: var(--cyan);
  background: var(--surface-top);
}

.btn-wallet.is-connected {
  border-color: rgba(198, 247, 110, 0.55);
}

.wallet-indicator {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.btn-wallet.is-connected .wallet-indicator {
  background: var(--lime);
}

/* ==========================================================================
   Hero — 12-Col Console Layout
   ========================================================================== */
.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow-code {
  color: var(--lime);
  border: 1px solid rgba(198, 247, 110, 0.35);
  padding: 2px 7px;
  font-weight: 600;
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.title-accent {
  color: var(--lime);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 1px solid var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  transition: background-color 140ms ease, transform 140ms ease;
}

.btn-primary:hover {
  background: var(--lime-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-full {
  width: 100%;
}

.mobile-network-bar {
  display: none;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.telemetry-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.telemetry-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Signature Visual: AI Execution Terminal Panel
   ========================================================================== */
.terminal-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color 180ms ease;
}

.terminal-shell.is-pulsing {
  border-color: var(--lime);
}

.panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(236, 244, 248, 0.09) 0%, rgba(27, 35, 48, 0.95) 100%);
  border-bottom: 1px solid var(--border);
}

.titlebar-left,
.titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-beacon {
  width: 8px;
  height: 8px;
  background: var(--lime);
  flex-shrink: 0;
}

.status-beacon-cyan {
  background: var(--cyan);
}

.titlebar-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--warn);
  border: 1px solid rgba(244, 184, 96, 0.4);
  background: rgba(244, 184, 96, 0.08);
  padding: 2px 7px;
  white-space: nowrap;
}

.ruler-ticks {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(156, 170, 189, 0.4);
  user-select: none;
}

.terminal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intent-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.target-readout {
  color: var(--cyan);
}

.input-row {
  display: flex;
  gap: 8px;
}

.intent-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-well);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.intent-input::placeholder {
  color: var(--text-muted);
}

.btn-compile {
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface-top);
  color: var(--lime);
  border: 1px solid rgba(198, 247, 110, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.btn-compile:hover {
  background: var(--lime);
  color: var(--lime-ink);
}

.preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  min-height: 32px;
  padding: 4px 10px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.preset-chip:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.preset-chip.is-active {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(198, 247, 110, 0.08);
}

/* SVG Routing Topology */
.topology-frame {
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 12px;
}

.topology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mono-muted {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mono-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.routing-svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-line {
  fill: none;
  stroke: rgba(156, 170, 189, 0.25);
  stroke-width: 1.5;
}

.route-line-active {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.route-line-secondary {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  opacity: 0.7;
}

.svg-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-muted);
  letter-spacing: 0.06em;
}

.svg-tag-lime {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--lime);
  letter-spacing: 0.06em;
}

.svg-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text);
}

/* Sequence List */
.sequence-panel {
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 12px 14px;
}

.sequence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.route-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  border: 1px solid rgba(134, 200, 241, 0.35);
  padding: 2px 6px;
}

.route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.step-text {
  color: var(--text);
}

.step-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.sim-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sim-footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.btn-inline-link {
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inline-link:hover {
  color: var(--lime);
}

/* ==========================================================================
   Sections Below Fold
   ========================================================================== */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.section-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

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

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.module-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.module-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.module-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Token & Staking Section */
.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: start;
}

.token-panel,
.staking-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.token-body,
.staking-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.token-body code {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 0.92em;
}

.utility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.utility-list li {
  display: flex;
  gap: 12px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 14px;
}

.utility-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  flex-shrink: 0;
}

.utility-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 4px;
}

.utility-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.status-callout {
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-callout-warn {
  border-color: rgba(244, 184, 96, 0.45);
}

.status-callout-ok {
  border-color: rgba(198, 247, 110, 0.45);
}

.callout-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  color: var(--cyan);
  border: 1px solid rgba(134, 200, 241, 0.4);
}

.callout-pill-warn {
  color: var(--warn);
  border-color: rgba(244, 184, 96, 0.45);
}

.callout-pill-ok {
  color: var(--lime);
  border-color: rgba(198, 247, 110, 0.5);
}

.status-callout p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.spec-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-value {
  text-align: right;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-well);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-brand .brand-wordmark {
  font-size: 15px;
  color: var(--text);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-nav a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Wallet Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 13, 18, 0.78);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.btn-icon-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-icon-close:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

.wallet-state {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-state[hidden] {
  display: none;
}

.modal-lead {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.modal-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.wallet-meta-box {
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(242, 125, 125, 0.45);
  background: rgba(242, 125, 125, 0.08);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wallet-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-well);
  border: 1px solid var(--border);
  padding: 14px;
}

.wallet-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-copy {
  min-height: 32px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.btn-copy:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.copy-feedback {
  min-height: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lime);
}

/* ==========================================================================
   Responsive — Tablet & Mobile (390px dedicated order & crop)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

  .section-head,
  .token-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 60px;
    gap: 10px;
  }

  .main-nav,
  .desktop-network,
  .ruler-ticks {
    display: none;
  }

  .stage-pill {
    display: none;
  }

  .brand-wordmark {
    font-size: 17px;
  }

  .btn-wallet {
    padding: 0 12px;
    font-size: 12px;
    min-height: 44px;
    white-space: nowrap;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .eyebrow {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Mobile order: Headline -> CTA -> Network -> Terminal */
  .mobile-network-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 14px;
  }

  .hero-telemetry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 14px;
  }

  .telemetry-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }

  .panel-titlebar {
    padding: 10px 12px;
    gap: 8px;
  }

  .titlebar-name {
    font-size: 11px;
  }

  .sim-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  .terminal-body {
    padding: 12px;
  }

  .input-label {
    flex-wrap: wrap;
    font-size: 10px;
  }

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

  .btn-compile {
    width: 100%;
  }

  .preset-chip {
    min-height: 36px;
    font-size: 11px;
  }

  .topology-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .route-step {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .step-meta {
    grid-column: 2;
  }

  .sim-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-grid,
  .utility-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 40px 0;
  }

  .token-body,
  .staking-body {
    padding: 16px;
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-value {
    text-align: left;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
