:root {
  --void: #020617;
  --deep: #0a0f1e;
  --panel: rgba(8, 17, 31, 0.82);
  --panel-border: rgba(56, 189, 248, 0.14);
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --gold: #fbbf24;
  --rose: #f43f5e;
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
  --glow-blue: 0 0 50px rgba(59, 130, 246, 0.3);
  --radius: 24px;
  --nav-h: 76px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--void);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Living background layers ── */
#neural-canvas,
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}
#particle-canvas { z-index: -2; opacity: 0.55; }
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(139, 92, 246, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(16, 185, 129, 0.08), transparent),
    linear-gradient(180deg, #020617 0%, #0a0f1e 50%, #020617 100%);
}

.container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Navigation ── */
.os-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.3s, box-shadow 0.3s;
}
.os-header.scrolled {
  background: rgba(2, 6, 23, 0.92);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.os-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.os-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.os-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: conic-gradient(from 200deg, var(--cyan), var(--blue), var(--violet), var(--gold), var(--cyan));
  position: relative;
  box-shadow: var(--glow-cyan);
  animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }
  50% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.5); }
}
.os-brand-mark::after {
  content: "Ξ";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
}
.os-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.os-nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.os-nav-links a:hover,
.os-nav-links a.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}
.os-nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.os-nav-cta {
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  color: white !important;
  font-weight: 800 !important;
  box-shadow: var(--glow-blue);
}
.language-wrap { position: relative; display: inline-flex; }
.language-select {
  appearance: none;
  min-height: 38px;
  max-width: 160px;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
}
.language-wrap::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-55%);
  color: var(--muted);
  pointer-events: none;
}
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.9);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  padding: 16px 0 24px;
}
.mobile-menu-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 8px;
}
.mobile-menu a,
.mobile-menu label {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.8);
  font-weight: 700;
}
.mobile-menu label { display: grid; gap: 8px; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.mobile-menu .language-select { max-width: none; width: 100%; }
body.menu-open .mobile-menu { display: block; }
body.menu-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--nav-h); }

/* ── Presale announcement bar (SOVRA Protocol–style integration) ── */
.presale-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 199;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.12));
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(12px);
}
.presale-bar-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.presale-bar-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.presale-bar-text { color: var(--muted); }
.presale-bar-link {
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}
.presale-bar-link:hover { text-decoration: underline; }
body.has-presale-bar main { padding-top: calc(var(--nav-h) + 44px); }
body.has-presale-bar .mobile-menu { top: calc(var(--nav-h) + 44px); }

/* Investor gateway section on main homepage */
.investor-gateway {
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.investor-gateway h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.investor-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.investor-round-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.6);
}
.investor-round-card strong { display: block; color: white; margin-bottom: 4px; }
.investor-round-card span { font-size: 0.85rem; color: var(--muted); }
.investor-round-card.active {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
}
@media (max-width: 900px) {
  .investor-gateway { grid-template-columns: 1fr; }
}

/* ── Shared UI primitives ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseRing 2s ease infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 12px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.05em; font-weight: 900; }
h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.9;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 10%, var(--cyan), var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 720px;
}
.section { padding: 100px 0; position: relative; }
.section-head { margin-bottom: 48px; max-width: 800px; }
.section-text { color: var(--muted); margin-top: 16px; line-height: 1.75; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.8);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--glow-cyan);
}
.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: var(--glow-blue);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Glass panels ── */
.glass-panel {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.06));
}
.panel-header strong {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseRing 2s ease infinite;
}

/* ── Hero ── */
.hero-os {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  color: rgba(226, 232, 240, 0.85);
  margin: 16px 0 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.disclosure {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.06);
  color: #93c5fd;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 680px;
}

/* ── Galaxy ── */
.galaxy-container {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 60%), rgba(4, 10, 22, 0.9);
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(34, 211, 238, 0.03);
}
#galaxy-canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  cursor: crosshair;
}
.galaxy-hud {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: opacity 0.3s;
}
.galaxy-hud strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--cyan);
}
.galaxy-hud p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.galaxy-hud .hud-meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(34, 211, 238, 0.7);
  letter-spacing: 0.05em;
}

/* ── Intelligence Dashboard ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.75);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.metric-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-3px);
}
.metric-card:hover::before { opacity: 1; }
.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.metric-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.metric-indicator.warn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.metric-indicator.sync { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulseRing 2s ease infinite; }
.metric-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  font-variant-numeric: tabular-nums;
}
.metric-bar {
  margin-top: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.metric-sub {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── SOVRA Intelligence ── */
