:root {
  color-scheme: dark;
  --stage: #090b12;
  --hero: #0c101b;
  --panel: #10172a;
  --ink: #f2f4ff;
  --muted: #aeb8d1;
  --line: #2a3653;
  --accent: #a9baff;
  --mauve: #c8b3ef;
  --button: #adbaff;
  --button-ink: #11182e;
  --button-hover: #c9d3ff;
  --hero-glow: #232044;
  --frame-start: #12182c;
  --frame-end: #0c1020;
  --map-grid: #273554;
  --map-detail: #46597f;
  --map-edge: #6475a5;
  --map-blue: #859bf4;
  --map-mauve: #b197e0;
  --map-blue-bg: #18233e;
  --map-mauve-bg: #221d39;
  --map-outline: #15182d;
  --core-base: #1b2546;
  --core-side: #1d1d3a;
  --core-blue: #364b86;
  --core-mauve: #4d3b6e;
  --mono: ui-monospace, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --stage: #f7f8fd;
  --hero: #f0f3fd;
  --panel: #ffffff;
  --ink: #161d33;
  --muted: #475670;
  --line: #ced7eb;
  --accent: #3b4faa;
  --mauve: #66468f;
  --button: #4056b8;
  --button-ink: #ffffff;
  --button-hover: #324598;
  --hero-glow: #e7dff8;
  --frame-start: #f5f7ff;
  --frame-end: #e8ebfc;
  --map-grid: #b9c5e3;
  --map-detail: #8494ba;
  --map-edge: #6e80b1;
  --map-blue: #516bc4;
  --map-mauve: #815ba9;
  --map-blue-bg: #e5edff;
  --map-mauve-bg: #ede5f8;
  --map-outline: #dbe3fb;
  --core-base: #b3c2ed;
  --core-side: #c8bdeb;
  --core-blue: #d2defa;
  --core-mauve: #e6d4fa;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--stage); color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
select { font: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 5px; }

.shell { width: min(1190px, calc(100% - 88px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 1; inset: 10px auto auto 10px; padding: 10px 16px; background: var(--panel); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 760; letter-spacing: -.065em; text-decoration: none; }
.brand svg { color: var(--accent); }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-inline-start: auto; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.theme { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.theme select { min-height: 38px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); font-size: 13px; cursor: pointer; }

.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 77% 51%, var(--hero-glow), transparent 65%), linear-gradient(145deg, var(--stage), var(--hero));
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.26fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(56px, 6vw, 92px) clamp(45px, 5vw, 75px);
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mauve); font: 600 12px/1.35 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: block; width: 19px; border-top: 1px solid currentColor; }
.hero h1 { margin-top: 22px; font-size: clamp(55px, 6.25vw, 90px); font-weight: 720; line-height: .99; letter-spacing: -.079em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-lede { max-width: 37ch; margin-top: 23px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 19px; margin-top: 29px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; border-radius: 5px; font-size: 14px; font-weight: 720; text-decoration: none; }
.primary-link { padding: 11px 15px; background: var(--button); color: var(--button-ink); }
.primary-link:hover { background: var(--button-hover); }
.secondary-link { padding: 7px 0; color: var(--accent); }
.secondary-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.arrow { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.ecosystem-map { width: 100%; height: auto; }
.ecosystem figcaption { display: flex; justify-content: space-between; gap: 8px; margin-inline: 3%; color: var(--muted); font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.frame-start { stop-color: var(--frame-start); }
.frame-end { stop-color: var(--frame-end); }
.core-blue { stop-color: var(--core-blue); }
.core-mauve { stop-color: var(--core-mauve); }
.aura-center { stop-color: var(--hero-glow); }
.map-grid { stroke: var(--map-grid); stroke-opacity: .55; }
.map-frame, .map-corners { stroke: var(--map-edge); }
.map-corners { stroke-width: 1.8; }
.map-detail { stroke: var(--map-detail); stroke-opacity: .72; }
.map-dotted { stroke-dasharray: 4 6; }
.trace { stroke-width: 1.75; }
.marketplace-trace, .marketplace-node { stroke: var(--map-blue); }
.account-trace, .account-node { stroke: var(--map-mauve); }
.input-trace, .map-nodes { stroke: var(--map-detail); }
.map-nodes { fill: var(--frame-start); stroke-width: 1.5; }
.core-outline { fill: var(--map-outline); stroke: var(--map-detail); }
.core-base { fill: var(--core-base); stroke: var(--map-blue); stroke-width: 1.5; }
.core-side { fill: var(--core-side); stroke: var(--map-blue); }
.core-seams { stroke: var(--map-blue); }
.core-mark { stroke: var(--accent); stroke-width: 2; }
.map-rule { stroke: var(--map-edge); }
.map-brand { fill: var(--ink); font: 650 16px var(--mono); letter-spacing: .22em; }
.map-label { stroke-width: 1.25; }
.marketplace-label { fill: var(--map-blue-bg); stroke: var(--map-blue); }
.account-label { fill: var(--map-mauve-bg); stroke: var(--map-mauve); }
.map-app-name { fill: var(--ink); font: 650 14px var(--sans); }
.map-icon, .destination-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.marketplace-icon { color: var(--accent); }
.account-icon { color: var(--mauve); }

.destinations { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.48fr); gap: clamp(28px, 6vw, 82px); padding-block: clamp(52px, 6vw, 86px); }
.destinations-intro { padding-top: 18px; }
.destinations h2 { margin-top: 12px; font-size: clamp(34px, 4.25vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -.07em; }
.destination-list { border-top: 1px solid var(--line); }
.destination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; border-bottom: 1px solid var(--line); padding-block: 20px; scroll-margin-top: 18px; }
.destination:target { background: linear-gradient(90deg, var(--hero), transparent); }
.destination-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.destination-icon svg { width: 22px; height: 22px; }
.destination h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.destination p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.destination-domain { display: block; margin-top: 7px; color: var(--muted); font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.destination-status { width: fit-content; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--mauve); font: 600 11px/1.4 var(--mono); white-space: nowrap; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(52px, 7.2vw, 70px); }
  .hero-actions { column-gap: 12px; }
  .destinations { grid-template-columns: minmax(0, .65fr) minmax(0, 1.55fr); gap: 30px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 18px; }
  .header-inner nav { gap: 15px; }
  .theme svg { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 35px; padding-block: 46px 32px; }
  .hero h1 { font-size: clamp(53px, 11vw, 78px); }
  .hero-lede { margin-top: 19px; }
  .hero-actions { margin-top: 23px; }
  .ecosystem { width: min(100%, 560px); }
  .destinations { grid-template-columns: 1fr; gap: 24px; }
  .destinations-intro { padding-top: 0; }
}

@media (max-width: 540px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; padding-block: 10px 3px; }
  .header-inner nav { order: 1; width: 100%; margin: 2px 0 0; }
  .theme { margin-inline-start: auto; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(42px, 12vw, 53px); }
  .ecosystem figcaption { font-size: 9px; }
  .destination { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 12px; }
  .destination-status { grid-column: 2; margin-top: 8px; }
}
