:root {
  --primary: #58C7DA;
  --secondary: #EBEBEB;
  --neutral: #000000;
  --fg: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(255, 255, 255, 0.15);
  --card: rgba(0, 0, 0, 0.1);
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius: 14px;

}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: visible; /* Remove sticky blocker */
}

body {
  min-height: 100%;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-base);
  background: var(--neutral);
  line-height: 1.6;
  overflow: visible; /* Remove sticky blocker */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  background: rgba(235,235,235,0.06);
  border-radius: 4px;
}

.text-link {
  color: var(--muted);
  text-decoration: underline;
}

.text-link:hover {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--neutral);
  color: var(--fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
  overflow: hidden;
}

.btn:hover {
  /* Removed hover effects to prevent rounded corner issues */
}

.btn:active {
  transform: translateY(0);
}

.btn.pri {
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--primary);
}

.btn.pri:hover {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(88, 199, 218, 0.3);
}

.btn.sec.active {
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--primary);
}

.btn.sec.active:hover {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(155, 199, 35, 0.3);
}

.btn.sec {
  border: 2px solid var(--secondary);
  background: var(--neutral);
  color: var(--secondary);
}

.btn.sec:hover {
  background: rgba(11, 67, 101, 0.05);
  box-shadow: 0 2px 6px rgba(11, 67, 101, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Header navigation: First four buttons use green accent borders, others stay blue */
header nav .btn.sec:nth-of-type(1),
header nav .btn.sec:nth-of-type(2),
header nav .btn.sec:nth-of-type(3),
header nav .btn.sec:nth-of-type(4) {
  border: 2px solid var(--primary);
  color: var(--secondary);
}

/* Primary CTA button style */
.btn.primary {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 0 18px; height: 48px; border-radius: 28px;
  font-weight: 700; letter-spacing: .2px;
  background: linear-gradient(135deg, #EBEBEB, #58C7DA);
  color:#000; border: 0; box-shadow: 0 6px 24px rgba(88,199,218,.22);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.03);
  box-shadow: 0 10px 28px rgba(88,199,218,.28);
}
.btn.primary:active { transform: translateY(0); filter: brightness(.98); }

/* About page video styling */
.about-video { width: 100%; max-width: 440px; border-radius: 12px; display:block; }

/* About CTA row layout */
.about-cta-row { display:flex; gap:12px; flex-wrap:wrap; }

.icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  vertical-align: middle;
}



.kpi, .mono {
  font-family: ui-monospace, 'Monaco', 'Consolas', monospace;
  font-size: var(--fs-sm);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  margin-bottom: var(--space-xs);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-md);
  color: var(--muted);
}

.mut {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grid4 { display:grid; grid-template-columns: repeat(12,1fr); gap: var(--space-lg); }
#sources .card.large { grid-column: span 6; }
#sources .card:not(.large) { grid-column: span 3; }
@media (max-width:1100px){ #sources .card.large{grid-column:span 12} #sources .card:not(.large){grid-column:span 6} }
@media (max-width:700px){ #sources .card:not(.large){grid-column:span 12} }

@media (max-width: 768px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
}

.row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--neutral); color: var(--fg);
  font: 600 var(--fs-xs)/1 ui-monospace, Menlo, Consolas, monospace;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .08s ease;
}
.chip:hover{ background: rgba(235,235,235,0.06); transform: translateY(-1px); }
.chip:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }


.chip[aria-pressed="true"]{
  background: rgba(235,235,235,0.08);
  box-shadow: inset 0 0 0 1px rgba(235,235,235,0.15);
}

.pill {
  display: inline-flex;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
}

.pill.linklike {
  cursor: pointer;
  text-decoration: none;
}

/* Modern primary CTA */
.cta-primary {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 22px; border-radius: 14px; font-weight: 700;
  border: 1px solid rgba(235,235,235,0.12);
  background: linear-gradient(135deg, rgba(88,199,218,0.18), rgba(235,235,235,0.18));
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(235,235,235,0.12), inset 0 1px 0 rgba(0,0,0,0.35);
  color: #EBEBEB; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cta-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(88,199,218,0.25), rgba(235,235,235,0.25)); border-radius: 14px; }
.cta-primary:active { transform: translateY(0); }
.cta-primary .icon { margin-left:10px; font-size: 18px; vertical-align: middle; }

.cta-under-pills {
  display:flex; justify-content:flex-end; margin-top: 46px;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hud-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5px;
}

/* HUD item loading spinners for unified loading state */
.hud-item strong.loading::after {
  content: "";
  display: inline-block;
  width: 1em; height: 1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: nomfet-spin .8s linear infinite;
  vertical-align: -0.15em;
}
@keyframes nomfet-spin { to { transform: rotate(360deg); } }
.hud-timestamp {
  font-family: ui-monospace, 'Monaco', monospace;
  font-size: var(--fs-xs);
  color: var(--muted);
  white-space: nowrap;
}
.hud-optional {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  color: #20465f;
}
.is-hidden {
  display: none;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
  color: #20465f;
}

.timeline {
  position: relative;
  padding-left: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary));
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(88, 199, 218, 0.3);
}

.step {
  position: relative;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }

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

.bullet {
  position: absolute;
  left: -34px;
  top: var(--space-md);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 3px solid var(--secondary);
  box-shadow: 0 0 15px rgba(88, 199, 218, 0.5);
  z-index: 2;
}

.faq-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-md,16px);
  align-items:start;
}

/* Responsive: unter 720px auf 1 Spalte */
@media (max-width: 720px){
  .faq-grid{ grid-template-columns:1fr; }
}

/* Karten-Styles defensiv (verhindert "einzeilig") */
.faq-item{
  display:block;
  padding:var(--space-md,16px);
  border-radius:10px;
  background: var(--neutral);
  box-shadow:var(--shadow,0 1px 3px rgba(0,0,0,.06));
  white-space:normal;        /* überschreibt evtl. vererbtes nowrap */
  overflow-wrap:anywhere;    /* lange Wörter umbrechen */
}
.faq-item h3{ margin:0 0 6px; line-height:1.25; }
.faq-item p{  margin:0;      line-height:1.5; }

/* Collapsed-Zustand: ab dem 5. Element ausblenden */
.faq-grid:not(.is-expanded) > .faq-item:nth-child(n+5){
  display:none !important;
}

/* Button actions container */
.faq-actions {
  text-align: center;
  margin-top: var(--space-lg);
}

.btn.ghost {
  border: 2px solid var(--line);
  background: transparent;
  color: var(--secondary);
  transition: all 0.15s ease;
}

.btn.ghost:hover {
  background: rgba(11, 67, 101, 0.05);
  transform: translateY(-1px);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item h3 {
  padding: var(--space-md);
  background: var(--card);
  margin: 0;
  font-weight: 600;
}

.faq-item p {
  padding: var(--space-md);
  background: var(--neutral);
  margin: 0;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
}

.slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.slider:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--neutral);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow);
  display: none;
  z-index: 1000;
}

