/* Backstop.fun landing clone */

:root {
  --bg: #080808;
  --bg-elevated: #151515;
  --bg-elevated-2: #181818;
  --bg-hover: #202020;
  --text: #f4f4f4;
  --text-muted: #8a8a8a;
  --text-dim: #777;
  --primary: #ccff00;
  --primary-fg: #050505;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1360px;
  --header-h: 64px;
  --header-h-md: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a:hover,
.nav a.is-active {
  color: #f5f5f5;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-elevated);
  color: #f5f5f5;
  transition: background 150ms, color 150ms;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms, transform 120ms;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  height: 38px;
  padding: 0 12px;
  border-radius: 0;
  font-size: 12px;
  gap: 4px;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--bg-elevated-2);
  color: #f5f5f5;
  border-radius: 10px;
}

.btn-ghost:hover {
  background: var(--bg-hover);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}

/* Magical hero background */
.hero-magic {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.04);
}

.magic-aurora {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(204, 255, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 50% at 80% 20%, rgba(120, 255, 180, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 45% at 55% 75%, rgba(204, 255, 0, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 60%, rgba(80, 200, 255, 0.05), transparent 50%);
  animation: aurora-drift 14s ease-in-out infinite alternate;
  filter: blur(2px);
}

.magic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.magic-orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 8%;
  right: 8%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.55) 0%, rgba(204, 255, 0, 0.12) 40%, transparent 70%);
  animation: orb-float-a 11s ease-in-out infinite;
}

.magic-orb-b {
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  bottom: 12%;
  left: 5%;
  background: radial-gradient(circle, rgba(100, 255, 200, 0.35) 0%, rgba(204, 255, 0, 0.08) 45%, transparent 70%);
  animation: orb-float-b 15s ease-in-out infinite;
}

.magic-orb-c {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  top: 42%;
  left: 42%;
  background: radial-gradient(circle, rgba(180, 255, 80, 0.28) 0%, transparent 65%);
  animation: orb-float-c 9s ease-in-out infinite;
}

.magic-rays {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg at 70% 40%,
    transparent 0deg,
    rgba(204, 255, 0, 0.04) 20deg,
    transparent 40deg,
    rgba(204, 255, 0, 0.03) 90deg,
    transparent 120deg,
    rgba(120, 255, 200, 0.035) 200deg,
    transparent 240deg,
    rgba(204, 255, 0, 0.04) 300deg,
    transparent 360deg
  );
  animation: rays-spin 48s linear infinite;
  opacity: 0.7;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.magic-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(8, 8, 8, 0.55) 100%),
    linear-gradient(to right, rgba(8, 8, 8, 0.35), transparent 30%, transparent 70%, rgba(8, 8, 8, 0.2));
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes orb-float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(-6%, 8%, 0) scale(1.12);
    opacity: 0.75;
  }
}

@keyframes orb-float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(10%, -12%, 0) scale(1.15);
    opacity: 0.65;
  }
}

@keyframes orb-float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(-8%, -6%, 0) scale(1.2);
    opacity: 0.6;
  }
}

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

