/* =============================================
   ATOMIC.DEV — design tokens & base
   ============================================= */

:root {
  --bg: #07041a;
  --bg-2: #0c0726;
  --bg-3: #130a36;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4eefe;
  --text-2: rgba(244, 238, 254, 0.66);
  --text-3: rgba(244, 238, 254, 0.42);
  --text-dim: rgba(244, 238, 254, 0.28);

  --pink: #ff0a8c;
  --pink-soft: #ff4ea8;
  --pink-deep: #c9006a;
  --magenta: #ec1cb7;
  --violet: #8c2eff;
  --cyan: #4cdcff;
  --green: #4ade80;

  --sans: "GT America", "Inter Tight", -apple-system, "Helvetica Neue", system-ui, sans-serif;
  --mono: "GT America Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 10, 140, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(140, 46, 255, 0.08), transparent 70%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* shared grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* =============================================
   LAYOUT
   ============================================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  position: relative;
}

section { position: relative; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 4, 26, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.brand img { display: block; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ff4ea8, var(--pink) 50%, var(--violet) 100%);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 24px rgba(255, 10, 140, 0.4);
}
.brand-mark::after {
  content: "";
  width: 50%;
  height: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.95);
  border-bottom-color: transparent;
  transform: rotate(135deg);
}
.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 20px rgba(255, 10, 140, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(255, 10, 140, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #fff; }

/* Hamburger toggle — hidden on desktop, shown on mobile. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
  transition: background 150ms ease, border-color 150ms ease;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle-bars {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.nav-open .nav-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile menu panel + scrim — desktop-hidden defaults */
.nav-mobile {
  display: none;
}
.nav-mobile-scrim { display: none; }

@media (max-width: 760px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-mobile {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(7, 4, 26, 0.96);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--border-strong);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 280ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease;
  }
  .nav-open .nav-mobile {
    max-height: calc(100vh - 80px);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-mobile-inner {
    display: flex;
    flex-direction: column;
    padding: 12px max(24px, env(safe-area-inset-left)) 24px;
    max-width: var(--maxw, 1240px);
    margin: 0 auto;
  }
  .nav-mobile-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 150ms ease, transform 220ms ease;
  }
  .nav-mobile-link:hover { color: var(--pink); }
  .nav-mobile-link.active { color: var(--pink); }
  .nav-mobile-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.1em;
  }
  .nav-mobile-link.active .nav-mobile-num { color: var(--pink); }
  .nav-mobile-arrow {
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 16px;
    transition: transform 200ms ease, color 150ms ease;
  }
  .nav-mobile-link:hover .nav-mobile-arrow {
    color: var(--pink);
    transform: translateX(4px);
  }
  .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--pink);
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    box-shadow:
      0 4px 20px rgba(255, 10, 140, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  /* Stagger the link entrance when the menu opens */
  .nav-open .nav-mobile-link,
  .nav-open .nav-mobile-cta {
    animation: navItemIn 360ms cubic-bezier(.22,.61,.36,1) both;
  }
  .nav-open .nav-mobile-link:nth-child(1) { animation-delay: 60ms; }
  .nav-open .nav-mobile-link:nth-child(2) { animation-delay: 110ms; }
  .nav-open .nav-mobile-link:nth-child(3) { animation-delay: 160ms; }
  .nav-open .nav-mobile-link:nth-child(4) { animation-delay: 210ms; }
  .nav-open .nav-mobile-cta { animation-delay: 280ms; }

  .nav-mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 4, 26, 0.5);
    backdrop-filter: blur(2px);
    z-index: -1;
    animation: scrimIn 220ms ease both;
  }
}

