/* ================================================
   SOFT COSMOS — Local AI Group
   localai.xdeca.com
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* ─────────────────────────────────────────────────
   THEME TOKENS — Light
───────────────────────────────────────────────── */

:root,
[data-bs-theme="light"] {
  --color-primary: #077a6e;
  --color-primary-rgb: 7, 122, 110;
  --color-primary-dark: #055a50;

  --color-bg: #f0faf8;
  --color-surface: #e2f5f2;
  --color-surface-raised: #ffffff;
  --color-ink: #0a3330;

  --color-text: #2a5e58;
  --color-text-muted: #5a9e98;
  --color-border: rgba(7, 122, 110, 0.18);

  --navbar-bg: rgba(240, 250, 248, 0.92);
  --footer-bg: #f0faf8;

  /* PCB hero */
  --hero-pcb-bg: #f0faf8;
  --hero-text-primary: #0a3330;
  --hero-text-secondary: #5a9e98;
  --hero-cta-bg: rgba(240, 250, 248, 0.88);

  /* Bootstrap overrides */
  --bs-primary: #077a6e;
  --bs-primary-rgb: 7, 122, 110;
  --bs-primary-text-emphasis: #055a50;
  --bs-secondary: #077a6e;
  --bs-secondary-rgb: 7, 122, 110;
  --bs-body-bg: #f0faf8;
  --bs-body-color: #2a5e58;
  --bs-heading-color: #0a3330;
  --bs-border-color: rgba(7, 122, 110, 0.18);
  --bs-link-color: #077a6e;
  --bs-link-hover-color: #055a50;
  --bs-card-bg: #ffffff;
  --bs-card-border-color: rgba(7, 122, 110, 0.14);

  /* Category accents */
  --color-events: #b91c1c;
  --color-events-rgb: 185, 28, 28;
  --color-resources: #1a5fb4;
  --color-resources-rgb: 26, 95, 180;
  --color-chat: #6d28d9;
  --color-chat-rgb: 109, 40, 217;
}

/* ─────────────────────────────────────────────────
   THEME TOKENS — Dark
───────────────────────────────────────────────── */

[data-bs-theme="dark"] {
  --color-primary: #00c8b4;
  --color-primary-rgb: 0, 200, 180;
  --color-primary-dark: #00a898;

  --color-bg: #050e14;
  --color-surface: #071520;
  --color-surface-raised: #071520;
  --color-ink: #e0f7f5;

  --color-text: #b0d8d4;
  --color-text-muted: #4a8a84;
  --color-border: rgba(0, 200, 180, 0.15);

  --navbar-bg: rgba(5, 14, 20, 0.92);
  --footer-bg: #050e14;

  /* PCB hero */
  --hero-pcb-bg: #050e14;
  --hero-text-primary: #e0f7f5;
  --hero-text-secondary: #4a8a84;
  --hero-cta-bg: rgba(5, 14, 20, 0.85);

  /* Bootstrap overrides */
  --bs-primary: #00c8b4;
  --bs-primary-rgb: 0, 200, 180;
  --bs-primary-text-emphasis: #3ffff0;
  --bs-secondary: #00c8b4;
  --bs-secondary-rgb: 0, 200, 180;
  --bs-body-bg: #050e14;
  --bs-body-color: #b0d8d4;
  --bs-heading-color: #e0f7f5;
  --bs-border-color: rgba(0, 200, 180, 0.15);
  --bs-link-color: #00c8b4;
  --bs-link-hover-color: #3ffff0;
  --bs-card-bg: #071520;
  --bs-card-border-color: rgba(0, 200, 180, 0.12);

  /* Category accents */
  --color-events: #f87171;
  --color-events-rgb: 248, 113, 113;
  --color-resources: #60a5fa;
  --color-resources-rgb: 96, 165, 250;
  --color-chat: #a78bfa;
  --color-chat-rgb: 167, 139, 250;
}

/* ─────────────────────────────────────────────────
   LOCAL FONT FALLBACK
───────────────────────────────────────────────── */

@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/UbuntuSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

/* ─────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────── */

html { height: 100%; }

body {
  font-family: 'Plus Jakarta Sans', 'Ubuntu', sans-serif;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow-x: clip;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ─────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────── */

.btn {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 !important;
}

.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-dark);
  --bs-btn-hover-border-color: var(--color-primary-dark);
  --bs-btn-active-bg: var(--color-primary-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-bg: var(--color-primary);
  --bs-btn-active-border-color: var(--color-primary);
}

