/* StonkBuilder ecosystem homepage (web/index.html). No JavaScript: the path
   picker uses radio inputs, the mobile menu uses <details>, and motion is CSS.
   app/www_i18n.py serves it in 19 languages (Arabic and Urdu right to left), so
   sideways spacing uses logical properties (inline-start/end). */

:root {
  --paper: #f5f8f3;
  --paper-2: #ebf1e7;
  --card: #fff;
  --ink: #16211b;
  --ink-2: #2a3830;
  --muted: #5d6b63;
  --line: #dbe3d9;
  --line-2: #c8d3c5;
  --brand: #426c23;
  --brand-2: #31551b;
  --lime: #c0f58a;
  --lime-hover: #b1ee6f;
  --night: #0d1410;
  --night-line: #26342b;
  --night-muted: #a7b6aa;
  --learn: #9fe3c0;
  --research: #c6f36b;
  --create: #f2c9a3;
  --belong: #c3b9f3;
  --radius: 22px;
  --shadow-1: 0 1px 2px rgb(20 32 24 / .05), 0 10px 30px rgb(20 32 24 / .07);
  --shadow-2: 0 2px 8px rgb(12 22 16 / .1), 0 28px 70px rgb(12 22 16 / .2);
  --font: "Inter", "Inter Variable", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 36px);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
/* The shared X contact card pads <body>; the footer reserves that room instead
   so the space below it stays dark. */
html body { padding-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #7fb241; outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-x { width: 1em; height: 1em; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -80px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Moved notice */
.moved-bar { background: var(--night); color: var(--night-muted); font-size: 13px; }
.moved-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  text-align: center;
}
.moved-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.moved-short { display: none; }
.moved-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(22 33 27 / .07);
  background: rgb(245 248 243 / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner {
  position: relative;
  max-width: var(--wrap);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { display: flex; flex-direction: column; font: 800 19px/1 var(--font-display); letter-spacing: -.045em; }
.brand-word small { margin-top: 4px; color: var(--muted); font: 700 9px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; }
.primary-nav { display: flex; gap: 2px; }
.primary-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { background: rgb(22 33 27 / .06); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #cfe7ae;
  border-radius: 999px;
  background: #eef9df;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.token-chip strong { color: var(--ink); font-weight: 800; }
.token-chip:hover { border-color: var(--brand); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: #000; }
.menu { position: relative; display: none; }
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-2);
}
.menu-panel a { padding: 12px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--paper); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.button.primary { background: var(--lime); color: #10200f; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08); }
.button.primary:hover { background: var(--lime-hover); transform: translateY(-1px); }
.button.quiet { border-color: var(--line-2); background: #fff; color: var(--ink); }
.button.quiet:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
  padding-inline: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.pulse { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #5fb43d; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(95 180 61 / .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgb(95 180 61 / 0); }
}
.hero h1 {
  margin-top: 26px;
  isolation: isolate;
  font-size: clamp(54px, 8.2vw, 112px);
  font-weight: 850;
  line-height: .9;
  letter-spacing: -.065em;
}
.hero h1 em {
  position: relative;
  display: inline-block;
  padding-inline-end: .06em;
  color: var(--brand);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: .04em;
  bottom: .06em;
  left: .02em;
  height: .16em;
  border-radius: 999px;
  background: var(--lime);
}
.hero-lede { max-width: 590px; margin-top: 26px; color: var(--muted); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--brand); stroke-width: 2.6; }

.hero-stage { position: relative; aspect-ratio: 1 / .92; }
.stage-art {
  position: absolute;
  inset-block: 0 9%;
  inset-inline: 0 6%;
  overflow: hidden;
  border-radius: 32px;
  background: #13211a;
  box-shadow: var(--shadow-2);
}
.stage-art img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 45%; }
.stage-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 42%, rgb(13 20 16 / .34));
}
.stage-tag {
  position: absolute;
  top: 5%;
  inset-inline-start: 5%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  background: rgb(10 18 13 / .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #eaf6e4;
  font-size: 12px;
  font-weight: 700;
}
.stage-tag .icon { color: var(--lime); }

/* Browser-window frame around every product screenshot */
.window {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgb(22 33 27 / .14);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f8f5;
  color: var(--muted);
  font: 600 11px/1 var(--font-mono);
}
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e7b1aa; }
.window-dots i + i { background: #ecd297; }
.window-dots i + i + i { background: #b5dba2; }
.window-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-bar .icon { width: 14px; height: 14px; opacity: .55; }
.window img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: var(--paper-2); }
.window:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgb(12 22 16 / .12), 0 36px 80px rgb(12 22 16 / .26); }
.window:hover .window-url { color: var(--ink); }
.window:hover .window-bar .icon { opacity: 1; }

