/* ==============================================================================
   DECODER · ECU LAB — Cyber Landing Stylesheet
   web/components/landing.css
   100% Aligned with Prototype Design System Tokens, Glassmorphism 18px & CRT Optics
   ============================================================================== */
/* Decoder SVG Icon Helpers */
.decoder-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -0.2em;
  color: inherit;
  overflow: visible;
}
.decoder-icon--16 {
  width: 16px;
  height: 16px;
}
.decoder-icon--24 {
  width: 24px;
  height: 24px;
}
.decoder-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
/* SPA Shell & Global View Transition Controls */
.prototype-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 40px;
  min-height: 100vh;
  position: relative;
}
.view-container {
  display: none;
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.view-container.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==============================================================================
   1. STICKY GLASS NAVBAR (header.landing-nav)
   ============================================================================== */
.landing-nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: rgba(8, 13, 22, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-sheen), 0 12px 32px -16px var(--shadow);
  transition: border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
body.theme-light .landing-nav {
  background: rgba(246, 249, 252, 0.94);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.08);
}
.landing-nav:hover {
  box-shadow: var(--glass-sheen-hover), 0 16px 40px -16px var(--shadow);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav-brand .brand-logo-bracket {
  color: var(--cyan);
}
.nav-brand span.brand-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 10px;
  font-family: var(--mono);
  color: var(--cyan-bright);
  letter-spacing: 0.04em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-menu a,
.nav-dropdown-trigger {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--mono);
  transition: color var(--motion-fast) ease;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--text);
}
/* Cyber Glassmorphism Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: var(--radius-sm, 6px);
  line-height: 1;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger,
.nav-dropdown-trigger:focus-visible {
  color: var(--cyan);
  outline: none;
}
.nav-dropdown-arrow,
.dropdown-chevron {
  font-size: 10px;
  display: inline-block;
  transition: transform var(--motion-normal) ease;
}
.nav-dropdown.open .nav-dropdown-arrow,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 310px;
  width: max-content;
  max-width: 360px;
  padding: 10px;
  border-radius: var(--radius-panel, 18px);
  background: rgba(8, 14, 26, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow: var(--glass-sheen), 0 20px 45px -10px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease, visibility 0s linear var(--motion-fast);
  z-index: 1000;
}
/* Hover bridge: keeps hover active while moving mouse across the 10px gap */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
body.theme-light .nav-dropdown-menu {
  background: rgba(246, 249, 252, 0.96);
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.12);
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease, visibility 0s linear 0s;
}
@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}
.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform var(--motion-fast) ease;
  cursor: pointer;
  background: transparent;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
  transform: translateX(2px);
  outline: none;
}
.dropdown-item-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.28);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.dropdown-item-text,
.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.dropdown-item-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.dropdown-item-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  font-weight: 400;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Section Scroll Margins */
.features-section,
.metrics-section,
section[id] {
  scroll-margin-top: calc(75px + 24px);
}
/* ==============================================================================
   2. HERO SECTION — HIGH-OCTANE CYBER COCKPIT & LIVE BRAND TERMINAL
   ============================================================================== */
.hero-section {
  position: relative;
  padding: 18px 12px 36px;
  max-width: 1400px;
  margin: 0 auto 36px;
}
/* Ambient Cyber Glow & Scanline Scanner */
.hero-ambient-glow {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 94vw);
  height: 480px;
  background: radial-gradient(ellipse 70% 50% at 50% 35%, rgba(0, 240, 255, 0.13), rgba(0, 255, 136, 0.05) 55%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: heroPulseGlow 9s ease-in-out infinite alternate;
}
.hero-beam-scanner {
  position: absolute;
  top: 8px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright) 30%, var(--green-bright) 70%, transparent);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
  animation: heroScanBeam 7s ease-in-out infinite;
}
@keyframes heroPulseGlow {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.65; }
  100% { transform: translateX(-50%) scale(1.06); opacity: 1; }
}
@keyframes heroScanBeam {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { transform: translateY(300px); opacity: 0.45; }
}
/* Dual-Cockpit Hero Grid */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  transition: all 0.3s ease;
}
.hero-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-visual-col {
  min-width: 0;
  width: 100%;
}
/* Expanded Terminal Mode */
.hero-section.is-terminal-expanded .hero-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.hero-section.is-terminal-expanded .hero-content-col {
  align-items: center;
  text-align: center;
}
.hero-section.is-terminal-expanded .hero-actions {
  justify-content: center;
}
.hero-section.is-terminal-expanded .hero-trust-bar {
  justify-content: center;
}
/* High-Tech Eyebrow Pill */
.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan-bright) 35%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 85%, var(--cyan-bright) 6%);
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px -6px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
  flex-wrap: wrap;
}
.hero-eyebrow-divider {
  color: var(--muted);
  opacity: 0.4;
  user-select: none;
}
.hero-eyebrow-tag {
  color: var(--text);
  font-weight: 700;
  font-size: 10px;
  background: color-mix(in srgb, var(--green-bright) 14%, transparent);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--green-bright) 35%, transparent);
  letter-spacing: 0.06em;
}
.hero-eyebrow-metric {
  color: var(--muted);
  font-size: 10px;
}
/* Hero Typography */
.hero-title {
  position: relative;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--text);
}
.hero-title .title-accent {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, #38bdf8 35%, var(--green-bright) 75%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.3));
}
.hero-subtitle {
  position: relative;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
/* Hero Action CTAs */
.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  width: 100%;
}
.hero-actions .button {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-button, 8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--motion-normal) ease, box-shadow var(--motion-normal) ease, border-color var(--motion-normal) ease;
}
.hero-actions .button.primary {
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--green-bright) 100%);
  color: #03080d;
  box-shadow: 0 4px 20px -4px rgba(0, 240, 255, 0.45);
}
.hero-actions .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px -2px rgba(0, 255, 136, 0.6);
}
.hero-actions .button.secondary {
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-actions .button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-bright);
}
/* Quick CLI Snippet Bar */
.hero-cli-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-bottom: 16px;
}
.hero-cli-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--monitor-face) 88%, var(--bg-card) 12%);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -10px var(--shadow);
  font-family: var(--mono);
  font-size: 11px;
}
.hero-cli-prompt {
  color: var(--green-bright);
  font-weight: 700;
  user-select: none;
}
.hero-cli-code {
  color: var(--text);
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
}
.hero-cli-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan-bright);
  background: color-mix(in srgb, var(--cyan-bright) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan-bright) 30%, transparent);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hero-cli-copy:hover {
  background: color-mix(in srgb, var(--cyan-bright) 24%, transparent);
  color: #fff;
  border-color: var(--cyan-bright);
}
.hero-cli-copy.copied {
  color: #03080d;
  background: var(--green-bright);
  border-color: var(--green-bright);
}
/* Trust & Micro-Pills Bar */
.hero-trust-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 75%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px -6px var(--shadow);
}
/* ==============================================================================
   3. CENTERPIECE: UNIFIED TERMINAL & BRANDING COCKPIT CONSOLE
   ============================================================================== */