/* Glow CTA */
.cosmos-glow-btn {
  box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3);
  transition: box-shadow 0.25s ease, transform 0.2s ease !important;
}
.cosmos-glow-btn:hover {
  box-shadow: 0 0 36px rgba(var(--color-primary-rgb), 0.5);
  transform: translateY(-2px);
}
.cosmos-glow-btn--chat {
  background-color: var(--color-chat) !important;
  border-color: var(--color-chat) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(var(--color-chat-rgb), 0.3);
}
.cosmos-glow-btn--chat:hover {
  background-color: var(--color-chat) !important;
  border-color: var(--color-chat) !important;
  box-shadow: 0 0 36px rgba(var(--color-chat-rgb), 0.5);
}

/* ─────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────── */

#navbar-main {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.navbar-brand__name {
  font-family: 'Orbitron', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cosmos-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cosmos-nav-link:hover { color: var(--color-primary); }
.cosmos-nav-link.active { color: var(--color-primary); }
.cosmos-nav-link--resources,
.cosmos-nav-link--resources:hover,
.cosmos-nav-link--resources.active { color: var(--color-resources); }
.cosmos-nav-link--chat,
.cosmos-nav-link--chat:hover,
.cosmos-nav-link--chat.active { color: var(--color-chat); }

.cosmos-dropdown-menu {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.4rem 0;
  min-width: 190px;
}

@media (min-width: 768px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.cosmos-dropdown-item {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.cosmos-dropdown-item:hover,
.cosmos-dropdown-item.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}
.cosmos-dropdown-menu--resources {
  border-color: rgba(var(--color-resources-rgb), 0.25);
}
.cosmos-dropdown-menu--resources .cosmos-dropdown-item {
  color: rgba(var(--color-resources-rgb), 0.65);
}
.cosmos-dropdown-menu--resources .cosmos-dropdown-item:hover,
.cosmos-dropdown-menu--resources .cosmos-dropdown-item.active {
  color: var(--color-resources);
  background: rgba(var(--color-resources-rgb), 0.06);
}

.cosmos-nav-link--sub {
  padding-left: 1.75rem;
  font-size: 0.65rem;
  opacity: 0.75;
}

.cosmos-nav-icon-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.cosmos-nav-icon-btn:hover {
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  background-color: rgba(var(--color-primary-rgb), 0.06);
}

/* ── DRK / LGT toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.toggle-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  min-width: 26px;
  transition: color 0.3s;
}

.toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid var(--color-primary);
  position: relative;
  transition: background 0.35s, border-color 0.35s;
}

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

[data-bs-theme="light"] .toggle-thumb { transform: translateX(18px); }

/* ── Events nav link ── */
.cosmos-nav-events {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  height: 2.25rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  background: var(--color-events);
  border: 1px solid var(--color-events);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.cosmos-nav-events:hover { background: rgba(var(--color-events-rgb), 0.85); border-color: rgba(var(--color-events-rgb), 0.85); color: #fff; }

#nav-mobile { border-top: 1px solid var(--color-border); }

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */

.footer-wrapper {
  margin-top: auto;
}

#footer-main {
  background: var(--color-bg);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.18);
  padding: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  transition: background 0.35s, border-color 0.35s;
}

.cosmos-footer__brand-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: color 0.35s;
}

.cosmos-footer__tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 260px;
  transition: color 0.35s;
}

.cosmos-footer__heading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: color 0.35s;
}

.cosmos-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cosmos-footer__link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cosmos-footer__link:hover { color: var(--color-primary); }

.footer-bottom {
  background: var(--color-bg);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.12);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: background 0.35s, color 0.35s;
}

@media (max-width: 768px) {
  #footer-main { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; }
}

/* ─────────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────────── */

.divider {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 3;
  isolation: isolate;
}

.divider::before { content: ""; display: block; padding-bottom: 7%; }

.divider::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  width: 100%;
  background-image: var(--divider-url);
  background-position: center top;
  background-size: auto 100%;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   HOMEPAGE — HERO
───────────────────────────────────────────────── */

.cosmos-hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
}

/* Very subtle single-colour background glow — not a focal point */
.cosmos-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.cosmos-hero .container { position: relative; z-index: 1; }

.cosmos-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-family: 'Share Tech Mono', monospace;
}

.cosmos-eyebrow-line {
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.7;
}

.cosmos-hero__headline {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.cosmos-hero__sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.25rem;
}

.cosmos-hero__ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ─── Hero Event Card ─── */

.cosmos-hero-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(28, 28, 40, 0.06);
}

[data-bs-theme="dark"] .cosmos-hero-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.cosmos-hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  opacity: 0.5;
}