.sovra-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}
.sovra-panel {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.12), transparent 50%), rgba(8, 17, 31, 0.85);
}
.sovra-insights {
  display: grid;
  gap: 12px;
}
.insight-row {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(4, 10, 22, 0.7);
  transition: border-color 0.2s;
}
.insight-row:hover { border-color: rgba(139, 92, 246, 0.4); }
.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.2));
  color: var(--violet);
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.insight-row strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.insight-row span { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.sovra-query {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.sovra-input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(4, 10, 22, 0.9);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.sovra-input:focus { border-color: rgba(139, 92, 246, 0.5); }
.sovra-response {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.06);
  color: #c4b5fd;
  font-size: 0.9rem;
  line-height: 1.65;
  min-height: 60px;
  display: none;
}
.sovra-response.visible { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Explorer Console ── */
.explorer-console {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: rgba(4, 10, 22, 0.95);
}
.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.console-cell {
  padding: 24px;
  background: rgba(8, 17, 31, 0.95);
  min-height: 130px;
  transition: background 0.2s;
}
.console-cell:hover { background: rgba(12, 24, 45, 0.95); }
.console-cell span {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.console-cell strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: white;
  letter-spacing: -0.03em;
}
.console-cell p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.contract-mono {
  font-family: var(--mono);
  font-size: 0.95rem !important;
  word-break: break-all;
}
.explorer-feed {
  padding: 0;
  max-height: 280px;
  overflow: hidden;
}
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  animation: feedSlide 0.5s ease;
}
@keyframes feedSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.feed-time { font-family: var(--mono); color: #64748b; font-size: 0.72rem; }
.feed-event { color: var(--ink); }
.feed-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feed-tag.tx { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.feed-tag.val { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.feed-tag.gov { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }

/* ── Module grid ── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.7);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--glow-cyan);
}
.module-card:hover::after { opacity: 1; }
.module-card.active {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--glow-cyan);
}
.module-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  margin-bottom: 16px;
}
.module-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.module-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.82rem;
}

/* ── Connectivity map ── */
.connectivity-band {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 50%), rgba(4, 10, 22, 0.8);
  overflow: hidden;
}
.connect-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  margin-top: 28px;
}
.flow-node {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.flow-node.core {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.flow-node:hover { border-color: rgba(139, 92, 246, 0.4); }
.flow-arrow {
  color: rgba(34, 211, 238, 0.5);
  font-size: 0.9rem;
  animation: arrowPulse 2s ease infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Protocol layers ── */
.protocol-stack {
  display: grid;
  gap: 10px;
}
.layer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.6);
  transition: transform 0.2s, border-color 0.2s;
}
.layer-row:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.25);
}
.layer-row span:first-child { font-weight: 800; }
.layer-row span:last-child {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}
.stack-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}
.dark-band {
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15), transparent 40%), rgba(4, 10, 22, 0.9);
}

/* ── Timeline / validators ── */
.timeline { display: grid; gap: 14px; }
.timeline-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.7);
  transition: border-color 0.2s;
}
.timeline-step:hover { border-color: rgba(34, 211, 238, 0.25); }
.timeline-step strong {
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Contact CTA ── */
.contact-cta {
  padding: 56px;
  border-radius: 28px;
  border: 1px solid var(--panel-border);
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent 40%), linear-gradient(135deg, rgba(4, 10, 22, 0.95), rgba(15, 23, 42, 0.9));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.contact-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(4, 10, 22, 0.6);
}
.contact-card strong { display: block; margin-bottom: 6px; font-size: 0.88rem; }
.contact-card a { color: var(--cyan); font-weight: 700; font-size: 0.86rem; }

/* ── Footer ── */
.os-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--cyan); }

/* ── Legal document pages ── */
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 80px;
}
.legal-doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.legal-doc .legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
}
.legal-doc h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: white;
}
.legal-doc h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: var(--ink);
}
.legal-doc p, .legal-doc li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.legal-doc ul, .legal-doc ol {
  margin: 12px 0;
  padding-left: 1.4rem;
}
.legal-doc a { color: var(--cyan); }
.legal-doc .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.legal-doc .legal-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 17, 31, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
}
.legal-doc .legal-nav a:hover { border-color: rgba(59, 130, 246, 0.4); }
.legal-callout {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
  color: var(--gold);
  font-size: 0.9rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid,
  .sovra-grid,
  .stack-layout,
  .contact-cta { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .os-nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .dashboard-grid,
  .module-grid,
  .console-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-step { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .contact-cta,
  .dark-band { padding: 32px 24px; }
  .galaxy-container { min-height: 400px; }
  #galaxy-canvas { min-height: 400px; }
}
