:root {
  --bg: #070411;
  --bg-soft: rgba(18, 8, 36, 0.84);
  --panel: rgba(20, 10, 40, 0.74);
  --panel-strong: rgba(14, 7, 30, 0.92);
  --line: rgba(196, 181, 253, 0.16);
  --line-strong: rgba(139, 92, 246, 0.34);
  --text: #f7f1ff;
  --muted: #c9bddf;
  --accent: #8b5cf6;
  --accent-strong: #d946ef;
  --accent-warm: #c4b5fd;
  --accent-cool: #22d3ee;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --display-font:
    "Avenir Next", "SF Pro Display", "Helvetica Neue", "PingFang SC",
    "Noto Sans SC", sans-serif;
  --body-font:
    "Avenir Next", "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  --grid-line: rgba(255, 255, 255, 0.03);
  --logo-core: #79ebff;
  --logo-glow: rgba(103, 231, 255, 0.72);
}

body[data-theme="light"] {
  --bg: #eef2ff;
  --bg-soft: rgba(255, 255, 255, 0.82);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(245, 247, 255, 0.96);
  --line: rgba(109, 40, 217, 0.12);
  --line-strong: rgba(124, 58, 237, 0.28);
  --text: #20163d;
  --muted: #665c86;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-warm: #6d28d9;
  --accent-cool: #0891b2;
  --shadow: 0 24px 64px rgba(109, 40, 217, 0.12);
  --grid-line: rgba(109, 40, 217, 0.05);
  --logo-core: #0ea5e9;
  --logo-glow: rgba(14, 165, 233, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(139, 92, 246, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(217, 70, 239, 0.16),
      transparent 24%
    ),
    radial-gradient(
      circle at 78% 70%,
      rgba(34, 211, 238, 0.12),
      transparent 26%
    ),
    linear-gradient(180deg, #070411 0%, #120824 40%, #080b1d 100%);
  min-height: 100vh;
}

body[data-theme="light"] {
  background:
    radial-gradient(
      circle at top left,
      rgba(139, 92, 246, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(99, 102, 241, 0.06),
      transparent 20%
    ),
    linear-gradient(180deg, #f4f1fb 0%, #eff0f8 42%, #f8f8fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 90%);
  opacity: 0.32;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.section,
.footer {
  backdrop-filter: blur(18px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 999px;
}

body[data-theme="light"] .topbar {
  background: rgba(248, 245, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 18px 42px rgba(109, 40, 217, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand span,
.conversation-head,
.section-heading,
.footer div {
  display: grid;
  gap: 4px;
}

.brand strong,
.section-heading h2,
.hero-copy h1,
.status-card strong,
.swarm-score strong,
.passport-card strong {
  font-family: var(--display-font);
  letter-spacing: -0.07em;
}

.brand-mark {
  display: block;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  aspect-ratio: 1 / 1;
  flex: 0 0 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow:
    0 14px 34px rgba(124, 58, 237, 0.18),
    0 0 22px rgba(14, 165, 233, 0.16);
}

.brand small,
.topnav a,
.section-heading p,
.lead,
.hero-tags span,
.status-card span,
.status-grid span,
.pipeline-grid p,
.conversation-log p,
.conversation-log strong,
.intent-card dd,
.intent-aside span,
.semantic-list li,
.matching-panel span,
.swarm-score small,
.swarm-cards p,
.supplier-rank span,
.ops-note span,
.passport-card span,
.passport-grid article p,
.footer strong,
.footer .button,
.ops-menu span {
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 18px;
}

.topnav a {
  position: relative;
  font-size: 14px;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a.is-active::after {
  transform: scaleX(1);
}

.topbar-actions,
.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.theme-toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  aspect-ratio: 1 / 1;
  flex: 0 0 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--accent-warm), var(--accent-cool));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body[data-theme="light"] .theme-toggle-icon {
  background:
    radial-gradient(circle at center, #fff6c4 0 38%, transparent 39%),
    linear-gradient(135deg, #fde68a, #f59e0b);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.28);
}

body[data-theme="light"] .button-primary {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.18);
}

.button-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .button-ghost {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(124, 58, 237, 0.14);
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: var(--radius-xl);
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    transparent 40%
  );
}

body[data-theme="light"] .section::after {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.03),
    transparent 40%
  );
}

body[data-theme="light"] .hero {
  background:
    radial-gradient(
      circle at top left,
      rgba(139, 92, 246, 0.05),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      rgba(244, 239, 252, 0.96),
      rgba(240, 241, 248, 0.92)
    );
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  min-height: 620px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.intent-layout,
.swarm-layout,
.passport-panel,
.split-section {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 999px;
  color: var(--accent-warm);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.1);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  font-weight: 600;
}

.lead {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.ops-menu span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.hero-panel,
.passport-panel,
.community-story-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}

.status-card,
.status-grid article,
.conversation-card,
.intent-card,
.intent-aside article,
.matching-panel article,
.swarm-score,
.swarm-cards article,
.supplier-rank,
.ops-note,
.passport-card,
.passport-grid article,
.community-story-card,
.community-story-grid article {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.status-card,
.intent-card,
.swarm-score,
.passport-card,
.community-story-card {
  padding: 26px;
}

.spotlight {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(
      circle at top right,
      rgba(34, 211, 238, 0.16),
      transparent 36%
    ),
    radial-gradient(
      circle at top left,
      rgba(217, 70, 239, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(14, 7, 30, 0.92));
}

body[data-theme="light"] .spotlight {
  background: linear-gradient(
    180deg,
    rgba(242, 235, 251, 0.98),
    rgba(208, 201, 223, 0.84) 64%,
    rgba(33, 22, 64, 0.96) 100%
  );
  border-color: rgba(109, 40, 217, 0.22);
}

body[data-theme="light"] .status-card p,
body[data-theme="light"] .status-grid p,
body[data-theme="light"] .conversation-log article p,
body[data-theme="light"] .intent-aside p,
body[data-theme="light"] .matching-panel p,
body[data-theme="light"] .swarm-score p,
body[data-theme="light"] .ops-note p,
body[data-theme="light"] .passport-card p,
body[data-theme="light"] .role-card p,
body[data-theme="light"] .case-card p,
body[data-theme="light"] .ledger-stream article p,
body[data-theme="light"] .ledger-stats article p,
body[data-theme="light"] .community-story-card p,
body[data-theme="light"] .community-story-grid article p {
  color: #7c3aed;
}

body[data-theme="light"] .status-card strong,
body[data-theme="light"] .swarm-score strong,
body[data-theme="light"] .passport-card strong {
  color: #1d1240;
}

body[data-theme="light"] .status-card span {
  color: rgba(111, 94, 154, 0.82);
}

.status-card p,
.status-grid p,
.conversation-log article p,
.intent-aside p,
.matching-panel p,
.swarm-score p,
.ops-note p,
.passport-card p,
.community-story-card p,
.community-story-grid article p {
  margin: 0;
  font-size: 13px;
  color: var(--accent-warm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-card strong,
.swarm-score strong,
.passport-card strong,
.community-story-card strong {
  margin-top: 14px;
  font-size: 72px;
  line-height: 0.95;
}

.status-card span,
.swarm-score span,
.passport-card span,
.community-story-card span,
.community-story-grid article span {
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.7;
}

.status-grid,
.passport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-grid article,
.intent-aside article,
.matching-panel article,
.passport-grid article {
  padding: 22px;
}

.status-grid strong,
.matching-panel strong,
.passport-grid strong,
.community-story-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 24px;
}

.community-story-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(
      circle at top right,
      rgba(34, 211, 238, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at top left,
      rgba(217, 70, 239, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(14, 7, 30, 0.92));
}

body[data-theme="light"] .community-story-card {
  background: linear-gradient(
    180deg,
    rgba(244, 239, 252, 0.98),
    rgba(224, 220, 241, 0.9) 62%,
    rgba(41, 30, 72, 0.94) 100%
  );
  border-color: rgba(109, 40, 217, 0.22);
}

.community-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.community-story-grid article {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 28%),
    var(--panel-strong);
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.section-heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

.pipeline-grid,
.swarm-cards,
.supplier-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.pipeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pipeline-grid article,
.conversation-log article,
.swarm-cards article {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.pipeline-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent);
  font-size: 13px;
}

.pipeline-grid strong,
.intent-card dt,
.swarm-cards strong,
.ops-note strong,
.supplier-rank strong,
.passport-grid article strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
}

.pipeline-grid p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.split-copy {
  margin-bottom: 0;
  align-self: center;
}

.conversation-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.08), transparent 24%),
    var(--panel-strong);
}

.conversation-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.conversation-head strong {
  font-size: 24px;
}

.conversation-log {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.conversation-log strong {
  display: block;
  margin-top: 10px;
  line-height: 1.7;
  color: var(--text);
  font-size: 16px;
}

.intent-layout,
.swarm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.intent-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.intent-card dt,
.intent-card dd {
  margin: 0;
}

.intent-card dd {
  margin-top: 10px;
  line-height: 1.8;
}

.intent-aside,
.matching-panel {
  display: grid;
  gap: 16px;
}

.semantic-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 8px 0 24px;
  list-style: none;
}

.semantic-list li {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.swarm-layout {
  align-items: start;
}

.swarm-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swarm-cards article {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(217, 70, 239, 0.08), transparent 28%),
    var(--panel);
}

.swarm-cards p {
  margin: 16px 0 0;
  line-height: 1.7;
}

.ops-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.supplier-board {
  align-content: start;
}

.supplier-rank,
.ops-note {
  padding: 20px 22px;
}

.supplier-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.supplier-rank.is-leading {
  border-color: rgba(139, 92, 246, 0.38);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--panel);
}

.supplier-rank p {
  margin: 0 0 10px;
  color: var(--accent-warm);
}

.ops-note {
  min-height: 176px;
  background:
    radial-gradient(
      circle at top right,
      rgba(34, 211, 238, 0.16),
      transparent 28%
    ),
    var(--panel-strong);
}

.roles-grid,
.case-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.roles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-card,
.case-card,
.ledger-stream article,
.ledger-stats article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.role-card {
  min-height: 280px;
  background:
    radial-gradient(
      circle at top right,
      rgba(139, 92, 246, 0.1),
      transparent 34%
    ),
    var(--panel);
}

.role-card p,
.case-card p,
.ledger-stream article p,
.ledger-stats article p {
  margin: 0;
  color: var(--accent-warm);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-card strong,
.case-card strong,
.ledger-stream article strong,
.ledger-stats article strong {
  display: block;
  margin-top: 16px;
  font-size: 24px;
}

.role-card span,
.case-card span,
.ledger-stream article span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.role-meta,
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.role-meta li,
.case-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
}

body[data-theme="light"] .role-meta li,
body[data-theme="light"] .case-tags span,
body[data-theme="light"] .hero-tags span,
body[data-theme="light"] .ops-menu span {
  background: rgba(124, 58, 237, 0.04);
}

body[data-theme="light"] .status-card,
body[data-theme="light"] .status-grid article,
body[data-theme="light"] .conversation-card,
body[data-theme="light"] .intent-card,
body[data-theme="light"] .intent-aside article,
body[data-theme="light"] .matching-panel article,
body[data-theme="light"] .swarm-score,
body[data-theme="light"] .swarm-cards article,
body[data-theme="light"] .supplier-rank,
body[data-theme="light"] .ops-note,
body[data-theme="light"] .passport-card,
body[data-theme="light"] .passport-grid article,
body[data-theme="light"] .role-card,
body[data-theme="light"] .case-card,
body[data-theme="light"] .ledger-stream article,
body[data-theme="light"] .ledger-stats article {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.05);
}

body[data-theme="light"] .spotlight,
body[data-theme="light"] .ledger-stats article,
body[data-theme="light"] .ops-note {
  box-shadow: none;
}

.ledger-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
}

.ledger-stream,
.ledger-stats {
  display: grid;
  gap: 16px;
}

.ledger-stream article {
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent 48%),
    var(--panel);
}

.ledger-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ledger-stats article {
  min-height: 150px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(
      circle at top right,
      rgba(217, 70, 239, 0.12),
      transparent 34%
    ),
    var(--panel-strong);
}

.ledger-stats article strong {
  font-size: 40px;
  line-height: 1;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 24%),
    var(--panel);
}

