/* ==========================================================================
   LUMIO PROTOCOL - ULTRA-PREMIUM CINEMATIC DESIGN SYSTEM
   Inspired by Magma / Institutional Web3 Protocols
   ========================================================================== */

:root {
  /* Obsidian Dark Palette */
  --bg-base: #090c0a;
  --bg-surface: #101512;
  --bg-surface-elevated: #161d18;
  --bg-glass: rgba(16, 22, 18, 0.72);
  --bg-glass-card: rgba(22, 30, 25, 0.65);
  
  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(216, 255, 42, 0.3);
  --border-glow: rgba(67, 168, 103, 0.35);

  /* Typography Colors */
  --text-main: #f5f8f5;
  --text-muted: #85948a;
  --text-dim: #546359;
  
  /* Accents */
  --acid-lime: #d8ff2a;
  --acid-glow: rgba(216, 255, 42, 0.35);
  --emerald-green: #3cd070;
  --forest-green: #1a4229;
  --emerald-glow: rgba(60, 208, 112, 0.35);
  
  /* Fonts */
  --font-display: 'Unbounded', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Motion */
  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ring: 0 0 0 3px rgba(216, 255, 42, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
code { font-family: var(--font-mono); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #232c25; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #354439; }

/* Selection */
::selection {
  background: var(--acid-lime);
  color: #090c0a;
}

/* ==========================================================================
   Ambient Background Glow Orbs
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 72, 45, 0.5) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(216, 255, 42, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
}

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */
.gradient-text {
  background: linear-gradient(120deg, #f1ffb0 0%, var(--acid-lime) 55%, #b8f22a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.text-acid { color: var(--acid-lime) !important; }
.text-glow { color: var(--emerald-green) !important; text-shadow: 0 0 12px var(--emerald-glow); }
.text-right { text-align: right; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Section Badges */
.section-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.badge-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(216, 255, 42, 0.12);
  color: var(--acid-lime);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(216, 255, 42, 0.25);
}
.badge-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-title-wrap {
  margin-bottom: 48px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  text-wrap: balance;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.6;
}

/* Grids */
.grid-3 > *, .grid-4 > *, .staking-layout-grid > *, .docs-grid-layout > * { min-width: 0; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Liquid Glass Cards */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.arch-card { display: flex; flex-direction: column; align-items: flex-start; }
.arch-card .card-pill { margin-top: auto; }
.glass-card:hover {
  border-color: var(--border-medium);
}
.grid-3 > .glass-card:hover, .grid-4 > .glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.glass-card.highlight-border {
  border-color: rgba(216, 255, 42, 0.25);
}
.glass-card.highlight-border:hover {
  border-color: var(--acid-lime);
  box-shadow: 0 20px 50px rgba(216, 255, 42, 0.12), inset 0 1px 0 rgba(216, 255, 42, 0.2);
}

/* Card Elements */
.card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 22px;
}
.card-icon-box.icon-accent {
  background: rgba(216, 255, 42, 0.08);
  border-color: rgba(216, 255, 42, 0.2);
  color: var(--acid-lime);
}
.card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.card-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.card-pill.pill-acid, .step-phase-tag.pill-acid {
  background: rgba(216, 255, 42, 0.08);
  border-color: rgba(216, 255, 42, 0.3);
  color: var(--acid-lime);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--acid-lime);
  color: #090c0a;
  box-shadow: 0 4px 20px rgba(216, 255, 42, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(216, 255, 42, 0.45);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 11px; border-radius: 8px; font-family: var(--font-mono); letter-spacing: 0.06em; }

/* Pulse Indicator */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-green);
  box-shadow: 0 0 10px var(--emerald-green);
  display: inline-block;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   Header & Floating dApp Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 1360px;
  margin: 0 auto;
  z-index: 1000;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 10px 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(216, 255, 42, 0.4));
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--acid-lime);
  margin-top: 4px;
}

/* Center Navigation Pill */
.dapp-nav-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}
.nav-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-pill-btn:hover {
  color: var(--text-main);
}
.nav-pill-btn { border: 1px solid transparent; }
.nav-pill-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--acid-lime);
  border-color: rgba(216, 255, 42, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 255, 42, 0.12);
  border: 1px solid rgba(216, 255, 42, 0.3);
  color: var(--acid-lime);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
}
.wallet-btn:hover {
  background: var(--acid-lime);
  color: #090c0a;
}
.wallet-btn.connected {
  background: rgba(60, 208, 112, 0.12);
  border-color: var(--emerald-green);
  color: var(--emerald-green);
}

