/* Kaamchor design system - dark minimal (Mintlify-style), with light mode */
:root {
  --bg: #050505;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.4);
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #050505;
  --btn-secondary-bg: #050505;
  --card-bg: rgba(255, 255, 255, 0.015);
  --card-bg-hover: rgba(255, 255, 255, 0.03);
  --glow-opacity: 0.16;
  --radius: 4px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Newsreader", "Georgia", serif;
  --text-xs: 14px;
  --text-sm: 16px;
  --text-md: 18px;
  --text-lg: 24px;
  --text-xl: 76px;
  --container: 1120px;
  --section-gap: 128px;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --text: #0a0a0a;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-faint: rgba(10, 10, 10, 0.4);
  --border-hairline: rgba(10, 10, 10, 0.1);
  --border-strong: rgba(10, 10, 10, 0.22);
  --btn-primary-bg: #0a0a0a;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #fafafa;
  --card-bg: #ffffff;
  --card-bg-hover: #ffffff;
  --glow-opacity: 0.22;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 0 0 var(--section-gap); }

/* ---------- Typography ---------- */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.06;
  letter-spacing: -2px;
  max-width: 16ch;
}

h2 {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.24px;
  max-width: 44ch;
}

h3 { font-size: var(--text-sm); font-weight: 500; line-height: 24px; }

.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}

.lede { font-size: var(--text-md); color: var(--text-muted); max-width: 56ch; margin-top: 20px; }

.section-head { margin-bottom: 48px; }
.section-head .kicker { margin-bottom: 12px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.main-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }

nav.main-nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

nav.main-nav a:hover { background: rgba(255, 255, 255, 0.06); }
nav.main-nav a.active { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 150ms ease, background 150ms ease;
  font-family: inherit;
}

.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text) !important; }
.btn-primary:hover { opacity: 0.85; }

.btn-secondary { background: var(--btn-secondary-bg); color: var(--text) !important; border-color: var(--border-hairline); }
.btn-secondary:hover { background: var(--card-bg-hover); }

.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 0; }
.btn-ghost:hover { color: var(--text); }

/* ---------- Cards & grids ---------- */
.card {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--card-bg);
  transition: border-color 150ms ease;
}

.card:hover { border-color: var(--border-strong); }

/* ---------- Animated interactive background (Mintlify-style green glow) ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow .blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--glow-opacity);
  will-change: transform;
  transition: opacity 400ms ease;
}

.blob-1 {
  background: radial-gradient(circle at 30% 30%, #34d399, transparent 65%);
  top: -20vmax; left: -12vmax;
  animation: drift1 26s ease-in-out infinite alternate;
}

.blob-2 {
  background: radial-gradient(circle at 60% 40%, #10b981, transparent 60%);
  bottom: -25vmax; right: -15vmax;
  width: 55vmax; height: 55vmax;
  animation: drift2 32s ease-in-out infinite alternate;
}

.blob-3 {
  background: radial-gradient(circle at 50% 50%, #6ee7b7, transparent 60%);
  top: 35%; left: 45%;
  width: 38vmax; height: 38vmax;
  opacity: calc(var(--glow-opacity) * 0.6);
  animation: drift3 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12vw, 8vh) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-10vw, -12vh) scale(0.95); }
}
@keyframes drift3 {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-40%, -60%) rotate(40deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  color: var(--text);
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 150ms ease;
  margin-left: 12px;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-strong); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: var(--text-sm); }

.card .icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

/* stat cards */
.stat { text-align: left; }
.stat .num {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -1px;
  line-height: 1.1;
  display: block;
  margin-bottom: 12px;
}
.stat p { color: var(--text-muted); }

/* ---------- Lists ---------- */
.checklist { list-style: none; display: grid; gap: 20px; }
.checklist li { display: flex; gap: 14px; color: var(--text-muted); max-width: 62ch; }
.checklist li::before { content: "→"; color: var(--text-faint); flex-shrink: 0; }
.checklist li strong { color: var(--text); font-weight: 500; }

/* ---------- FAQ ---------- */

/* ---------- Hero ---------- */
.hero { padding: 120px 0 200px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background: var(--card-bg);
}
.cta-band h2 { margin: 0; }
.cta-band .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border-hairline); padding: 64px 0 48px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-grid h3 { color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-muted); font-size: var(--text-xs); }
.footer-grid a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--text-faint); font-size: var(--text-xs);
  align-items: center;
}

