/* ============================================
   Code:Pop — Main Stylesheet
   波普艺术画册风格：米白纸张 + 深炭灰漫画线框
   ============================================ */

:root {
  --bg: #F5F5F0;
  --bg2: #FAFAFA;
  --bg3: #FFFFFF;
  --ink: #2D2D2D;
  --ink-soft: #2B2B2B;
  --muted: #666666;
  --rule: #2D2D2D;
  --code-bg: #1A1A2E;
  --accent: #ff3d8a;       /* 荧光粉 */
  --accent2: #2ad4ff;      /* 电蓝 */
  --accent3: #fff34d;      /* 柠檬黄 */
  --accent4: #ff8a3d;      /* 警示橙 */
  --accent5: #6effb0;      /* 薄荷绿 */
  --accent6: #b88dff;      /* 紫 */
  --font-display: 'Boldonse', 'EricaOne', sans-serif;
  --font-headline: 'BigShoulders', 'EricaOne', sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrainsMono', monospace;
  --font-pixel: 'Silkscreen', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, rgba(45, 45, 45, 0.14) 0 1.4px, transparent 1.6px),
    radial-gradient(circle, rgba(26, 26, 46, 0.10) 0 0.9px, transparent 1.1px);
  background-size: 18px 18px, 9px 9px;
  background-position: 0 0, 4px 4px;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ====== TICKER BAR ====== */
.ticker {
  background: var(--accent3);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  padding: 0.55rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.ticker-track { display: inline-block; animation: scroll 40s linear infinite; }
.ticker span { padding: 0 1.5rem; }
.ticker .dot { color: var(--accent); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  border-bottom: 4px solid var(--ink);
  background: rgba(250, 250, 250, 0.72);
  box-shadow: 0 6px 0 var(--accent3);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-meta .stamp {
  display: inline-block;
  border: 3px solid var(--ink);
  color: var(--accent);
  background: var(--bg3);
  padding: 0.35rem 0.7rem;
  transform: rotate(-3deg);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo-line { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.logo-line .badge {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  letter-spacing: 0.08em;
}
.logo-line .badge.b2 { background: var(--accent2); }
.logo-line .badge.b3 { background: var(--accent3); }
.logo-line .badge.b4 { background: var(--accent5); }

.product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0.5rem 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.product-name .word-code {
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--accent), 12px 12px 0 var(--accent2);
}
.product-name .colon {
  color: var(--accent);
  margin: 0 0.05em;
  animation: blink 1.2s step-end infinite;
}
.product-name .word-pop {
  color: var(--ink);
  text-shadow: 6px 6px 0 var(--accent3), 12px 12px 0 var(--accent);
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0.2; } }

.product-name-cn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 0.5rem;
}
.product-name-cn .accent { color: var(--accent); }

.tagline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1.5rem;
  color: var(--ink);
}
.tagline .heart { color: var(--accent); display: inline-block; animation: pulse 0.9s ease-in-out infinite; }
.tagline .alive { background: var(--accent); color: var(--ink); padding: 0 0.15em; transform: skew(-6deg); display: inline-block; border: 2px solid var(--ink); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

.sub-tagline {
  font-family: var(--font-mono);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 820px;
  letter-spacing: 0.02em;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  text-align: left;
}
.sub-tagline .line { display: block; }
.sub-tagline .slash {
  display: inline-block;
  width: 2.25em;
  color: var(--ink);
  font-weight: 700;
}
.sub-tagline .pop-pink { color: #FF5A8A; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); }
.sub-tagline .pop-cyan { color: #00F0FF; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); }
.sub-tagline .pop-yellow { color: #FFEA00; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); }
.sub-tagline .hi { color: var(--accent); }
.sub-tagline .hi2 { color: var(--accent2); }

/* ====== SECTION HEADER ====== */
.section-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 5rem 0 1.5rem;
  flex-wrap: wrap;
}
.section-tag .num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 4px 4px 0 var(--bg3);
}
.section-tag .num.b { color: var(--accent2); }
.section-tag .num.c { color: var(--accent3); }
.section-tag .num.d { color: var(--accent5); }
.section-tag .num.e { color: var(--accent6); }
.section-tag .label {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
}
.section-tag .bar { flex: 1; height: 4px; background: var(--accent); min-width: 60px; }
.section-tag .bar.b { background: var(--accent2); }
.section-tag .bar.c { background: var(--accent3); }
.section-tag .bar.d { background: var(--accent5); }
.section-tag .bar.e { background: var(--accent6); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--ink);
}
.section-title .hi { background: var(--accent); color: var(--ink); padding: 0 0.15em; border: 2px solid var(--ink); }
.section-title .hi.b { background: var(--accent3); color: var(--ink); }
.section-title .hi.c { background: var(--accent2); color: var(--ink); }
.section-title .hi.d { background: var(--accent5); color: var(--ink); }
.section-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555555;
  margin: 0.25rem 0 2.5rem;
  letter-spacing: 0.02em;
  clear: both;
}
.section-sub .k { color: var(--accent); font-weight: 700; }

