/**
 * Bridge AI OS — Platforms overview
 * Arena chrome aligned with apex-home-brand (magenta / cyan night).
 * Cachebust: 20261031plat1
 */
:root {
  --plat-max: 72rem;
  --hiab-teal: #14b8a6;
  --hiab-blue: #0f5a82;
  --status-live: #5ecf8a;
  --status-gated: #3ec8f0;
  --status-dev: #e0b84a;
  --status-label: #b8a0c8;
  --status-planned: #8a7a98;
  --status-na: #e06070;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body.platforms-surface {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink, #f2e8f4);
  font-family: var(--font-body, "DM Sans", "Segoe UI", sans-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  background-color: var(--night-indigo, #0a0614);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere without full tokoloshe stack — arena plate + mesh */
body.platforms-surface::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(232, 60, 140, 0.16), transparent 55%),
    radial-gradient(800px 520px at 96% 8%, rgba(62, 200, 240, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(201, 162, 39, 0.06), transparent 55%),
    linear-gradient(180deg, #0a0614 0%, #12081c 48%, #0a0614 100%);
}

body.platforms-surface::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(242, 232, 244, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 232, 244, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 15%, transparent 72%);
}

body.platforms-surface > * {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cyan-glow, #3ec8f0);
  color: #0a0614;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--cyan-glow, #3ec8f0);
  text-decoration: none;
}
a:hover {
  color: var(--magenta-glow, #e83c8c);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.25rem);
  background: rgba(10, 6, 20, 0.78);
  border-bottom: 1px solid rgba(232, 60, 140, 0.22);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.mark {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink, #f2e8f4);
  text-decoration: none;
}
.mark em {
  font-style: normal;
  color: var(--magenta-glow, #e83c8c);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.25rem;
  justify-content: flex-end;
}
.topbar nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 232, 244, 0.62);
  padding: 0.4rem 0.55rem;
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] {
  color: var(--ink, #f2e8f4);
}
.topbar nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--cyan-glow, #3ec8f0);
}

.nav-toggle {
  display: none;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(242, 232, 244, 0.35);
  background: transparent;
  color: var(--ink, #f2e8f4);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(12, 6, 22, 0.96);
    border-bottom: 1px solid rgba(232, 60, 140, 0.25);
  }
  .topbar nav.is-open {
    display: flex;
  }
}

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 60, 140, 0.2);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 6, 20, 0.55) 0%, transparent 55%),
    linear-gradient(0deg, rgba(8, 2, 18, 0.35) 0%, transparent 40%);
}