/* ---------- Assessment ---------- */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.progress-track {
  height: 2px; background: var(--border-hairline);
  border-radius: 2px; overflow: hidden; margin-bottom: 48px;
}
.progress-fill { height: 100%; background: var(--btn-primary-bg); width: 100%; transform: scaleX(0); transform-origin: left; transition: transform 250ms ease; }

.q-count { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.q-text { font-size: var(--text-lg); font-weight: 500; line-height: 30px; letter-spacing: -0.24px; margin-bottom: 12px; }
.q-hint { color: var(--text-faint); font-size: var(--text-xs); margin-bottom: 32px; }

.option {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  font-size: var(--text-sm);
}
.option:hover { border-color: var(--border-strong); background: var(--card-bg-hover); }
.option input { accent-color: var(--btn-primary-bg); }
.option .opt-label { color: var(--text-faint); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; width: 18px; }

.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* meters */
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.meter-card { border: 1px solid var(--border-hairline); border-radius: var(--radius); padding: 28px; }
.meter-card .label { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 16px; }
.meter-card .score {
  font-family: var(--font-display); font-size: 56px; letter-spacing: -2px; line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.meter-card .score span { font-size: 20px; color: var(--text-faint); letter-spacing: 0; }
.meter-track { height: 2px; background: var(--border-hairline); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--btn-primary-bg); width: 100%; transform: scaleX(0); transform-origin: left; transition: transform 600ms ease; }
.meter-card .band { margin-top: 14px; color: var(--text-muted); font-size: var(--text-xs); }

.report-block { border-top: 1px solid var(--border-hairline); padding: 32px 0; }
.report-block h3 { margin-bottom: 16px; }
.report-block li { color: var(--text-muted); margin-bottom: 10px; max-width: 66ch; }
.report-block ul { list-style: none; }
.report-block li::before { content: "// "; color: var(--text-faint); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- Manifesto ---------- */
.truth { border-top: 1px solid var(--border-hairline); padding: 40px 0; display: grid; grid-template-columns: 140px 1fr; gap: 32px; }
.truth .tag { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--text-faint); }
.truth h3 { font-size: var(--text-md); font-weight: 500; margin-bottom: 10px; letter-spacing: -0.2px; }
.truth p { color: var(--text-muted); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.contact-cards .card { padding: 40px; }
.contact-cards .card .icon { font-size: 24px; margin-bottom: 20px; }
.contact-cards .card h3 { font-size: var(--text-md); }
.contact-cards .card p { margin-top: 8px; margin-bottom: 24px; }

/* ---------- Game ---------- */
.game-wrap { border: 1px solid var(--border-hairline); border-radius: var(--radius); background: rgba(255,255,255,0.015); padding: 16px; }
canvas#game-canvas { width: 100%; display: block; border-radius: var(--radius); background: #0a0a0a; }
.game-hud { display: flex; justify-content: space-between; padding: 12px 8px 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --text-xl: 44px; --section-gap: 88px; }
  h1 { letter-spacing: -1.5px; }
  .grid-3, .grid-2, .meters, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .truth { grid-template-columns: 1fr; gap: 12px; }
  nav.main-nav a { padding: 6px 8px; }
  .hero { padding-top: 80px; }
  #hero-ribbon { top: auto; bottom: -160px; height: 200px; left: -40px; right: -40px; opacity: 0.55; }
}

@media (max-width: 600px) {
  nav.main-nav { display: none; }
  .cta-band { padding: 40px 24px; }
}

/* ================= Mintlify-structure additions ================= */

/* ---------- hero ribbon canvas ---------- */
.hero {
  position: relative;
}
#hero-ribbon {
  position: absolute;
  left: -40px;
  right: -40px;
  bottom: -100px;
  height: 140%;
  z-index: 0;
  opacity: 0.72;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- odometer ---------- */

.odo-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: top;
  line-height: 1;
}
.odo-col {
  display: flex;
  flex-direction: column;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.odo-col span { height: 1em; line-height: 1; display: block; }
.odo-sep { display: inline-block; height: 1em; line-height: 1; vertical-align: top; margin: 0 1px; }

/* ---------- logo row ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 48px;
  margin-top: 48px;
  opacity: 0.55;
}
.logo-row .wordmark {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
  filter: grayscale(1);
}

/* ---------- stats marquee ---------- */
.marquee-section { overflow: hidden; }
.marquee-caption {
  text-align: center;
  color: var(--text-faint);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  margin-bottom: 28px;
}
.marquee {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
}
.stat-item .stat-label { color: var(--text-muted); font-size: var(--text-xs); margin-top: 6px; }

/* ---------- blog cards ---------- */
.post-card .post-meta {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* ---------- Mintlify-style footer columns ---------- */
.footer-grid.footer-5 { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer-grid.footer-5 { grid-template-columns: 1fr 1fr; } }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-status .live-dot { background: #18e299; box-shadow: 0 0 8px rgba(24, 226, 153, 0.8); }


/* ---------- delivery process timeline ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 32px;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.process-step { text-align: left; position: relative; }
.process-node {
  width: 24px;
  height: 24px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid #18e299;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px rgba(24, 226, 153, 0.35);
  animation: node-pulse 3s ease-in-out infinite;
}
.process-node span {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.process-step:nth-child(2) .process-node { animation-delay: 0.7s; }
.process-step:nth-child(3) .process-node { animation-delay: 1.4s; }
.process-step:nth-child(4) .process-node { animation-delay: 2.1s; }
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(24, 226, 153, 0.25); }
  50% { box-shadow: 0 0 18px rgba(24, 226, 153, 0.6); }
}
.process-icon {
  width: 24px;
  height: 24px;
  margin: 36px auto 12px;
  color: #18e299;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}
.process-icon svg { width: 22px; height: 22px; }
.process-step:hover .process-icon {
  transform: translateY(-3px);
}
.process-icon .lens { animation: lens-scan 2.6s ease-in-out infinite; }
@keyframes lens-scan {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(1.5px, -1.5px); }
  60% { transform: translate(-1.5px, 1px); }
}
.process-icon .handle { transform-origin: 15.5px 15.5px; animation: handle-wiggle 2.6s ease-in-out infinite; }
@keyframes handle-wiggle {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-12deg); }
  70% { transform: rotate(8deg); }
}
.process-icon .gear-ring,
.process-icon .gear-tick { transform-origin: 12px 12px; animation: gear-spin 9s linear infinite; }
@keyframes gear-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.process-icon .plug-left { animation: plug-l 2.2s ease-in-out infinite; }
.process-icon .plug-right { animation: plug-r 2.2s ease-in-out infinite; }
.process-icon .plug-cable { animation: plug-spark 2.2s ease-in-out infinite; }
@keyframes plug-l {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(1.5px); opacity: 0.7; }
}
@keyframes plug-r {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-1.5px); opacity: 0.7; }
}
@keyframes plug-spark {
  0%, 100% { stroke-dasharray: 0 2; opacity: 0.4; }
  50% { stroke-dasharray: 2 0; opacity: 1; }
}
.process-icon .chart-line { stroke-dasharray: 24; stroke-dashoffset: 24; animation: chart-draw 2.8s ease-in-out infinite; }
.process-icon .chart-arrow { opacity: 0; animation: chart-pop 2.8s ease-in-out infinite; }
@keyframes chart-draw {
  0% { stroke-dashoffset: 24; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes chart-pop {
  0%, 45% { opacity: 0; transform: translate(2px, 2px); }
  60%, 100% { opacity: 1; transform: translate(0, 0); }
}
.process-step h3 { text-align: center; font-size: var(--text-md); }
.process-sub { text-align: center; color: var(--text-muted); font-size: var(--text-xs); margin: 6px 0 20px; }
@media (prefers-reduced-motion: reduce) {
  .process-node, .process-icon, .process-icon * { animation: none !important; }
}
@media (max-width: 1000px) {
  .process-track { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process-track::before { display: none; }
}
@media (max-width: 600px) {
  .process-track { grid-template-columns: 1fr; }
}

/* ---------- capabilities ---------- */
.cap-card { display: flex; flex-direction: column; }
.cap-sub { color: var(--text-muted); font-size: var(--text-sm); margin: 8px 0 24px; }
.cap-list { list-style: none; display: grid; gap: 16px; }
.cap-list li { display: grid; gap: 2px; }
.cap-list strong { font-weight: 500; font-size: var(--text-xs); color: var(--text); }
.cap-list span { color: var(--text-muted); font-size: 13px; line-height: 20px; max-width: 52ch; }

/* ---------- outcomes ---------- */
.outcomes-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.outcome-item {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card-bg);
  transition: border-color 150ms ease;
}
.outcome-item:hover { border-color: var(--border-strong); }
.outcome-item h3 { font-size: var(--text-sm); font-weight: 500; line-height: 22px; }
@media (max-width: 1000px) { .outcomes-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .outcomes-track { grid-template-columns: 1fr; } }

/* ---------- consistent animated SVG icon system (site-wide) ---------- */
.sys-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: #18e299;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}
.sys-icon svg { width: 22px; height: 22px; overflow: visible; }
.card:hover .sys-icon { transform: translateY(-3px); }

.i-spin, .i-spin-slow { transform-origin: 12px 12px; }
.i-spin { animation: gear-spin 9s linear infinite; }
.i-spin-slow { animation: gear-spin 16s linear infinite; }
.i-scan { animation: lens-scan 2.6s ease-in-out infinite; }
.i-wiggle { transform-origin: 15.5px 15.5px; animation: handle-wiggle 2.6s ease-in-out infinite; }
.i-dash { stroke-dasharray: 20; animation: icon-dash 3s ease-in-out infinite; }
.i-dash.d2, .i-dash.d3 { animation-delay: 0.4s; }
@keyframes icon-dash {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 12; opacity: 0.55; }
}
.i-blink { animation: icon-blink 2.2s ease-in-out infinite; }
.i-blink.d2 { animation-delay: 0.35s; }
.i-blink.d3 { animation-delay: 0.7s; }
@keyframes icon-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.i-pulse { animation: icon-pulse 2.6s ease-in-out infinite; transform-origin: center; }
.i-pulse.d2 { animation-delay: 0.3s; }
.i-pulse.d3 { animation-delay: 0.6s; }
.i-pulse.d4 { animation-delay: 0.9s; }
.i-pulse.d5 { animation-delay: 1.2s; }
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}
.i-wave { animation: icon-wave 2.4s ease-in-out infinite; }
.i-wave.d2 { animation-delay: 0.2s; }
.i-wave.d3 { animation-delay: 0.4s; }
.i-wave.d4 { animation-delay: 0.6s; }
@keyframes icon-wave { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.i-float { animation: icon-float 3s ease-in-out infinite; }
.i-float.d2 { animation-delay: 0.6s; }
@keyframes icon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
.i-shake { animation: icon-shake 3s ease-in-out infinite; }
@keyframes icon-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(0.8px); } 60% { transform: translateX(-0.8px); } }
.i-bolt { animation: icon-bolt 2.6s ease-in-out infinite; transform-origin: 12px 12px; }
@keyframes icon-bolt { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.7; } }
.i-draw { stroke-dasharray: 55; stroke-dashoffset: 55; animation: icon-draw 3.2s ease-in-out infinite; }
.i-draw.d2 { animation-delay: 0.35s; }
@keyframes icon-draw {
  0% { stroke-dashoffset: 55; }
  45%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -55; }
}
.i-bar { transform-origin: bottom; animation: icon-bar 2.8s ease-in-out infinite; }
.i-bar.d2 { animation-delay: 0.3s; }
.i-bar.d3 { animation-delay: 0.6s; }
@keyframes icon-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.8); transform-origin: bottom; }
}
.i-flap { transform-origin: 3.5px 6.5px; animation: icon-flap 3s ease-in-out infinite; }
@keyframes icon-flap { 0%, 100% { transform: rotate(0); opacity: 1; } 50% { transform: rotate(-4deg); opacity: 0.7; } }