footer {
  margin-top: var(--space-2xl);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

section { margin-top: var(--space-2xl); overflow-x: hidden; }

/* Header specific */
header {
  background: var(--neutral);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  z-index: 100;
}

header .row {
  justify-content: space-between;
}

header .row > div:first-child {
  gap: var(--space-md);
}

header nav.row { gap: var(--space-lg); }

/* Brand block */
.brand { display:flex; align-items:center; gap: var(--space-md); }
.brand img { width: 44px; height: 44px; }
.brand h1 { margin: 0; font-size: var(--fs-xl); line-height: 1; }

/* Header & HUD: final fixes */

/* Header ganz normal scrollend (keine Positionierung) */
header.site-header,
header.header-bar {
  position: static !important;
  margin-bottom: var(--space-md) !important;
}

/* Mobile navigation active state styles */
.mobile-link.active {
  background: var(--primary);
  color: #0a1600;
  border-color: var(--primary);
}

.mobile-link.active:hover {
  background: var(--primary);
  color: #0a1600;
}

/* Header-Row darf NICHT umbrechen (squeeze vermeiden) */
.header-row { flex-wrap: nowrap; }

/* Brand blockiert nicht die Navigation */
.brand { flex: 0 0 auto; }

/* Primäre Navigation darf nicht umbrechen, Buttons können schrumpfen */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: nowrap;
}
.primary-nav .btn { min-width: 0; }

/* Home-only Squeezer entfernen */
.nav-spacer { display: none !important; }

.shell { padding-top: 0 !important; overflow: visible !important; }

/* HUD sticky unterhalb des fixen Headers */
.hud {
  position: sticky;
  top: 8px !important;
  z-index: 110 !important;
  margin: 12px 0;
  padding: 8px 12px;
  background: rgba(0,0,0,0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; gap: 32px; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow);
}
.hud-item { display:flex; align-items:center; gap:10px; color: var(--fg); }
.hud-item label { font-size: 12px; color: var(--muted); }
.hud-item.token-indicator { flex-direction: column; gap: 4px; align-items: center; }
.token-badge {
  background: var(--primary);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}
@keyframes tokenGlow {
  0% { box-shadow: 0 1px 3px rgba(155, 199, 35, 0.25), inset 0 1px 0 rgba(0,0,0,0.15); }
  100% { box-shadow: 0 2px 6px rgba(155, 199, 35, 0.35), inset 0 1px 0 rgba(0,0,0,0.2); }
}
.token-indicator label { width: 100%; font-size: 10px; color: var(--primary); font-weight: 600; text-align: center; }
.ring{
  --p: .0; /* 0..1 */
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p)*360deg), rgba(235,235,235,.15) 0);
  display:grid; place-items:center; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--secondary); font-size:12px;
}

/* Donut visibility fix */
.canvas-container.donut { height: 260px; }
.canvas-container.donut canvas { width: 100%; height: 100%; display: block; }

/* Hero tech background (subtle, high-tech) */
.hero-tech { position: relative; }
.hero-tech::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(88,199,218,0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(235,235,235,0.08), transparent 55%),
    linear-gradient(135deg, rgba(235,235,235,0.04), transparent 40%);
  pointer-events: none;
}

/* Hero layout: left copy, right Lottie */
.hero-tech .hero-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero-tech .hero-copy {
  flex: 1 1 auto;
  text-align: left;
  max-width: 600px; /* constrain text width */
}
.hero-tech .hero-lottie {
  flex: 0 0 320px; /* responsive cap */
  max-width: 100%;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
  justify-self: end; /* for grid fallback */
}
@media (max-width: 900px) {
  .hero-tech .hero-inner { flex-direction: column; }
  .hero-tech .hero-lottie { align-self: flex-end; width: 220px; max-width: 100%; }
}

/* Status badge for Mirror */
.status-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;font-weight:600;background:#999;color:#fff}
.status-badge.ok{background:#2a9d8f}
.status-badge.warn{background:#f4a261}
.status-badge.err{background:#e63946}
/* ---- BTC panel sizing (wins over global canvas rules) ---- */
#panel_wrap_btc { position: relative; width: 100%; height: 280px; }
#panel_wrap_btc .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;        /* ← entscheidend: Canvas-Box = genau Panel-Höhe */
  display: block;
}
/* Explizit: im BTC-Panel KEIN auto-Height durch globale Regeln */
#panel_wrap_btc canvas {
  height: 100% !important;   /* ← überschreibt etwaige canvas{height:auto !important} */
  width: 100%;
}

/* Für SOL dasselbe, damit beide identisch reagieren */
#panel_wrap { position:relative; width:100%; height:280px; }
#panel_wrap .layer { position:absolute; inset:0; width:100%; height:100%; display:block; }
#panel_wrap canvas { height:100% !important; width:100%; }

/* unscoped canvas rules (no longer applying height: auto) */
.canvas-container canvas { width:100%; height:100%; display:block; }


/* Synapse sidebar grid: top row 2 cols, bottom row spans 2 */
.synapse-sidebar .syn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.synapse-sidebar .syn-grid .span-2 { grid-column: 1 / -1; }
.synapse-sidebar .card.tight p,
.synapse-sidebar .card.tight ul { text-align: left; }

/* Small polish */
.hero-tech h1, .hero-tech p, .hero-tech .row { text-align: left; }

/* Hero specific */
#hero .row {
  margin-bottom: var(--space-lg);
}

#hero .row:last-child {
  gap: var(--space-lg);
}





/* Receipts table */
.receipts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.receipts-table th,
.receipts-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.receipts-table th {
  font-weight: 600;
  color: var(--fg);
}

.receipts-table td {
  font-family: ui-monospace, 'Monaco', monospace;
  font-size: var(--fs-sm);
}

/* Donut table */
.donut-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.donut-table th,
.donut-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.donut-table th {
  font-weight: 600;
  color: var(--fg);
}

.donut-table td {
  font-size: var(--fs-sm);
}

.donut-table .amount {
  font-family: ui-monospace, 'Monaco', monospace;
  text-align: right;
}