@keyframes navItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrimIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 7vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface);
  margin-bottom: 24px;
  white-space: nowrap;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow .v {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 10, 140, 0.15);
  color: var(--pink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

.h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  text-wrap: balance;
}
.h1 .accent {
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}
.btn-primary {
  background: var(--pink);
  color: white;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 30px rgba(255, 10, 140, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(255, 10, 140, 0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.22); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat .n {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .l {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* =============================================
   TERMINAL (reusable)
   ============================================= */
.terminal {
  position: relative;
  background: linear-gradient(180deg, #0e0727 0%, #0a0420 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  max-height: min(560px, 72vh);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.02),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 200px at 50% -20%, rgba(255, 10, 140, 0.15), transparent 60%);
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a1f4a; }
.terminal-bar .dot:nth-child(1) { background: #ff5f57; }
.terminal-bar .dot:nth-child(2) { background: #febc2e; }
.terminal-bar .dot:nth-child(3) { background: #28c840; }
.terminal-bar .title { margin-left: auto; opacity: 0.6; }

.terminal-body {
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(244, 238, 254, 0.78);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--pink-soft); }
.term-cmd { color: var(--text); font-weight: 500; }
.term-arg { color: var(--cyan); }
.term-flag { color: var(--violet); }
.term-comment { color: var(--text-3); }
.term-path { color: var(--text-2); }
.term-num { color: var(--magenta); }
.term-ok { color: var(--green); }
.term-kw { color: var(--pink-soft); }
.term-str { color: #ffd166; }
.term-info { color: var(--cyan); opacity: 0.85; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--pink);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =============================================
   SECTION HEADER
   ============================================= */
.section {
  padding: clamp(72px, 11vw, 140px) 0;
  position: relative;
}
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--pink-soft);
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 1px solid rgba(255, 10, 140, 0.25);
  border-radius: 999px;
  background: rgba(255, 10, 140, 0.08);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 22ch;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0;
}

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 760px) {
  .stats-band { grid-template-columns: 1fr; }
}
.stat-cell {
  padding: 32px 28px;
  background: var(--bg-2);
  position: relative;
}
.stat-cell .n {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cell .sub {
  font-size: 14px;
  color: var(--text);
  margin-top: 14px;
  font-weight: 500;
}
.stat-cell .desc {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.5;
}

/* =============================================
   GRAPH VISUALIZATION
   ============================================= */
.graph-wrap {
  position: relative;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow: hidden;
  min-height: 460px;
}
.graph-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* =============================================
   PROVENANCE TREE
   ============================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 56px;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.feature-list li {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--border); }
.feature-list .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 10, 140, 0.15);
  display: grid;
  place-items: center;
  color: var(--pink);
  font-size: 11px;
  margin-top: 2px;
}
.feature-list .ftitle { font-weight: 600; font-size: 15px; }
.feature-list .fdesc { color: var(--text-2); font-size: 13.5px; margin-top: 4px; line-height: 1.55; }

/* Provenance card */
.prov {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  position: relative;
}
.prov-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.prov-head .hash {
  color: var(--pink-soft);
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0;
}
.prov-body { padding: 16px 18px; line-height: 1.7; }
.prov-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 4px 0; }
.prov-row .k { color: var(--text-3); }
.prov-row .v { color: var(--text); }
.prov-tree { padding: 14px 18px 18px; border-top: 1px dashed var(--border); }
.prov-node {
  padding: 6px 0;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--text-2);
}
.prov-node .ico {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--pink-soft);
  font-size: 10px;
}
.prov-node .label { font-size: 12.5px; }
.prov-node .meta { font-size: 11px; color: var(--text-3); }
.prov-node.indent-1 { padding-left: 18px; }
.prov-node.indent-2 { padding-left: 36px; }
.prov-node.indent-3 { padding-left: 54px; }

/* =============================================
   AGENTS GRID
   ============================================= */
.agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 640px) {
  .agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .agents { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.agent-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.agent-card:hover {
  border-color: rgba(255, 10, 140, 0.35);
  transform: translateY(-2px);
}
.agent-card .glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}
.agent-card .name { font-weight: 600; font-size: 15px; }
.agent-card .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 8px;
}
.agent-card .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.agent-card .cmd {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   INSTALL CTA
   ============================================= */
.install {
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(255, 10, 140, 0.12), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(140, 46, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) { .install { grid-template-columns: 1fr; padding: 28px; } }

.install h3 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.install p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}

.install-cmd {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 14px 14px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  gap: 12px;
  min-width: 0;
}
.install-cmd-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.install-cmd .prompt { color: var(--pink); flex-shrink: 0; }
.install-cmd .cmd-text {
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-cmd .cmd-seg { white-space: nowrap; }
.install-cmd .cmd-flag { color: var(--text-3); }
.install-cmd .cmd-url { color: var(--text); }
.install-cmd .cmd-pipe { color: var(--text-3); }
.install-cmd .copy {
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.install-cmd .copy:hover { background: var(--pink); color: white; border-color: var(--pink); }

.install-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* Mobile install card — only rendered ≤640px. Hidden elsewhere. */
.install-mobile { display: none; }

/* Mobile: hide the desktop card entirely and surface the mobile copy-only flow. */
@media (max-width: 640px) {
  .install-desktop { display: none; }

  .install-mobile {
    display: block;
    margin-top: 40px;
    padding: 28px 22px 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    background:
      radial-gradient(420px 220px at 100% 0%, rgba(255, 10, 140, 0.16), transparent 60%),
      radial-gradient(360px 220px at 0% 100%, rgba(140, 46, 255, 0.12), transparent 60%),
      linear-gradient(180deg, var(--bg-2), var(--bg));
    position: relative;
  }
  .install-mobile-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(0,0,0,0.3);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 18px;
  }
  .install-mobile-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px rgba(255, 10, 140, 0.8);
  }
  .install-mobile-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px;
    text-wrap: balance;
  }
  .install-mobile-desc {
    margin: 0 0 22px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.55;
  }

  .install-mobile-copy {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 18px;
    background: var(--pink);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow:
      0 8px 32px rgba(255, 10, 140, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease;
  }
  .install-mobile-copy:active { transform: translateY(1px); }
  .install-mobile-copy.is-copied {
    background: #1a8a5b;
    box-shadow:
      0 8px 32px rgba(26, 138, 91, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  .install-mobile-copy-icon {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
  }
  .install-mobile-copy-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
  }
  .install-mobile-copy-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
  }
  .install-mobile-copy.is-copied .install-mobile-copy-sub {
    color: rgba(255,255,255,0.8);
  }

  .install-mobile-alt {
    margin-top: 14px;
    text-align: center;
  }
  .install-mobile-alt a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 2px;
    transition: color 150ms ease, border-color 150ms ease;
  }
  .install-mobile-alt a:hover {
    color: var(--pink);
    border-color: var(--pink);
  }

  .install-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  .install-mobile-meta span {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
  }
}

/* =============================================
   INVESTORS
   ============================================= */
.investors {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  text-align: center;
}
.investors-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.investors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 64px;
}
.investor {
  display: inline-flex;
  align-items: center;
  height: 44px;
  opacity: 0.55;
  transition: opacity 200ms ease, transform 200ms ease;
}
.investor img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.investor:hover { opacity: 1; transform: translateY(-1px); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--pink-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
}

/* =============================================
   MISC
   ============================================= */
.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}

.toggle-row {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 24px;
  width: fit-content;
}
.toggle-row button {
  background: transparent;
  border: 0;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: all 150ms ease;
}
.toggle-row button.active {
  background: rgba(255, 10, 140, 0.18);
  color: var(--pink-soft);
}
.toggle-row button:not(.active):hover { color: var(--text); }

/* selection */
::selection { background: var(--pink); color: white; }

.inline-link {
  color: var(--pink-soft);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  transition: color 150ms ease, background-size 200ms ease;
}
.inline-link:hover { color: var(--pink); }

/* =============================================
   NAV ACTIVE
   ============================================= */
.nav-links a.active {
  color: var(--text);
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px 2px 0 0;
}

/* =============================================
   ARTICLE / LONGFORM
   ============================================= */
.article-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.article-hero .grid-bg {
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 70%);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}
.article-meta .pill {
  padding: 4px 10px;
  border: 1px solid rgba(255, 10, 140, 0.25);
  background: rgba(255, 10, 140, 0.08);
  border-radius: 999px;
  color: var(--pink-soft);
}
.article-meta .sep { color: var(--text-dim); }

.article-h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.article-h1 .accent {
  background: linear-gradient(135deg, var(--pink), var(--magenta) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-dek {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 64ch;
  margin: 0;
}

.article-byline {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-3);
}
.article-byline .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--violet));
}
.article-byline .author {
  color: var(--text);
  font-weight: 500;
}

/* Two-column reading layout */
.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: 80px;
  position: relative;
}
@media (max-width: 1080px) {
  .article-shell { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
}
.toc-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.toc ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  transition: color 150ms ease;
  line-height: 1.4;
}
.toc li:last-child a { border-bottom: 1px solid var(--border); }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.toc a:hover, .toc a.active { color: var(--text); }
.toc a.active::before { color: var(--pink); }

.article {
  max-width: 720px;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.72;
  color: rgba(244, 238, 254, 0.84);
}
.article p { margin: 0 0 1.3em; }
.article p strong { color: var(--text); font-weight: 600; }
.article p em { color: var(--text); font-style: italic; }