@media (prefers-reduced-motion: reduce) {
  .sys-icon *, .sys-icon { animation: none !important; }
}

/* ---------- team ---------- */
.team-grid { gap: 16px; }
.team-card { padding: 40px; }
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 16px rgba(24, 226, 153, 0.2);
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 400ms ease;
}
.team-card:hover .team-avatar {
  box-shadow: 0 0 28px rgba(24, 226, 153, 0.45);
  transform: scale(1.03);
}
.team-card:hover .team-avatar img {
  filter: grayscale(0) contrast(1);
}
.team-role { color: var(--text-muted); font-size: var(--text-xs); margin: 4px 0 16px; }
.team-card p:last-child { color: var(--text-muted); font-size: var(--text-sm); line-height: 26px; }

/* ---------- full-page ribbon background (team page) ---------- */
.page-ribbon {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
:root[data-theme="light"] .page-ribbon { opacity: 0.28; }

/* ---------- light mode: card elevation (what we build + all cards) ---------- */
:root[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(10, 10, 10, 0.08);
  transition: border-color 150ms ease, transform 200ms ease;
}
:root[data-theme="light"] .card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  transform: translateY(-2px);
}
:root[data-theme="light"] .sys-icon {
  background: transparent;
}
:root[data-theme="light"] .card:hover .sys-icon {
  transform: translateY(-3px);
}