.hero-terminal-cockpit {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow: var(--glass-sheen), 0 24px 64px -24px var(--shadow), 0 0 40px -10px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-terminal-cockpit:hover {
  border-color: color-mix(in srgb, var(--cyan-bright) 35%, var(--border));
  box-shadow: var(--glass-sheen-hover), 0 28px 72px -20px var(--shadow), 0 0 52px -6px rgba(0, 240, 255, 0.22);
}
/* Terminal Chrome Header */
.hero-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--monitor-face) 82%, var(--bg-card) 18%);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-terminal-dots .dot-red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255, 95, 86, 0.45);
}
.hero-terminal-dots .dot-amber {
  background: #ffbd2e;
  box-shadow: 0 0 6px rgba(255, 189, 46, 0.45);
}
.hero-terminal-dots .dot-green {
  background: #27c93f;
  box-shadow: 0 0 6px rgba(39, 201, 63, 0.45);
}
.hero-terminal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.hero-terminal-name {
  color: var(--text);
}
/* Terminal Mode Switcher Tabs */
.hero-terminal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--monitor-face) 92%, black 8%);
  border: 1px solid var(--border);
}
.hero-term-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-term-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.hero-term-tab.active {
  color: var(--cyan-bright);
  background: color-mix(in srgb, var(--cyan-bright) 15%, var(--bg-card));
  box-shadow: 0 2px 10px -2px rgba(0, 240, 255, 0.35);
}
.hero-term-tab .tab-idx {
  opacity: 0.6;
  font-size: 9px;
}
/* Head Actions */
.hero-terminal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-split-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-split-toggle:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}
.hero-split-toggle.active {
  color: var(--green-bright);
  border-color: var(--green-bright);
  background: color-mix(in srgb, var(--green-bright) 12%, transparent);
}
.hero-stream-badge {
  font-size: 9px;
  padding: 3px 7px;
  font-family: var(--mono);
}
/* Panels */
.hero-terminal-body {
  padding: 14px;
}
.hero-panel {
  display: none;
}
.hero-panel.active {
  display: block;
}
/* Split view on desktop */
.hero-terminal-cockpit.is-split .hero-terminal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-terminal-cockpit.is-split .hero-panel-brand,
.hero-terminal-cockpit.is-split .hero-panel-stream {
  display: block !important;
}
.hero-terminal-cockpit.is-split .hero-panel-matrix {
  display: none !important;
}
/* Panel 02: Real-time Audit Terminal */
.hero-stream-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--monitor-rim);
  border-radius: var(--radius-monitor);
  background: var(--monitor-face);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px -10px var(--shadow);
  display: flex;
  flex-direction: column;
}
.hero-stream-console #hero-terminal-output {
  height: 220px;
  padding: 14px 16px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.log-cyan { color: var(--cyan-bright); }