/* ==========================================================================
   dApp View Switching Engine
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.dapp-view { display: none; }
.dapp-view.active {
  display: block;
  animation: view-in 0.45s var(--ease-out) both;
}
@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.dapp-view-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 136px var(--gutter) 96px;
}

.view-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
}
.view-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--acid-lime);
  display: block;
  margin-bottom: 8px;
}
.view-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.view-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ==========================================================================
   VIEW 1: HERO & LANDING SECTIONS
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  overflow: hidden;
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(1) hue-rotate(28deg) saturate(1.6) brightness(0.42) contrast(1.15);
}
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(0deg, var(--bg-base) 4%, rgba(9, 12, 10, 0.6) 40%, transparent 80%),
    linear-gradient(90deg, rgba(9, 12, 10, 0.85) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-top: 60px;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(216, 255, 42, 0.08);
  border: 1px solid rgba(216, 255, 42, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acid-lime);
  margin-bottom: 28px;
  max-width: 100%;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid-lime);
  box-shadow: 0 0 8px var(--acid-lime);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.8vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: clamp(16px, 1.3vw, 19px);
  color: #c9d4cd;
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 38px;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  transition: color 0.2s;
}
.hero-link:hover { color: #fff; }
.hero-link .arrow { color: var(--acid-lime); }

.hero-footer-bar {
  position: absolute;
  bottom: 28px;
  left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  gap: 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

/* Stream Ticker Ribbon */
.stream-ticker-ribbon {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 24px;
  padding: 18px var(--gutter);
  scrollbar-width: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}
.ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker-label { color: var(--text-dim); letter-spacing: 0.08em; }
.stream-ticker-ribbon::-webkit-scrollbar { display: none; }
.ticker-separator { color: rgba(255, 255, 255, 0.1); }

/* Content Sections */
.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px var(--gutter);
}
.content-section + .content-section { padding-top: 40px; }

/* Step Cards */
.step-card {
  display: flex;
  flex-direction: column;
}
.step-card .step-feature-list { margin-top: auto; }
.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.step-large-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dim);
}
.step-phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.step-action-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--emerald-green);
  margin-bottom: 6px;
}
.step-feature-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.check-icon {
  color: var(--emerald-green);
  font-weight: bold;
}

/* Telemetry Stat Tiles */
.stat-tile {
  padding: 28px;
}
.stat-tile-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.stat-tile-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-tile-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.live-sync-indicator, .vault-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
}

.contract-telemetry-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 28px;
}
.ctr-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: 13px; min-width: 0; }
.ctr-label { font-family: var(--font-mono); color: var(--text-muted); font-weight: 600; }
.ctr-code { font-family: var(--font-mono); color: var(--acid-lime); background: rgba(0, 0, 0, 0.4); padding: 5px 10px; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.ctr-right { display: flex; gap: 10px; }

/* Portfolio Banner Card */
.portfolio-banner-card {
  background: linear-gradient(135deg, #101813 0%, #15241b 100%);
  border: 1px solid rgba(60, 208, 112, 0.3);
  border-radius: 24px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(60, 208, 112, 0.08);
}
.portfolio-banner-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 42, 0.14), transparent 70%);
  pointer-events: none;
}
.pbc-left, .pbc-right { position: relative; z-index: 1; }
.pbc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--acid-lime);
  display: block;
  margin-bottom: 12px;
}
.pbc-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.pbc-desc {
  font-size: 16px;
  color: #a6b7ad;
  max-width: 580px;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item:hover { border-color: var(--border-medium); }
.faq-item.active {
  border-color: rgba(216, 255, 42, 0.3);
  background: var(--bg-surface-elevated);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.faq-cat-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--acid-lime);
  background: rgba(216, 255, 42, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 18px;
  flex-shrink: 0;
  letter-spacing: 0.08em;
}
.faq-question-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}
.faq-toggle-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--acid-lime);
}
.faq-answer-panel {
  display: none;
  padding: 0 28px 24px 28px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.active .faq-answer-panel {
  display: block;
  animation: view-in 0.35s var(--ease-out) both;
}

/* Spotlight Contract Card */
.contract-spotlight-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.csc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}
.spotlight-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--acid-lime);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.csc-right { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   VIEW 2: STAKE CONSOLE
   ========================================================================== */
.staking-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}
.staking-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.panel-subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.param-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}
.pb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.pb-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
}

.phase-resonance-card {
  padding: 24px;
}
.prc-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.prc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.prc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--acid-lime);
  box-shadow: 0 0 10px var(--acid-lime);
  transition: width 0.4s ease;
}