/* odometer baseline unification (must come after marquee rules) */
.stat-item .stat-num { line-height: 1; }

/* ---------- mobile hamburger nav ---------- */
nav.main-nav .m-cta { display: none; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 8px;
  margin-left: 8px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 250ms ease, opacity 200ms ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border-hairline);
    border-radius: 8px;
    padding: 16px;
    z-index: 100;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 12px 14px;
    font-size: var(--text-sm);
  }
  nav.main-nav a.active { color: var(--text-muted); }
  .header-inner > div:last-child .btn { display: none; }
  .header-inner > div:last-child { gap: 0; }
  .menu-toggle { display: inline-flex; }
  /* CTA buttons live in the hamburger panel on mobile */
  nav.main-nav .m-cta { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .hero-visual { border-radius: 8px; }
}

/* team cards sit opaque on the ribbon background */
.team-grid .card {
  background: #0a0a0b;
}
:root[data-theme="light"] .team-grid .card { background: #ffffff; }

/* ---------- logo: image in dark, wordmark in light ---------- */
.logo-img { display: inline-block; height: 26px; width: auto; }
.logo-text { display: none; font-weight: 600; letter-spacing: -0.02em; }
:root[data-theme="light"] .logo-img { display: inline-block; filter: invert(1); }
:root[data-theme="light"] .logo-text { display: none; }

/* ---------- footer socials ---------- */
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.socials a:hover {
  color: #18e299;
  border-color: #18e299;
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; }
.foot-bottom { align-items: center; justify-content: space-between; }

/* ---------- hero composition: scrim + left-sided text (from prototype) ---------- */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(48% 55% at 26% 46%, rgba(5,5,5,.72) 0%, rgba(5,5,5,.45) 45%, rgba(5,5,5,0) 78%);
}
:root[data-theme="light"] .hero-scrim {
  background: radial-gradient(48% 55% at 26% 46%, rgba(250,250,250,.85) 0%, rgba(250,250,250,.55) 45%, rgba(250,250,250,0) 78%);
}
.hero .container {
  position: relative; z-index: 2;
  margin: 0; max-width: none;
  padding-left: 7vw; padding-right: 24px;
}
#hero-ribbon { left: -40px; right: -40px; bottom: -100px; height: 140%; }
.page-ribbon { inset: -40px; width: calc(100% + 80px); height: calc(100vh + 80px); }