.float { position: absolute; }
.float-quant { top: 7%; inset-inline-end: -1%; width: 53%; animation: drift 9s ease-in-out infinite; }
.float-community { bottom: 2%; inset-inline-start: -6%; width: 49%; animation: drift 11s ease-in-out -3s infinite; }
.float-learn { inset-inline-end: 3%; bottom: -3%; width: 41%; animation: drift 10s ease-in-out -6s infinite; }
@keyframes drift { 50% { translate: 0 -10px; } }

/* Destination rail */
.domain-rail {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rail-label { margin-inline-end: 4px; color: var(--muted); font: 600 13px/1 var(--font-mono); }
.domain-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 9px;
  padding-inline: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 14px/1 var(--font-mono);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.domain-rail a .icon { color: var(--brand); }
.domain-rail a:hover { border-color: var(--dot); transform: translateY(-2px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 30%, transparent); }

/* Shared section scaffolding */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter) 0; }
.section-head { max-width: 780px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 850; line-height: .98; letter-spacing: -.055em; }
.section-head h2 span { color: #7c8a81; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.45vw, 19px); }

.band-night {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgb(192 245 138 / .13), transparent 62%),
    radial-gradient(900px 620px at -12% 108%, rgb(159 227 192 / .09), transparent 60%),
    var(--night);
  color: #edf4ec;
}
.band-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.on-night .eyebrow { color: var(--lime); }
.on-night h2 { color: #fff; }
.on-night h2 span { color: #7f9486; }
.on-night > p:last-child:not(.eyebrow) { color: var(--night-muted); }

/* Ecosystem map */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 64px;
}
.orbit-map { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 0 auto; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: rgb(255 255 255 / .14); stroke-width: .25; }
.ring-outer { stroke-dasharray: .6 1.4; animation: dash 60s linear infinite; }
.ring-inner { stroke: rgb(192 245 138 / .22); }
.spoke { stroke: rgb(192 245 138 / .38); stroke-width: .28; stroke-dasharray: 1 1.6; animation: dash 7s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32%;
  translate: -50% -50%;
}
.orbit-core img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(192 245 138 / .4), 0 0 0 12px rgb(192 245 138 / .05), 0 0 90px rgb(160 230 90 / .38);
}
.orbit-core span {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 14px;
  padding: 5px 10px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: #121b15;
  color: var(--night-muted);
  font: 600 11px/1 var(--font-mono);
  white-space: nowrap;
}
.orbit-nodes { margin: 0; padding: 0; list-style: none; }
.node { position: absolute; top: var(--y); left: var(--x); translate: -50% -50%; }
.node a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 11px;
  border: 1px solid var(--night-line);
  border-radius: 18px;
  background: rgb(19 28 22 / .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.node a:hover { transform: translateY(-3px); border-color: var(--node); background: #1a261e; }
.node-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--node); color: #0d1410; }
.node-icon .icon { width: 20px; height: 20px; stroke-width: 2; }
.node-text { display: grid; gap: 4px; }
.node strong { font-size: 14px; font-weight: 750; line-height: 1.1; }
.node small { color: var(--night-muted); font: 600 10.5px/1 var(--font-mono); white-space: nowrap; }
.j-learn { --node: var(--learn); }
.j-research { --node: var(--research); }
.j-create { --node: var(--create); }
.j-belong { --node: var(--belong); }

.journeys { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.journey {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background: rgb(255 255 255 / .025);
}
.journey-step { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--node); color: #0d1410; font: 800 13px/1 var(--font-mono); }
.journey h3 { color: #fff; font-size: 20px; letter-spacing: -.02em; }
.journey p { margin-top: 6px; color: var(--night-muted); font-size: 15px; }
.journey .journey-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.journey-links a { color: var(--node); font: 600 12.5px/1.5 var(--font-mono); text-decoration: none; border-bottom: 1px solid transparent; }
.journey-links a:hover { border-bottom-color: currentColor; }

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 76px 0 0;
  border-top: 1px solid var(--night-line);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 28px 0 0; padding-inline-end: 18px; }
.stats dd { margin: 0; color: #fff; font: 850 clamp(40px, 4.2vw, 58px)/1 var(--font-display); letter-spacing: -.05em; }
.stats dt { max-width: 18ch; color: var(--night-muted); font-size: 13.5px; line-height: 1.4; }

/* Path picker */
.path-picker { min-width: 0; margin: 40px 0 0; padding: 0; border: 0; }
.path-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.path-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.path-tabs label:hover { border-color: var(--ink); }
#path-new:checked ~ .path-tabs [for="path-new"],
#path-research:checked ~ .path-tabs [for="path-research"],
#path-create:checked ~ .path-tabs [for="path-create"],
#path-launch:checked ~ .path-tabs [for="path-launch"] { border-color: var(--ink); background: var(--ink); color: #fff; }
#path-new:focus-visible ~ .path-tabs [for="path-new"],
#path-research:focus-visible ~ .path-tabs [for="path-research"],
#path-create:focus-visible ~ .path-tabs [for="path-create"],
#path-launch:focus-visible ~ .path-tabs [for="path-launch"] { outline: 3px solid #7fb241; outline-offset: 3px; }
.path-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  animation: panel-in .35s ease both;
}
#path-new:checked ~ .path-panels .panel-new,
#path-research:checked ~ .path-panels .panel-research,
#path-create:checked ~ .path-panels .panel-create,
#path-launch:checked ~ .path-panels .panel-launch { display: grid; }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
.path-panel a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.path-panel a:hover { transform: translateY(-4px); border-color: #a9c98a; box-shadow: var(--shadow-2); }
.step { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-size: 14px; font-weight: 850; }
.step-domain { margin-top: 10px; color: var(--muted); font: 600 12px/1.3 var(--font-mono); }
.path-panel strong { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.path-panel a > span:not([class]) { color: var(--muted); font-size: 15px; }
.step-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--brand); font-size: 14px; font-weight: 800; }

/* Destination deep dives */
.dest-index {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
  scrollbar-width: none;
}
.dest-index::-webkit-scrollbar { display: none; }
.dest-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 7px;
  padding-inline: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.dest-index a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); font: 800 11px/1 var(--font-mono); }