/* Staking Terminal Box */
.staking-terminal-card {
  padding: 36px;
}
.stc-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.stc-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stc-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.badge-live-stream {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-green);
  background: rgba(60, 208, 112, 0.1);
  border: 1px solid rgba(60, 208, 112, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.stc-tabs-wrap {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.stc-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.stc-tab-btn:hover { color: var(--text-main); }
.stc-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  border-color: var(--border-medium);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.stc-balance-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
}
.sbb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.sbb-val {
  font-family: var(--font-mono);
  font-size: 16px;
  color: #fff;
}

.stc-input-wrapper {
  margin-bottom: 24px;
}
.siw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.siw-header label {
  font-size: 13px;
  color: var(--text-muted);
}
.percentage-chips {
  display: flex;
  gap: 6px;
}
.pct-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pct-chip:hover {
  background: var(--bg-surface-elevated);
  color: #fff;
}
.max-chip {
  color: var(--acid-lime);
  border-color: rgba(216, 255, 42, 0.3);
}

.siw-input-box {
  display: flex;
  align-items: center;
  background: #090c0a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.siw-input-box:focus-within {
  border-color: rgba(216, 255, 42, 0.5);
  box-shadow: var(--ring);
}
.siw-input-box input::-webkit-outer-spin-button,
.siw-input-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.siw-input-box input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.siw-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  outline: none;
  width: 100%;
  min-width: 0;
  box-shadow: none;
}
.siw-token {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}

/* Yield Calculator */
.yield-calculator-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.ycb-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.ycb-row strong {
  white-space: nowrap;
  font-family: var(--font-mono);
  color: #fff;
}
.highlight-yield-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.highlight-yield-row strong {
  font-size: 16px;
}

.secondary-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tx-feedback-toast {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(60, 208, 112, 0.15);
  border: 1px solid var(--emerald-green);
  color: var(--emerald-green);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
}
.tx-feedback-toast.show { display: flex; }

/* ==========================================================================
   VIEW 3: POSITION / PORTFOLIO
   ========================================================================== */
.wallet-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid-lime);
}

.position-metrics-row {
  margin-bottom: 32px;
}
.metric-card {
  padding: 26px;
}
.mc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.mc-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.mc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.position-stepper-card {
  padding: 32px;
  margin-bottom: 32px;
}
.psc-header {
  margin-bottom: 24px;
}
.psc-header.flex-between { align-items: center; }
.psc-header .panel-subtitle { margin-bottom: 6px; }
.psc-header.flex-between .panel-subtitle { margin-bottom: 0; }
.psc-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.stepper-phases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.phase-step {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
}
.phase-step.active {
  background: linear-gradient(180deg, rgba(216, 255, 42, 0.08), rgba(216, 255, 42, 0.02));
  border-color: rgba(216, 255, 42, 0.45);
  box-shadow: 0 0 20px rgba(216, 255, 42, 0.06);
}
.ps-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.phase-step.active .ps-num {
  color: var(--acid-lime);
}
.phase-step strong {
  font-family: var(--font-display);
  font-size: 14px;
}
.phase-step small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* Ledger Table */
.ledger-card { padding: 32px; }
.table-responsive { overflow-x: auto; }
.dapp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.dapp-table th {
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.dapp-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.dapp-table tbody tr { transition: background 0.2s; }
.dapp-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.dapp-table tbody tr:last-child td { border-bottom: none; }
.dapp-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--acid-lime);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
}
.badge-event {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.event-deposit { background: rgba(60, 208, 112, 0.15); color: var(--emerald-green); }
.event-claim { background: rgba(216, 255, 42, 0.15); color: var(--acid-lime); }
.event-compound { background: rgba(72, 149, 239, 0.15); color: #4895ef; }

/* ==========================================================================
   VIEW 4: STATS
   ========================================================================== */
.timeframe-pill {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: 8px;
}
.tf-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.tf-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--acid-lime);
  border: 1px solid rgba(216, 255, 42, 0.3);
}

.telemetry-ticker-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.tts-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.tts-item strong { color: #fff; }

.stats-metrics-grid {
  margin-bottom: 32px;
}

.contracts-roster-card { padding: 32px; }
.contracts-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contract-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  gap: 16px;
  transition: border-color 0.2s;
}
.contract-entry:hover { border-color: var(--border-medium); }
.ce-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ce-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-dim); }
.ce-name { font-family: var(--font-display); font-size: 16px; }
.ce-addr { font-family: var(--font-mono); font-size: 13px; color: var(--acid-lime); margin-top: 4px; overflow-wrap: anywhere; }
.ce-right { display: flex; gap: 10px; flex-shrink: 0; }

/* ==========================================================================
   VIEW 5: DOCS
   ========================================================================== */