/* ====== ARCHITECTURE FLOW ====== */
.arch-wrap {
  background: rgba(250, 250, 250, 0.94);
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 2rem 1.5rem 1.7rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.arch-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 50%, rgba(255, 61, 138, 0.14), transparent 32%),
    radial-gradient(circle at 68% 50%, rgba(42, 212, 255, 0.14), transparent 32%);
  pointer-events: none;
}
.arch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px dashed var(--rule);
  position: relative;
  z-index: 2;
}
.arch-bar .lhs { color: var(--accent); }
.arch-bar .rhs { color: var(--accent2); }

.arch-parallel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}
.arch-lane {
  position: relative;
  border: 2.5px solid var(--rule);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  border-radius: 4px;
}
.arch-lane.warm {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}
.arch-lane.cool {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--accent2);
}
.arch-lane-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid currentColor;
}
.arch-lane.warm .arch-lane-title { color: var(--accent); }
.arch-lane.cool .arch-lane-title { color: var(--accent2); }
.arch-lane-title h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.arch-lane-title span {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.arch-steps {
  display: grid;
  gap: 0.72rem;
}
.arch-card {
  position: relative;
  min-height: 118px;
  background: var(--bg3);
  border: 2.5px solid var(--ink);
  border-left: 8px solid currentColor;
  border-radius: 4px;
  padding: 0.9rem 0.95rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.8rem;
  align-items: center;
}
.arch-lane.warm .arch-card { color: var(--accent); }
.arch-lane.cool .arch-card { color: var(--accent2); }
.arch-card::after {
  content: '\2193';
  position: absolute;
  left: 21px;
  bottom: -20px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: currentColor;
  text-shadow: 0 0 6px var(--bg);
  z-index: 3;
}
.arch-card:last-child::after { display: none; }
.arch-badge {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  background: var(--bg2);
}
.arch-word {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.arch-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 0.18rem;
}
.arch-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.22rem;
}