.cosmos-hero-card__label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
}

.cosmos-hero-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cosmos-hero-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cosmos-hero-card__meta i {
  color: var(--color-primary);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cosmos-hero-card__divider {
  height: 1px;
  background: var(--color-border);
  margin: 1.25rem 0;
}

.cosmos-hero-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cosmos-hero-card__tag {
  font-size: 0.775rem;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 1rem;
}

.cosmos-hero-card__rsvp {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap 0.15s ease;
}

.cosmos-hero-card__rsvp:hover { gap: 0.6rem; color: var(--color-primary-dark); }

/* Stats variant (no upcoming event) */
.cosmos-hero-card__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cosmos-hero-card__stat-value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cosmos-hero-card__stat-label {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ─────────────────────────────────────────────────
   HOMEPAGE — ANNOUNCE STRIP
───────────────────────────────────────────────── */

.cosmos-announce-strip {
  background: rgba(var(--color-primary-rgb), 0.06);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.12);
  padding: 0.875rem 0;
  font-size: 0.875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cosmos-announce-strip__badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
}

.cosmos-announce-strip__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s ease;
}
.cosmos-announce-strip__link:hover { gap: 0.55rem; color: var(--color-primary-dark); }

/* ─────────────────────────────────────────────────
   PCB CIRCUIT HERO
───────────────────────────────────────────────── */

.cosmos-hero-pcb {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9rem;
  padding-bottom: 12vh;
  overflow: hidden;
  background: var(--hero-pcb-bg);
}

/* Top gradient behind hero text */
.cosmos-hero-pcb::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, rgba(10,14,24,0.92) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade */
.cosmos-hero-pcb::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #0a0e18 20%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Light mode: no gradients, plain white canvas */
[data-bs-theme="light"] .cosmos-hero-pcb::before,
[data-bs-theme="light"] .cosmos-hero-pcb::after { display: none; }

.pcb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* CTA row */
.pcb-ctas {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 2rem 2.5rem;
  width: 100%;
  max-width: 900px;
}

/* PCB tactile switch — the CTA button */
.pcb-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.6rem;
  background: var(--hero-cta-bg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.32);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  opacity: 0;
  animation: hero-fade 0.6s ease-out forwards;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
  user-select: none;
}

.pcb-ctas .pcb-cta:nth-child(1) { animation-delay: 1.1s; }
.pcb-ctas .pcb-cta:nth-child(2) { animation-delay: 1.3s; }
.pcb-ctas .pcb-cta:nth-child(3) { animation-delay: 1.5s; }

/* Solder pad legs */
.pcb-cta::before,
.pcb-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 16px;
  background: rgba(var(--color-primary-rgb), 0.20);
  transition: background 0.2s ease;
}
.pcb-cta::before { left: -7px; }
.pcb-cta::after  { right: -7px; }

.pcb-cta:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 32px rgba(var(--color-primary-rgb), 0.28),
              0 0 10px rgba(var(--color-primary-rgb), 0.14);
  transform: translateY(-2px);
}
.pcb-cta:hover::before,
.pcb-cta:hover::after { background: rgba(var(--color-primary-rgb), 0.60); }
.pcb-cta:active { transform: translateY(0); box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.18); }

.pcb-cta--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 22px rgba(var(--color-primary-rgb), 0.35);
}
.pcb-cta--primary .pcb-cta__ref,
.pcb-cta--primary .pcb-cta__label { color: var(--color-bg); }
.pcb-cta--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 36px rgba(var(--color-primary-rgb), 0.55);
}
.pcb-cta--primary::before,
.pcb-cta--primary::after { background: rgba(var(--color-primary-rgb), 0.50); }

/* Category-coloured CTA variants */
.pcb-cta--events .pcb-cta__ref,
.pcb-cta--events .pcb-cta__label { color: var(--color-events); }
.pcb-cta--events { border-color: rgba(var(--color-events-rgb), 0.32); }
.pcb-cta--events::before,
.pcb-cta--events::after { background: rgba(var(--color-events-rgb), 0.20); }
.pcb-cta--events:hover { border-color: var(--color-events); box-shadow: 0 0 32px rgba(var(--color-events-rgb), 0.28), 0 0 10px rgba(var(--color-events-rgb), 0.14); }
.pcb-cta--events:hover::before,
.pcb-cta--events:hover::after { background: rgba(var(--color-events-rgb), 0.60); }