.docs-search-box input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 10px 22px;
  width: min(280px, 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.docs-search-box input:focus {
  border-color: var(--acid-lime);
  box-shadow: var(--ring);
}

.docs-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}
.doc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.doc-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.doc-nav-item.active {
  background: var(--bg-surface-elevated);
  color: var(--acid-lime);
  border-color: rgba(216, 255, 42, 0.25);
}
.doc-nav-item.active .dni-num { color: var(--acid-lime); }
.dni-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.docs-reading-pane {
  padding: 40px;
  min-height: 520px;
}
.doc-pane { display: none; max-width: 760px; }
.doc-pane.active { display: block; animation: view-in 0.35s var(--ease-out) both; }
.doc-pane p code, .doc-list code {
  font-size: 0.88em;
  color: var(--acid-lime);
  background: rgba(216, 255, 42, 0.08);
  border: 1px solid rgba(216, 255, 42, 0.15);
  padding: 2px 6px;
  border-radius: 5px;
}
.doc-pane strong { color: var(--text-main); }
.doc-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.doc-subheading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}
.doc-pane p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.doc-list {
  margin-left: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 24px;
}
.doc-list li { margin-bottom: 8px; }

.code-terminal {
  background: #090c0a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin: 22px 0;
}
.ct-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-terminal pre {
  padding: 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #d1ddd5;
  overflow-x: auto;
}
.ct-header .dot:last-of-type { margin-right: 6px; }

.formula-box {
  background: rgba(216, 255, 42, 0.05);
  border: 1px solid rgba(216, 255, 42, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--acid-lime);
  margin: 16px 0 20px 0;
  overflow-x: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #070907;
  padding: 48px var(--gutter);
  position: relative;
  z-index: 2;
}
.footer-container {
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { width: 36px; }
.footer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 600px;
}
.footer-credits {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080a09;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease;
}
.loader.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo {
  width: 72px;
  animation: logo-glow 1.5s infinite alternate;
}
@keyframes logo-glow {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(216, 255, 42, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(216, 255, 42, 0.8)); }
}
.loader-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--acid-lime);
  box-shadow: 0 0 10px var(--acid-lime);
  transition: width 0.1s linear;
}
#loader-counter {
  min-width: 36px;
  color: var(--acid-lime);
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .network-badge { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .staking-layout-grid, .docs-grid-layout { grid-template-columns: 1fr; }
  .stepper-phases-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-sidebar { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .docs-sidebar::-webkit-scrollbar { display: none; }
  .doc-nav-item { width: auto; flex-shrink: 0; white-space: nowrap; }
  .telemetry-ticker-strip { grid-template-columns: repeat(2, 1fr); }
  .portfolio-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .footer-brand { justify-content: center; }
  .footer-copy { margin: 0 auto; }
  .contract-spotlight-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  /* backdrop-filter on the header would trap the fixed tab bar inside it,
     so the glass effect moves to a pseudo-element */
  .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  /* Nav pill becomes a floating bottom tab bar */
  .dapp-nav-pill {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 480px;
    justify-content: space-between;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--border-medium);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    z-index: 1001;
  }
  .nav-pill-btn { flex: 1; padding: 11px 4px; font-size: 10px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .site-header { top: 12px; left: 12px; right: 12px; padding: 8px 8px 8px 14px; }
  .brand-sub { display: none; }
  .wallet-btn { padding: 8px 14px; font-size: 11px; }
  .wallet-btn svg { display: none; }

  .grid-3, .grid-4, .params-grid { grid-template-columns: 1fr; }
  .stepper-phases-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper-phases-grid .phase-step:last-child { grid-column: 1 / -1; }
  .glass-card { padding: 24px; }
  .staking-terminal-card, .docs-reading-pane, .ledger-card, .contracts-roster-card, .position-stepper-card { padding: 22px; }
  .secondary-btn-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; }

  .hero-section { min-height: 640px; }
  .hero-pill-badge { font-size: 10px; letter-spacing: 0.06em; }
  .hero-cta-group { gap: 12px; }
  .hero-cta-group .btn { flex: 1 1 100%; }
  .hero-link { margin-left: 0; }
  .hero-footer-bar { flex-direction: column; gap: 6px; bottom: 20px; font-size: 10px; }
  .stream-ticker-ribbon { justify-content: flex-start; }

  .content-section { padding: 64px var(--gutter); }
  .section-title-wrap { margin-bottom: 32px; }
  .dapp-view-container { padding-top: 104px; padding-bottom: 64px; }

  .faq-btn { padding: 18px; flex-wrap: wrap; gap: 10px; }
  .faq-cat-tag { margin-right: 0; }
  .faq-question-text { flex-basis: calc(100% - 40px); order: 2; font-size: 15px; }
  .faq-toggle-icon { order: 1; margin-left: auto; }
  .faq-answer-panel { padding: 0 18px 20px; }

  .contract-entry { flex-direction: column; align-items: flex-start; }
  .telemetry-ticker-strip { grid-template-columns: 1fr; gap: 10px; }
  .timeframe-pill { width: 100%; }
  .tf-btn { flex: 1; }
  .docs-search-box { width: 100%; }
  .docs-search-box input { width: 100%; }
  .portfolio-banner-card { padding: 32px 22px; }
  .pbc-right, .pbc-right .btn { width: 100%; }
}