.memory-bridge {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.memory-bridge::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  right: -1.2rem;
  top: 50%;
  height: 92px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, rgba(255, 61, 138, 0.5), rgba(255, 243, 77, 0.65), rgba(42, 212, 255, 0.5));
  filter: blur(18px);
  opacity: 0.9;
  z-index: 0;
}
.memory-bridge::after {
  content: '\27F7';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ink);
  opacity: 0.88;
  z-index: 2;
}
.memory-core {
  position: relative;
  z-index: 3;
  width: 190px;
  min-height: 210px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.1rem 0.65rem;
  box-shadow:
    -10px 0 0 rgba(255, 61, 138, 0.95),
    10px 0 0 rgba(42, 212, 255, 0.95),
    0 0 40px rgba(255, 243, 77, 0.22);
}
.memory-core .core-label {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.memory-core .core-cn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-top: 0.45rem;
}
.memory-core .core-note {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.86rem;
  color: var(--bg3);
  margin-top: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.memory-core .core-note span {
  display: block;
  text-shadow:
    -2px -2px 0 #FFFFFF,
     2px -2px 0 #FFFFFF,
    -2px  2px 0 #FFFFFF,
     2px  2px 0 #FFFFFF,
     0   -2px 0 #FFFFFF,
     0    2px 0 #FFFFFF,
    -2px  0   0 #FFFFFF,
     2px  0   0 #FFFFFF;
}
.memory-core .core-note .breath {
  color: var(--accent2);
  margin-bottom: 0.35rem;
}
.memory-core .core-note .arrive {
  color: #FF006E;
}
.arch-caption {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}
.arch-caption .warm-text { color: var(--accent); }
.arch-caption .cool-text { color: var(--accent2); text-align: right; }
.arch-caption .mid-text {
  color: var(--ink);
  background: var(--accent3);
  padding: 0.28rem 0.7rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* ====== 8-BLOCK MATRIX ====== */
.can-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2rem;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
}
.can {
  aspect-ratio: 4 / 5;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.7rem;
  overflow: hidden;
  font-family: var(--font-mono);
}
.can:nth-child(4n) { border-right: none; }
.can:nth-last-child(-n+4) { border-bottom: none; }

.can.v1 { background: var(--accent); color: var(--ink); }
.can.v2 { background: var(--bg3); color: var(--ink); }
.can.v3 { background: var(--accent3); color: var(--ink); }
.can.v4 { background: var(--accent2); color: var(--ink); }
.can.v5 { background: var(--bg3); color: var(--ink); }
.can.v6 { background: var(--accent5); color: var(--ink); }
.can.v7 { background: var(--accent6); color: var(--ink); }
.can.v8 { background: var(--accent4); color: var(--ink); }

.can-band-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  opacity: 0.85;
}
.can-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0;
}
.can-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.can-cn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.can-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}
.can-band-bot {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.4rem 0.4rem;
  border-top: 2px dashed currentColor;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ====== PAIN POINTS ====== */
.pain-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--bg3);
  border-radius: 4px;
  margin-bottom: 3rem;
}
.pain-left {
  padding: 2.5rem 2rem;
  background: var(--bg2);
  border-right: 3px solid var(--ink);
  position: relative;
}
.pain-left::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 61, 138, 0.06) 14px 15px);
  pointer-events: none;
}
.pain-stamp {
  display: inline-block;
  border: 3px solid var(--ink);
  color: var(--accent);
  background: var(--bg3);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  transform: rotate(-2deg);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.pain-headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.2rem;
  position: relative;
}
.pain-headline .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  color: var(--muted);
}
.pain-headline .alive-flash { color: var(--accent); font-style: italic; }

.pain-body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  position: relative;
}
.pain-body strong { color: var(--accent); font-weight: 700; }