/* Header alignment */
.header-bar { align-items: center; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-logo { display:block; }
.brand-title { margin:0; font-size: var(--fs-2xl); line-height:1; }

/* HUD: sticky top status */

.hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-big {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
}

.hud-toggle {
  border: none;
  background: #0b4365;
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .08s ease, opacity .2s ease;
}
.hud-toggle[aria-pressed="true"] {
  background: #173f52;
}
.hud-toggle:hover {
  transform: translateY(-1px);
}
.hud-toggle:active {
  transform: translateY(0);
}

.hud-optional {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: .92;
}
.is-hidden {
  display: none !important;
}
.hud-opt {
  font-family: ui-monospace, 'Monaco', monospace;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hud-item { display: grid; gap: 4px; justify-items: start; }
.ring { --p:.0; width:44px; height:44px; border-radius:50%;
  background: conic-gradient(var(--primary) calc(var(--p)*360deg), rgba(235,235,235,.15) 0);
  display:grid; place-items:center; font-family: ui-monospace,Menlo,Consolas,monospace; color: var(--secondary); font-size:12px;
}

/* Synapse: stack layout (main above, cards below) */
.synapse-stack { display:grid; grid-template-columns: 1fr; gap: 0; }
.synapse-main { padding: 18px; border-right: none; }

@media (max-width: 980px){ .syn-grid { grid-template-columns: 1fr; } }

/* Canvas sizing unified across synapses */
.canvas-container.syn-canvas.big  { height: 280px; }
.canvas-container.syn-canvas.mid  { height: 180px; }
.canvas-container.syn-canvas.small{ height: 140px; }
.canvas-container.syn-canvas canvas { width: 100%; height: 100%; display: block; }

/* Prototype: rule list formatting */
.rule-list { margin: 8px 0 0; padding-left: 18px; }
.rule-list li { margin-bottom: 6px; }

/* Simple input styling for prototype switcher */
.input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--neutral);
  color: var(--fg);
  font-size: var(--fs-sm);
}
.input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Prototype layout */
.proto-grid { display:grid; grid-template-columns: 360px 1fr; gap: var(--space-lg); align-items: start; }
.proto-left { display:grid; }
.proto-img { width:100%; height:auto; border-radius:12px; border:1px solid var(--line); box-shadow: var(--shadow); }
.proto-right { display:grid; gap: var(--space-md); }

.proto-kpis { display:flex; gap:16px; align-items:center; }
.proto-ring { --p:.0; width:72px; height:72px; border-radius:50%;
  background: conic-gradient(var(--primary) calc(var(--p)*360deg), rgba(235,235,235,.12) 0);
  display:grid; place-items:center; font-family: ui-monospace,Menlo,Consolas; color: var(--secondary);
}
.proto-metrics { display:grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap:10px; }
.proto-metrics label { display:block; font-size: var(--fs-xs); color: var(--muted); }
.proto-metrics strong { font-variant-numeric: tabular-nums; }

