/* Metiora marketing — OKX-inspired dark + lime, production layout */

:root,
[data-theme="dark"] {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-card: rgba(18, 18, 18, 0.72);
  --bg-card-solid: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;
  --lime: #b8ff1a;
  --lime-deep: #8fd400;
  --lime-glow: rgba(184, 255, 26, 0.18);
  --lime-soft: rgba(184, 255, 26, 0.08);
  --okx-green: #00c853;
  --code-bg: #080808;
  --nav-bg: rgba(5, 5, 5, 0.78);
  --panel-top: rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  /* Same left/right inset for nav, hero, about, footer — never hug the screen edge */
  --page-gutter: clamp(1.5rem, 5vw, 3rem);
  --nav-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6f2;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-solid: #ffffff;
  --line: rgba(10, 20, 10, 0.1);
  --line-strong: rgba(10, 20, 10, 0.16);
  --text: #10140f;
  --text-muted: #4a5548;
  --text-dim: #6d786a;
  --lime: #6bb000;
  --lime-deep: #558c00;
  --lime-glow: rgba(107, 176, 0, 0.2);
  --lime-soft: rgba(107, 176, 0, 0.1);
  --okx-green: #00a844;
  --code-bg: #eef2ea;
  --nav-bg: rgba(244, 246, 242, 0.86);
  --panel-top: rgba(0, 0, 0, 0.04);
  --shadow: 0 20px 50px rgba(20, 30, 15, 0.12);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  hyphens: none;
  -webkit-hyphens: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  hyphens: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

/* —— Animated background (OKX dark market board feel) —— */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(184, 255, 26, 0.07), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(0, 200, 83, 0.05), transparent 50%),
    var(--bg);
}

.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(800px) rotateX(58deg) translateY(-12%) scale(1.4);
  transform-origin: center top;
  animation: grid-drift 28s linear infinite;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 88%);
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 56px 56px;
  }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
  transition: transform 0.15s linear;
}

.bg-orb--a {
  width: 420px;
  height: 420px;
  top: 8%;
  right: 8%;
  background: radial-gradient(circle, rgba(184, 255, 26, 0.35), transparent 70%);
}

.bg-orb--b {
  width: 360px;
  height: 360px;
  bottom: 12%;
  left: 4%;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.22), transparent 70%);
}

.bg-orb--c {
  width: 280px;
  height: 280px;
  top: 48%;
  left: 42%;
  background: radial-gradient(circle, rgba(184, 255, 26, 0.12), transparent 70%);
}

.bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(184, 255, 26, 0.04),
    transparent
  );
  animation: scan 9s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes scan {
  0% {
    top: -10%;
  }
  100% {
    top: 110%;
  }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Layout shell —— */
.shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.is-scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: rgba(184, 255, 26, 0.35);
  background: var(--lime-soft);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: inline;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(184, 255, 26, 0.25), 0 0 24px var(--lime-glow);
}

.brand span {
  font-size: 1.05rem;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(5, 5, 5, 0.96);
  z-index: 40;
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card-solid);
  color: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--lime);
  color: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(184, 255, 26, 0.3), 0 8px 32px var(--lime-glow);
}

.btn--primary:hover {
  background: #c8ff45;
  box-shadow: 0 0 0 1px rgba(184, 255, 26, 0.45), 0 12px 40px rgba(184, 255, 26, 0.28);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(184, 255, 26, 0.35);
  background: var(--lime-soft);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* —— Hero —— */
.hero {
  padding: 2.5rem 0 3rem;
  position: relative;
  display: flex;
  align-items: center;
}

.hero__stage {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  align-items: center;
  min-width: 0;
}

.hero__copy {
  min-width: 0;
  max-width: 34rem;
  /* No extra side padding — container gutter is the page edge inset */
  padding-inline: 0;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 1.15rem;
  letter-spacing: 0.02em;
}

.hero__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 780;
  max-width: none;
  margin: 0 0 1.1rem;
}