/* ---------- footer v2 ---------- */
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap;
  padding-bottom: 64px; border-bottom: 1px solid var(--border-hairline);
}
.foot-brand img { height: 30px; width: auto; }
:root[data-theme="light"] .foot-brand img { filter: invert(1); }
.foot-brand p { color: var(--text-muted); font-size: 14px; max-width: 34ch; margin-top: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0; }
.foot-cols h3 {
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px;
}
.foot-cols ul { list-style: none; display: grid; gap: 12px; }
.foot-cols a { color: var(--text-muted); font-size: 14px; }
.foot-cols a:hover { color: var(--text); }
footer.site-footer .foot-bottom { margin-top: 0; padding-top: 28px; }
footer.site-footer { padding: 96px 0 40px; }
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Medium blog cards ---------- */
.blog-card { display: flex; flex-direction: column; gap: 12px; background: #0a0a0b; }
:root[data-theme="light"] .blog-card { background: #ffffff; }
.blog-media {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
}
.blog-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card p { color: var(--text-muted); font-size: var(--text-xs); line-height: 20px; }
.blog-card .btn-ghost { margin-top: auto; }

/* ---------- Blog listing grid ---------- */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-listing-grid { grid-template-columns: 1fr; } }
.blog-listing-grid .blog-card { display: flex; flex-direction: column; }
.blog-listing-grid .blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.blog-listing-grid .blog-card-body h3 { font-size: var(--text-md); font-weight: 500; line-height: 26px; letter-spacing: -0.2px; margin-bottom: 8px; }
.blog-listing-grid .blog-card-body p { color: var(--text-muted); font-size: var(--text-xs); line-height: 20px; flex: 1; }

/* ---------- Tag pill ---------- */
.tag-pill {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #18e299;
  border: 1px solid rgba(24, 226, 153, 0.3);
  border-radius: 20px;
  padding: 3px 10px;
  background: rgba(24, 226, 153, 0.06);
}

/* ---------- Blog post (article page) ---------- */
.blog-post { padding: 48px 0 var(--section-gap); }
.blog-post .container { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 32px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 150ms ease; }
.breadcrumb a:hover { color: #18e299; }
.breadcrumb span[aria-hidden] { color: var(--text-faint); }

/* post meta */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* h1 */
.blog-post h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 18ch;
  margin-bottom: 32px;
}
@media (max-width: 600px) { .blog-post h1 { font-size: 36px; letter-spacing: -1px; } }

/* hero image */
.blog-hero-image {
  margin: 0 0 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}
.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* article content */
.blog-content {
  font-size: var(--text-sm);
  line-height: 28px;
  color: var(--text);
}
.blog-content .blog-lead {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 28px;
  margin-bottom: 32px;
  max-width: 60ch;
}
.blog-content p { margin-bottom: 24px; max-width: 65ch; }
.blog-content h2 {
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.24px;
  margin: 48px 0 20px;
  max-width: 40ch;
}
.blog-content strong { font-weight: 600; color: var(--text); }
.blog-content a { color: #18e299; text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: #6ee7b7; }

/* author box */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-hairline);
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #18e299;
  box-shadow: 0 0 12px rgba(24, 226, 153, 0.2);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 400ms ease; }
