:root {
  --bg-0: #020816;
  --bg-1: #071426;
  --bg-2: #0b1f35;
  --ambient-primary-x: 14%;
  --ambient-primary-y: 8%;
  --ambient-secondary-x: 82%;
  --ambient-secondary-y: 16%;
  --ambient-accent-x: 50%;
  --ambient-accent-y: 100%;
  --ambient-alpha: 0.18;
  --ambient-alpha-2: 0.14;
  --ambient-alpha-3: 0.28;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --phone-shift-x: 0px;
  --phone-shift-y: 0px;
  --wallet-orb-x: 72%;
  --wallet-orb-y: 8%;
  --phone-glow-scale: 1;
  --panel: rgba(7, 20, 38, 0.78);
  --panel-strong: rgba(10, 26, 49, 0.92);
  --border: rgba(101, 208, 255, 0.18);
  --border-strong: rgba(101, 208, 255, 0.28);
  --text: #ebf6ff;
  --muted: #8ea9c7;
  --accent: #4fd9ff;
  --accent-strong: #1de8d2;
  --accent-soft: rgba(79, 217, 255, 0.14);
  --success: #86f4ae;
  --warning: #ffd776;
  --danger: #ff84a9;
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI", sans-serif;
}

body[data-theme="aurora"] {
  --bg-0: #07111f;
  --bg-1: #0f2337;
  --bg-2: #13354e;
  --panel: rgba(10, 26, 44, 0.76);
  --panel-strong: rgba(15, 36, 58, 0.9);
  --border: rgba(112, 246, 222, 0.2);
  --border-strong: rgba(112, 246, 222, 0.36);
  --accent: #70f6de;
  --accent-strong: #8fc8ff;
  --accent-soft: rgba(112, 246, 222, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at var(--ambient-primary-x) var(--ambient-primary-y), rgba(79, 217, 255, var(--ambient-alpha)), transparent 28%),
    radial-gradient(circle at var(--ambient-secondary-x) var(--ambient-secondary-y), rgba(29, 232, 210, var(--ambient-alpha-2)), transparent 22%),
    radial-gradient(circle at var(--ambient-accent-x) var(--ambient-accent-y), rgba(33, 65, 123, var(--ambient-alpha-3)), transparent 30%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 45%, #01040b 100%);
  overflow-x: hidden;
  transition: background 600ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  animation: ambientFloat 14s ease-in-out infinite;
}

body::before {
  top: -10rem;
  left: -8rem;
  background: rgba(79, 217, 255, 0.22);
}

body::after {
  right: -12rem;
  bottom: -14rem;
  background: rgba(29, 232, 210, 0.15);
  animation-delay: -7s;
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.04);
  }
}

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

button,
input,
select,
summary {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

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

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.glass-panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 32%, transparent 72%, rgba(79, 217, 255, 0.06));
  opacity: 0;
  transition: opacity 260ms ease;
}

.section-block {
  padding: 36px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.hero-copy h1,
.hero-copy h2,
.wallet-stage h3,
.site-footer h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.hero-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  color: #b5cbff;
  font-weight: 500;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.8rem);
}

.eyebrow,
.screen-eyebrow,
.meta-pill,
.proof-label,
.stack-index,
.roadmap-phase,
.status-badge,
.inline-note {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.eyebrow,
.screen-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
}

.lead,
.hero-copy p,
.section-heading p,
.research-panel p,
.waitlist-panel p,
.contributor-card p,
.feature-card p,
.observation-card p,
.stack-card p,
.wallet-stage-note,
.small-note {
  color: var(--muted);
}

.button-row,
.hero-actions,
.hero-meta,
.wallet-actions,
.nav-actions,
.chip-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
  cursor: pointer;
  font-weight: 600;
}

.button:hover,
.button:focus-visible,
.wallet-tab:hover,
.wallet-tab:focus-visible,
.chip:hover,
.chip:focus-visible,
.view-tab:hover,
.view-tab:focus-visible,
.mode-button:hover,
.mode-button:focus-visible,
.toggle-button:hover,
.toggle-button:focus-visible {
  transform: translateY(-1px);
}

.button:active,
.wallet-tab:active,
.chip:active,
.view-tab:active,
.mode-button:active,
.toggle-button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.button-primary {
  color: #03111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 32px rgba(79, 217, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.14);
}

.full-width {
  width: 100%;
}