.pcb-cta--resources .pcb-cta__ref,
.pcb-cta--resources .pcb-cta__label { color: var(--color-resources); }
.pcb-cta--resources { border-color: rgba(var(--color-resources-rgb), 0.32); }
.pcb-cta--resources::before,
.pcb-cta--resources::after { background: rgba(var(--color-resources-rgb), 0.20); }
.pcb-cta--resources:hover { border-color: var(--color-resources); box-shadow: 0 0 32px rgba(var(--color-resources-rgb), 0.28), 0 0 10px rgba(var(--color-resources-rgb), 0.14); }
.pcb-cta--resources:hover::before,
.pcb-cta--resources:hover::after { background: rgba(var(--color-resources-rgb), 0.60); }

.pcb-cta--chat .pcb-cta__ref,
.pcb-cta--chat .pcb-cta__label { color: var(--color-chat); }
.pcb-cta--chat { border-color: rgba(var(--color-chat-rgb), 0.32); }
.pcb-cta--chat::before,
.pcb-cta--chat::after { background: rgba(var(--color-chat-rgb), 0.20); }
.pcb-cta--chat:hover { border-color: var(--color-chat); box-shadow: 0 0 32px rgba(var(--color-chat-rgb), 0.28), 0 0 10px rgba(var(--color-chat-rgb), 0.14); }
.pcb-cta--chat:hover::before,
.pcb-cta--chat:hover::after { background: rgba(var(--color-chat-rgb), 0.60); }

.pcb-cta__ref {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.48rem;
  letter-spacing: 0.20em;
  color: var(--color-primary);
  opacity: 0.52;
  line-height: 1;
  text-transform: uppercase;
}

.pcb-cta__label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  max-width: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  text-align: center;
  padding: 2rem 2rem 0;
}

.hero-main {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.7rem, 3.0vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-primary);
  margin: 0 0 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  animation: hero-rise 0.7s ease-out 0.35s forwards;
}

.hero-minor {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--hero-text-secondary);
  line-height: 1.65;
  margin: 0;
  opacity: 0;
  animation: hero-fade 0.6s ease-out 0.75s forwards;
}

@keyframes hero-rise  { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-fade  { to { opacity: 1; } }
@keyframes scroll-bounce      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes scroll-twirl       { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes scroll-hint-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes scroll-pulse       { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-scroll-hint {
  position: fixed;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-scroll-hint::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(var(--color-primary-rgb), 0.45);
  border-radius: 50%;
  animation: scroll-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.hero-scroll-bounce {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.35);
  border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.08);
  perspective: 280px;
  animation: scroll-bounce 1.9s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(var(--color-primary-rgb), 0.4));
  flex-shrink: 0;
}

.hero-scroll-spin.do-spin {
  animation: scroll-twirl 0.6s cubic-bezier(0.4, 0, 0.6, 1);
}

.hero-scroll-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--color-primary);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .cosmos-hero-pcb { min-height: 100svh; justify-content: flex-start; padding-top: 15vh; gap: 3.5rem; }
  .hero-content { padding: 0 1.5rem 0; }
  .pcb-ctas { gap: 1rem; padding: 0 1.25rem 2.5rem; }
  .pcb-cta { padding: 0.85rem 1.2rem; }
  .pcb-cta__label { font-size: 0.7rem; max-width: 110px; }
}


/* ─────────────────────────────────────────────────
   HOMEPAGE — SECTIONS
───────────────────────────────────────────────── */