.pain-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg3);
}
.scenario {
  border: 2.5px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  background: var(--bg2);
  position: relative;
  transition: all 0.2s;
}
.scenario:hover { border-color: var(--accent); }
.scenario .tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--accent3);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}
.scenario.s2 .tag { background: var(--accent); color: var(--ink); }
.scenario.s3 .tag { background: var(--accent2); color: var(--ink); }
.scenario .quote {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.scenario .quote .cost {
  font-family: var(--font-mono);
  background: var(--code-bg);
  color: var(--accent);
  padding: 0 0.3em;
  font-size: 0.95em;
}
.scenario .quote .y { color: var(--accent); }
.scenario .quote .b { color: var(--accent2); }
.scenario .meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.scenario .meta strong { color: var(--ink-soft); }

/* ====== FEATURE GRID ====== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 3px solid var(--ink);
  border-radius: 4px;
  margin-bottom: 3rem;
  background: var(--ink);
}
.feat {
  padding: 1.8rem 1.4rem;
  border-right: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.feat:last-child { border-right: none; }
.feat.f1 { background: var(--accent); color: var(--ink); }
.feat.f2 { background: var(--accent2); color: var(--ink); }
.feat.f3 { background: var(--accent3); color: var(--ink); }

.feat-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.feat.f1 .feat-num { color: var(--accent3); }
.feat.f2 .feat-num { color: var(--accent); }
.feat.f3 .feat-num { color: var(--accent2); }

.feat-tag {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  opacity: 0.8;
}
.feat-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feat-title-en {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
.feat-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.feat-desc strong { font-weight: 700; }
.feat-stack {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.5rem 0.7rem;
  background: var(--code-bg);
  border: 2px dashed currentColor;
  color: var(--bg3);
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}
.feat.f1 .feat-stack { color: var(--accent3); }
.feat.f2 .feat-stack { color: var(--accent); }
.feat.f3 .feat-stack { color: var(--accent2); }

.feat-snippet {
  margin-top: auto;
  background: var(--code-bg);
  color: #F7F7FF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--code-bg);
  box-shadow: 5px 5px 0 var(--code-bg);
  overflow-x: auto;
}
.feat-snippet .pp { color: var(--accent); }
.feat-snippet .gg { color: var(--accent3); }
.feat-snippet .bb { color: var(--accent2); }
.feat-snippet .gn { color: var(--accent5); }
.feat-snippet .vi { color: var(--accent6); }
.feat-snippet .cm { color: #B7B9C8; }
.feat-snippet .pr { color: var(--accent); font-weight: 700; }
.feat-snippet .ok { color: var(--accent5); }

/* ====== USE CASES ====== */
.case-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.case {
  background: var(--bg2);
  border: 3px solid var(--ink);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.case-head {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid var(--ink);
}
.case.c1 .case-head { background: var(--accent); color: var(--ink); }
.case.c2 .case-head { background: var(--accent2); color: var(--ink); }

.case-icon {
  width: 56px; height: 56px;
  background: var(--code-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 3px solid var(--code-bg);
}
.case.c1 .case-icon { color: var(--accent); }
.case.c2 .case-icon { color: var(--accent2); }

.case-head-text { flex: 1; }
.case-tag {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}
.case-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.case-body { padding: 1.5rem; }
.case-quote {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-left: 1.2rem;
  border-left: 4px solid var(--accent3);
}
.case.c2 .case-quote { border-left-color: var(--accent); }
.case-quote .hi-y { background: var(--accent3); color: var(--ink); padding: 0 0.1em; }
.case-quote .hi-p { background: var(--accent); color: var(--ink); padding: 0 0.1em; }

.case-flow {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.case-flow li {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.6rem 0.8rem;
  background: var(--bg3);
  border: 2px solid var(--rule);
  border-left-width: 6px;
  border-radius: 4px;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.case-flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--accent3);
  letter-spacing: 0.1em;
}
.case-flow li.hot { border-left-color: var(--accent); color: var(--ink); }
.case-flow li.hot::before { color: var(--accent); }

.case-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--code-bg);
  border: 2px dashed var(--accent3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent3);
}
.case.c2 .case-result { border-color: var(--accent); color: var(--accent); }
.case-result .lbl {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #B7B9C8;
  margin-bottom: 0.3rem;
  display: block;
}
.case-result strong { color: var(--bg3); }

/* ====== CTA ====== */
.cta {
  margin-top: 5rem;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 30px, var(--accent3) 30px 60px, var(--accent2) 60px 90px, var(--code-bg) 90px 120px);
  text-align: center;
  position: relative;
}
.cta::before {
  content: '';
  position: absolute; inset: 6px;
  background: var(--bg2);
  border: 2px solid var(--ink);
}
.cta-inner { position: relative; padding: 3rem 1.5rem; }
.cta-mini {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent3);
  margin-bottom: 1rem;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.cta-title .y { color: var(--accent); }
.cta-title .p { color: var(--accent); }
.cta-title .b { color: var(--accent2); }
.cta-cmd {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.2rem 1.8rem;
  background: var(--accent3);
  color: var(--ink);
  letter-spacing: 0.05em;
  box-shadow: 6px 6px 0 var(--accent), 12px 12px 0 var(--accent2);
  margin-top: 0.5rem;
  text-align: left;
}
.cta-cmd .prompt { color: var(--accent); margin-right: 0.5rem; }
.cta-cmd .cmd-line { display: block; }
.cta-cmd .cmd-comment { color: var(--muted); font-weight: 400; }