.pill-link,
.meta-pill,
.wallet-highlight,
.status-badge,
.inline-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.page-shell {
  position: relative;
  padding-bottom: 56px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(79, 217, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 217, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 24%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-28px, -24px, 0);
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  overflow: hidden;
}

.nav-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 217, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: navSweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes navSweep {
  0%,
  72%,
  100% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), rgba(255, 255, 255, 0.18));
  color: #04101f;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(79, 217, 255, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.pill-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.pill-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-section {
  position: relative;
  padding: 22px 0 24px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 50%;
  width: min(68vw, 720px);
  height: 280px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79, 217, 255, 0.12), transparent 68%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  flex: 1 1 0;
  min-width: 0;
}

.hero-copy,
.wallet-stage,
.intro-panel,
.insight-panel,
.pulse-copy,
.pulse-panel,
.research-panel,
.pdf-preview,
.waitlist-panel,
.footer-panel,
.explorer-preview-strip {
  padding: 28px;
}

.wallet-stage {
  display: grid;
  place-items: center;
  flex: 0 0 392px;
  width: 392px;
  max-width: 100%;
  min-width: 320px;
  align-self: center;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 24px;
}

.proof-card,
.feature-card,
.stack-card,
.insight-card,
.contributor-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.wallet-stage-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.wallet-stage-note {
  max-width: 28rem;
  margin: 0;
  font-size: 0.92rem;
}

.wallet-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.phone-motion-layer {
  display: grid;
  place-items: center;
  perspective: 1800px;
  animation: phoneDrift 7.5s ease-in-out infinite;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 392px;
  min-width: 0;
  padding-top: 0;
  margin-inline: auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 372px;
  margin: 0;
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(4, 16, 31, 0.92), rgba(6, 20, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
  transform:
    translate3d(var(--phone-shift-x), var(--phone-shift-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
  will-change: transform;
}

.phone-frame::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -28px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 217, 255, 0.18), transparent 68%);
  filter: blur(18px);
  opacity: 0.82;
  transform: scale(var(--phone-glow-scale));
  transition: transform 280ms ease;
}

@keyframes phoneDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-glow {
  position: absolute;
  inset: 18px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(79, 217, 255, 0.16), transparent 30%);
  pointer-events: none;
  animation: phoneGlowPulse 7s ease-in-out infinite;
}

@keyframes phoneGlowPulse {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(1);
  }
  50% {
    opacity: 0.98;
    transform: scale(1.02);
  }
}

.phone-hardware {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.wallet-shell-demo {
  position: relative;
  height: 760px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(79, 217, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(6, 18, 35, 0.98), rgba(2, 8, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-shell-demo::before {
  content: "";
  position: absolute;
  inset: -18% -20% auto;
  height: 44%;
  background: linear-gradient(115deg, transparent, rgba(79, 217, 255, 0.11), transparent 70%);
  transform: translateX(-55%) skewY(-10deg);
  pointer-events: none;
  animation: walletSweep 12s linear infinite;
}

.wallet-shell-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--wallet-orb-x) var(--wallet-orb-y), rgba(79, 217, 255, 0.15), transparent 24%);
  pointer-events: none;
  transition: background 280ms ease;
}

@keyframes walletSweep {
  0% {
    transform: translateX(-55%) skewY(-10deg);
    opacity: 0;
  }
  10%,
  35% {
    opacity: 0.65;
  }
  55%,
  100% {
    transform: translateX(110%) skewY(-10deg);
    opacity: 0;
  }
}

.wallet-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 14px;
  font-size: 0.84rem;
  color: #d6e8ff;
}

.wallet-status-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(134, 244, 174, 0.8);
}

.wallet-viewport {
  position: relative;
  height: calc(100% - 78px - 86px);
  overflow: hidden;
  touch-action: pan-y;
}

.wallet-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-screen {
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 4px 18px 24px;
  scrollbar-width: none;
}

.wallet-screen::-webkit-scrollbar {
  display: none;
}

.wallet-screen.is-current .screen-stack > * {
  animation: screenRise 420ms ease both;
}

.wallet-screen.is-current .screen-stack > *:nth-child(2) {
  animation-delay: 40ms;
}

.wallet-screen.is-current .screen-stack > *:nth-child(3) {
  animation-delay: 80ms;
}

.wallet-screen.is-current .screen-stack > *:nth-child(4) {
  animation-delay: 120ms;
}