.cosmos-section { padding: 5.5rem 0; overflow: hidden; }
.cosmos-section--alt { background-color: var(--color-bg); }
.cosmos-section--raised { background-color: var(--color-surface-raised); }
.cosmos-section--dots {
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cosmos-section--dots-events {
  background-color: var(--color-surface-raised);
  background-image:
    radial-gradient(circle, rgba(var(--color-events-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(rgba(var(--color-events-rgb), 0.05), rgba(var(--color-events-rgb), 0.05));
  background-size: 28px 28px, 100%;
}
.cosmos-section--dots-chat {
  background-color: var(--color-surface-raised);
  background-image:
    radial-gradient(circle, rgba(var(--color-chat-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(rgba(var(--color-chat-rgb), 0.05), rgba(var(--color-chat-rgb), 0.05));
  background-size: 28px 28px, 100%;
}


.cosmos-section__label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.cosmos-section__title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.cosmos-section__title em {
  font-style: normal;
  color: var(--color-primary);
}
.cosmos-section__title--events { color: var(--color-events); }
.cosmos-section__title--resources { color: var(--color-resources); }
.cosmos-section__title--chat { color: var(--color-chat); }

.cosmos-section__lead {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ─────────────────────────────────────────────────
   FEATURE CARDS
───────────────────────────────────────────────── */

.cosmos-feature-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cosmos-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
}

.cosmos-feature-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
}

.cosmos-feature-card__icon {
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 0;
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.cosmos-feature-card__title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.cosmos-feature-card__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─────────────────────────────────────────────────
   FACT LIST (awareness section)
───────────────────────────────────────────────── */

.cosmos-fact-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cosmos-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cosmos-fact-item__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  background: rgba(var(--color-primary-rgb), 0.12);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

.cosmos-fact-item__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.cosmos-fact-item__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────
   PATH CARDS (two-path split section)
───────────────────────────────────────────────── */

.cosmos-path-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

.cosmos-path-panel {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
}

.cosmos-path-sep {
  height: 1px;
  margin: 0 3.5rem;
  background: linear-gradient(to right, transparent, var(--color-border) 15%, var(--color-border) 85%, transparent);
}

.cosmos-path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.cosmos-path-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.4);
}

.cosmos-path-card__icon {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.cosmos-path-card__title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.cosmos-path-card__body {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.cosmos-path-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cosmos-path-card__list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .cosmos-path-card__list {
    flex-direction: row;
    gap: 1rem;
  }
  .cosmos-path-card__list li {
    flex: 1;
  }
}

.cosmos-path-card__event-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  height: 100%;
}

.cosmos-path-card__event-link:hover {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
  color: var(--color-primary);
}

.cosmos-path-card__event-link > i:first-child {
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.cosmos-path-card__event-link:hover > i:first-child {
  color: inherit;
}

.cosmos-path-card__event-link div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.cosmos-path-card__event-link strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.cosmos-path-card__event-link span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.cosmos-path-card__event-link:hover span {
  color: inherit;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────
   AUDIENCE CARDS
───────────────────────────────────────────────── */

.cosmos-audience-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease;
}

.cosmos-audience-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
}

.cosmos-audience-card:hover { border-color: rgba(var(--color-primary-rgb), 0.45); }

.cosmos-audience-card__icon {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cosmos-audience-card__title {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.cosmos-audience-card__body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
}

.cosmos-audience-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap 0.15s ease;
}
.cosmos-audience-card__body { color: #5a5a5a; }
[data-bs-theme="dark"] .cosmos-audience-card__body { color: #a0a0a0; }

.cosmos-audience-card__link:hover { gap: 0.55rem; }

/* Events variant */
.cosmos-audience-card--events {
  border-color: rgba(var(--color-events-rgb), 0.35);
  background-color: var(--color-surface-raised);
  background-image: radial-gradient(circle, rgba(var(--color-events-rgb), 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cosmos-audience-card--events::before { background: var(--color-events); }
.cosmos-audience-card--events .cosmos-audience-card__icon { color: var(--color-events); }
.cosmos-audience-card--events:hover { border-color: rgba(var(--color-events-rgb), 0.6); }
.cosmos-audience-card__title--events { color: var(--color-events); }
.cosmos-audience-card__link--events { color: var(--color-events); }

/* Resources variant */
.cosmos-audience-card--resources {
  border-color: rgba(var(--color-resources-rgb), 0.35);
  background-color: var(--color-surface-raised);
  background-image: radial-gradient(circle, rgba(var(--color-resources-rgb), 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cosmos-audience-card--resources::before { background: var(--color-resources); }
.cosmos-audience-card--resources .cosmos-audience-card__icon { color: var(--color-resources); }
.cosmos-audience-card--resources:hover { border-color: rgba(var(--color-resources-rgb), 0.6); }
.cosmos-audience-card__title--resources { color: var(--color-resources); }
.cosmos-audience-card__link--resources { color: var(--color-resources); }

/* Chat variant */
.cosmos-audience-card--chat {
  border-color: rgba(var(--color-chat-rgb), 0.35);
  background-color: var(--color-surface-raised);
  background-image: radial-gradient(circle, rgba(var(--color-chat-rgb), 0.18) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cosmos-audience-card--chat::before { background: var(--color-chat); }
.cosmos-audience-card--chat .cosmos-audience-card__icon { color: var(--color-chat); }
.cosmos-audience-card--chat:hover { border-color: rgba(var(--color-chat-rgb), 0.6); }
.cosmos-audience-card__title--chat { color: var(--color-chat); }
.cosmos-audience-card__link--chat { color: var(--color-chat); }

/* ─────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────── */

.cosmos-cta-section {
  background: var(--color-surface-raised);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: 0;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  transition: background 0.35s, border-color 0.35s;
}

.cosmos-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
}

.cosmos-cta-section__orb { display: none; }

.cosmos-cta-section__eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.cosmos-cta-section__title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.cosmos-cta-section__lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.cosmos-cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cosmos-cta-section__ghost-btn {
  border: 1px solid rgba(var(--color-primary-rgb), 0.35) !important;
  color: var(--color-primary) !important;
  background: transparent !important;
}

.cosmos-cta-section__ghost-btn:hover {
  border-color: var(--color-primary) !important;
  background: rgba(var(--color-primary-rgb), 0.06) !important;
}

.cosmos-cta-section--chat {
  border-color: rgba(var(--color-chat-rgb), 0.25);
}
.cosmos-cta-section--chat::before { background: var(--color-chat); }
.cosmos-cta-section--chat .cosmos-cta-section__title { color: var(--color-chat); }

/* ─────────────────────────────────────────────────
   VIEW-ALL LINK
───────────────────────────────────────────────── */

.cosmos-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap 0.15s ease;
}
.cosmos-view-all:hover { gap: 0.7rem; color: var(--color-primary-dark); }
.cosmos-view-all--events { color: var(--color-events); }
.cosmos-view-all--events:hover { color: var(--color-events); opacity: 0.75; }
.cosmos-view-all--resources { color: var(--color-resources); }
.cosmos-view-all--resources:hover { color: var(--color-resources); opacity: 0.75; }

/* ─────────────────────────────────────────────────
   COMMUNITY PAGE
───────────────────────────────────────────────── */

.cosmos-page-hero {
  position: relative;
  padding: 4rem 0 4rem;
  background-color: var(--hero-pcb-bg);
  background-image: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.cosmos-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--hero-pcb-bg) 0%, transparent 35%, transparent 65%, var(--color-bg) 100%);
  pointer-events: none;
}

.cosmos-page-hero .container {
  position: relative;
  z-index: 1;
}
.cosmos-page-hero--events {
  background-image:
    radial-gradient(circle, rgba(var(--color-events-rgb), 0.22) 1px, transparent 1px),
    linear-gradient(rgba(var(--color-events-rgb), 0.04), rgba(var(--color-events-rgb), 0.04));
  background-size: 28px 28px, 100%;
}

.cosmos-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.cosmos-back-link:hover { color: var(--color-primary); }
.cosmos-back-link--events { color: var(--color-events); opacity: 0.8; }
.cosmos-back-link--events:hover { color: var(--color-events); opacity: 1; }

.cosmos-event-detail-meta i { color: var(--color-events); opacity: 0.75; }

.cosmos-glow-btn--events {
  background-color: var(--color-events) !important;
  border-color: var(--color-events) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(var(--color-events-rgb), 0.3);
}
.cosmos-glow-btn--events:hover {
  background-color: var(--color-events) !important;
  border-color: var(--color-events) !important;
  box-shadow: 0 0 36px rgba(var(--color-events-rgb), 0.5);
}

.cosmos-superbridge-explainer {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  max-width: 700px;
  margin: 0 auto;
}

.cosmos-superbridge-explainer__icon {
  font-size: 1.75rem;
  color: var(--color-primary);
  opacity: 0.75;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cosmos-superbridge-explainer__heading {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.cosmos-superbridge-explainer__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.cosmos-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  height: 100%;
  gap: 0.85rem;
  transition: border-color 0.25s ease;
}

.cosmos-platform-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.4);
}

.cosmos-platform-card__icon {
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.8;
}

.cosmos-platform-card__name {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.cosmos-platform-card__qr {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.cosmos-platform-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cosmos-platform-card__qr--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.04);
  color: var(--color-text-muted);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .cosmos-platform-card {
    width: 100%;
  }
}

.cosmos-newsletter-form .form-control {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 0 !important;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
}

.cosmos-newsletter-form .form-control:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.15);
}

.cosmos-section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

.cosmos-newsletter-form__note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────── */

.cosmos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 0;
}

.cosmos-badge--primary {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.18);
}

.cosmos-badge--muted {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ─────────────────────────────────────────────────
   EVENT CARDS
───────────────────────────────────────────────── */

.cosmos-event-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease;
  position: relative;
}

.cosmos-event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
  z-index: 1;
}

.cosmos-event-card:hover { border-color: rgba(var(--color-primary-rgb), 0.45); }

.cosmos-event-card__image { height: 180px; overflow: hidden; }
.cosmos-event-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cosmos-event-card:hover .cosmos-event-card__image img { transform: scale(1.04); }

.cosmos-event-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.cosmos-event-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0.5rem 0;
}

.cosmos-event-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.cosmos-event-card__meta-list { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.25rem; }

.cosmos-event-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cosmos-event-card__meta i { flex-shrink: 0; margin-top: 0.15rem; color: var(--color-primary); opacity: 0.6; }

.cosmos-event-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap 0.15s ease;
  margin-top: auto;
}
.cosmos-event-card__btn:hover { gap: 0.65rem; color: var(--color-primary-dark); }

/* Event card red overrides inside the events section */
.cosmos-section--dots-events .cosmos-event-card::before { background: var(--color-events); }
.cosmos-section--dots-events .cosmos-event-card:hover { border-color: rgba(var(--color-events-rgb), 0.45); }
.cosmos-section--dots-events .cosmos-event-card__meta i { color: var(--color-events); }
.cosmos-section--dots-events .cosmos-event-card__btn { color: var(--color-events); }
.cosmos-section--dots-events .cosmos-event-card__btn:hover { color: var(--color-events); opacity: 0.8; }
.cosmos-section--dots-events .cosmos-badge--primary {
  background: rgba(var(--color-events-rgb), 0.1);
  color: var(--color-events);
  border-color: rgba(var(--color-events-rgb), 0.18);
}
.cosmos-section--dots-events .cosmos-empty-state a { color: var(--color-events); }
.cosmos-section--dots-events .cosmos-event-card__title { color: #374151; }
.cosmos-section--dots-events .cosmos-event-card__desc { color: #6b7280; }
.cosmos-section--dots-events .cosmos-event-card__meta { color: #6b7280; }
[data-bs-theme="dark"] .cosmos-section--dots-events .cosmos-event-card__title { color: #e5e7eb; }
[data-bs-theme="dark"] .cosmos-section--dots-events .cosmos-event-card__desc { color: #9ca3af; }
[data-bs-theme="dark"] .cosmos-section--dots-events .cosmos-event-card__meta { color: #9ca3af; }

/* Resources section: blue focus card accents + neutral body text */
.cosmos-section--resources-home .cosmos-focus-card::before { background: var(--color-resources); }
.cosmos-section--resources-home .cosmos-focus-card:hover {
  border-color: rgba(var(--color-resources-rgb), 0.45);
  background: rgba(var(--color-resources-rgb), 0.05);
}
.cosmos-section--resources-home .cosmos-focus-card__icon { color: var(--color-resources); }
.cosmos-section--resources-home .cosmos-focus-card__link { color: var(--color-resources); }
.cosmos-section--resources-home .cosmos-focus-card--featured {
  border-color: var(--color-resources);
  background: linear-gradient(135deg, rgba(var(--color-resources-rgb), 0.08) 0%, var(--color-surface-raised) 60%);
  box-shadow: 0 0 0 1px rgba(var(--color-resources-rgb), 0.2), 0 4px 24px rgba(var(--color-resources-rgb), 0.12);
}
.cosmos-section--resources-home .cosmos-focus-card--featured .cosmos-focus-card__title { color: var(--color-resources); }
.cosmos-section--resources-home .cosmos-focus-card__title { color: #374151; }
.cosmos-section--resources-home .cosmos-focus-card__desc { color: #6b7280; }
[data-bs-theme="dark"] .cosmos-section--resources-home .cosmos-focus-card__title { color: #e5e7eb; }
[data-bs-theme="dark"] .cosmos-section--resources-home .cosmos-focus-card__desc { color: #9ca3af; }

/* Chat section: neutral lead text */
.cosmos-cta-section--chat .cosmos-cta-section__lead { color: #6b7280; }
[data-bs-theme="dark"] .cosmos-cta-section--chat .cosmos-cta-section__lead { color: #9ca3af; }

/* ─────────────────────────────────────────────────
   POST CARDS
───────────────────────────────────────────────── */

.cosmos-post-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease;
  position: relative;
}

.cosmos-post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
  z-index: 1;
}

.cosmos-post-card:hover { border-color: rgba(var(--color-primary-rgb), 0.45); }

.cosmos-post-card__image { height: 180px; overflow: hidden; }
.cosmos-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cosmos-post-card:hover .cosmos-post-card__image img { transform: scale(1.04); }

.cosmos-post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.cosmos-post-card__title, .cosmos-post-card__desc, .cosmos-post-card__link { align-self: stretch; }

.cosmos-post-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0.5rem 0;
}

.cosmos-post-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.cosmos-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: gap 0.15s ease;
  margin-top: auto;
}
.cosmos-post-card__link:hover { gap: 0.65rem; color: var(--color-primary-dark); }

.cosmos-focus-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  text-decoration: none;
  height: 100%;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cosmos-focus-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.08) 0%, var(--color-surface-raised) 60%);
  box-shadow: 0 0 0 1px rgba(var(--color-primary-rgb), 0.2), 0 4px 24px rgba(var(--color-primary-rgb), 0.12);
}

.cosmos-focus-card--featured .cosmos-focus-card__icon {
  opacity: 1;
}

.cosmos-focus-card--featured .cosmos-focus-card__title {
  color: var(--color-primary);
}

.cosmos-focus-card--featured::before {
  width: 100%;
  height: 2px;
}

.cosmos-focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--color-primary);
}

.cosmos-focus-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
  background: var(--color-surface);
}

.cosmos-focus-card__icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  opacity: 0.75;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cosmos-focus-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cosmos-focus-card__label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.cosmos-focus-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.cosmos-focus-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.cosmos-focus-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--color-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: auto;
}

.cosmos-focus-card__link .bi-arrow-right {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.cosmos-focus-card:hover .cosmos-focus-card__link .bi-arrow-right { transform: translateX(4px); }

/* ─────────────────────────────────────────────────
   RESOURCE PAGE
───────────────────────────────────────────────── */

.cosmos-resource-section__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.cosmos-resource-section__header > .bi {
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.8;
  flex-shrink: 0;
}

.cosmos-resource-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.cosmos-resource-section__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.cosmos-resource-list__empty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  opacity: 0.6;
  margin: 0;
}

/* ─────────────────────────────────────────────────
   RESOURCE PAGE
───────────────────────────────────────────────── */

.cosmos-resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  height: 100%;
  position: relative;
}

.cosmos-resource-card .cosmos-resource-card__lead {
  flex: 1;
}

.cosmos-resource-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--color-primary);
}

.cosmos-resource-card__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.cosmos-resource-card__icon {
  font-size: 1.75rem;
  color: var(--color-primary);
  opacity: 0.8;
  flex-shrink: 0;
}

.cosmos-resource-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.cosmos-resource-card__lead {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cosmos-resource-list__empty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  opacity: 0.55;
  margin: 0;
}

a.cosmos-resource-card {
  display: block;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

a.cosmos-resource-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
  background: var(--color-surface);
}

a.cosmos-resource-card:hover .cosmos-focus-card__link .bi-arrow-right { transform: translateX(4px); }

.cosmos-back-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cosmos-back-link:hover { color: var(--color-primary); }

/* ─────────────────────────────────────────────────
   EMPTY STATES
───────────────────────────────────────────────── */

.cosmos-empty-state {
  background: var(--color-surface);
  border: 1px dashed rgba(var(--color-primary-rgb), 0.2);
  border-radius: 0;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────
   GALLERY
───────────────────────────────────────────────── */

.gallery-overlay, .gallery-all-overlay {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-nav-btn, .gallery-all-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover, .gallery-all-nav-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }
.gallery-nav-btn:disabled, .gallery-all-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.gallery-thumbnail, .gallery-all-thumbnail { transition: transform 0.2s ease; cursor: pointer; height: 120px; object-fit: cover; }
.gallery-thumbnail:hover, .gallery-all-thumbnail:hover { transform: scale(1.05); }

.gallery-main-image { max-height: 80vh; max-width: 90vw; object-fit: contain; }
.gallery-all-main-image { max-height: 70vh; max-width: 90vw; object-fit: contain; }

/* ─────────────────────────────────────────────────
   INNER PAGE UTILITIES
───────────────────────────────────────────────── */

.border-primary-hover { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.border-primary-hover:hover { border-color: rgba(var(--color-primary-rgb), 1) !important; }

.border-secondary-hover { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.border-secondary-hover:hover { border-color: rgba(var(--color-primary-rgb), 1) !important; }

.text-preline { white-space: pre-line; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */

@media (max-width: 992px) {
  .cosmos-section { padding: 4rem 0; }
  .cosmos-cta-section { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
  .cosmos-hero { padding: 3.5rem 0 3rem; }
  .cosmos-cta-section { padding: 3rem 1.5rem; }
  .cosmos-section { padding: 3.5rem 0; }
}

@media (max-width: 1200px) { .divider::before { padding-bottom: 12%; } .divider::after { width: 300%; } }
@media (max-width: 992px)  { .divider::before { padding-bottom: 15%; } .divider::after { width: 300%; } }
@media (max-width: 768px)  { .divider::before { padding-bottom: 20%; } .divider::after { width: 300%; } }
@media (max-width: 576px)  { .divider::before { padding-bottom: 28%; } .divider::after { width: 300%; } }