.hero-fade {
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 144px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-grid-layout {
  position: relative;
  z-index: 10;
  display: grid;
  align-items: center;
  gap: 28px;
  max-width: 1440px;
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: 40px 16px;
}

.hero-copy {
  position: relative;
  z-index: 20;
  max-width: 650px;
  transform: translateY(12px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 13vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-copy h1 .accent {
  color: var(--primary);
  text-shadow:
    0 0 18px rgba(204, 255, 0, 0.45),
    0 0 48px rgba(204, 255, 0, 0.22),
    0 0 80px rgba(204, 255, 0, 0.12);
  animation: accent-glow 3.2s ease-in-out infinite alternate;
}

@keyframes accent-glow {
  from {
    text-shadow:
      0 0 14px rgba(204, 255, 0, 0.35),
      0 0 36px rgba(204, 255, 0, 0.15);
  }
  to {
    text-shadow:
      0 0 26px rgba(204, 255, 0, 0.65),
      0 0 60px rgba(204, 255, 0, 0.3),
      0 0 100px rgba(204, 255, 0, 0.15);
  }
}

.hero-copy h1 .skew {
  transform: skewX(-6deg);
  transform-origin: left center;
}

.hero-sub {
  margin: 28px 0 0;
  max-width: 28rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  position: absolute;
  inset: 54% 0 auto 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.reserve-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: 1;
  width: 72vw;
  max-width: 300px;
  overflow: visible;
  background: transparent;
  perspective: 900px;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    black 45%,
    rgba(0, 0, 0, 0.72) 66%,
    rgba(0, 0, 0, 0.28) 86%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    black 45%,
    rgba(0, 0, 0, 0.72) 66%,
    rgba(0, 0, 0, 0.28) 86%,
    transparent 100%
  );
  transform-style: preserve-3d;
}

.cell {
  aspect-ratio: 1;
  width: 100%;
  background: #0f0f0f;
  opacity: 0.45;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  transition: background-color 140ms linear, opacity 180ms linear, transform 160ms ease,
    box-shadow 160ms ease;
  will-change: transform, background-color, opacity;
}

.cell:nth-child(even) {
  background: #121212;
}

.cell.is-hot {
  background: #1a2200 !important;
  opacity: 1 !important;
  box-shadow: inset 0 1px 0 rgba(204, 255, 0, 0.22), 0 0 18px rgba(204, 255, 0, 0.18),
    0 3px 10px rgba(0, 0, 0, 0.38);
}

.cell.is-lit {
  background: var(--primary) !important;
  opacity: 1 !important;
  box-shadow: 0 0 22px rgba(204, 255, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translate3d(0, 0, 12px) scale(1.05);
}

/* Sections */
.section {
  padding: 88px 0;
  background: var(--bg);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.section-kicker {
  margin: 0 0 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 28px;
}

.step {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.step-num {
  color: var(--primary);
}

.step h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Protocol data */
.section-data {
  padding-top: 40px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  padding: 24px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stat-label {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.stat-value {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-value sub {
  font-size: 0.65em;
  bottom: 0;
}

.stat-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Enter CTA */
.section-enter {
  padding: 100px 0 120px;
}

.enter-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.enter-inner h2 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.enter-inner h2 span {
  display: block;
}

.enter-inner .accent {
  color: var(--primary);
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.footer .brand {
  font-size: 13px;
}

.footer .brand img {
  width: 24px;
  height: 24px;
}

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

/* Responsive */
@media (min-width: 640px) {
  .brand-text {
    display: inline;
  }

  .header-actions {
    gap: 12px;
  }

  .icon-btn,
  .btn-sm {
    height: 42px;
  }

  .icon-btn {
    width: 42px;
  }

  .btn-sm {
    padding: 0 16px;
    font-size: 14px;
  }

  .reserve-grid {
    width: 78%;
    max-width: 500px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: var(--header-h-md);
  }

  .header {
    height: var(--header-h-md);
  }

  .nav {
    display: flex;
  }

  .hero {
    min-height: calc(100vh - var(--header-h-md));
  }

  .hero-grid-layout {
    grid-template-columns: 45% 55%;
    gap: 0;
    min-height: calc(100vh - var(--header-h-md));
    padding: 80px 16px 48px;
  }

  .hero-copy {
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(4.5rem, 6.5vw, 6rem);
  }

  .hero-visual {
    position: static;
    min-height: min(680px, calc(100vh - 160px));
    justify-content: flex-end;
  }

  .reserve-grid {
    width: 84%;
    max-width: 680px;
    margin-right: 6%;
    margin-left: auto;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step {
    padding: 0;
    border: 0;
  }

  .step:last-child {
    border: 0;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .container,
  .footer-inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero-grid-layout {
    padding-left: 72px;
    padding-right: 72px;
  }

  .reserve-grid {
    width: 82%;
  }
}

/* ========== App shell (market / reserve / invite) ========== */
.app-body {
  min-height: 100vh;
  background: var(--bg);
}

.app-header .nav a.is-active {
  color: #f5f5f5;
}

.app-main {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 24px) 16px calc(80px + env(safe-area-inset-bottom));
}

.app-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 20px;
}

.app-card + .app-card {
  margin-top: 12px;
}

.app-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.app-sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: #101010;
}

.tab-btn {
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 150ms, color 150ms;
}

.tab-btn.is-active {
  background: var(--primary);
  color: var(--primary-fg);
}

.field {
  margin-bottom: 12px;
  padding: 14px;
  background: #101010;
  border: 1px solid var(--border);
}

.field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.field-row input::placeholder {
  color: #444;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-elevated-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.token-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-max {
  padding: 2px 8px;
  background: rgba(204, 255, 0, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.meta-row strong {
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.btn-block {
  width: 100%;
  height: 48px;
  border-radius: 0;
}

.btn.is-connected {
  background: var(--bg-elevated-2);
  color: var(--text);
}

.btn.is-connected:hover {
  background: var(--bg-hover);
  filter: none;
}

/* Bottom mobile nav */
.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 8, 8, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #858585;
}

.bottom-nav a.is-active {
  color: var(--primary-fg);
  background: var(--primary);
}

/* Reserve page */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  padding: 16px;
  background: #101010;
  border: 1px solid var(--border);
}

.metric-label {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric-value sub {
  font-size: 0.65em;
}

.progress {
  height: 6px;
  margin-top: 10px;
  background: #1a1a1a;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 10px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Invite */
.invite-code {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.invite-code input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: #101010;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.invite-code .btn {
  height: 44px;
  border-radius: 0;
  padding: 0 14px;
}

.ca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #101010;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.ca-row code {
  color: var(--text);
  font-size: 11px;
  word-break: break-all;
}

/* Whitepaper */
.wp-page {
  padding-top: var(--header-h);
}

.wp-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 16px 100px;
}

.wp-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.wp-hero .section-kicker {
  margin-bottom: 16px;
}

.wp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.wp-hero .lead {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.wp-hero .sub {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.wp-section {
  margin: 40px 0;
  scroll-margin-top: 96px;
}

.wp-section .wp-num {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
}

.wp-section h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.wp-section p,
.wp-section li {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 15px;
}

.wp-section p {
  margin: 0 0 12px;
}

.wp-section ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.wp-section strong {
  color: var(--text);
}

.wp-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wp-table th,
.wp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.wp-table th {
  background: #101010;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.wp-table td {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.wp-callout {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.wp-callout div {
  padding: 12px 14px;
  background: #101010;
  border-left: 2px solid var(--primary);
  font-size: 14px;
  color: var(--text-muted);
}

.wp-callout strong {
  color: var(--primary);
  margin-right: 8px;
}

.wp-lang-block[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 80;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 16px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms, transform 160ms;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .app-main {
    padding-top: calc(var(--header-h-md) + 40px);
    padding-bottom: 48px;
  }

  .bottom-nav {
    display: none;
  }

  .wp-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .app-main {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ========== Robinhood ecosystem / token site ========== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.22);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-slogan {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.token-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  padding: 14px 0;
}

.token-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.token-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.token-pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.token-pill strong {
  font-size: 13px;
  font-weight: 650;
}

.token-network {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.65);
}

.token-pill-ca code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 32px;
  max-width: 46rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.eco-grid {
  display: grid;
  gap: 12px;
}

.eco-card {
  padding: 22px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.eco-icon {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1;
}

.eco-icon-img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: block;
  object-fit: contain;
}

.btn-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
}

.btn-primary .btn-icon {
  filter: brightness(0);
}

.icon-btn img {
  display: block;
  width: 16px;
  height: 16px;
}

.eco-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 650;
}

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

.eco-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.eco-link:hover {
  text-decoration: underline;
}

.section-token {
  background: linear-gradient(180deg, #080808 0%, #0c0f05 50%, #080808 100%);
}

.token-spec-layout {
  display: grid;
  gap: 28px;
}

.token-spec-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 8px 0;
}

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

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.spec-row-ca {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.spec-row-ca code {
  font-size: 11px;
  word-break: break-all;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.footer-rich {
  gap: 18px;
}

.footer-brand-block p {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  margin: 4px 0 0 !important;
  max-width: 40rem;
  font-size: 11px !important;
  line-height: 1.5;
  color: #555 !important;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.18);
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .eco-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .token-spec-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 48px;
  }

  .token-bar-inner {
    justify-content: space-between;
  }
}

/* ========== Magical custom cursor ========== */
body.has-magic-cursor,
body.has-magic-cursor * {
  cursor: none !important;
}

.magic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

body.has-magic-cursor .magic-cursor.is-on {
  opacity: 1;
}

.magic-cursor-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ccff00;
  box-shadow:
    0 0 10px rgba(204, 255, 0, 0.95),
    0 0 22px rgba(204, 255, 0, 0.55),
    0 0 40px rgba(204, 255, 0, 0.25);
}

.magic-cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(204, 255, 0, 0.45);
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.2);
  animation: cursor-ring-pulse 1.8s ease-in-out infinite;
}

.magic-cursor.is-click .magic-cursor-core {
  transform: scale(0.7);
  background: #f4ff99;
}

.magic-cursor.is-click .magic-cursor-ring {
  transform: scale(0.75);
  border-color: rgba(204, 255, 0, 0.8);
}

.magic-cursor.is-hover .magic-cursor-ring {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(204, 255, 0, 0.7);
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.35);
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9998;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

body.has-magic-cursor .cursor-trail {
  display: block;
}

@keyframes cursor-ring-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (hover: none), (pointer: coarse) {
  body.has-magic-cursor,
  body.has-magic-cursor * {
    cursor: auto !important;
  }

  .magic-cursor,
  .cursor-trail {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magic-aurora,
  .magic-orb,
  .magic-rays,
  .magic-cursor-ring {
    animation: none !important;
  }
}