.log-green { color: var(--green-bright); }
.log-amber { color: var(--amber); }
.log-muted { color: var(--muted); }
.log-gold { color: #ffd700; text-shadow: 0 0 6px rgba(255, 215, 0, 0.35); }
.hero-terminal-form {
  border-top: 1px solid var(--monitor-rim);
  background: color-mix(in srgb, var(--monitor-face) 85%, black 15%);
  padding: 8px 14px;
}
.hero-terminal-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.hero-prompt-symbol {
  color: var(--green-bright);
  font-weight: 700;
  user-select: none;
  font-size: 12px;
}
.hero-terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  caret-color: var(--cyan-bright);
}
.hero-terminal-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.hero-terminal-send {
  background: color-mix(in srgb, var(--cyan-bright) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan-bright) 32%, transparent);
  color: var(--cyan-bright);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-terminal-send:hover {
  background: var(--cyan-bright);
  color: #03080d;
}
.hero-terminal-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid color-mix(in srgb, var(--monitor-rim) 50%, transparent);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  background: color-mix(in srgb, var(--monitor-face) 95%, black 5%);
}
.hero-chips-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.hero-cmd-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  transition: all 0.2s;
}
.hero-cmd-chip:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
  background: color-mix(in srgb, var(--cyan-bright) 10%, transparent);
}
/* Panel 03: Telemetry Matrix */
.hero-telemetry-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--monitor-rim);
  border-radius: var(--radius-monitor);
  background: var(--monitor-face);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px -10px var(--shadow);
}
.hero-matrix-content {
  padding: 16px;
}
.hero-matrix-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.hero-matrix-stat-box {
  background: color-mix(in srgb, var(--monitor-face) 80%, black 20%);
  border: 1px solid var(--monitor-rim);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--mono);
}
.stat-box-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.stat-box-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.stat-box-val.text-green { color: var(--green-bright); }
.stat-box-val.text-cyan { color: var(--cyan-bright); }
.stat-box-val.text-gold, .text-gold { color: #ffd700; }
.text-cyan { color: var(--cyan-bright); }
.text-green { color: var(--green-bright); }
.progress-bar-wrap {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
}
.progress-bar-fill.cyan {
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
}
.progress-bar-fill.green {
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}
.progress-bar-fill.gold {
  background: linear-gradient(90deg, #f59e0b, #ffd700);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}
.hero-matrix-pools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.matrix-pool-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 60px 1.5fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--monitor-face) 90%, black 10%);
  border: 1px solid var(--monitor-rim);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
}
.matrix-pool-row .pool-name {
  color: var(--text);
  font-weight: 600;
}
.matrix-pool-row .pool-engine {
  color: var(--muted);
  font-size: 10px;
}
.matrix-pool-row .pool-load-pct {
  color: var(--cyan-bright);
  font-weight: 700;
  text-align: right;
}
.matrix-pool-row .pool-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.matrix-pool-row .pool-bar-fill {
  height: 100%;
}
.matrix-pool-row .pool-bar-fill.cyan { background: var(--cyan-bright); }
.matrix-pool-row .pool-bar-fill.green { background: var(--green-bright); }
.matrix-pool-row .pool-bar-fill.amber { background: var(--amber); }
/* Terminal Footer Ribbon */
.hero-terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--monitor-face) 85%, var(--bg-card) 15%);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.hero-term-foot-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.terminal-foot-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-term-foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-foot-btn {
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-foot-btn:hover {
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
}
/* Light Theme Overrides for Hero */
.theme-light .hero-ambient-glow {
  background: radial-gradient(ellipse 65% 50% at 50% 35%, rgba(0, 163, 255, 0.12), rgba(0, 204, 102, 0.05) 55%, transparent 75%);
}
.theme-light .hero-eyebrow {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 163, 255, 0.3);
}
.theme-light .hero-cli-bar {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.theme-light .hero-terminal-cockpit {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.12);
}
.theme-light .hero-terminal-header,
.theme-light .hero-terminal-footer {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.theme-light .hero-terminal-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
/* ==============================================================================
   4. SECTIONS, FEATURE CARDS & HOW IT WORKS (#how-it-works)
   ============================================================================== */
.features-section {
  margin-bottom: 64px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-caption {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  box-shadow: var(--glass-sheen), 0 12px 28px -14px var(--shadow);
  transition: transform var(--motion-normal) ease, border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-soft);
  box-shadow: var(--glass-sheen-hover), 0 18px 40px -16px var(--shadow);
}
.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--cyan-bright);
}
.feature-number {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}
.feature-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* ==============================================================================
   5. LOTTERY POOLS & GLASS TILES (#pools)
   ============================================================================== */
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lottery-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  box-shadow: var(--glass-sheen), 0 12px 28px -14px var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-normal) ease, border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
.lottery-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-soft);
  box-shadow: var(--glass-sheen-hover), 0 18px 40px -16px var(--shadow);
}
.lottery-card.hot {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, transparent 55%), var(--bg-card);
  box-shadow: var(--glass-sheen), 0 14px 34px -14px var(--shadow), 0 0 28px -8px rgba(245, 158, 11, 0.16);
}
.lottery-card.hot:hover {
  border-color: var(--amber);
  box-shadow: var(--glass-sheen-hover), 0 20px 44px -14px var(--shadow), 0 0 36px -6px rgba(245, 158, 11, 0.28);
}
.hot-badge-ribbon {
  position: absolute;
  top: -11px;
  right: 20px;
  background: linear-gradient(135deg, #d97706, #ffd700);
  color: #03080d;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.lottery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gold-text {
  color: #ffd700 !important;
  border-color: rgba(245, 158, 11, 0.38) !important;
}
.lottery-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lottery-desc {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  min-height: 40px;
}
.jackpot-block {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-bottom: 18px;
}
.jackpot-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.jackpot-val {
  font-family: var(--mono);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  color: var(--cyan-bright);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.jackpot-fiat {
  display: block;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  margin-top: 4px;
}
.gold-glow {
  border-color: rgba(245, 158, 11, 0.35);
  background: color-mix(in srgb, var(--bg-subtle) 85%, rgba(245, 158, 11, 0.15));
}
.gold-label {
  color: var(--amber);
}
.gold-val {
  color: #ffd700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}
.gold-fiat {
  color: #fde68a;
}
.lottery-progress-wrap {
  margin-bottom: 20px;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-labels strong {
  color: var(--text);
}
.lottery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.ticket-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-label {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.price-val small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.lottery-action-btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.gold-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ffd700 100%) !important;
  color: #03080d !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 4px 16px -4px rgba(245, 158, 11, 0.45);
}
.gold-btn:hover {
  box-shadow: 0 6px 22px -2px rgba(255, 215, 0, 0.65);
}
/* ==============================================================================
   6. CTA BANNER, FAQ ACCORDIONS & FOOTER
   ============================================================================== */
.cta-banner {
  padding: 36px 28px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%), var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  box-shadow: var(--glass-sheen), 0 20px 50px -25px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.cta-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 680px;
}
/* FAQ Glass Accordions */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate, 160%));
  box-shadow: var(--glass-sheen), 0 10px 24px -12px var(--shadow);
  overflow: hidden;
  transition: border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--cyan-soft);
  box-shadow: var(--glass-sheen-hover), 0 14px 32px -14px var(--shadow);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.faq-arrow {
  color: var(--cyan-bright);
  font-size: 11px;
  transition: transform var(--motion-normal) ease;
}
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 22px 20px 58px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.faq-answer p {
  margin: 0;
}
/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--motion-fast) ease;
}
.footer-links a:hover {
  color: var(--text);
}
/* ==============================================================================
   7. PROTOTYPE MOBILE & RESPONSIVE ALIGNMENT (prototype/mobile.css)
   ============================================================================== */