.hero__line {
  display: block;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
  text-shadow: 0 0 40px var(--lime-glow);
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 34ch;
  line-height: 1.55;
  margin: 0 0 1.6rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Symmetric 3×3: 6 equal tiles + centered logo (no vertical text) */
.hero-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-monogram {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
  min-width: 0;
  min-height: 0;
}

.hero-monogram img {
  width: min(72%, 104px);
  height: min(72%, 104px);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(184, 255, 26, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 64px var(--lime-glow);
  animation: monogram-float 7s ease-in-out infinite;
}

@keyframes monogram-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.mosaic-tile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  min-width: 0;
  min-height: 0;
  text-align: center;
  writing-mode: horizontal-tb;
  transition:
    transform 0.28s var(--ease),
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.28s;
}

.mosaic-tile:hover {
  border-color: rgba(184, 255, 26, 0.45);
  background: rgba(184, 255, 26, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
  z-index: 3;
}

.mosaic-tile__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mosaic-tile__price {
  display: none;
}

/* Row1: Blueprint · Investor · Grant */
.mosaic-tile--a {
  grid-column: 1;
  grid-row: 1;
}
.mosaic-tile--b {
  grid-column: 2;
  grid-row: 1;
}
.mosaic-tile--c {
  grid-column: 3;
  grid-row: 1;
}
/* Row2: Partner · logo · Token */
.mosaic-tile--d {
  grid-column: 1;
  grid-row: 2;
}
.mosaic-tile--e {
  grid-column: 3;
  grid-row: 2;
}
/* Row3: Health centered under logo */
.mosaic-tile--f {
  grid-column: 2;
  grid-row: 3;
}

.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
}

.chip--live {
  color: var(--lime);
  border-color: rgba(184, 255, 26, 0.3);
  background: var(--lime-soft);
}

/* —— Sections —— */
section {
  padding: 4.5rem 0;
  position: relative;
}

.section-head {
  max-width: 36rem;
  margin: 0 0 2rem;
  /* Aligns with hero copy left edge (same container gutter) */
  text-align: left;
}

.section-kicker {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: 1rem;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.35rem 1.4rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 255, 26, 0.28);
  background: rgba(22, 22, 22, 0.9);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: var(--lime-soft);
  border: 1px solid rgba(184, 255, 26, 0.2);
  color: var(--lime);
  font-weight: 800;
  font-size: 0.85rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— Services —— */
.services-grid {
  display: grid;
  gap: 0.9rem;
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: 1.25rem 1.3rem 1.35rem;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 255, 26, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.service-card h3 {
  font-size: 1.05rem;
}

.price {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--lime);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.endpoint {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  word-break: break-all;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}

/* —— How —— */
.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0a0a0a;
  background: var(--lime);
  box-shadow: 0 0 20px var(--lime-glow);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--lime);
  background: var(--lime-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 12, 0.8);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* —— OKX.AI marketplace band —— */
.marketplace-band {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  border: 1px solid rgba(184, 255, 26, 0.28);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(520px 220px at 12% 0%, rgba(184, 255, 26, 0.14), transparent 55%),
    radial-gradient(480px 200px at 100% 100%, rgba(0, 200, 120, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(18, 20, 16, 0.96), rgba(6, 8, 6, 0.98));
  padding: 1.75rem 1.4rem 1.85rem;
  margin: 0.5rem 0 0.25rem;
}

@media (min-width: 860px) {
  .marketplace-band {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.75fr);
    gap: 1.5rem;
    padding: 2rem 1.75rem;
  }
}

.marketplace-band h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.65rem;
}

.marketplace-band__copy p {
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.marketplace-band__facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.marketplace-band__facts li {
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.marketplace-band__facts code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--lime-deep);
}

.marketplace-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.marketplace-band__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 26, 0.35);
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  min-height: 100%;
}

.marketplace-band__card:hover {
  border-color: rgba(184, 255, 26, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.marketplace-band__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--lime);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.25rem;
}

.marketplace-band__card strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--lime);
  word-break: break-all;
}

.marketplace-band__card > span:not(.marketplace-band__badge):not(.marketplace-band__go) {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.marketplace-band__go {
  margin-top: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

[data-theme="light"] .marketplace-band {
  background:
    radial-gradient(520px 220px at 12% 0%, rgba(140, 200, 20, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 246, 242, 0.98));
}

[data-theme="light"] .marketplace-band__card {
  background: rgba(255, 255, 255, 0.75);
}

/* —— Links / CTA —— */
.cta-band {
  border: 1px solid rgba(184, 255, 26, 0.2);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(184, 255, 26, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.98));
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 42ch;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.link-card {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.link-card:hover {
  border-color: rgba(184, 255, 26, 0.35);
  transform: translateY(-2px);
}

.link-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.link-card span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--lime);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Desktop —— */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
    min-height: auto;
  }

  .hero__stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  .hero__copy {
    max-width: 34rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 3.6vw, 3.25rem);
  }

  .hero-mosaic {
    margin-inline: auto 0;
    width: min(100%, 340px);
    justify-self: end;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-grid,
  .bg-scan,
  .hero__kicker::before,
  .hero-monogram img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Inner pages: docs + blog —— */
.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.75rem;
  max-width: 20ch;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
  align-items: start;
}

@media (min-width: 960px) {
  .page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
  }
}

.side-nav {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1rem;
}

.side-nav h3,
.toc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.side-nav a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--text);
  background: var(--lime-soft);
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 1.4rem 1.45rem 1.55rem;
  margin-bottom: 1rem;
}

.content-card h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.content-card h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.content-card p,
.content-card li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.content-card ul,
.content-card ol {
  padding-left: 1.2rem;
  margin-bottom: 0.9rem;
}

.content-card ul {
  list-style: disc;
}

.content-card ol {
  list-style: decimal;
}

.content-card code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--lime-deep);
  background: var(--lime-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.content-card pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  overflow-x: auto;
  color: var(--text-muted);
  margin: 0.75rem 0 1.1rem;
  line-height: 1.55;
}

.blog-list {
  display: grid;
  gap: 0.9rem;
}

.blog-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 255, 26, 0.3);
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.blog-card h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.prose {
  max-width: 68ch;
}

.doc-meta,
.blog-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0.75rem 0 1.25rem;
}

.blog-byline strong {
  color: var(--text-muted);
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  margin-right: 0.35rem;
}

[data-theme="light"] .bg-stage {
  background: radial-gradient(1000px 600px at 70% -10%, rgba(107, 176, 0, 0.1), transparent 55%),
    radial-gradient(800px 400px at 10% 30%, rgba(0, 168, 68, 0.06), transparent 50%),
    var(--bg);
}

[data-theme="light"] .bg-grid {
  opacity: 0.35;
}

[data-theme="light"] .nav-drawer {
  background: rgba(244, 246, 242, 0.98);
}