.wallet-screen.is-current .screen-stack > *:nth-child(5) {
  animation-delay: 160ms;
}

@keyframes screenRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-stack {
  display: grid;
  gap: 14px;
  padding-bottom: 6px;
}

.screen-heading {
  padding: 4px 4px 0;
}

.screen-heading h4 {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.wallet-card {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compact-card {
  gap: 10px;
}

.balance-card {
  background:
    radial-gradient(circle at top right, rgba(79, 217, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

.card-topline,
.balance-row,
.section-head,
.metric-line,
.lookup-row,
.profile-card,
.pulse-label-row,
.video-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.card-topline {
  margin-bottom: 10px;
}

.micro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.balance-value {
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.balance-row,
.section-head span,
.metric-line span,
.lookup-result,
.profile-card p,
.mode-button small,
.toggle-copy small {
  color: var(--muted);
  font-size: 0.84rem;
}

.wallet-actions.vertical {
  flex-direction: column;
}

.wallet-actions .button {
  flex: 1 1 0;
}

.token-list,
.signal-list,
.activity-list,
.block-list,
.validator-grid,
.settings-list,
.score-stack {
  display: grid;
  gap: 10px;
}

.token-row,
.signal-row,
.activity-item,
.block-item,
.validator-card,
.toggle-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.token-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.token-badge,
.profile-avatar,
.contributor-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
  color: var(--text);
  font-weight: 700;
}

.token-copy strong,
.signal-row strong,
.activity-item strong,
.block-item strong,
.validator-card strong,
.toggle-copy strong,
.mode-button strong,
.contributor-card strong,
.stack-card strong,
.feature-card strong,
.insight-card strong,
.roadmap-card strong {
  display: block;
}

.token-meta,
.signal-meta,
.activity-meta,
.validator-meta,
.block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.token-amount {
  text-align: right;
}

.token-amount small,
.token-delta-positive {
  color: var(--success);
}

.signal-bar,
.progress-bar,
.score-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.signal-fill,
.progress-fill,
.score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform-origin: left center;
  transition: width 220ms ease;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.wallet-field {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.wallet-field:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.route-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

.preview-card.is-ready {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(79, 217, 255, 0.12);
}

.preview-output strong {
  display: block;
  margin-bottom: 6px;
}

.activity-item,
.block-item,
.validator-card {
  padding: 14px;
}

.activity-topline,
.validator-topline,
.block-topline,
.toggle-row,
.score-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.activity-status,
.score-item span:last-child,
.validator-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text);
}

.activity-status.finalized,
.validator-pill.good {
  color: var(--success);
}

.activity-status.guarded {
  color: var(--warning);
}

.lookup-row {
  align-items: stretch;
}

.lookup-row .wallet-field {
  margin: 0;
}

.lookup-button {
  min-width: 110px;
}

.lookup-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.profile-card {
  align-items: center;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-family: var(--font-display);
}

.mode-grid {
  display: grid;
  gap: 10px;
}

.mode-button,
.toggle-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.mode-button.is-active,
.toggle-button.is-active,
.view-tab.is-active,
.wallet-tab.is-active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.06));
  border-color: var(--border-strong);
}

.toggle-state {
  min-width: 70px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

.wallet-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 12px 14px;
  background: rgba(1, 6, 17, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-tab {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 18px;
  color: var(--muted);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
  cursor: pointer;
}

.wallet-tab.is-active {
  color: var(--text);
}

.wallet-tab-mark {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.content-grid {
  display: grid;
  gap: 24px;
}

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

.pulse-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.five-up {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.feature-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li::marker {
  color: var(--accent);
}

.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.view-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.view-panel {
  min-height: 260px;
  padding: 24px;
}

.view-panel.is-switching .section-heading,
.view-panel.is-switching .view-panel-card {
  animation: panelFade 420ms ease both;
}

.view-panel.is-switching .view-panel-card:nth-child(1) {
  animation-delay: 40ms;
}

.view-panel.is-switching .view-panel-card:nth-child(2) {
  animation-delay: 90ms;
}

.view-panel.is-switching .view-panel-card:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.view-panel-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-panel {
  padding: 18px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.comparison-table th {
  color: #d7e8ff;
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table .is-highlighted {
  background: rgba(79, 217, 255, 0.08);
}

.section-link-row {
  margin-top: 12px;
}

.section-link-row a {
  color: var(--accent);
}

.pdf-preview summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.pdf-preview summary::-webkit-details-marker {
  display: none;
}

.pdf-frame {
  margin: 18px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.pdf-object {
  min-height: 520px;
  background: rgba(255, 255, 255, 0.02);
}

.roadmap-card {
  padding: 22px;
}

.roadmap-card.is-done {
  border-color: rgba(134, 244, 174, 0.24);
}

.roadmap-card.is-active {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(79, 217, 255, 0.12);
}

.roadmap-phase {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
}

.explorer-preview-strip {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.centered-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.contributor-card {
  text-align: left;
}

.contributor-card span {
  display: block;
  margin: 6px 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
}

.waitlist-block {
  padding-bottom: 20px;
}

.waitlist-panel {
  text-align: center;
}

.waitlist-panel p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  padding: 28px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer-panel {
  min-height: 100%;
}

.footer-links {
  margin-top: 12px;
}

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

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

.footer-note {
  margin-top: 18px;
  color: var(--muted);
}

.pulse-stat {
  margin-bottom: 18px;
}

.progress-bar {
  margin-top: 10px;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.chip.pulse,
.progress-fill.pulse,
.pulse-panel.pulse {
  animation: pulseFlash 320ms ease;
}

@keyframes pulseFlash {
  from {
    box-shadow: 0 0 0 0 rgba(79, 217, 255, 0.34);
  }
  to {
    box-shadow: 0 0 0 18px rgba(79, 217, 255, 0);
  }
}

.score-item {
  display: grid;
  gap: 8px;
}

.score-item-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.small-note {
  font-size: 0.84rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 60;
}

.video-modal.is-open {
  display: grid;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 10, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  padding: 22px;
}

.video-modal__close {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.video-modal video {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: saturate(0.9);
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 780ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 20, 38, 0.94);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 70;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel:hover::after {
    opacity: 1;
  }

  .hero-copy:hover,
  .wallet-stage:hover,
  .feature-card:hover,
  .stack-card:hover,
  .insight-card:hover,
  .observation-card:hover,
  .view-panel-card:hover,
  .roadmap-card:hover,
  .contributor-card:hover,
  .token-row:hover,
  .signal-row:hover,
  .activity-item:hover,
  .block-item:hover,
  .validator-card:hover,
  .mode-button:hover,
  .toggle-button:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.05);
  }

  .wallet-tab:hover,
  .view-tab:hover,
  .chip:hover,
  .button:hover {
    box-shadow: 0 12px 28px rgba(79, 217, 255, 0.18);
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: 1fr;
    border-radius: 32px;
  }

  .nav-links,
  .nav-actions {
    justify-content: center;
  }

  .two-column,
  .pulse-grid,
  .footer-grid,
  .two-up {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
  }

  .wallet-stage {
    order: -1;
    width: 100%;
    min-width: 0;
    flex: initial;
    align-self: start;
  }

  .four-up,
  .five-up,
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-motion-layer {
    animation-duration: 9s;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100vw - 24px, 1180px);
  }

  .site-nav {
    padding: 10px 0;
  }

  .nav-links {
    display: none;
  }

  .hero-copy,
  .wallet-stage,
  .intro-panel,
  .insight-panel,
  .pulse-copy,
  .pulse-panel,
  .research-panel,
  .pdf-preview,
  .waitlist-panel,
  .footer-panel,
  .explorer-preview-strip,
  .view-panel {
    padding: 22px;
  }

  .hero-proof-grid,
  .four-up,
  .five-up,
  .three-up {
    grid-template-columns: minmax(0, 1fr);
  }

  .explorer-preview-strip,
  .profile-card,
  .lookup-row {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-frame {
    width: 100%;
    padding: 12px;
    transform: none;
  }

  .wallet-shell-demo {
    height: min(84vh, 760px);
  }

  .wallet-actions {
    flex-direction: column;
  }

  .validator-grid,
  .view-panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-nav {
    gap: 6px;
  }

  .wallet-tab {
    min-height: 60px;
    padding-inline: 4px;
    font-size: 0.76rem;
  }

  .button,
  .view-tab {
    width: 100%;
  }

  .button-row,
  .hero-actions,
  .nav-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .balance-value {
    font-size: 1.8rem;
  }

  .wallet-shell-demo {
    border-radius: 26px;
  }

  .wallet-screen {
    padding-inline: 14px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