.prototype-page { min-width: 0; }
#landing-view :is(.hero-content-col, .hero-visual-col, .hero-panel, .hero-cli-container,
  .feature-card, .lottery-card, .faq-item) {
  min-width: 0;
  max-width: 100%;
}
#landing-view .hero-cli-bar code { min-width: 0; }
#landing-view .hero-terminal-cockpit.is-split .hero-terminal-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#landing-view .hero-section.is-terminal-expanded .hero-grid { grid-template-columns: minmax(0, 1fr); }
#landing-view .hero-terminal-input { min-width: 0; }
.nav-menu-toggle { display: none; }
/* One baseline, one control height. Links styled as buttons are not underlined. */
#landing-view a.button { text-decoration: none; }
#landing-view .nav-right { align-items: center; }
#landing-view .nav-right :is(.theme-toggle, .segment, #nav-auth-btn) { height: 44px; min-height: 44px; }
#landing-view .nav-right .segment { align-items: stretch; }
#landing-view .nav-right .segment-button { min-height: 0; height: 100%; display: grid; place-items: center; }
#landing-view .hero-cli-bar { gap: 10px; padding: 8px; }
#landing-view #hero-cli-copy-btn {
  flex: 0 0 120px;
  width: 120px;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  justify-content: center;
  gap: 8px;
  border-radius: var(--ui-radius-button);
  line-height: 1;
}
#landing-view #hero-cli-copy-btn .decoder-icon { flex: 0 0 16px; width: 16px; height: 16px; }
#landing-view .hero-copy-done { display: none; }
#landing-view .copied .hero-copy-icon { display: none; }
#landing-view .copied .hero-copy-done { display: block; }
#landing-view #hero-cli-copy-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 1280px) {
  #landing-view .landing-nav { flex-wrap: wrap; gap: 12px; }
  #landing-view .nav-menu {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }
}
@media (max-width: 1099px) {
  #landing-view .hero-grid { grid-template-columns: minmax(0, 1fr); }
  #landing-view .steps-grid,
  #landing-view .lottery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-matrix-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matrix-pool-row {
    grid-template-columns: 1.5fr 1fr 50px 1fr;
    font-size: 10px;
  }
  .hero-terminal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero-terminal-tabs {
    width: 100%;
    justify-content: space-around;
  }
  .hero-term-tab {
    flex: 1;
    justify-content: center;
    padding: 6px 6px;
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  .prototype-shell { padding-inline: 12px; }
  #landing-view .landing-nav {
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    margin-bottom: 20px;
  }
  #landing-view .nav-left { min-width: 0; }
  #landing-view .nav-brand { gap: 4px; font-size: 14px; flex-wrap: wrap; }
  #landing-view .brand-sub { font-size: 10px; }
  #landing-view .nav-menu-toggle { display: inline-flex; min-height: 44px; padding: 8px 12px; }
  #landing-view .nav-right { grid-column: 1 / -1; display: grid; grid-template-columns: 66px 70px minmax(0, 1fr); gap: 8px; min-width: 0; align-items: stretch; }
  #landing-view .nav-right .segment { width: 70px; }
  #landing-view #nav-auth-btn { width: 100%; min-height: 44px; white-space: normal; text-align: center; padding: 8px 12px; }
  #landing-view .nav-menu { display: none; grid-column: 1 / -1; order: 0; }
  #landing-view .landing-nav[data-menu-open="true"] .nav-menu,
  #landing-view .nav-menu.open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #landing-view .nav-menu a { display: flex; align-items: center; min-height: 44px; text-align: left; }
  #landing-view .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  #landing-view .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 0;
    font-size: 12px;
    width: 100%;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  }
  #landing-view .nav-dropdown-menu {
    position: static;
    transform: none !important;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border-radius: 12px;
    background: rgba(12, 19, 32, 0.7);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    margin: 6px 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  #landing-view .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
  #landing-view .nav-dropdown-item {
    min-height: 48px;
    padding: 10px 12px;
  }
  #landing-view .hero-section { padding: 8px 0 32px; }
  #landing-view .hero-grid { gap: 24px; }
  #landing-view .hero-content-col { align-items: stretch; text-align: left; }
  #landing-view .hero-eyebrow {
    align-self: flex-start;
    margin: 0 0 16px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
  }
  #landing-view .hero-eyebrow > span { min-width: 0; }
  #landing-view .hero-title {
    margin: 0 0 16px;
    font-size: clamp(25px, 6.6vw, 38px);
    line-height: 1.16;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #landing-view .hero-subtitle { margin: 0 0 20px; font-size: 14px; line-height: 1.65; text-align: left; }
  #landing-view .hero-actions { gap: 8px; margin-bottom: 16px; }
  #landing-view .hero-actions .button { min-height: 48px; white-space: normal; text-align: center; padding: 12px; }
  #landing-view .hero-cli-container { max-width: 100%; margin: 0 0 16px; }
  #landing-view .hero-cli-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
  #landing-view .hero-cli-bar code { white-space: normal; overflow-wrap: anywhere; text-align: left; font-size: 11px; }
  #landing-view .hero-trust-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #landing-view .hero-trust-pill { min-width: 0; white-space: normal; font-size: 10px; justify-content: flex-start; }
  #landing-view .hero-terminal-header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 8px; padding: 12px; }
  #landing-view .hero-terminal-title { display: block; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 10px; }
  #landing-view .hero-terminal-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #landing-view .hero-term-tab { min-width: 0; min-height: 48px; padding: 6px 4px; font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
  #landing-view .hero-terminal-head-actions { grid-column: 1 / -1; justify-content: space-between; }
  #landing-view #hero-term-split-btn { min-height: 44px; }
  #landing-view .hero-terminal-body { padding: 12px; }
  #landing-view .hero-terminal-cockpit.is-split .hero-terminal-body { grid-template-columns: minmax(0, 1fr); }
  #landing-view .hero-terminal-footer { gap: 12px; padding: 12px; font-size: 10px; }
  #landing-view :is(.hero-term-foot-left, .hero-term-foot-right) { min-width: 0; flex-wrap: wrap; gap: 8px; }
  #landing-view .terminal-foot-item { white-space: normal; overflow-wrap: anywhere; }
  #landing-view .hero-foot-btn { min-height: 44px; }
  #landing-view .hero-terminal-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #landing-view .hero-prompt-symbol { grid-column: 1 / -1; }
  #landing-view .hero-terminal-input { width: 100%; font-size: 16px; }
  #landing-view .hero-terminal-send { min-width: 44px; min-height: 44px; }
  #landing-view .hero-cmd-chip { min-height: 44px; }
  #landing-view :is(.monitor-bar, .section-head) { flex-wrap: wrap; gap: 10px; }
  #landing-view :is(.monitor-bar-title, .section-caption) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  #landing-view .terminal-output { overflow-wrap: anywhere; white-space: pre-wrap; }
  #landing-view .hero-matrix-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #landing-view :is(.stat-box-val, .pool-name, .pool-engine) { overflow-wrap: anywhere; }
  #landing-view .matrix-pool-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #landing-view :is(.steps-grid, .lottery-grid) { grid-template-columns: minmax(0, 1fr); }
  #landing-view :is(.feature-card, .lottery-card) { padding: 18px; }
  #landing-view .cta-banner { padding: 20px 16px; gap: 20px; }
  #landing-view .cta-btns, #landing-view .cta-btns .button { width: 100%; justify-content: center; }
  #landing-view .faq-answer { padding: 0 16px 16px 16px; }
  #landing-view :is(.footer-left, .footer-links) { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
  #landing-view .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 360px) {
  #landing-view .brand-sub { display: none; }
  #landing-view .hero-trust-bar,
  #landing-view .hero-matrix-stats-grid { grid-template-columns: minmax(0, 1fr); }
  #landing-view .nav-right { grid-template-columns: 66px 70px minmax(0, 1fr); }
  #landing-view .nav-right #nav-auth-btn { grid-column: 1 / -1; }
}
@media (min-width: 480px) and (max-width: 639px) {
  #landing-view .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  #landing-view .hero-actions > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 768px) {
  #landing-view .landing-nav { grid-template-columns: minmax(0, 1fr) 66px 70px auto auto; gap: 10px; }
  #landing-view .nav-left { grid-column: 1; grid-row: 1; }
  #landing-view .nav-right { display: contents; }
  #landing-view #landing-theme-toggle { grid-column: 2; grid-row: 1; }
  #landing-view .nav-right .segment { grid-column: 3; grid-row: 1; }
  #landing-view #nav-auth-btn { grid-column: 4; grid-row: 1; }
  #landing-view .nav-menu-toggle { grid-column: 5; grid-row: 1; }
  #landing-view .hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  #landing-view .hero-actions .button { height: 100%; min-height: 52px; }
}
@media (max-width: 479px) {
  #landing-view #hero-cli-copy-btn { width: 44px; flex-basis: 44px; padding: 0; }
  #landing-view #hero-cli-copy-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* ==============================================================================
   REFERRAL SYSTEM, AFFILIATE & AGREEMENT STYLES
   ============================================================================== */
/* --- 1. Referral Tiers --- */
.referral-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.referral-tier-card {
  background: var(--bg-card, rgba(13, 21, 38, 0.75));
  border: 1px solid var(--border, rgba(56, 189, 248, 0.2));
  border-radius: var(--radius-panel, 18px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-sheen), 0 12px 28px -14px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.referral-tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--glass-sheen-hover), 0 16px 36px -12px var(--shadow);
}
.tier-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.tier-badge-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tier-percent {
  font-family: var(--mono, monospace);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.tier-direct .tier-percent { color: var(--cyan, #38bdf8); text-shadow: 0 0 20px rgba(56, 189, 248, 0.4); }
.tier-sub .tier-percent { color: #60a5fa; text-shadow: 0 0 20px rgba(96, 165, 250, 0.4); }
.tier-worker .tier-percent { color: var(--green, #10b981); text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.tier-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #f8fafc);
}
.tier-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  margin: 0 0 18px;
  flex: 1;
}
.tier-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  font-family: var(--mono, monospace);
  font-size: 11px;
}
.tier-metric-label {
  color: var(--faint, #64748b);
  text-transform: uppercase;
}
.tier-metric-val {
  color: var(--cyan, #38bdf8);
  font-weight: 600;
}
/* --- Referral Interactive Grid (Link + Calculator) --- */
.referral-interactive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
}
.ref-link-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.ref-link-sub {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
  margin: 10px 0 18px;
}
.ref-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(4, 9, 18, 0.7);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  margin-bottom: 16px;
}
body.theme-light .ref-link-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.ref-link-text {
  font-family: var(--mono, monospace);
  font-size: 13px;
  color: var(--cyan, #38bdf8);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ref-share-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
}
.ref-tg-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--mono, monospace);
  color: var(--cyan, #38bdf8);
  padding: 6px 12px;
  text-decoration: none;
}
.ref-antisybil-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--mono, monospace);
  color: var(--faint, #64748b);
}
/* --- Referral Calculator --- */
.ref-calc-card {
  padding: 24px;
}
.ref-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0 20px;
}
.ref-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-family: var(--mono, monospace);
}
.ref-slider-header label {
  color: var(--muted, #94a3b8);
}
.ref-slider-value {
  color: var(--cyan, #38bdf8);
  font-weight: 700;
}
/* Range Slider (Coding Glass / controls.css alignment) */
input.ui-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  cursor: pointer;
}
input.ui-range::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan, #38bdf8) var(--range-progress, 0%), var(--bg-subtle, rgba(255, 255, 255, 0.08)) var(--range-progress, 0%));
  box-shadow: inset 0 1px 2px var(--shadow, rgba(0, 0, 0, 0.4));
}
input.ui-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 1px solid var(--cyan, #38bdf8);
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255,255,255,.4), transparent 85%), rgba(10, 20, 36, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 12px var(--cyan-glow, rgba(0, 245, 255, 0.35));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input.ui-range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 16px var(--cyan-glow, rgba(0, 245, 255, 0.55));
}
input.ui-range::-moz-range-track {
  height: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-subtle, rgba(255, 255, 255, 0.08));
}
input.ui-range::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--cyan, #38bdf8);
}
input.ui-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid var(--cyan, #38bdf8);
  border-radius: 50%;
  background: rgba(10, 20, 36, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 12px var(--cyan-glow, rgba(0, 245, 255, 0.35));
}
input.ui-range:focus-visible {
  outline: 2px solid var(--cyan, #38bdf8);
  outline-offset: 2px;
}
body.theme-light input.ui-range::-webkit-slider-runnable-track {
  border-color: rgba(203, 213, 225, 0.9);
  background: linear-gradient(90deg, var(--cyan, #38bdf8) var(--range-progress, 0%), rgba(226, 232, 240, 0.9) var(--range-progress, 0%));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
body.theme-light input.ui-range::-webkit-slider-thumb {
  background: linear-gradient(140deg, #ffffff, #f1f5f9);
  border-color: var(--cyan, #38bdf8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 6px var(--cyan-glow, rgba(0, 245, 255, 0.25));
}
body.theme-light input.ui-range::-moz-range-track {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(226, 232, 240, 0.9);
}
body.theme-light input.ui-range::-moz-range-thumb {
  background: linear-gradient(140deg, #ffffff, #f1f5f9);
  border-color: var(--cyan, #38bdf8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 6px var(--cyan-glow, rgba(0, 245, 255, 0.25));
}
.ref-calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
}
body.theme-light .ref-calc-results {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.ref-res-col .calc-stat-value {
  font-family: var(--mono, monospace);
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
/* --- 2. Affiliate Tracks --- */
.affiliate-tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.aff-track-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-panel, 18px);
  box-shadow: var(--glass-sheen), 0 12px 28px -14px var(--shadow);
}
.card-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.track-header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-track-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text, #f8fafc);
}
.aff-track-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #94a3b8);
  margin: 0 0 14px;
  flex: 1;
}
.aff-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-top: 12px;
}
.aff-perks-list li {
  font-size: 11px;
  font-family: var(--mono, monospace);
  color: var(--muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Trust Banner */
.aff-stats-banner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.aff-stats-grid {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.aff-stat-item .aff-stat-num {
  font-family: var(--mono, monospace);
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan, #38bdf8);
  line-height: 1.1;
}
.aff-stat-item .aff-stat-label {
  font-size: 10px;
  font-family: var(--mono, monospace);
  color: var(--muted, #94a3b8);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.aff-cta-wrap .button {
  padding: 10px 20px;
  font-size: 12px;
  font-family: var(--mono, monospace);
  text-decoration: none;
}
/* --- 3. Onboarding Steps --- */
.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.step-card {
  background: var(--bg-card, rgba(13, 21, 38, 0.75));
  border: 1px solid var(--border, rgba(56, 189, 248, 0.2));
  border-radius: var(--radius-panel, 18px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-sheen), 0 10px 24px -12px var(--shadow);
  transition: border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
.step-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--glass-sheen-hover), 0 14px 30px -12px var(--shadow);
}
.step-num {
  font-family: var(--mono, monospace);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan, #38bdf8);
  opacity: 0.85;
  margin-bottom: 8px;
}
.step-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #f8fafc);
}
.step-card p {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
  margin: 0;
}
/* --- 4. Agreement Layout & Form --- */
.agreement-application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 20px;
}
.agreement-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.agreement-intro {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  margin: 10px 0 16px;
}
.agreement-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.accordion-item {
  background: var(--bg-card, rgba(6, 12, 24, 0.6));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-panel, 18px);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-sheen), 0 10px 24px -12px var(--shadow);
  transition: border-color var(--motion-normal) ease, box-shadow var(--motion-normal) ease;
}
body.theme-light .accordion-item {
  background: rgba(246, 249, 252, 0.92);
  border-color: rgba(203, 213, 225, 0.85);
}
.accordion-item:hover,
.accordion-item[open] {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--glass-sheen-hover), 0 14px 32px -14px var(--shadow);
}
.accordion-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 13px;
  color: var(--text, #f8fafc);
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-summary strong {
  flex: 1;
  font-size: 12px;
  font-family: var(--mono, monospace);
  font-weight: 600;
}
.chevron-icon {
  transition: transform 0.2s ease;
  color: var(--muted, #94a3b8);
}
.accordion-item[open] .chevron-icon {
  transform: rotate(180deg);
  color: var(--cyan, #38bdf8);
}
.accordion-body {
  padding: 10px 14px 14px 34px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted, #94a3b8);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}
.agreement-footer-actions {
  margin-top: auto;
  padding-top: 14px;
}
/* Partner Form */
.partner-form-card {
  padding: 24px;
  position: relative;
}
.partner-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 16px;
}
.partner-form-grid .full-width {
  grid-column: 1 / -1;
}
.partner-form-grid textarea {
  resize: vertical;
  min-height: 72px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
}
/* Custom Select Wrap */
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(4, 9, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-control, 8px);
  padding: 10px 36px 10px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
body.theme-light .select-wrap select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.select-wrap select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.select-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--cyan);
  font-size: 11px;
}
/* Canonical Check Control */
.partner-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
}
.partner-checkbox-label strong {
  color: var(--cyan);
}
/* Unified Form Typography */
.partner-form .auth-field input,
.partner-form .auth-field select,
.partner-form .auth-field textarea {
  font-family: var(--mono);
  font-size: 13px;
  border-radius: var(--radius-control, 8px);
}
.form-error {
  display: block;
  font-size: 11px;
  font-family: var(--mono, monospace);
  color: var(--rose, #f43f5e);
  margin-top: 3px;
  min-height: 15px;
}
/* Success Card */
.partner-success-card {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--green, #10b981);
  margin-bottom: 16px;
  position: relative;
}
.success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #f8fafc);
  margin: 0 0 8px;
}
.success-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  max-width: 480px;
  margin: 0 0 20px;
}
.success-ticket-box {
  padding: 12px 24px;
  background: rgba(4, 9, 18, 0.85);
  border: 1px dashed var(--cyan, #38bdf8);
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.theme-light .success-ticket-box {
  background: #f1f5f9;
  border-color: #0284c7;
}
.ticket-label {
  font-size: 10px;
  font-family: var(--mono, monospace);
  color: var(--faint, #64748b);
  letter-spacing: 0.08em;
}
.ticket-number {
  font-family: var(--mono, monospace);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.success-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* --- Agreement Modal --- */
.agreement-modal-card {
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.agreement-modal-content {
  overflow-y: auto;
  max-height: 55vh;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text, #f8fafc);
  border-block: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) rgba(4, 9, 18, 0.6);
}
.agreement-modal-content::-webkit-scrollbar {
  width: 8px;
}
.agreement-modal-content::-webkit-scrollbar-track {
  background: rgba(4, 9, 18, 0.6);
  border-radius: 4px;
}
.agreement-modal-content::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.28);
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.1);
}
.agreement-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}
.agreement-modal-content h4 {
  font-size: 14px;
  color: var(--cyan, #38bdf8);
  margin: 16px 0 6px;
  font-family: var(--mono, monospace);
}
.agreement-modal-content p {
  margin: 0 0 10px;
  color: var(--muted, #94a3b8);
}
.agreement-modal-footer {
  padding: 16px 20px 0;
}
/* Responsive */
@media (max-width: 1099px) {
  .referral-tiers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .affiliate-tracks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agreement-application-layout { grid-template-columns: minmax(0, 1fr); }
  .referral-interactive-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .referral-tiers-grid { grid-template-columns: minmax(0, 1fr); }
  .affiliate-tracks-grid { grid-template-columns: minmax(0, 1fr); }
  .onboarding-steps-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-form-grid { grid-template-columns: minmax(0, 1fr); }
  .aff-stats-banner { flex-direction: column; align-items: stretch; }
  .aff-stats-grid { justify-content: space-between; }
  .aff-cta-wrap .button { width: 100%; text-align: center; }
  .ref-calc-results { grid-template-columns: minmax(0, 1fr); }
  .ref-share-badges { flex-direction: column; align-items: flex-start; }
}
/* Landing review: common gutters, quieter metadata and connected workflow. */
#landing-view { --landing-gutter:clamp(16px,2.5vw,40px); --landing-section-space:clamp(44px,6vw,80px); }
#landing-view > :is(.landing-nav,.hero-section,.features-section,.cta-banner,.landing-footer) { width:calc(100% - var(--landing-gutter) - var(--landing-gutter)); max-width:1280px; margin-left:auto; margin-right:auto; }
#landing-view .hero-section { padding:40px 0 0; margin-bottom:var(--landing-section-space); }
#landing-view .features-section { margin-bottom:var(--landing-section-space); }
#landing-view .section-head { align-items:flex-end; gap:20px; margin-bottom:24px; }
#landing-view .section-title { font-size:clamp(22px,2.2vw,30px); line-height:1.25; font-weight:700; }
#landing-view .section-caption { max-width:460px; margin:0; font-size:11px; line-height:1.7; letter-spacing:.04em; }
#landing-view .section-kicker { margin:0 0 12px; color:var(--muted); font:11px/1.5 var(--mono); letter-spacing:.14em; }
#landing-view .hero-actions .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
#landing-view .hero-trust-bar { display:flex; flex-wrap:wrap; gap:0; list-style:none; margin:8px 0 0; padding:16px 0 0; border-top:1px solid var(--border); }
#landing-view .hero-trust-bar li { padding:0 14px; color:var(--muted); font:11px/1.8 var(--mono); border-left:1px solid var(--border); }
#landing-view .hero-trust-bar li:first-child { padding-left:0; border-left:0; }
#landing-view .nav-status-chip .status-led { background:#22c55e; box-shadow:0 0 7px #22c55e55; }
#landing-view .hero-term-tab { transition:background-color .2s ease,border-color .2s ease; }
#landing-view .hero-panel { min-width:0; }
#landing-view .journey-track { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--border); border-radius:18px; overflow:hidden; background:var(--bg-card); }
#landing-view .journey-step { position:relative; padding:28px; min-width:0; border-right:1px solid var(--border); }
#landing-view .journey-step:last-child { border-right:0; }
#landing-view .journey-step:not(:last-child)::after { content:'→'; position:absolute; top:36px; right:-12px; z-index:1; width:24px; height:24px; display:grid; place-items:center; background:var(--bg-container,var(--bg)); color:var(--cyan-bright); border:1px solid var(--border); border-radius:50%; }
#landing-view .journey-step-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; color:var(--cyan-bright); }
#landing-view .journey-number { color:var(--muted); font:500 30px/1 var(--mono); letter-spacing:-.06em; }
#landing-view .journey-step h3 { margin:0 0 12px; font:700 17px/1.4 var(--mono); color:var(--text); }
#landing-view .journey-step p { margin:0 0 24px; color:var(--muted); font:12px/1.8 var(--mono); min-height:66px; }
#landing-view .journey-stage { display:block; padding-top:16px; border-top:1px solid var(--border); color:var(--muted); font:10px/1.6 var(--mono); letter-spacing:.08em; }
#landing-view .result-console { overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--bg-card); }
#landing-view .result-console-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:18px 24px; background:var(--bg-subtle); border-bottom:1px solid var(--border); font:11px/1.6 var(--mono); color:var(--text); letter-spacing:.06em; }
#landing-view .result-console-label { color:var(--muted); }
#landing-view .result-console-line { display:grid; grid-template-columns:110px minmax(0,1fr); gap:24px; align-items:center; padding:20px 28px; border-bottom:1px solid var(--border); }
#landing-view .result-code { color:var(--cyan-bright); font:600 12px/1.6 var(--mono); }
#landing-view .result-code::before { content:'› '; color:var(--muted); }
#landing-view .result-console-line p { margin:0; font:13px/1.8 var(--mono); color:var(--text); }
#landing-view .result-console-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; padding:24px 28px; }
#landing-view .result-console-footer > span { font:12px/1.7 var(--mono); color:var(--muted); }
#landing-view .agreement-application-layout { gap:32px; align-items:start; }
#landing-view :is(.agreement-card,.partner-form-card) { padding:24px; min-width:0; }
#landing-view .partner-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
#landing-view .partner-form-grid :is(.auth-field,input,textarea,.select-wrap) { min-width:0; max-width:100%; }
#landing-view .partner-form-grid .auth-field { display:flex; flex-direction:column; gap:8px; }
#landing-view .partner-form-grid :is(input,textarea) { width:100%; }
#landing-view .partner-checkbox-label { display:grid; grid-template-columns:20px minmax(0,1fr); width:100%; height:auto; align-items:start; gap:12px; margin:16px 0 0; font:12px/1.7 var(--mono); }
#landing-view .check-label-text { display:block; min-width:0; width:auto; white-space:normal; overflow-wrap:break-word; }
#landing-view .partner-checkbox-label strong { color:var(--text); }
#landing-view .onboarding-steps-grid { margin:24px 0 32px; gap:16px; }
#landing-view .landing-footer { margin-top:var(--landing-section-space); padding-top:24px; padding-bottom:24px; gap:24px; }
body.theme-light #landing-view :is(.hero-terminal-cockpit,.journey-track,.result-console,.agreement-card,.partner-form-card,.cta-banner,.faq-item) { background:rgba(255,255,255,.94); border-color:#cbd5e1; }
body.theme-light #landing-view :is(.hero-terminal-header,.hero-terminal-footer,.hero-terminal-tabs,.result-console-heading) { background:#eef3f8; }
body.theme-light #landing-view .hero-terminal-body { background:#f8fafc; }
body.theme-light #landing-view .hero-cli-code { color:#334155; }
@media(max-width:900px) {
  #landing-view .journey-step { padding:22px; }
  #landing-view .agreement-application-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:640px) {
  #landing-view .hero-section { padding-top:24px; }
  #landing-view .section-head { display:grid; gap:12px; }
  #landing-view .journey-track { grid-template-columns:minmax(0,1fr); }
  #landing-view .journey-step { padding:24px; border-right:0; border-bottom:1px solid var(--border); }
  #landing-view .journey-step:last-child { border-bottom:0; }
  #landing-view .journey-step:not(:last-child)::after { content:'↓'; top:auto; bottom:-12px; right:28px; }
  #landing-view .journey-step-top { margin-bottom:20px; }
  #landing-view .journey-step p { min-height:0; }
  #landing-view .result-console-line { grid-template-columns:minmax(0,1fr); gap:8px; padding:20px; }
  #landing-view .result-console-heading,#landing-view .result-console-footer { padding:20px; }
  #landing-view .result-console-footer .button { width:100%; }
  #landing-view .partner-form-grid { grid-template-columns:minmax(0,1fr); }
  #landing-view :is(.agreement-card,.partner-form-card) { padding:20px; }
  #landing-view .hero-trust-bar li { padding:0 10px; font-size:10px; }
  #landing-view .hero-trust-bar li:first-child { padding-left:0; }
}
/* 2026-11-05: hierarchy, action colors and progressive section entrances. */
#landing-view .nav-brand{font-size:clamp(20px,2vw,26px);letter-spacing:.02em;gap:7px;flex-wrap:nowrap;white-space:nowrap;flex-shrink:0}
#landing-view .nav-brand .brand-sub{font-size:10px;letter-spacing:.12em}
#landing-view .nav-right{flex-shrink:0}
#landing-view #nav-auth-btn{white-space:nowrap;flex-shrink:0;justify-content:center}
@media(max-width:900px){#landing-view .nav-status-chip{display:none}#landing-view .nav-brand .brand-sub{display:none}}
#landing-view .hero-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:24px;color:var(--green-bright,var(--green));font:600 10px/1.6 var(--mono);letter-spacing:.2em}
#landing-view .hero-eyebrow::before{content:'';width:28px;height:2px;background:currentColor;box-shadow:0 0 16px currentColor}
#landing-view .hero-title{max-width:17ch;margin:0 0 24px;font-size:clamp(36px,5.4vw,72px);line-height:1.04;letter-spacing:-.055em;text-wrap:balance}
#landing-view .hero-title .title-accent{background:linear-gradient(110deg,var(--text) 0%,var(--green-bright,var(--green)) 80%);background-clip:text;-webkit-background-clip:text;color:transparent}
#landing-view .hero-subtitle{max-width:48ch;font-size:clamp(13px,1.15vw,16px);line-height:1.9;margin-bottom:28px}
#landing-view .hero-actions .button.primary{background:var(--green-bright,var(--green));color:#062318;border:1px solid var(--green-bright,var(--green));box-shadow:0 6px 24px #10b98125}
#landing-view .hero-actions .button.primary:hover{background:color-mix(in srgb,var(--green-bright,var(--green)) 85%,white);box-shadow:0 8px 28px #10b98135}
#landing-view .hero-cli-container{margin-top:28px;opacity:.8}
#landing-view .partner-checkbox-label{grid-template-columns:28px minmax(0,1fr);align-items:center;min-height:44px}
#landing-view .scroll-reveal{opacity:0;transform:translateY(24px);transition:opacity .65s ease var(--reveal-delay,0ms),transform .65s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms)}
#landing-view .scroll-reveal.is-revealed{opacity:1;transform:none}
@media(max-width:640px){#landing-view .nav-brand{font-size:20px}#landing-view .hero-title{font-size:clamp(34px,8vw,48px)}#landing-view .hero-eyebrow{margin-bottom:18px;font-size:9px}#landing-view .hero-content-col{padding:0}#landing-view .hero-actions{grid-template-columns:1fr!important}#landing-view .hero-actions>*{width:100%;grid-column:auto!important}#landing-view .hero-cli-code{font-size:10px}}
@media(prefers-reduced-motion:reduce){#landing-view .scroll-reveal{opacity:1;transform:none;transition:none}}
/* Hero review: solid typography, stable tabs, and factual task guidance. */
#landing-view .hero-title .title-accent {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor; color: #7dd3fc; filter: none; text-shadow: none;
}
body.theme-light #landing-view .hero-title .title-accent { color: #075985; }
/* Every pane contributes to the same grid track, including inactive panes.
   This reserves the largest natural pane height without clipping mobile controls. */
#landing-view .hero-terminal-cockpit:not(.is-split) .hero-terminal-body { display:grid; grid-template-columns:minmax(0,1fr); }
#landing-view .hero-terminal-cockpit:not(.is-split) .hero-panel { display:block; grid-area:1/1; visibility:hidden; pointer-events:none; }
#landing-view .hero-terminal-cockpit:not(.is-split) .hero-panel.active { visibility:visible; pointer-events:auto; }
#landing-view .hero-terminal-cockpit:not(.is-split) :is(.hero-stream-console,.hero-task-guide) { height:100%; box-sizing:border-box; }
#landing-view .hero-stream-console #hero-terminal-output { box-sizing:border-box; contain:size; flex:1 1 220px; min-height:220px; height:220px; }
#landing-view .hero-task-guide { border:1px solid var(--border); border-radius:var(--radius-monitor); background:var(--bg-card); display:flex; flex-direction:column; }
#landing-view .hero-task-steps { list-style:none; padding:0 20px; margin:0; }
#landing-view .hero-task-steps li { display:grid; grid-template-columns:32px minmax(0,1fr); gap:16px; padding:24px 0; border-bottom:1px solid var(--border); }
#landing-view .hero-task-steps li:last-child { border-bottom:0; }
#landing-view .hero-task-number { color:var(--muted); font:18px/1.4 var(--mono); }
#landing-view .hero-task-steps h3 { margin:0 0 8px; font:700 13px/1.5 var(--mono); color:var(--text); }
#landing-view .hero-task-steps p,#landing-view .hero-task-note { margin:0; color:var(--muted); font:12px/1.75 var(--mono); }
#landing-view .hero-task-note { margin-top:auto; border-top:1px solid var(--border); padding:16px 20px; }
#landing-view .landing-entrance { transition:opacity .55s ease,transform .55s ease; transition-delay:var(--entrance-delay,0ms); }
#landing-view [data-entrance-pending] { opacity:0; transform:translateY(18px); }
#landing-view .entrance-visible { opacity:1; transform:none; }
@media(max-width:640px) {
  #landing-view .hero-task-steps { padding:0 14px; }
  #landing-view .hero-task-steps li { gap:10px; padding:20px 0; }
  #landing-view .hero-task-note { padding:14px; }
}
@media(prefers-reduced-motion:reduce) {
  #landing-view .landing-entrance { transition:none; }
  #landing-view [data-entrance-pending] { opacity:1; transform:none; }
}
@media print { #landing-view [data-entrance-pending] { opacity:1; transform:none; } }
/* Landing review: prominent amount, compact application and shared checkbox. */
#landing-view .hero-title .hero-btc-amount { display:block; margin-top:.12em; white-space:nowrap; font-variant-numeric:tabular-nums; }
#landing-view .agreement-application-layout { display:block; }
#landing-view #partner-form-container { width:100%; }
#landing-view .partner-checkbox-label { display:grid; grid-template-columns:33px minmax(0,1fr); align-items:center; gap:12px; min-height:44px; cursor:pointer; }
#landing-view .partner-checkbox-label .check-control { width:33px; height:33px; margin:0; }
/* Large quick commands fill the console width instead of clustering as chips. */
#landing-view .hero-terminal-chips { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); width:100%; box-sizing:border-box; padding:16px; gap:10px; }
#landing-view .hero-chips-label { grid-column:1/-1; margin:0; font-size:10px; line-height:1.5; }
#landing-view .hero-cmd-chip { width:100%; min-width:0; min-height:80px; padding:12px 8px; font:600 12px/1.5 var(--mono); color:var(--text); background:var(--bg-card); white-space:normal; overflow-wrap:break-word; text-align:center; }
@media(max-width:640px) {
  #landing-view .hero-terminal-chips { grid-template-columns:repeat(2,minmax(0,1fr)); padding:14px; }
  #landing-view .hero-cmd-chip:last-child { grid-column:1/-1; }
}