/* ====== FOOTER ====== */
.foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.foot .dots { color: var(--accent); }
.warhol-can {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 6px 6px;
  background:
    linear-gradient(
      to bottom,
      var(--accent) 0 36%,
      var(--bg3) 36% 64%,
      var(--accent3) 64% 100%
    );
  box-shadow: 3px 3px 0 var(--accent2);
  overflow: hidden;
  transform: rotate(-2deg);
  opacity: 0.9;
}
.warhol-can::before,
.warhol-can::after {
  content: '';
  display: block;
  height: 5px;
  border-bottom: 1.5px solid var(--ink);
  background: rgba(250, 250, 250, 0.62);
}
.warhol-can::after {
  border-top: 1.5px solid var(--ink);
  border-bottom: 0;
  background: rgba(255, 243, 77, 0.5);
}
.warhol-can .can-mini-label {
  font-family: var(--font-pixel);
  font-size: 0.34rem;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
  text-align: center;
  padding: 0 1px;
  transform: translateY(-1px);
}

.icp-line {
  text-align: center;
  padding: 1.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* ====== TOP NAVIGATION ====== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 24px;
  border: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  background: var(--accent);
  color: var(--bg3);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-links a.active {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* offset body for fixed nav + ticker */
body { padding-top: 56px; }
.ticker { margin-top: 0; }
.page { padding-top: 2.5rem; }

/* ====== DOCS & DEMO PAGES ====== */
.doc-page .doc-hero,
.demo-page .demo-hero {
  padding: 1.5rem 0 2rem;
  border-bottom: 4px solid var(--ink);
  margin-bottom: 2.5rem;
}

.doc-section,
.demo-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: var(--bg3);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--accent3);
}

.demo-section:nth-child(even) { box-shadow: 8px 8px 0 var(--accent2); }

.doc-section h2,
.demo-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-section h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--ink);
}