.dest-index a:hover { background: var(--paper); color: var(--ink); }
.dest-index a:hover span { background: var(--lime); }

.product {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.product:last-of-type { border-bottom: 0; }
.product:nth-of-type(even) .product-media { order: -1; }
.product-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.product-letter { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tone); color: var(--tone-accent); font: 800 13px/1 var(--font-mono); letter-spacing: 0; }
.product h3 { margin-top: 18px; font-size: clamp(34px, 3.9vw, 52px); font-weight: 850; line-height: 1; letter-spacing: -.05em; }
.product-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: 600 13px/1.2 var(--font-mono);
  text-decoration: none;
}
.product-domain:hover { border-color: var(--ink); color: var(--ink); }
.product-pitch { margin-top: 20px; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.features { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.features li { position: relative; padding-inline-start: 36px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.features li::before { content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 23px; height: 23px; border-radius: 7px; background: var(--tone); }
.features li::after {
  content: "";
  position: absolute;
  top: 7px;
  inset-inline-start: 8.5px;
  width: 6px;
  height: 10px;
  border: solid var(--tone-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.features strong { display: block; color: var(--ink); font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.product-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 14px;
}
.product-note .icon { margin-top: 3px; color: var(--brand); }
.product-actions { display: grid; justify-items: start; gap: 16px; margin-top: 28px; }
.sublinks { display: flex; flex-wrap: wrap; gap: 8px 6px; }
.sublinks a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.sublinks a:hover { border-color: var(--ink); color: var(--ink); }

.media-stage {
  position: relative;
  padding: 6% 14% 19% 6%;
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 88% 0%, var(--glow), transparent 70%),
    linear-gradient(155deg, var(--tone-2), var(--tone));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), var(--shadow-1);
}
.product:nth-of-type(even) .media-stage { padding: 6% 6% 19% 14%; }
.window-detail { position: absolute; right: 4%; bottom: 5%; width: 50%; }
.product:nth-of-type(even) .window-detail { right: auto; left: 4%; }
.media-caption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.t-jupglobal { --tone: #0e2621; --tone-2: #1a4a3d; --tone-accent: #b8f5c8; --glow: rgb(184 245 200 / .28); }
.t-community { --tone: #141b10; --tone-2: #2b3a18; --tone-accent: #c6f36b; --glow: rgb(198 243 107 / .3); }
.t-dev { --tone: #1c3212; --tone-2: #3c6423; --tone-accent: #d9f5b5; --glow: rgb(217 245 181 / .3); }
.t-quant { --tone: #0f130f; --tone-2: #2b3822; --tone-accent: #c5ec7a; --glow: rgb(197 236 122 / .3); }
.t-rwa { --tone: #0b0e12; --tone-2: #22302a; --tone-accent: #a9d18e; --glow: rgb(169 209 142 / .26); }
.t-learn { --tone: #143529; --tone-2: #2c5d48; --tone-accent: #f2c9a3; --glow: rgb(242 201 163 / .32); }
.t-link { --tone: #243a28; --tone-2: #4a6d4e; --tone-accent: #e6efcf; --glow: rgb(230 239 207 / .3); }

/* Launch tools */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tool-card:hover { transform: translateY(-4px); border-color: #a9c98a; box-shadow: var(--shadow-2); }
.tool-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper-2); color: var(--brand); }
.tool-icon .icon { width: 22px; height: 22px; }
.tool-tag {
  align-self: flex-start;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef9df;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tool-card strong { font-size: 21px; letter-spacing: -.03em; }
.tool-card > span:not([class]) { color: var(--muted); font-size: 15px; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--brand); font-size: 14px; font-weight: 800; }

/* Principles */
.principles { margin-top: clamp(72px, 9vw, 120px); }
.principles h2 span { display: block; }
.promise-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 48px 0 0; padding: 0; list-style: none; }
.promise-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background: rgb(255 255 255 / .03);
}
.promise-grid .icon { width: 26px; height: 26px; color: var(--lime); }
.promise-grid strong { margin-top: 6px; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.promise-grid span { color: var(--night-muted); font-size: 14.5px; }

/* $STONKB */
.token-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 32px 56px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #cfe7ae;
  border-radius: 30px;
  background: radial-gradient(620px 320px at 100% 0%, rgb(192 245 138 / .5), transparent 70%), #f2fae8;
}
.token-card h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 850; line-height: 1; letter-spacing: -.05em; }
.token-copy > p:not(.eyebrow):not(.mint) { max-width: 60ch; margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.mint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.mint span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mint code {
  padding: 8px 12px;
  border: 1px dashed #b3d48b;
  border-radius: 10px;
  background: #fff;
  font: 600 13px/1.3 var(--font-mono);
  word-break: break-all;
  user-select: all;
}
.token-actions { display: grid; gap: 12px; }
.token-actions .button { width: 100%; }
.fine-print { color: var(--muted); font-size: 12.5px; }

/* Closing */
.closing { max-width: 920px; margin: 0 auto; padding: clamp(84px, 10vw, 136px) var(--gutter); text-align: center; }
.closing h2 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 850; line-height: .98; letter-spacing: -.055em; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; }
.closing-links a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--lime); }
.closing-links a:hover { border-bottom-color: var(--brand); }

/* Footer */
.site-footer { padding-bottom: 150px; background: var(--night); color: var(--night-muted); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  gap: 48px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-word small { color: var(--night-muted); }
.footer-brand p { max-width: 30ch; margin-top: 16px; font-size: 14px; }
.footer-brand .footer-social a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-cols h2 { margin-bottom: 12px; color: #fff; font: 800 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.footer-cols a { display: block; padding: 5px 0; color: var(--night-muted); font-size: 14px; text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-legal { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); color: #8d9c91; font-size: 12.5px; }
.footer-legal p { padding-top: 22px; border-top: 1px solid var(--night-line); }

/* Language menu and footer list (added to every version by app/www_i18n.py) */
.lang-www { position: relative; }
.lang-www summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.lang-www summary::-webkit-details-marker { display: none; }
.lang-www summary:hover, .lang-www[open] summary { border-color: var(--ink); }
.lang-www summary span { max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
/* Translated pages carry longer labels: the globe stands alone, and the journal
   (English only) leaves the desktop bar; it stays in the menu and footer. */
html:not(:lang(en)) .lang-www summary { padding: 9px 11px; }
html:not(:lang(en)) .lang-www summary span, html:not(:lang(en)) .primary-nav a[href="/blog"] { display: none; }
.lang-globe { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-www .lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: min(380px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-2);
  list-style: none;
}
.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
html[dir="ltr"] .lang-menu a { text-align: left; }
html[dir="rtl"] .lang-menu a { text-align: right; }
.lang-menu a:hover { background: var(--paper); color: var(--ink); }
.lang-menu a[aria-current="true"] { background: #eef9df; color: var(--brand-2); font-weight: 800; }

.footer-languages {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
}
.footer-languages h2 { margin: 0; color: #fff; font: 800 12px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.footer-languages ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-languages a { color: var(--night-muted); font-size: 14px; line-height: 1.6; text-decoration: none; }
.footer-languages a:hover { color: #fff; }
.footer-languages a[aria-current="true"] { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; }

/* Right to left (Arabic, Urdu): arrows point the way the line reads, and web
   addresses stay left to right inside the sentence. */
[dir="rtl"] .icon:has(> use[href="#i-right"], > use[href="#i-up-right"]) { transform: scaleX(-1); }
[dir="rtl"] :is(.rail-label, .window-url, .step-domain, .node small, .orbit-core span, .mint code) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] #stonkbuilder-x-contact { right: auto; left: max(16px, env(safe-area-inset-left)); }

/* Every script gets fonts that carry it; Chinese, Japanese and Korean each get
   their own so shared characters take the right regional forms. */
:root:lang(zh) { --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif; }
:root:lang(ja) { --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
:root:lang(ko) { --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif; }
:root:lang(th) { --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma", system-ui, sans-serif; }
:root:lang(hi) { --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Mangal", system-ui, sans-serif; }
:root:lang(ar) { --font: "Noto Sans Arabic", "Segoe UI", "Geeza Pro", "Tahoma", system-ui, sans-serif; }
:root:lang(ur) { --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", "Tahoma", system-ui, sans-serif; }
:root:is(:lang(zh), :lang(ja), :lang(ko), :lang(th), :lang(hi), :lang(ar), :lang(ur)) { --font-display: var(--font); --font-serif: var(--font); }
/* Italic serif emphasis is a Latin device: other scripts keep the colour and underline only. */
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(th), :lang(hi), :lang(ar), :lang(ur)) .hero h1 em { font-style: normal; font-weight: inherit; }

/* Tracking breaks Arabic joining and crowds the other non-Latin scripts. */
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(th), :lang(hi), :lang(ar), :lang(ur)) :where(body *):not(.brand-word) { letter-spacing: 0; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
html:is(:lang(zh), :lang(ja)) body { line-break: strict; }
html:not(:lang(en)) :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }

/* Accents, stacked marks and tall scripts need more line height than the tight English display type. */
html:not(:lang(en)) .hero h1 { line-height: 1; }
html:is(:lang(vi), :lang(ru), :lang(uk), :lang(tr), :lang(de), :lang(fr), :lang(es), :lang(pt), :lang(fil), :lang(id), :lang(ms)) :is(.section-head h2, .closing h2, .product h3, .token-card h2) { line-height: 1.06; }
html:lang(vi) .hero h1 { line-height: 1.1; }
html:is(:lang(zh), :lang(ja), :lang(ko)) .hero h1 { font-size: clamp(44px, 6.6vw, 90px); line-height: 1.16; }
html:is(:lang(zh), :lang(ja), :lang(ko)) :is(.section-head h2, .closing h2, .product h3, .token-card h2) { line-height: 1.2; }
html:is(:lang(th), :lang(hi), :lang(ar)) .hero h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.3; }
html:is(:lang(th), :lang(hi), :lang(ar)) :is(.section-head h2, .closing h2, .product h3, .token-card h2, .stats dt) { line-height: 1.35; }
html:is(:lang(th), :lang(hi), :lang(ar)) body { line-height: 1.75; }
html:lang(ur) .hero h1 { font-size: clamp(40px, 5.8vw, 80px); line-height: 1.7; }
html:lang(ur) :is(.section-head h2, .closing h2, .product h3, .token-card h2, .journey h3, .promise-grid strong, .path-panel strong, .tool-card strong, .features strong) { line-height: 1.7; }
html:lang(ur) body { line-height: 2; }

/* pwa.js can show an install card on hosts other than www. */
.pwa-install-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 5px;
  width: min(330px, calc(100vw - 36px));
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-2);
  font-size: 13px;
}
.pwa-install-card > span { color: var(--muted); line-height: 1.45; }
.pwa-install-actions { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.pwa-install-actions button { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--lime); font: inherit; font-weight: 800; cursor: pointer; }
.pwa-install-actions .pwa-install-dismiss { padding: 5px 0; background: none; color: var(--muted); font-weight: 600; }

/* Scroll reveal where the browser supports view timelines. Only compact
   blocks animate, and each is fully opaque once it is entirely on screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .media-stage, .tool-card, .promise-grid li, .journey, .path-panel > li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes reveal { from { opacity: 0; translate: 0 32px; } }
  }
}

@media (min-width: 1024px) {
  .product { align-items: start; }
  .product-media { position: sticky; top: calc(var(--header-h) + 88px); }
}

@media (max-width: 1279px) {
  .lang-www summary { padding: 9px 11px; }
  .lang-www summary span { display: none; }
  html:not(:lang(en)) .token-chip span { display: none; }
}

@media (max-width: 1180px) {
  .primary-nav a:nth-child(n+4) { display: none; }
  .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { min-height: 0; }
}

@media (max-width: 1023px) {
  .primary-nav, .token-chip { display: none; }
  .menu { display: block; }
  .lang-www { position: static; }
  .lang-www .lang-menu { top: calc(100% - 2px); inset-inline: var(--gutter); width: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-stage { max-width: 720px; width: 100%; margin: 0 auto; }
  .map-layout { grid-template-columns: 1fr; }
  .journeys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { padding-bottom: 8px; }
  .dest-index { position: static; flex-wrap: wrap; justify-content: center; width: auto; margin-top: 32px; border-radius: 18px; }
  .product, .product:nth-of-type(even) { grid-template-columns: 1fr; gap: 0; }
  .product-copy { display: contents; }
  .product .product-media, .product:nth-of-type(even) .product-media { order: 1; margin-top: 30px; }
  .features, .product-note, .product-actions { order: 2; }
  .product-kicker, .product h3, .product-pitch, .features, .product-note, .product-actions { max-width: 720px; }
  .product-domain { justify-self: start; }
  .path-panel { grid-template-columns: 1fr; }
  .token-card { grid-template-columns: 1fr; }
  .token-actions { max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 819px) {
  .orbit-map { max-width: none; aspect-ratio: auto; }
  .orbit-lines { display: none; }
  .orbit-core { position: relative; top: auto; left: auto; width: 150px; margin: 0 auto 64px; translate: none; }
  .orbit-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .node { position: static; translate: none; }
  .node a { flex-direction: row; gap: 12px; padding: 12px; text-align: start; }
  .node small { white-space: normal; overflow-wrap: anywhere; }
  .journeys { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .brand-word small { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px 12px; }
  .hero-stage { aspect-ratio: 4 / 3.3; }
  .stage-art { inset: 0 0 14% 0; border-radius: 24px; }
  .float-community, .float-learn { display: none; }
  .float-quant { top: auto; inset-inline-end: -2%; bottom: 0; width: 64%; }
  .domain-rail { justify-content: flex-start; padding-bottom: 48px; }
  .rail-label { width: 100%; margin-bottom: 4px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .moved-long { display: none; }
  .moved-short { display: inline; }
  .media-stage, .product:nth-of-type(even) .media-stage { padding: 5% 5% 24%; border-radius: 22px; }
  .window-detail, .product:nth-of-type(even) .window-detail { right: 4%; left: auto; width: 64%; }
  .path-tabs label { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 11px 12px; font-size: 14px; text-align: center; }
}

@media (max-width: 480px) {
  .orbit-nodes { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  /* The language menu takes the X button's place on phones: X stays one tap
     away in the hero and in the floating contact card. */
  .nav-cta { display: none; }
  .hero-actions .button { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
}

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