.article h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  margin: 64px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.article h2 .num {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--pink-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Pull quote */
.pull {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--pink);
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(255, 10, 140, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.025);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.pull::before {
  content: "\201C";
  display: block;
  font-size: 56px;
  line-height: 0.5;
  margin-bottom: 12px;
  color: var(--pink);
  font-family: Georgia, serif;
}

/* Diff block */
.diff {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(180deg, #0e0727, #0a0420);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.diff-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.diff-head .badge {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.diff-head .badge.before { background: rgba(255, 10, 140, 0.12); color: var(--pink-soft); }
.diff-head .badge.after { background: rgba(74, 222, 128, 0.12); color: var(--green); }
.diff-body {
  padding: 16px 20px;
  color: rgba(244, 238, 254, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.diff-body .lbl { color: var(--text-3); }
.diff-body .a { color: var(--pink-soft); }
.diff-body .b { color: var(--green); }
.diff-body .arrow { color: var(--violet); padding: 0 4px; }

.code-inline {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pink-soft);
  border: 1px solid var(--border);
}

/* Section callout (mini feature block within article) */
.callout {
  margin: 40px 0;
  padding: 28px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(140, 46, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.callout .ctag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 10px;
}
.callout .ctitle {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.callout p { margin: 0 0 0.8em; font-size: 14.5px; line-height: 1.65; }
.callout p:last-child { margin-bottom: 0; }

/* End-of-article CTA */
.article-cta {
  margin-top: 80px;
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(255, 10, 140, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) { .article-cta { grid-template-columns: 1fr; padding: 28px; } }
.article-cta h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.article-cta p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* =============================================
   404 — NOT FOUND
   ============================================= */
.err-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 9vw, 120px);
  position: relative;
  min-height: 70vh;
}
.err-hero .grid-bg {
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}
.err-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .err-grid { grid-template-columns: 1fr; }
}

.err-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(120px, 18vw, 200px);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 28px;
}
.err-zero {
  width: 1em;
  height: 1em;
  display: inline-block;
  filter: drop-shadow(0 12px 40px rgba(255, 10, 140, 0.35));
}
.err-zero svg circle:first-of-type { animation: zeroRot 24s linear infinite; transform-origin: 50% 50%; }
@keyframes zeroRot {
  0% { stroke-dasharray: 60 528; stroke-dashoffset: 0; }
  100% { stroke-dasharray: 60 528; stroke-dashoffset: -528; }
}

.err-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.err-pill {
  padding: 4px 10px;
  border: 1px solid rgba(255, 10, 140, 0.25);
  background: rgba(255, 10, 140, 0.08);
  border-radius: 999px;
  color: var(--pink-soft);
}
.err-sep { color: var(--text-dim); }

.err-title {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.err-dek {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 32px;
}

.err-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
}

.err-suggestions {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.err-sug-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.err-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.err-suggestions li {
  border-top: 1px solid var(--border);
}
.err-suggestions li:first-child { border-top: 0; }
.err-suggestions a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 150ms ease, padding 150ms ease;
}
.err-suggestions a:hover { color: var(--pink-soft); padding-left: 6px; }
.err-suggestions .dim { color: var(--text-3); font-weight: 400; }

.err-aside { position: relative; }
.err-terminal {
  height: 360px;
  min-height: 0;
  max-height: none;
}
.err-terminal .terminal-body {
  font-size: 12.5px;
}

/* =============================================
   ARTICLE TABLES, LISTS, CODE
   ============================================= */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.94em;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.article table th,
.article table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.article table th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 10, 140, 0.04);
  border-bottom-color: var(--border-strong);
}
.article table tbody tr:last-child td { border-bottom: 0; }
.article table tbody tr:hover { background: rgba(255,255,255,0.02); }
.article table td strong { color: var(--text); font-weight: 600; }
.article table .num-cell {
  font-family: var(--mono);
  color: var(--pink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.article table .ok { color: var(--green); }
.article table .no { color: var(--text-3); }

.article ul, .article ol {
  margin: 0 0 1.3em;
  padding-left: 24px;
}
.article ul { list-style: none; padding-left: 0; }
.article ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 0.6em;
}
.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 8px;
  height: 1px;
  background: var(--pink);
}
.article ol li { margin-bottom: 0.6em; }

.article h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  scroll-margin-top: 88px;
}
.article h3 .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--pink-soft);
  margin-right: 10px;
  letter-spacing: 0.06em;
}