.author-box:hover .author-avatar img { filter: grayscale(0) contrast(1); }
.author-name { font-weight: 600; font-size: var(--text-sm); margin-bottom: 2px; }
.author-title { color: var(--text-faint); font-size: 13px; margin-bottom: 12px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.author-box p { color: var(--text-muted); font-size: 13px; line-height: 20px; max-width: 52ch; }
@media (max-width: 600px) { .author-box { flex-direction: column; gap: 16px; } }

/* post nav row */
.blog-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
}

/* related posts */
.related-posts { padding-top: var(--section-gap); }

/* light mode blog card */
:root[data-theme="light"] .blog-listing-grid .blog-card {
  background: #ffffff;
  border-color: rgba(10, 10, 10, 0.08);
}
:root[data-theme="light"] .blog-listing-grid .blog-card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  transform: translateY(-2px);
}

/* ---------- FDE Roadmap ---------- */
.roadmap-track { display: grid; gap: 0; }
.roadmap-stage {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}
.roadmap-stage:last-child { border-bottom: none; }
.roadmap-num {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -2px;
  color: #18e299;
  line-height: 1;
  opacity: 0.6;
}
.roadmap-content h3 { font-size: var(--text-lg); font-weight: 500; margin-bottom: 8px; }
.roadmap-desc { color: var(--text-muted); font-size: var(--text-sm); max-width: 52ch; margin-bottom: 20px; }
.roadmap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.roadmap-list li {
  color: var(--text-muted);
  font-size: 13px;
  padding-left: 20px;
  position: relative;
}
.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18e299;
  opacity: 0.6;
}
.roadmap-outcome {
  color: var(--text-muted);
  font-size: var(--text-xs);
  padding: 16px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.roadmap-outcome strong { color: #18e299; font-weight: 500; }
@media (max-width: 600px) {
  .roadmap-stage { grid-template-columns: 1fr; gap: 12px; }
  .roadmap-num { font-size: 32px; }
  .roadmap-list { grid-template-columns: 1fr; }
}