.hero-copy {
  position: relative;
  max-width: 40rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(62, 200, 240, 0.35);
  background: rgba(62, 200, 240, 0.08);
  color: var(--cyan-glow, #3ec8f0);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--status-live);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.brand {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--ink, #f2e8f4);
  margin-bottom: 1.1rem;
}
.brand em {
  font-style: normal;
  color: var(--magenta-glow, #e83c8c);
  text-shadow: 0 0 36px rgba(232, 60, 140, 0.4);
}

.hero h1 {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.hero-lead {
  color: var(--ink-soft, #d4c0e0);
  max-width: 48ch;
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink, #f2e8f4);
  background: var(--ink, #f2e8f4);
  color: var(--night-indigo, #0a0614);
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: transparent;
  color: var(--ink, #f2e8f4);
  box-shadow: 0 0 24px rgba(232, 60, 140, 0.2);
}
.btn.ghost {
  background: transparent;
  color: var(--ink, #f2e8f4);
}
.btn.ghost:hover {
  border-color: var(--cyan-glow, #3ec8f0);
  color: var(--cyan-glow, #3ec8f0);
}
.btn.hiab {
  border-color: var(--hiab-teal);
  background: rgba(20, 184, 166, 0.12);
  color: #9ff3e6;
}
.btn.hiab:hover {
  background: rgba(20, 184, 166, 0.22);
  color: #fff;
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.25);
}

.honesty {
  max-width: 52ch;
  font-size: 0.86rem;
  color: var(--muted, #b8a0c8);
}
.honesty strong {
  color: var(--dust-gold, #c9a227);
  font-weight: 600;
}

.page-wrap {
  width: min(100% - 2rem, var(--plat-max));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-glow, #3ec8f0);
  margin-bottom: 0.55rem;
}
.section h2 {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.section-lead {
  color: var(--ink-soft, #d4c0e0);
  max-width: 54ch;
  margin-bottom: 1.5rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1.75rem;
  list-style: none;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted, #b8a0c8);
}
.legend .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}
.legend .dot.live { background: var(--status-live); }
.legend .dot.gated { background: var(--status-gated); }
.legend .dot.dev { background: var(--status-dev); }
.legend .dot.label { background: var(--status-label); }
.legend .dot.planned { background: var(--status-planned); }
.legend .dot.na { background: var(--status-na); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
  gap: 1rem;
  list-style: none;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(18, 10, 28, 0.82);
  border: 1px solid rgba(232, 60, 140, 0.28);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 200, 240, 0.06);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.25s ease;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pcard:nth-child(1) { animation-delay: 0.04s; }
.pcard:nth-child(2) { animation-delay: 0.08s; }
.pcard:nth-child(3) { animation-delay: 0.12s; }
.pcard:nth-child(4) { animation-delay: 0.16s; }
.pcard:nth-child(5) { animation-delay: 0.2s; }
.pcard:nth-child(6) { animation-delay: 0.24s; }
.pcard:nth-child(7) { animation-delay: 0.28s; }
.pcard:nth-child(8) { animation-delay: 0.32s; }
.pcard:nth-child(9) { animation-delay: 0.36s; }
.pcard:nth-child(10) { animation-delay: 0.4s; }
.pcard:nth-child(11) { animation-delay: 0.44s; }
.pcard:nth-child(12) { animation-delay: 0.48s; }

a.pcard:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 200, 240, 0.45);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(62, 200, 240, 0.12);
  color: inherit;
}

.pcard.hiab-card {
  border-color: rgba(20, 184, 166, 0.45);
  background:
    linear-gradient(145deg, rgba(15, 90, 130, 0.22), transparent 55%),
    rgba(18, 10, 28, 0.88);
}
a.pcard.hiab-card:hover {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(20, 184, 166, 0.18);
}

.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.pcard h3 {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink, #f2e8f4);
}
.pdomain {
  margin-top: 0.2rem;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 0.72rem;
  color: var(--muted, #b8a0c8);
  word-break: break-all;
}

.status-badge {
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status-badge.live { color: var(--status-live); background: rgba(94, 207, 138, 0.1); }
.status-badge.gated { color: var(--status-gated); background: rgba(62, 200, 240, 0.1); }
.status-badge.dev { color: var(--status-dev); background: rgba(224, 184, 74, 0.1); }
.status-badge.label { color: var(--status-label); background: rgba(184, 160, 200, 0.1); }
.status-badge.planned { color: var(--status-planned); background: rgba(138, 122, 152, 0.12); }
.status-badge.na { color: var(--status-na); background: rgba(224, 96, 112, 0.1); }

.pcard .desc {
  flex: 1;
  font-size: 0.92rem;
  color: var(--ink-soft, #d4c0e0);
}
.pcard .meta {
  font-size: 0.78rem;
  color: var(--muted, #b8a0c8);
}
.pcard .meta span {
  color: var(--cyan-glow, #3ec8f0);
}

.ops-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  list-style: none;
}
.ops-strip a {
  display: block;
  padding: 1rem 1.1rem;
  background: rgba(18, 10, 28, 0.75);
  border: 1px solid rgba(62, 200, 240, 0.22);
  color: var(--ink, #f2e8f4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ops-strip a:hover {
  border-color: var(--magenta-glow, #e83c8c);
  transform: translateY(-2px);
  color: var(--ink, #f2e8f4);
}
.ops-strip strong {
  display: block;
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.ops-strip span {
  font-size: 0.8rem;
  color: var(--muted, #b8a0c8);
}

.ledger {
  padding: 1.15rem 1.25rem;
  background: rgba(18, 10, 28, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.28);
}
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.ledger-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ledger-item .lbl {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #b8a0c8);
}
.ledger-item .val {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink, #f2e8f4);
}
.ledger-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted, #b8a0c8);
}

.constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.constellation a {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(62, 200, 240, 0.25);
  font-size: 0.8rem;
  color: var(--ink-soft, #d4c0e0);
}
.constellation a:hover {
  border-color: var(--cyan-glow, #3ec8f0);
  color: var(--magenta-glow, #e83c8c);
}

.site-footer {
  border-top: 1px solid rgba(232, 60, 140, 0.2);
  padding: 1.75rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  color: var(--muted, #b8a0c8);
  font-size: 0.85rem;
}
.site-footer .brand-line {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-weight: 700;
  color: var(--ink, #f2e8f4);
  margin-bottom: 0.5rem;
}
.site-footer .brand-line em {
  font-style: normal;
  color: var(--magenta-glow, #e83c8c);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.75rem 0 1rem;
}
.integrity {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 0.72rem;
  color: var(--muted, #b8a0c8);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