.passport-grid article {
  min-height: 128px;
}

.footer {
  margin-top: 22px;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer strong {
  font-size: 20px;
}

.icp-link {
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

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

@media (max-width: 1080px) {
  .topbar {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .intent-layout,
  .swarm-layout,
  .pipeline-grid,
  .swarm-cards,
  .roles-grid,
  .case-grid,
  .ledger-layout {
    grid-template-columns: 1fr;
  }

  .ledger-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topnav,
  .topbar-actions {
    width: 100%;
  }

  .topnav {
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 12px;
  }

  .section {
    padding: 24px;
    border-radius: 24px;
  }

  .topbar {
    top: 8px;
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .status-grid,
  .passport-grid,
  .ledger-stats {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   Living Archipelago — official website, light only
   Brand anchors come from src/styles/brand-colors.css.
   ===================================================== */
body[data-theme="light"] {
  --bg: var(--bg-base);
  --bg-soft: color-mix(in srgb, white 92%, transparent);
  --panel: color-mix(in srgb, white 94%, transparent);
  --panel-strong: white;
  --line: var(--border-default);
  --line-strong: var(--border-strong);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --accent: var(--ocean-500);
  --accent-strong: var(--primary-700);
  --accent-warm: var(--sun-strong);
  --accent-cool: var(--island-500);
  --shadow: var(--shadow-md);
  --grid-line: color-mix(in srgb, var(--ocean-500) 8%, transparent);
  --logo-core: var(--ocean-500);
  --logo-glow: color-mix(in srgb, var(--ocean-500) 24%, transparent);
  color-scheme: light;
  background:
    radial-gradient(
      circle at 8% 6%,
      color-mix(in srgb, var(--ocean-500) 14%, transparent),
      transparent 26rem
    ),
    radial-gradient(
      circle at 92% 18%,
      color-mix(in srgb, var(--sun-500) 9%, transparent),
      transparent 22rem
    ),
    radial-gradient(
      circle at 72% 74%,
      color-mix(in srgb, var(--island-500) 10%, transparent),
      transparent 28rem
    ),
    var(--bg-base);
}

body[data-theme="light"] .topbar {
  background: color-mix(in srgb, white 94%, transparent);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.brand-mark {
  border: 0;
  border-radius: 0;
  background: var(--ocean-500);
  box-shadow: none;
  mask: url("/atlas-brand-mark.png?v=20260705-b-logo") center / contain
    no-repeat;
  -webkit-mask: url("/atlas-brand-mark.png?v=20260705-b-logo") center / contain
    no-repeat;
}

body[data-theme="light"] .button-primary {
  color: var(--text-primary);
  background: var(--sun-500);
  box-shadow: 0 18px 36px -24px var(--sun-500);
}

body[data-theme="light"] .button-ghost {
  color: var(--text-primary);
  background: white;
  border-color: var(--border-default);
}

body[data-theme="light"] .section,
body[data-theme="light"] .footer {
  background: color-mix(in srgb, white 84%, transparent);
  border-color: var(--border-default);
}

body[data-theme="light"] .section::after {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--ocean-500) 4%, transparent),
    transparent 44%
  );
}

body[data-theme="light"] .hero {
  background:
    radial-gradient(
      circle at 92% 12%,
      color-mix(in srgb, var(--sun-500) 10%, transparent),
      transparent 28%
    ),
    radial-gradient(
      circle at 68% 92%,
      color-mix(in srgb, var(--island-500) 10%, transparent),
      transparent 30%
    ),
    linear-gradient(180deg, white, var(--primary-50));
}

.eyebrow {
  color: var(--primary-700);
  border-color: var(--primary-200);
  background: var(--primary-50);
}

body[data-theme="light"] .hero-tags span,
body[data-theme="light"] .ops-menu span,
body[data-theme="light"] .role-meta li,
body[data-theme="light"] .case-tags span {
  color: var(--text-secondary);
  border-color: var(--border-default);
  background: white;
}

body[data-theme="light"] .status-card,
body[data-theme="light"] .status-grid article,
body[data-theme="light"] .conversation-card,
body[data-theme="light"] .intent-card,
body[data-theme="light"] .intent-aside article,
body[data-theme="light"] .matching-panel article,
body[data-theme="light"] .swarm-score,
body[data-theme="light"] .swarm-cards article,
body[data-theme="light"] .supplier-rank,
body[data-theme="light"] .ops-note,
body[data-theme="light"] .passport-card,
body[data-theme="light"] .passport-grid article,
body[data-theme="light"] .role-card,
body[data-theme="light"] .case-card,
body[data-theme="light"] .ledger-stream article,
body[data-theme="light"] .ledger-stats article,
body[data-theme="light"] .community-story-card,
body[data-theme="light"] .community-story-grid article,
body[data-theme="light"] .pipeline-grid article {
  color: var(--text-primary);
  background: white;
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

body[data-theme="light"] .spotlight {
  color: var(--text-primary);
  background:
    radial-gradient(
      circle at 88% 8%,
      color-mix(in srgb, var(--sun-500) 18%, transparent),
      transparent 38%
    ),
    linear-gradient(145deg, var(--primary-100), white 72%);
  border-color: var(--primary-200);
}

body[data-theme="light"] .status-card p,
body[data-theme="light"] .status-grid p,
body[data-theme="light"] .conversation-log article p,
body[data-theme="light"] .intent-aside p,
body[data-theme="light"] .matching-panel p,
body[data-theme="light"] .swarm-score p,
body[data-theme="light"] .ops-note p,
body[data-theme="light"] .passport-card p,
body[data-theme="light"] .role-card p,
body[data-theme="light"] .case-card p,
body[data-theme="light"] .ledger-stream article p,
body[data-theme="light"] .ledger-stats article p,
body[data-theme="light"] .community-story-card p,
body[data-theme="light"] .community-story-grid article p {
  color: var(--primary-700);
}

body[data-theme="light"] .status-card strong,
body[data-theme="light"] .swarm-score strong,
body[data-theme="light"] .passport-card strong,
body[data-theme="light"] .community-story-card strong {
  color: var(--text-primary);
}

body[data-theme="light"] .status-card span,
body[data-theme="light"] .community-story-card span {
  color: var(--text-muted);
}

.pipeline-grid span {
  color: var(--text-primary);
  background: var(--primary-100);
}

.pipeline-grid article:nth-child(4) span {
  background: var(--island-muted);
}

.pipeline-grid article:nth-child(5) span,
.pipeline-grid article:nth-child(6) span {
  background: var(--sun-muted);
}

body[data-theme="light"] .conversation-card,
body[data-theme="light"] .community-story-grid article,
body[data-theme="light"] .ledger-stream article {
  background: linear-gradient(145deg, var(--primary-50), white 70%);
}

.conversation-log article:nth-child(2),
.conversation-log article:nth-child(4) {
  background: linear-gradient(145deg, var(--island-soft), white 72%);
}

.semantic-list li {
  color: var(--text-secondary);
  border-color: var(--island-500);
  background: var(--island-soft);
}

body[data-theme="light"] .swarm-cards article,
body[data-theme="light"] .role-card {
  background:
    radial-gradient(
      circle at 94% 8%,
      color-mix(in srgb, var(--ocean-500) 10%, transparent),
      transparent 36%
    ),
    white;
}

body[data-theme="light"] .supplier-rank.is-leading {
  border-color: var(--island-muted);
  background: linear-gradient(90deg, var(--island-soft), white 64%);
}

body[data-theme="light"] .ops-note,
body[data-theme="light"] .ledger-stats article:nth-child(3n),
body[data-theme="light"] .community-story-grid article:last-child {
  border-color: var(--sun-muted);
  background: linear-gradient(145deg, var(--sun-soft), white 72%);
}

body[data-theme="light"] .community-story-card {
  background:
    radial-gradient(
      circle at 90% 10%,
      color-mix(in srgb, var(--island-500) 16%, transparent),
      transparent 36%
    ),
    linear-gradient(145deg, var(--primary-100), white 72%);
  border-color: var(--primary-200);
}

body[data-theme="light"] .footer {
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .brand-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .topbar-actions .button {
    width: 100%;
  }
}