/* Snippet — for inline mono code blocks */
.article pre.snippet,
.snippet {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #0e0727, #0a0420);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 238, 254, 0.78);
  overflow-x: auto;
}
.snippet .k { color: var(--pink-soft); }
.snippet .n { color: var(--cyan); }
.snippet .v { color: var(--violet); }
.snippet .c { color: var(--text-3); }

/* References block */
.refs {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.refs h2 {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.refs h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 40px 0 14px;
}
.refs h3:first-of-type { margin-top: 28px; }

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  counter-reset: refs;
}
.ref-list > li {
  counter-increment: refs;
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  align-items: start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ref-list > li::before {
  content: counter(refs, decimal-leading-zero);
  position: absolute;
  left: -38px;
  top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .ref-list > li {
    grid-template-columns: 1fr 24px;
    gap: 4px 16px;
  }
  .ref-list > li::before { display: none; }
  .ref-date {
    grid-column: 1 / -1;
    order: 0;
  }
  .ref-body { grid-column: 1; order: 1; }
  .ref-arrow { grid-column: 2; order: 2; }
}
.ref-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--pink-soft);
  text-transform: uppercase;
  padding-top: 4px;
  white-space: nowrap;
}
.ref-body { min-width: 0; }
.ref-title {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size 200ms ease, color 150ms ease;
}
.ref-title:hover {
  color: var(--pink-soft);
  background-size: 100% 1px;
}
.ref-meta {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}
.ref-meta .ref-id {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}
.ref-meta .ref-dot {
  color: var(--text-dim);
  margin: 0 4px;
}
.ref-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
  padding-top: 4px;
  transition: color 150ms ease;
}
.ref-list > li:hover .ref-arrow { color: var(--pink-soft); }

/* =============================================
   BLOG INDEX
   ============================================= */
.blog-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.blog-h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 24px;
}
.blog-h1 .accent {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-dek {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.blog-toolbar .filters {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.blog-toolbar .filters button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 150ms ease;
}
.blog-toolbar .filters button.active,
.blog-toolbar .filters button:hover {
  border-color: rgba(255, 10, 140, 0.3);
  background: rgba(255, 10, 140, 0.08);
  color: var(--pink-soft);
}

.posts {
  padding: 32px 0 96px;
  display: grid;
  gap: 0;
}
.post {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  position: relative;
  transition: background 200ms ease;
}
.post::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 0% 50%, rgba(255, 10, 140, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.post:hover::before { opacity: 1; }
@media (max-width: 860px) {
  .post { grid-template-columns: 1fr; gap: 20px; }
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.post-meta .num {
  color: var(--pink-soft);
  font-weight: 600;
}
.post-meta .sep { color: var(--text-dim); }
.post-meta .tag {
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 10.5px;
}
.post h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--text);
  text-wrap: balance;
}
.post h2 a { color: inherit; transition: color 150ms ease; }
.post h2 a:hover { color: var(--pink-soft); }
.post-excerpt {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 60ch;
}
.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-soft);
  transition: gap 150ms ease;
}
.post:hover .post-link { gap: 14px; }

.post-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-aside .stat-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.post-aside .stat-card .n {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post-aside .stat-card .sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.45;
}

.posts-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-2);
}
.posts-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.posts-empty-sub {
  font-size: 14px;
  color: var(--text-3);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pink-soft);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Featured first post variant */
.post.featured {
  padding: 56px 0;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.post.featured h2 { font-size: clamp(28px, 4vw, 48px); }
.post.featured .post-excerpt { font-size: 16px; }

/* Newsletter strip */
.subscribe {
  padding: 56px 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(255, 10, 140, 0.12), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(140, 46, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 96px;
}
@media (max-width: 720px) { .subscribe { grid-template-columns: 1fr; padding: 32px; } }
.subscribe h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.subscribe p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; max-width: 50ch; }
.subscribe-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.subscribe-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.subscribe-form input::placeholder { color: var(--text-dim); }
.subscribe-form button {
  background: var(--pink);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 10, 140, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* article-nav prev/next */
.article-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .article-nav { grid-template-columns: 1fr; } }
.article-nav a {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 200ms ease;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.article-nav a:hover { border-color: rgba(255, 10, 140, 0.35); }
.article-nav .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.article-nav .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.article-nav a.next { text-align: right; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