.canvas-container.proto-spark { height:160px; border:1px solid var(--line); border-radius:10px; background: #fff; }
.canvas-container.proto-spark canvas { width:100%; height:100%; display:block; }

.pill-mode { background: rgba(235,235,235,.08); color: var(--secondary); }
.pill-mode.sol { background: rgba(153,69,255,.10); color: #6536b9; }

@media (max-width: 980px){
  .proto-grid { grid-template-columns: 1fr; }
  .proto-metrics { grid-template-columns: 1fr 1fr; }
}

/* prototype layout cleanup */
.proto-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.proto-lottie {
  width: 60px;
  height: 60px;
  margin-top: 2px;      /* slight lift so it sits flush with spark window */
}
.proto-top .proto-kpis {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
}
.proto-ring { --size: 88px; } /* if you use CSS var for ring size */
.proto-metrics label { color: var(--muted); font-size: var(--fs-xs); display:block; }
.proto-metrics strong { font-variant-numeric: tabular-nums; }

.proto-spark { margin-top: 10px; }
.info-strip {
  display:flex; gap:12px; flex-wrap: wrap; margin:10px 0 6px;
}
.info-strip .kpi { font-size: var(--fs-sm); }

.proto-rule { margin-top: 10px; }
.rule-list { margin: 6px 0 0; }

/* Sidecards grid */
.syn-grid { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); padding: var(--space-md); }
.syn-grid .span-2 { grid-column: 1 / -1; }
.card.tight { padding: var(--space-md); }

/* NOMFET Unified Panel - 3 Layers */
#panel_wrap { position: relative; width: 100%; height: 280px; }
#panel_wrap .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* BTC Panel same as SOL Panel */
#panel_wrap_btc { position: relative; width: 100%; height: 280px; }
#panel_wrap_btc .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep combined layout on desktop */
.synapse-combined { display:grid; grid-template-columns: 1fr 360px; gap: 0; }
@media (max-width: 980px){
  .synapse-combined { grid-template-columns: 1fr; }
  .syn-grid { grid-template-columns: 1fr; }
}

/* Enhanced visual elements */
.dual-decay-line { stroke-width: 1; opacity: 0.7; }
.momentum-band { fill-opacity: 0.1; }
.regime-marker {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}
.regime-marker.facilitating { background: rgba(88,199,218,0.9); color: #0a1600; }
.regime-marker.depressing { background: rgba(176,0,32,0.9); color: white; }

/* Signal markers */
.signal-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  z-index: 10;
}
.signal-marker.enter { background: #58C7DA; }
.signal-marker.exit { background: #b00020; }

/* TAB UI STYLES */
.proto-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-lg);
  padding: 4px;
  background: rgba(11, 67, 101, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(11, 67, 101, 0.1);
}

.proto-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.proto-tab:hover {
  background: rgba(11, 67, 101, 0.08);
  transform: translateY(-1px);
}

.proto-tab.active {
  background: var(--primary);
  color: #0a1600;
  box-shadow: 0 2px 8px rgba(155, 199, 35, 0.3);
}

.proto-tab.active:hover {
  background: var(--primary);
  transform: none;
}

.tab-icon {
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.tab-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

.tab-desc {
  font-size: 10px;
  opacity: 0.8;
  line-height: 1;
}

.proto-mode-content {
  display: none;
}

.proto-mode-content.active {
  display: block;
}

.proto-mode-actions {
  display: none;
}
.proto-mode-actions.active {
  display: block;
}

/* Responsive tabs */
@media (max-width: 480px) {
  .proto-tabs {
    flex-direction: column;
    gap: 2px;
  }

  .proto-tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .tab-icon {
    font-size: 16px;
  }

  .tab-label {
    font-size: 11px;
  }

  .tab-desc {
    font-size: 9px;
  }
}

/* Tau badge styling */
.hud-item strong {
  font-family: ui-monospace, 'Monaco', monospace;
  font-size: 14px;
}

/* Snapshot/Replay buttons */
.btn.snapshot { background: rgba(88,199,218,0.1); border-color: rgba(88,199,218,0.3); }
.btn.replay { background: rgba(235,235,235,0.1); border-color: rgba(235,235,235,0.3); }

/* Performance optimizations */
.canvas-container canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Loading skeletons */
.skel {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
  background-size: 400% 100%;
  animation: sk 1.2s infinite;
  border-radius: 4px;
}

@keyframes sk {
  0%{background-position:0% 0}
  100%{background-position:100% 0}
}

@keyframes spin {
  from { transform: rotate(0deg) translate(-50%, -50%); }
  to { transform: rotate(360deg) translate(-50%, -50%); }
}



/* Apply skeleton to canvases during loading */
.canvas-container.skel canvas {
  opacity: 0.3;
}

/* Skeleton for text elements */
.skel-text {
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%);
  background-size: 400% 100%;
  animation: sk 1.2s infinite;
  border-radius: 4px;
  height: 1em;
  width: 100%;
  display: inline-block;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .hud-item {
    font-size: 12px;
  }
  .token-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
  }
  .hud-item.token-indicator label {
    font-size: 9px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Prototype section */
.proto-head { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom: var(--space-md); }
.badge { font-size:12px; font-weight:700; letter-spacing:.04em; padding:4px 8px; border:1px solid var(--line); border-radius:999px; background: var(--card); color: var(--secondary); }

.proto-grid { display:grid; grid-template-columns: 360px 1fr; gap: var(--space-lg); align-items:center; }
@media (max-width: 980px){ .proto-grid { grid-template-columns: 1fr; } }

.proto-img { width:100%; height:auto; display:block; border-radius:12px; border:1px solid var(--line); box-shadow: var(--shadow); background: var(--neutral); }

.proto-kpis { display:flex; gap:16px; align-items:center; }
.proto-ring { --p:.0; width:64px; height:64px; border-radius:50%; background: conic-gradient(var(--primary) calc(var(--p)*360deg), rgba(235,235,235,0.15) 0); display:grid; place-items:center; font-family: ui-monospace,Menlo,Consolas,monospace; color: var(--secondary); }
.proto-metrics { display:grid; grid-template-columns: repeat(3, minmax(120px,1fr)); gap:12px; }
.proto-metrics label { display:block; font-size:12px; color: var(--muted); }
.proto-metrics strong { font-size: var(--fs-lg); color: var(--fg); }

.canvas-container.proto-spark { height: 120px; }
.canvas-container.proto-spark canvas { width: 100%; height: 100%; display:block; }

.proto-rule label { display:block; font-size:12px; color: var(--muted); margin: 10px 0 4px; }

/* Mode Switcher Styles */
.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid rgba(235,235,235,0.3);
  background: rgba(235,235,235,0.05);
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
  justify-content: center;
}

.mode-btn:hover {
  background: rgba(235,235,235,0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mode-btn.active {
  background: var(--primary);
  color: #0a1600;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(88,199,218,0.2);
}

.mode-btn.active:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Multi-Timeframe Switcher Styles */
.tf-button-proto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(235,235,235,0.3);
  background: rgba(235,235,235,0.05);
  color: var(--muted);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 36px;
  justify-content: center;
}

.tf-button-proto:hover {
  background: rgba(235,235,235,0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tf-button-proto.active {
  background: rgba(88,199,218,0.1);
  color: #58C7DA;
  border-color: #58C7DA;
  box-shadow: 0 0 0 2px rgba(88,199,218,0.2);
}

.tf-button-proto.active:hover {
  background: rgba(88,199,218,0.15);
  transform: translateY(-1px);
}

.tf-button-proto .tf-label {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tf-button-proto .tf-weight {
  font-size: 9px;
  opacity: 0.8;
  font-weight: 400;
}

.tf-indicator {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 12px;
}

.tf-current {
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(235,235,235,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.tf-speed {
  font-size: 9px;
  color: var(--muted);
  font-style: italic;
}

/* BTC-only buttons styling */
.tf-button-proto.btc-only {
  position: relative;
}

.tf-button-proto.btc-only::after {
  content: "BTC";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 7px;
  font-weight: 700;
  color: #58C7DA;
  background: rgba(88,199,218,0.9);
  padding: 1px 3px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Feature card hover animations */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(88, 199, 218, 0.15), 0 0 20px rgba(88, 199, 218, 0.1);
  border-color: rgba(88, 199, 218, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tf-button-proto {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 32px;
  }

  .tf-button-proto .tf-weight {
    display: none;
  }

  .tf-indicator {
    margin-left: 8px;
  }

  .tf-current {
    font-size: 9px;
    padding: 1px 4px;
  }

  .tf-speed {
    font-size: 8px;
  }
}

#panel_wrap { position: relative; }
.sol-wait-overlay,
.wait-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.sol-wait-overlay .overlay-center,
.wait-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  transform: translateY(0);
}

.sol-wait-overlay .overlay-center .overlay-msg,
.wait-copy {
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: rgba(235,235,235,.85);
  margin: 0;
}

.wait-icon {
  display: block;
  width: 84px;
  height: 84px;
  opacity: 0.9;
}

/* --- HERO quick jumps --- */
.about-hero-jumps{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(235,235,235,0.06);
  box-shadow: inset 0 0 0 1px rgba(235,235,235,0.08);
}
.about-hero-jumps .jump-hint{
  display:flex; align-items:center; gap:6px;
  font-size: 12px; letter-spacing:.02em;
  color: var(--muted, #4a5966);
  text-transform: uppercase;
}
.about-hero-jumps .btn{ height: 34px; line-height: 34px; padding: 0 14px; }

/* --- How-it-Works spacing for the docs CTA --- */
.about-how .about-inline-cta{ margin-top: 30px; }

/* --- Flow diagram sizing (keine Pixelmatsche) --- */
.flow-svg{ width: 100%; height: auto; }

/* --- Fees: structure & visibility --- */
.fees-accordion{ display: grid; gap: 14px; }
.fees-item{ background: rgba(0,0,0,0.9); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(235,235,235,.08); }

.fees-trigger{
  position: relative;
  width: 100%;
  padding: 12px 56px 12px 12px; /* Platz für Chevron rechts */
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  overflow: visible; /* Chevron nicht abschneiden */
}

.fees-trigger:hover { background: rgba(235,235,235,0.035); }

.fees-bar{
  position: relative;
  display:block;
  height: 52px;
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(235,235,235,.08);
}

.fees-fill{
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: var(--w,0);
  border-radius: 10px;
  background: linear-gradient(90deg, #58C7DA, #79c000);
  pointer-events: none;
}

/* Farbschemata je Kategorie */
.fees-trigger.dev    .fees-fill { background: linear-gradient(90deg,#EBEBEB,#2d6a8f); }
.fees-trigger.donate .fees-fill { background: linear-gradient(90deg,#58C7DA,#79c000); }
.fees-trigger.mkt    .fees-fill { background: linear-gradient(90deg,#8f7cf6,#b49fff); }
.fees-trigger.team   .fees-fill { background: linear-gradient(90deg,#ff9c7a,#ffb79f); }

.fees-label{
  position: relative;
  z-index: 2;
  display: flex; align-items: center;
  height: 52px;
  padding: 0 16px;
  white-space: nowrap;         /* <<< niemals umbrechen */
  overflow: hidden;
  text-overflow: ellipsis;
  color: #EBEBEB;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.fees-trigger.dev .fees-label{ color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

.fees-chevron{
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) rotate(-45deg); /* eingeklappt = » (rechts) */
  width: 14px; height: 14px; transition: transform .18s ease, opacity .18s ease;
  opacity: .75;
}
.fees-chevron::before{
  content:"";
  display:block;
  width:100%; height:100%;
  border-right: 2px solid #EBEBEB;
  border-bottom: 2px solid #EBEBEB;
  border-radius: 2px;
}
.fees-trigger[aria-expanded="true"] .fees-chevron{
  transform: translateY(-50%) rotate(45deg);  /* ausgeklappt = ˅ (runter) */
}

.fees-panel[hidden]{ display:none; }
.fees-panel{ padding: 8px 14px 14px; }
.fees-panel-inner{
  background: rgba(0,0,0,0.9);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(235,235,235,.08);
}

/* Mikro-Node Diagram (Responsiveness) */
.micronode-svg{ width:100%; height:auto; }

/* Kleinigkeit: Abstand zwischen Karten und CTA in how-it-works */
.about-cards + .about-inline-cta{ margin-top: 30px; }


/* ==================== ABOUT v2 ==================== */

.about-proto-grid { gap: clamp(16px, 4vw, 40px); align-items: start; }

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: var(--space-md) 0 var(--space-sm);
}
.about-stats > div {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(235,235,235,0.12);
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(245,250,245,.92));
  text-align: center;
  box-shadow: 0 6px 18px rgba(235,235,235,0.06);
}
.about-stats strong { display:block; font-size:18px; }
.about-stats span { display:block; font-size:12px; color: var(--muted,#4a5966); }

/* What it does / not */
.about-what { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: var(--space-md) 0; }
.about-what .list.tight li { margin: 6px 0; }

/* Architecture grid */
.about-arch-card { }
.about-arch-grid { gap: var(--space-lg); }
.about-arch .list li { margin: 6px 0; }

/* Inputs grid */
.about-inputs-grid { gap: var(--space-lg); }
.about-inputs .list.tight li { margin: 6px 0; }

/* Diagram styling */
.about-diagram { display:grid; place-items:center; margin: var(--space-md) 0 var(--space-lg); }
.about-diagram img { width:min(100%,1000px); height:auto; border-radius:12px; border:1px solid rgba(235,235,235,0.10); box-shadow:0 10px 28px rgba(235,235,235,0.12); }
.about-diagram figcaption { margin-top:8px; text-align:center; }

/* Cards polish */
.about-card {
  padding: var(--space-lg);
  border: 1px solid rgba(235,235,235,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  transition: transform .12s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(235,235,235,0.10); }

/* Media */
.about-video { width:100%; max-width:640px; border-radius:12px; border:1px solid rgba(235,235,235,0.10); box-shadow:0 10px 28px rgba(235,235,235,0.12); display:block; }

/* Responsive */
@media (max-width: 980px){
  .about-stats { grid-template-columns: 1fr; }
  .about-what  { grid-template-columns: 1fr; }
}

/* HERO polish */
.hero-copy > h1 {
  letter-spacing: -0.02em;
  word-break: break-word;
  line-height: 1.1;
}

.hero-quickhint {
  margin-top: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(235,235,235,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

.hero-subactions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn.buy {
  background: linear-gradient(135deg, #58C7DA, #EBEBEB);
  color: #fff;
  border: none;
}

.chip-cta {
  border: 1px solid rgba(235,235,235,.18);
  background: rgba(0,0,0,0.9);
  color: #EBEBEB;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.link-muted {
  color: rgba(235,235,235,.75);
  text-decoration: none;
}
.link-muted:hover { text-decoration: underline; }

.hero-footnote {
  margin-top: var(--space-sm);
  max-width: 56ch;
}

/* Mobile */
@media (max-width: 640px) {
  .hero-actions { grid-template-columns: 1fr; }
}

/* === MOBILE-ONLY PATCH (append at end; desktop remains unchanged) ========== */

@media (max-width: 900px){

  /* 1) Kein horizontales Scrollen, aber sticky/position:sticky weiter möglich */
  html, body { width:100%; overflow-x:hidden; }

  /* 2) Shell-Padding etwas enger auf kleinen Screens */
  .shell { padding: var(--space-md); }

  /* 3) Grids einklappen (hart auf 1 Spalte) */
  .grid2, .grid3, .syn-grid { grid-template-columns: 1fr !important; }

  /* 4) Header: Desktop-Navigation ausblenden, Mobile-Menu (Details) zeigen */
  header nav.row { display: none !important; }
  details.header-menu { display:block; }
  details.header-menu summary{
    cursor:pointer; list-style:none; user-select:none;
    display:flex; align-items:center; gap:8px;
    padding:8px 12px;
    border:1px solid var(--line); border-radius:10px;
    background: var(--neutral);
  }
  details.header-menu[open] .menu-panel{
    margin-top:8px; border:1px solid var(--line);
    border-radius:12px; padding:10px; background: var(--neutral); box-shadow: var(--shadow);
  }
  /* Markenname etwas kleiner auf Mobil */
  .brand h1 { font-size: clamp(18px, 4.5vw, var(--fs-xl)); }

  /* 5) HUD: sticky + horizontal scrollbar für breite Inhalte */
  .hud{
    position: sticky; top: env(safe-area-inset-top, 0);
    gap:12px; padding:8px 10px;
    overflow-x:auto; overflow-y:visible;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  /* HUD-Items: nicht schrumpfen, aber truncaten */
  .hud > * { flex: 0 0 auto; }
  .hud-item, .hud-opt, .token-badge{
    min-width: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .hud-item label { font-size: 11px; }

  /* 6) Lange Token/Contracts sicher darstellen */
  .mono, .kpi, .hud-timestamp, .price-big{
    min-width:0; max-width:100%;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }

  /* 7) Buttons/Pills/Chips dürfen umbrechen und nicht sprengen */
  .btn, .chip, .pill { min-width: 0; flex: 0 1 auto; }

  /* 8) Tabellen: horizontal scrollen statt Viewport sprengen */
  .receipts-table, .donut-table { display:block; overflow-x:auto; }

  /* 9) Quick-Jumps (About) – Zeilenumbruch und stabile Buttons */
  .about-hero-jumps{ flex-wrap: wrap; }
  .about-hero-jumps .btn{ flex: 0 1 auto; min-width: 0; }

  /* 10) Hero-Lottie unter Text, kompakter */
  .hero-tech .hero-inner { flex-direction: column; gap: var(--space-md); }
  .hero-tech .hero-lottie { align-self: flex-end; width: 220px; min-width: 200px; }

  /* 11) Tap-to-Zoom Modal – groß genug, mittig */
  .zoom-dialog::backdrop { background: rgba(0,0,0,.45); }
  .zoom-dialog { border:0; padding:0; margin:0; width:96vw; max-height:92vh; background:transparent; }
  .zoom-frame {
    position: relative; background: var(--neutral); border-radius:14px;
    box-shadow:0 12px 40px rgba(0,0,0,.28); overflow:hidden;
    margin: 0 auto;
  }
  .zoom-content { display:grid; place-items:center; max-height:calc(92vh - 48px); padding:14px; }
  .zoom-content img, .zoom-content svg, .zoom-content canvas { max-width:100%; height:auto; }
  .zoom-close{
    position:absolute; top:8px; right:8px;
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:18px;
    border:1px solid rgba(0,0,0,.1);
    background:rgba(0,0,0,.92); font-weight:800; font-size:16px; cursor:pointer;
  }

  /* 12) Kleine Hover-Animationen entschärfen (weniger Springen) */
  .feature-card:hover, .btn.primary:hover { transform:none; }

  /* 13) FAQ/Karten niemals einzeilig (defensiv) */
  .faq-item{ white-space: normal; overflow-wrap:anywhere; }

  /* 14) Hero-Aktionen einklappen */
  .hero-actions{ grid-template-columns: 1fr; }

  /* 15) Footer/Abstände etwas enger */
  footer { font-size: var(--fs-xs); }
}

/* 16) Back-to-Top Button (sichtbar ab Mobil, Desktop optional) */
.back-to-top{
  position: fixed; right: 16px; bottom: 16px; z-index: 1000;
  display: none; /* per JS Klasse .show setzen */
  align-items:center; gap:8px;
  padding: 10px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(88,199,218,0.18), rgba(235,235,235,0.18));
  border: 1px solid rgba(235,235,235,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color:#EBEBEB; font-weight:700; text-decoration:none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.back-to-top .icon{ width:18px; height:18px; }
.back-to-top.show{ display:inline-flex; }

/* === Zoomable (append-only) =============================================== */

.zoomable { cursor: zoom-in; touch-action: manipulation; }

/* Dialog-Backdrop */
.zoom-dialog::backdrop { background: rgba(0,0,0,.45); }

/* Fallback-Backdrop (falls <dialog> fehlt) */
.zoom-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  display: none;
}

/* Dialog-Hülle – randlos, volle Breite mobil, capped auf Desktop */
.zoom-dialog {
  border: 0; padding: 0; margin: 0;
  width: min(96vw, 980px);
  max-height: 92vh;
  background: transparent;
}

/* Rahmen mit Schatten und Rundung */
.zoom-frame {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  overflow: hidden;
}

/* Inhalt zentrieren und skalieren */
.zoom-content {
  display: grid; place-items: center;
  max-height: calc(92vh - 48px);
  padding: 14px;
}

.zoom-content img,
.zoom-content svg,
.zoom-content canvas {
  max-width: 100%;
  max-height: calc(92vh - 100px);
  height: auto;
  display: block;
}

/* Close-Button */
.zoom-close {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items:center; justify-content:center;
  width: 36px; height: 36px; border-radius: 18px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(0,0,0,.95);
  font-weight: 800; font-size: 20px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

@media (max-width: 480px){
  .zoom-dialog { width: 96vw; }
  .zoom-close { width: 34px; height: 34px; font-size: 18px; }
}

/* === FORCE HERO SECTIONS STATIC LIKE OTHER SECTIONS === */
.hero-tech.card {
  overflow: hidden !important;
}

/* === LOTTIE FIX: OVERRIDE GLOBAL HEIGHT:AUTO AND ENSURE VISIBILITY === */

/* 1) Lottie container sizing */
#hero_lottie2, #hero_lottie3 {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
}

/* 2) Force SVG/Canvas to full size, counter global height:auto */
#hero_lottie2 svg,
#hero_lottie3 svg,
#hero_lottie2 canvas,
#hero_lottie3 canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* === LOTTIE DARK THEME COLOR OVERRIDES ================================ */

/* Force all Lottie animations to use theme color on strokes (minimal, safe for masks/gradients) */
#hero_lottie2 svg *,
#hero_lottie3 svg * {
  stroke: #58C7DA !important;
}

/* Ensure they are visible */
#hero_lottie3,
#hero_lottie2 {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === MOBILE UTILITY CLASSES (Mobile-First Spacing) ==================== */
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }

.mt-4 { margin-top: 4px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-48 { margin-top: 48px !important; }

.pb-4 { padding-bottom: 4px !important; }
.pb-8 { padding-bottom: 8px !important; }
.pb-12 { padding-bottom: 12px !important; }
.pb-16 { padding-bottom: 16px !important; }
.pb-24 { padding-bottom: 24px !important; }

.pt-4 { padding-top: 4px !important; }
.pt-8 { padding-top: 4px !important; }
.pt-12 { padding-top: 12px !important; }
.pt-16 { padding-top: 16px !important; }
.pt-24 { padding-top: 24px !important; }

/* Mobile breathing room */
@media (max-width: 900px) {
  .card { margin-bottom: var(--space-lg); }
  .hero-tech { margin-bottom: 0; }
  .hero-copy { font-size: var(--fs-base); line-height: 1.5; }
  .btn { min-height: 48px; }
  h2 { margin-top: var(--space-2xl); margin-bottom: calc(var(--space-md) * 0.8); }
  p { margin-bottom: var(--space-md); }
  .grid3 { gap: var(--space-lg); }
}

.cta-primary:focus-visible,
.mode-btn:focus-visible,
.tf-button-proto:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Optional: Tap-Targets in About etwas "griffiger" machen */
.about-diagram .zoomable {
  border-radius: 10px;
  transition: transform .12s ease, box-shadow .2s ease;
}
.about-diagram .zoomable:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* ===== Mobile Header / Off-Canvas (append-only) ========================== */

/* Grundzustand Desktop: nichts ändern */
.menu-toggle { display: none; }

/* Gemeinsamer Overlay für Header-Menü */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 990; /* unterhalb des Panels, oberhalb der Seite */
  opacity: 0;
  transition: opacity .2s ease;
}

/* Off-Canvas Panel (mobil) */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: min(86vw, 320px);
  height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 22px rgba(0,0,0,.12);
  z-index: 995;
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: grid;
  grid-template-rows: auto 1fr;
}
.mobile-nav-head {
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.mobile-nav-list {
  list-style: none; margin: 0; padding: 12px;
  overflow: auto;
}
.mobile-nav-list a {
  display:block; padding: 12px; border-radius: 10px;
  color: var(--fg); text-decoration: none; border: 1px solid transparent;
}
.mobile-nav-list a:hover {
  background: rgba(235,235,235,0.06);
  border-color: rgba(235,235,235,0.10);
}

/* Offen-Zustände (werden per JS gesetzt) */
.menu-overlay.is-active { opacity: 1; }
.mobile-nav.is-active { transform: translateX(0); }
.menu-toggle[aria-expanded="true"] { /* optional: visuelle Markierung */ }

/* Header-Reflow nur auf Mobil */
@media (max-width: 900px) {
  header .row.header-row { align-items:center; justify-content: space-between; }
  .primary-nav { display: none; }              /* Desktop-Nav ausblenden */
  .menu-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width: 42px; height: 42px; border-radius: 10px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    font-size: 20px; line-height: 1;
  }
}

/* Sicher: kein horizontales Scrollen durch Panel */
html, body { max-width: 100%; overflow-x: hidden; }

/* No artificial padding if header isn't fixed */
.shell { padding-top: 0 !important; overflow: visible !important; }

/* Mobil: leicht kompakter */
@media (max-width: 640px) {
  .backtotop {
    padding: 8px 12px;
    font-size: var(--fs-sm);
  }
}
/* === HOTFIX: HUD wirklich sticky machen === */
.hud{
  position: sticky !important;
  top: calc(env(safe-area-inset-top, 0) + 8px) !important;
  z-index: 110 !important;
  background: rgba(0,0,0,0.95);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* sicherstellen, dass kein Vorfahr das sticky killt */
html, body, .shell { overflow: visible !important; }

/* ===== DESKTOP SAFETY NET: HIDE MOBILE ELEMENTS ON DESKTOP ===== */
@media (min-width: 1024px) {
  .mnav-toggle,
  .mnav-drawer,
  .mnav-overlay,
  .toc-toggle,
  .toc-drawer,
  .toc-overlay,
  .menu-overlay { 
    display: none !important; 
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* === DESKTOP FIRST: HIDES SIDEBAR TOGGLE ON DESKTOP =============== */
.sidebar-toggle { display: none; }

/* === MOBILE HEADER: ICON VISIBILITY & OFF-CANVAS ========================= */

/* 1) Icons neben Link-Labels niemals verschwinden lassen */
.btn .icon,
.btn img.icon {
  display: inline-block !important;
  width: 18px; height: 18px;
  flex: 0 0 auto;
  vertical-align: -2px;
  image-rendering: -webkit-optimize-contrast;
}

/* 2) Mobile-Header: Burger + eigenes Docs-Menü rechts */
@media (max-width: 900px){
  .primary-nav{ display:none !important; } /* Desktop-Nav aus */

  .header-row{ justify-content: space-between; }

  /* Platz für links Burger, mittig Brand, rechts Docs-Menü */
  .brand{ flex: 1 1 auto; justify-content:center; }
  .brand-title{ font-size: clamp(18px,4.5vw,var(--fs-xl)); }

  .menu-toggle, .docs-menu-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--neutral); border:1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    font-size:20px; line-height:1; color: var(--fg);
  }

  .menu-toggle{ order: 0; }
  .brand{ order: 1; }
  .docs-menu-toggle{ order: 2; }
}

/* 3) Gemeinsamer Overlay */
.menu-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 990; opacity: 0; pointer-events:none;
  transition: opacity .2s ease;
}
.menu-overlay.is-active{ opacity:1; pointer-events:auto; }

/* 4) Globales Off-Canvas (links) – Desktop unberührt */
.mobile-nav{
  position: fixed; top:0; left:0; width: min(86vw,320px); height: 100dvh;
  background: var(--neutral); border-right:1px solid var(--line); box-shadow: 2px 0 22px rgba(0,0,0,.12);
  z-index: 995; transform: translateX(-100%); transition: transform .25s ease;
  display:grid; grid-template-rows: auto 1fr;
}
.mobile-nav.is-active{ transform: translateX(0); }
.mobile-nav-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); }
.mobile-nav-list{ list-style:none; margin:0; padding:12px; overflow:auto; }
.mobile-nav-list a{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:10px; color:var(--fg); border:1px solid transparent; }
.mobile-nav-list a:hover{ background: rgba(235,235,235,.06); border-color: rgba(235,235,235,.10); }
.mobile-nav-list img.icon{ width:18px; height:18px; }

/* 5) Body Scroll-Lock wenn irgendein Panel offen ist */
body.nav-open{ overflow:hidden; touch-action:none; }

/* 6) Social-Leiste (mobil sichtbar) */
.mobile-social{
  display:flex; gap:10px; padding:12px; border-top:1px solid var(--line);
}
.mobile-social a{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--line); border-radius:10px; }
.mobile-social img.icon{ width:18px; height:18px; }

/* 7) (Nur mobil) – In allen Headern sicherstellen, dass Icon+Label bleiben */
@media (max-width: 900px){
  header nav a.btn img.icon{ display:inline-block !important; }
}

/* Desktop rules to fully hide mobile-only elements */
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}

/* Docs: Sidebar/TOC mobile Überlappungen zusätzlich absichern */
@media (max-width: 1023px) {
  body.toc-open, body.docs-sidebar-open { overflow: hidden; touch-action: none; }

  /* z-index Ordnung: header (1100), overlay (1099), drawer (1100) – bereits gesetzt */
  .docs-sidebar { z-index: 1080; }  /* unter Header/Drawer */
}
/* === MOBILE HEADER: FINAL FIXES ====================================== */

/* 0) Default: Mobile-Partial auf Desktop ausblenden + hidden absichern */
.mobile-only { display: none; }
[hidden] { display: none !important; }

/* 1) Mobil aktivieren + Desktop-Header wirklich verstecken */
@media (max-width: 1023px) {
  .mobile-only { display: block; }
  .desktop-only { display: none !important; } /* statt header.site-header.desktop-only */

  /* 2) Sticky sicher gegen älteres !important durchsetzen */
  header.site-header { position: sticky !important; top: 0; z-index: 1100; }

  /* 3) Drawer sicher über dem Header */


}
/* === HOME (MOBILE) – hero buttons never clip ============================= */
@media (max-width: 640px) {
  /* 1) Single column, keep CTAs away from screen edge */
  .hero-actions {
    grid-template-columns: 1fr;
    padding-inline: 10px; /* breathing room */
  }

  /* 2) Buttons stretch nicely but don’t overflow */
  .hero-actions .btn,
  .hero-subactions .btn,
  .cta-under-pills .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    box-sizing: border-box;
  }

  /* 3) Move that right-justified row to center on mobile, allow wrapping */
  .cta-under-pills {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-inline: 10px;
  }
}

/* === HOME – contract/address & footnote wrapping ======================== */
.contract,
.contract-field,
.contract-code,
.contract-address,
.address,
.mono,
code,
pre {
  max-width: 100%;
  overflow-wrap: anywhere;   /* modern, best for long hashes */
  word-break: break-word;    /* fallback */
}

.contract input,
.contract-field input,
.contract-address input {
  width: 100%;
  min-width: 0;
}

.hero-footnote,
.hero-copy p {
  max-width: 60ch;           /* keeps lines readable */
  overflow-wrap: anywhere;
}

/* === Nomentum: Mobile "Preview only" Lock (nicht verstecken!) ============ */

/* Zustand am #prototype, wenn mobil gelockt */
#prototype.is-locked {
  position: relative;
  filter: grayscale(25%) saturate(.75) opacity(.92);
  /* dezenter Tilt: */
  transform: translateZ(0); /* GPU kick to keep canvases smooth */
}

/* Alle interaktiven Elemente im gelockten Bereich deaktivieren */
#prototype.is-locked :is(a, button, input, select, textarea, [tabindex]) {
  pointer-events: none !important;
}

/* Halbtransparenter Overlay mit modernem Glassmorphism */
.mirror-mobile-veil {
  display: none; /* nur mobil sichtbar */
  position: absolute;
  inset: 0;
  z-index: 1200;
  background: linear-gradient(
      180deg,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.7) 40%,
      rgba(0,0,0,0.5) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px; /* passt zu deinen Cards */
  border: 1px solid rgba(235,235,235,0.12);
}

/* Content-Box im Overlay */
.mirror-veil-inner {
  position: sticky; /* bleibt oben „im Blick" auch wenn Section höher ist */
  top: 16px;
  max-width: 560px;
  margin: 16px auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0,0,0,0.92);
  box-shadow: 0 10px 28px rgba(235,235,235,0.12);
  border: 1px solid rgba(235,235,235,0.12);
  text-align: center;
}

.mirror-veil-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--fg);
  margin-bottom: 6px;
}
.mirror-veil-copy  { color: var(--muted); margin-bottom: 12px; }
.mirror-veil-actions { display:inline-flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.mirror-veil-actions .btn { pointer-events: auto !important; } /* Buttons im Overlay sind klickbar */

/* Mobile only: lock aktivieren und Overlay zeigen */
@media (max-width: 900px){
  body.page-nomentum #prototype { /* sichtbar lassen */ }
  body.page-nomentum #prototype .mirror-mobile-veil { display: block; }
  body.page-nomentum #prototype { scroll-margin-top: 12px; }
}

/* Minor safety: header brand image sizing */
header .brand img { display: block; max-width: 100%; height: auto; }

/* NEW: Mobile menu toggle positioning and TOC toggle */
@media (max-width:1023px){
  .menu-toggle{ position: fixed; left: 12px; top: 12px; z-index: 1090; } /* unter HUD (110) + Header (1100) */
  header .menu-toggle.mobile-only { position: static; } /* falls im Flow – mobil fix via JS gesetzt */
  .toc-toggle{ right:12px; bottom:24px; top:auto; transform:none; z-index:1101; }
}

/* NEW: Hide desktop socials on mobile (they're in the drawer) */
@media (max-width:1023px){
  header .primary-nav #nav_dex,
  header .primary-nav #nav_jup,
  header .primary-nav #nav_x { display: none !important; }
}

/* === MOBILE UNCLAMP: Heroes/Top-Sektionen schneiden nicht mehr ab === */
@media (max-width: 1023px) {
  /* Home & generische Top-Section */
  .hero, .section-hero, main > section:first-child {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* Nomentum-Top */
  .nomentum-hero,
  .nomentum-hero .container,
  .section.top, .section-top, .top-section {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }

  /* Eltern-Wrapper dürfen „sticky“ nicht blocken */
  html, body, .shell {
    overflow: visible !important;
  }

  /* Medien responsiv, aber NICHT global * {max-width} */
  img, svg, video, canvas { max-width: 100%; height: auto; }

  /* HUD darf umbrechen/scrollen statt zu klemmen */
  .hud {
    overflow-x: hidden;
    white-space: nowrap;
  }
  .hud > * { flex: 0 0 auto; min-width: 0; }
}

/* Hero-Buttons & Texte clippen nicht auf sehr kleinen Geräten */
@media (max-width: 640px) {
  .hero-actions { grid-template-columns: 1fr; padding-inline: 10px; }
  .hero-actions .btn,
  .hero-subactions .btn,
  .cta-under-pills .btn { width: 100%; min-width: 0; }
  .cta-under-pills { justify-content: center; flex-wrap: wrap; gap: 10px; padding-inline: 10px; }
}

/* Lange Hashes/Adressen umbrechen zuverlässig */
.contract, .contract-field, .contract-code,
.contract-address, .address, .mono, code, pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* === FIRST-SECTION NO-SCROLL (global, Desktop + Mobile) ================= */

/* 1) Home: erste Sektion (z. B. .hero-tech) */
main > section:first-of-type,
main > section:first-of-type *,
.hero-tech,
.hero-tech * {
  overflow: visible !important;
  overscroll-behavior: auto !important;         /* Scroll chaining zur Seite */
  -webkit-overflow-scrolling: auto !important;  /* kein iOS-Momentum-Scroll */
  touch-action: auto !important;
  max-height: none !important;
}

/* 3) Lottie-/Canvas-Wrapper sind oft Übeltäter – explizit entschärfen */
.hero-tech .hero-inner,
.hero-tech .hero-copy,
.hero-tech .hero-lottie,
.hero-tech .canvas-container {
  overflow: visible !important;
}

/* 4) Sicherheit: horizontales Wischen unterbinden, ohne Layout zu kappen */
main > section:first-of-type,
.hero-tech {
  overflow-x: clip !important;   /* verhindert horizontales Verschieben */
}

/* 5) Behalte deinen Anti-Clipping-Fix explizit bei */
@media (max-width: 1023px) {
  .hero-tech.card { overflow: visible !important; }
}

/* === BETA COUNTDOWN ===================================================== */
:root {
  --bc-accent: var(--primary, #58C7DA);
  --bc-glass: rgba(255,255,255,0.06);
  --bc-stroke: rgba(255,255,255,0.12);
}
.beta-countdown {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(88,199,218,0.10), transparent 60%),
              radial-gradient(800px 400px at 90% 110%, rgba(88,199,218,0.08), transparent 60%),
              rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
}
.beta-countdown .bc-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
}
.beta-countdown #bc_particles { width: 100%; height: 100%; display: block; }

.beta-countdown .bc-inner {
  position: relative; z-index: 1;
  display: grid; gap: 20px;
  place-items: center;
}

.bc-title {
  margin: 0; font-weight: 700;
  background: linear-gradient(135deg, var(--bc-accent), #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bc-sub { margin: 4px 0 0; color: var(--muted); }

.bc-timers {
  display: inline-flex; align-items: center; gap: clamp(8px, 1.2vw, 14px);
  padding: 10px 14px; border-radius: 14px;
  background: var(--bc-glass); border: 1px solid var(--bc-stroke);
  box-shadow: 0 8px 30px rgba(0,0,0,.22) inset, 0 10px 30px rgba(88,199,218,.12);
}
.bc-unit { text-align: center; min-width: 70px; }
.bc-unit span {
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; color: #eaf8fb; text-shadow: 0 0 12px rgba(88,199,218,.55);
}
.bc-unit label { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing:.2px; }
.bc-sep { color: rgba(255,255,255,.6); font-size: clamp(24px, 4vw, 36px); transform: translateY(-2px); }

.bc-progress {
  position: relative; width: 140px; height: 140px;
  display: grid; place-items: center;
}
.bc-ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.bc-ring .ring-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 8; }
.bc-ring .ring-fg { fill: none; stroke: var(--bc-accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.292; stroke-dashoffset: 339.292; filter: drop-shadow(0 0 8px rgba(88,199,218,.6)); }
.bc-progress-copy {
  position: absolute; text-align: center;
}
.bc-progress-copy strong { font-size: 22px; color: #eaf8fb; display:block; }
.bc-progress-copy span { font-size: 12px; color: var(--muted); }

.bc-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bc-cta .btn.pri { background: var(--bc-accent); color: #002229; border: 0; }
.bc-cta .btn.pri:hover { filter: brightness(1.04); }

.bc-foot { width: 100%; text-align: center; }
.bc-unlocked {
  display: inline-block; padding: 10px 14px; border-radius: 10px;
  background: rgba(88,199,218,.12); border: 1px solid rgba(88,199,218,.35);
  color: #dff8fd;
}

/* Responsive */
@media (max-width: 640px){
  .bc-unit{ min-width: 58px; }
  .beta-countdown{ padding: 16px; }
}

/* Final Release Features Banner */
.final-release-banner {
  margin: var(--space-xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(88,199,218,0.05), rgba(235,235,235,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md) 0;
}

.banner-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.banner-text {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(88,199,218,0.3);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reminder dropdown menu */
.remind-wrap { position: relative; display:inline-block; }
.remind-menu {
  position:absolute; top:100%; left:0; background:#0b0b0c; border:1px solid var(--line);
  padding:8px; border-radius:10px; display:flex; flex-direction:column; gap:6px; z-index:10;
}
.remind-menu a, .remind-menu .linklike {
  color: var(--primary); background:none; border:0; cursor:pointer; text-align:left;
}