.doc-section p,
.demo-section p {
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ====== CODE BLOCKS ====== */
.code-block {
  background: var(--code-bg);
  color: #e0e0e0;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 1rem 0 1.25rem;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--accent2);
}

.code-block code {
  font-family: inherit;
  color: inherit;
}

code {
  background: rgba(26, 26, 46, 0.08);
  color: var(--ink);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ====== TABLES ====== */
.env-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border: 2px solid var(--ink);
}

.env-table th,
.env-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.env-table th {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.env-table tr:nth-child(even) { background: #f9f9f9; }
.env-table tr:hover { background: #fff0f5; }

/* ====== RECALL GRID (DOCS) ====== */
.recall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.recall-item {
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--accent);
  border-radius: 4px;
  padding: 1.2rem;
}

.recall-item:nth-child(2) { border-left-color: var(--accent2); }
.recall-item:nth-child(3) { border-left-color: var(--accent3); }
.recall-item:nth-child(4) { border-left-color: var(--accent5); }

.recall-item h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.recall-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* ====== TERMINAL DEMO ====== */
.terminal-demo {
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
}

.terminal-header {
  background: #2a2a4e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
  border-bottom: 2px solid var(--ink);
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  color: #e0e0e0;
  min-height: 180px;
}

.terminal-body .line {
  margin: 0.6rem 0;
}

.terminal-body .prompt {
  color: #27c93f;
  margin-right: 8px;
}

.terminal-body .ai-label {
  color: #00d4ff;
  margin-right: 8px;
  font-weight: 700;
}

.terminal-body .result-label {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

.type-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #ff3d8a;
  animation: typing 2s steps(30) forwards, blink 0.8s step-end infinite;
  vertical-align: bottom;
  max-width: 100%;
}

.code-result {
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 61, 138, 0.08);
  border-radius: 0 6px 6px 0;
  border-left: 3px solid #ff3d8a;
}

.code-result p {
  color: #ff3d8a;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.code-result ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.code-result li {
  margin: 0.25rem 0;
  color: #e0e0e0;
  font-size: 0.9rem;
}

.code-result .score {
  color: #00d4ff;
  font-weight: 700;
  margin-right: 8px;
}

.code-result .hl {
  color: #ffd700;
  font-weight: 600;
}

.chain-label {
  color: #27c93f;
  font-weight: 700;
  margin-right: 8px;
}

.chain-flow {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(39, 201, 63, 0.1);
  border: 1px solid #27c93f;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #27c93f;
}

.ascii-graph {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #ffd700;
  white-space: pre;
  padding: 12px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 6px;
  margin-top: 8px;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 2s;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 3s;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 4s;
}

/* 切换面板时动画重新触发 */
.mcp-panel.active .type-text {
  animation: typing 2s steps(30) forwards, blink 0.8s step-end infinite;
}

.mcp-panel.active .fade-in {
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 2s;
}

.mcp-panel.active .fade-in-delay {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 3s;
}

.mcp-panel.active .fade-in-delay-2 {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 4s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

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

.demo-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  padding-left: 0.5rem;
  border-left: 3px solid var(--accent3);
}

/* ====== DASHBOARD PREVIEW ====== */
.dashboard-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.dash-card {
  background: var(--bg3);
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 5px 5px 0 var(--accent3);
}

.dash-card:nth-child(2) { box-shadow: 5px 5px 0 var(--accent2); }
.dash-card:nth-child(3) { box-shadow: 5px 5px 0 var(--accent); }

.dash-card h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.big-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.trend {
  margin-top: 0.5rem;
  color: #27c93f;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.demo-chart {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg3);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--accent5);
}

.demo-chart h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding-bottom: 8px;
}

.bar {
  flex: 1;
  background: #ddd;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: background 0.3s;
  min-height: 20px;
}

.bar.active {
  background: var(--accent);
}

.bar:hover {
  background: var(--accent3);
}

.bar-val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.demo-logs {
  margin-top: 24px;
}

.demo-logs h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.log-query {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

.log-time {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.log-latency {
  color: #27c93f;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ====== FLOW DEMO ====== */
.flow-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 2.5rem;
  background: var(--bg3);
  border: 3px solid var(--ink);
  border-radius: 4px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.flow-step:nth-child(1) { animation-delay: 0s; }
.flow-step:nth-child(3) { animation-delay: 0.6s; }
.flow-step:nth-child(5) { animation-delay: 1.2s; }
.flow-step:nth-child(7) { animation-delay: 1.8s; }

.flow-step span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.pop-icon {
  width: 64px;
  height: 64px;
  position: relative;
}

.pop-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(3px 3px 0 #1a1a2e);
  transition: transform 0.2s;
}

.pop-icon:hover svg {
  transform: translate(-2px, -2px);
  filter: drop-shadow(5px 5px 0 #1a1a2e);
}

/* 波普圆点背景装饰 */
.pop-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a1a2e;
  z-index: -1;
}

.icon-code::after { background: #ff3d8a; }
.icon-webhook::after { background: #00d4ff; }
.icon-search::after { background: #ffd700; }
.icon-check::after { background: #ff3d8a; }

.flow-arrow {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 900;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ====== QUERY / RECALL COMPARISON ====== */
.query-demo {
  background: var(--bg2);
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 1.5rem;
}

.query-input {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--ink);
}

.query-label {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.recall-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.recall-way {
  background: var(--bg3);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 1.2rem;
  box-shadow: 4px 4px 0 var(--accent3);
}

.recall-way:nth-child(2) { box-shadow: 4px 4px 0 var(--accent2); }
.recall-way:nth-child(3) { box-shadow: 4px 4px 0 var(--accent5); }
.recall-way:nth-child(4) { box-shadow: 4px 4px 0 var(--accent6); }

.recall-way h4 {
  color: var(--accent);
  font-family: var(--font-headline);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.recall-score {
  font-size: 0.8rem;
  color: #27c93f;
  font-family: var(--font-mono);
  font-weight: 700;
}

.recall-match {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  word-break: break-word;
}

/* ====== MCP CONFIG DEMO ====== */
.mcp-tool-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 8px;
  background: #f0f0eb;
  border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--accent3);
}

.mcp-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg3);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.2s;
}

.mcp-tab:hover {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent);
}

.mcp-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tab-icon {
  font-size: 1.2rem;
}

.mcp-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.mcp-panel.active {
  display: block;
}

.mcp-step {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg3);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--accent2);
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}

.step-content h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.step-content p {
  font-family: var(--font-body);
  color: var(--ink-soft);
  margin: 0;
}

.config-block {
  position: relative;
  margin-top: 12px;
}

.config-block pre {
  background: var(--code-bg);
  color: #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border: 2px solid var(--ink);
}

.config-block.simple pre {
  background: #2a2a4e;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg3);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #e0357a;
  box-shadow: 3px 3px 0 var(--ink);
}

.copy-btn.copied {
  background: #27c93f;
}

.mcp-tools-preview {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg3);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--accent5);
}

.mcp-tools-preview h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

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

.tool-card {
  padding: 16px;
  background: var(--bg2);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.tool-name {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tool-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .arch-parallel { grid-template-columns: 1fr; }
  .memory-bridge { min-height: 160px; }
  .memory-bridge::before {
    left: 15%;
    right: 15%;
    height: 80px;
  }
  .memory-bridge::after {
    content: '\2195';
  }
  .memory-core {
    min-height: 150px;
    width: min(260px, 100%);
    box-shadow:
      0 -8px 0 rgba(255, 61, 138, 0.95),
      0 8px 0 rgba(42, 212, 255, 0.95),
      0 0 40px rgba(255, 243, 77, 0.22);
  }
  .arch-caption { grid-template-columns: 1fr; text-align: left; }
  .arch-caption .cool-text { text-align: left; }
  .arch-caption .mid-text { justify-self: start; }
}
@media (max-width: 900px) {
  .can-grid { grid-template-columns: repeat(2, 1fr); }
  .can:nth-child(4n) { border-right: 3px solid var(--ink); }
  .can:nth-child(2n) { border-right: none; }
  .can:nth-last-child(-n+4) { border-bottom: 3px solid var(--ink); }
  .can:nth-last-child(-n+2) { border-bottom: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat { border-right: none; border-bottom: 3px solid var(--ink); }
  .feat:last-child { border-bottom: none; }
  .case-wrap { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-left { border-right: none; border-bottom: 3px solid var(--ink); }
}
@media (max-width: 768px) {
  .top-nav { padding: 12px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    padding: 1rem 20px;
    gap: 0.5rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    margin: 0;
    display: block;
    text-align: center;
  }
  .recall-grid,
  .dashboard-preview,
  .recall-results,
  .tools-grid { grid-template-columns: 1fr; }
  .flow-demo { flex-direction: column; gap: 1.25rem; }
  .flow-arrow { transform: rotate(90deg); }
  .doc-section,
  .demo-section { padding: 1.5rem; }
  .mcp-tool-tabs { flex-direction: column; }
  .mcp-step { flex-direction: column; gap: 12px; }
  .demo-chart { padding: 16px; }
  .chart-bars { height: 120px; gap: 8px; }
  .bar-val { font-size: 0.65rem; top: -18px; }
  .chart-labels { font-size: 0.7rem; }
  .log-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .arch-wrap { padding: 1.4rem 1rem; }
  .arch-lane-title { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .arch-card { grid-template-columns: 36px 1fr; min-height: 108px; }
  .arch-badge { width: 36px; height: 36px; font-size: 1.2rem; }
  .arch-word { font-size: 1.25rem; }
  .can-grid { grid-template-columns: 1fr; }
  .can { aspect-ratio: auto; min-height: 200px; border-right: none !important; border-bottom: 3px solid var(--ink) !important; }
  .can:last-child { border-bottom: none !important; }
  .product-name { font-size: 4rem; }
  .product-name .word-code, .product-name .word-pop {
    text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 var(--accent2);
  }
}
