h1, h2, h3, .brand-font { font-family: var(--font-display); font-weight: 700; }
body { overflow-x: hidden; }

/* ================= FLOATING PILL NAV ================= */
.topbar {
  position: sticky;
  top: var(--space-4);
  z-index: 60;
  padding: var(--space-6) var(--space-6) 0;
  pointer-events: none; /* only the pill itself should catch clicks */
}
.pill-nav {
  pointer-events: auto;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: rgba(14, 13, 18, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  padding: 9px 10px 9px 18px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.pill-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
}
.pill-nav .nav-links { display: flex; gap: var(--space-6); list-style: none; margin: 0 auto; padding: 0; }
.pill-nav .nav-links a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 600;
  font-size: var(--text-md);
  padding: 4px 0;
  transition: color 0.2s var(--ease-out);
}
.pill-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--iris-gradient);
  background-size: 250% 250%;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.pill-nav .nav-links a:hover { color: #fff; }
.pill-nav .nav-links a:hover::after, .pill-nav .nav-links a.active::after { transform: scaleX(1); }
.pill-nav .nav-links a.active { color: #fff; }

/* Dark circular backing keeps the white diamond mark visible on any surface. */
.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-badge img { width: 17px; }

.btn-dark { background: #fff; color: #0b0b0c; }
.btn-dark:hover { background: #ede9fe; box-shadow: 0 10px 28px rgba(255, 255, 255, 0.16); }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }

/* ================= HERO ================= */
/* Dark aurora rather than a full-spectrum wash: the iris colors read as
   light sources in a dark room, which keeps white text crisp and stops the
   brand palette from becoming a rainbow smear. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * (var(--space-6) + 50px)); /* pull the sticky nav over the hero */
  padding: calc(var(--space-24) + 60px) var(--space-6) var(--space-24);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: radial-gradient(120% 80% at 50% 0%, #16121f 0%, var(--bg) 62%);
}
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora .a1 { width: 620px; height: 620px; top: -220px; left: -80px; background: var(--iris-1); animation: drift-a 22s var(--ease-in-out) infinite; }
.aurora .a2 { width: 540px; height: 540px; top: -140px; right: -100px; background: var(--iris-4); animation: drift-b 26s var(--ease-in-out) infinite; }
.aurora .a3 { width: 460px; height: 460px; bottom: -200px; left: 30%; background: var(--iris-6); opacity: 0.35; animation: drift-c 30s var(--ease-in-out) infinite; }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px, 60px) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, 70px) scale(1.08); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -50px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* Grain + grid overlays give the flat gradient a physical surface. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 80%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.badge-pill-icon { width: 24px; height: 24px; border-radius: 50%; background: #0b0b0c; display: flex; align-items: center; justify-content: center; }
.badge-pill-icon img { width: 13px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2); }

.hero h1 {
  color: #fff;
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.02;
  margin: var(--space-6) 0 var(--space-5);
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--iris-1), var(--iris-4) 45%, var(--iris-6));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iris-shift 9s ease infinite;
}
.hero-sub {
  max-width: 60ch;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.65;
}
.hero-ctas { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }

.hero-trust {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: var(--text-sm);
  font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--iris-5); }

/* ================= DISCORD PREVIEW ================= */
/* A real mock of what the bot actually posts in-channel. For a Discord bot
   this is the product shot — it does more selling than any feature copy. */
.preview-wrap {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: var(--space-16) auto 0;
  perspective: 1400px;
}
.discord-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(139, 92, 246, 0.16);
  transform: rotateX(6deg);
  transform-origin: center top;
  text-align: left;
}
.dc-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #232428;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.dc-dot { width: 11px; height: 11px; border-radius: 50%; }
.dc-dot.r { background: #ed6a5f; } .dc-dot.y { background: #f4bf50; } .dc-dot.g { background: #61c554; }
.dc-channel { margin-left: 6px; color: #949ba4; font-size: var(--text-sm); font-weight: 600; }
.dc-channel b { color: #dbdee1; font-weight: 700; }

.dc-body { padding: var(--space-5) var(--space-5) var(--space-6); }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 8s ease infinite;
  display: flex; align-items: center; justify-content: center;
}
.dc-avatar img { width: 21px; }
.dc-msg-body { flex: 1; min-width: 0; }
.dc-author { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dc-name { color: #f2f3f5; font-weight: 600; font-size: var(--text-md); font-family: var(--font); }
.dc-tag {
  background: var(--iris-1); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; letter-spacing: 0.02em; text-transform: uppercase;
}
.dc-time { color: #949ba4; font-size: var(--text-xs); }

/* Components V2 container — the accent bar on the left is Discord's own
   rendering of a container's accent color. */
.dc-container {
  border-left: 4px solid var(--iris-1);
  background: #2b2d31;
  border-radius: 4px;
  padding: 13px 16px;
  margin-top: 2px;
}
.dc-container h4 { margin: 0 0 7px; color: #f2f3f5; font-size: var(--text-base); font-family: var(--font-display); }
.dc-container p { margin: 0; color: #b5bac1; font-size: var(--text-md); line-height: 1.5; }
.dc-mention { color: #c9b6fb; background: rgba(139, 92, 246, 0.16); border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-actions { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.dc-btn {
  font-family: var(--font);
  font-size: var(--text-sm); font-weight: 600;
  padding: 7px 15px; border-radius: 4px; border: none; color: #fff;
}
.dc-btn.primary { background: #5865f2; }
.dc-btn.success { background: #248046; }
.dc-btn.secondary { background: #4e5058; }
.dc-btn.danger { background: #da373c; }

@media (max-width: 620px) {
  .discord-preview { transform: none; }
  .preview-wrap { margin-top: var(--space-12); }
}

/* ================= SECTION SHELL ================= */
/* scroll-margin-top clears the sticky nav — without it an #anchor jump parks
   the heading underneath the floating pill instead of below it. */
.section { padding: var(--space-24) 0; scroll-margin-top: 110px; }
.section-head { margin-bottom: var(--space-12); }
.section-head.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-sub { text-align: center; }

/* ================= BENTO FEATURES ================= */
/* Deliberately uneven: a uniform 3x2 grid of identical cards reads as a
   spec list. Varying the spans creates a focal point and a reading order. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: linear-gradient(165deg, var(--surface-alt), var(--surface));
  padding: var(--space-6);
  min-height: 100%;
}
.feature-card h3 { margin: 0; font-size: var(--text-lg); }
.feature-card p { margin: 0; color: var(--text-muted); font-size: var(--text-md); line-height: 1.6; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-iris);
  margin-bottom: var(--space-2);
  transition: transform 0.3s var(--ease-spring);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-3); }
.feature-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--iris-4);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ================= STEPS ================= */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-8); position: relative; }
.step-card { position: relative; text-align: center; }
.step-num {
  width: 34px; height: 34px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-md);
  color: var(--iris-1);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.step-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.step-card p { color: var(--text-muted); font-size: var(--text-md); margin: 0; }
.step-card code {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; color: var(--iris-4);
}

/* ================= STAT BAND ================= */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
}
.stat { text-align: center; padding: var(--space-3); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 10s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-muted); font-size: var(--text-sm); font-weight: 600; }

/* ================= CTA ================= */
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  padding: var(--space-20) var(--space-6);
  text-align: center;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(139, 92, 246, 0.3), transparent 68%),
    radial-gradient(60% 120% at 88% 100%, rgba(34, 211, 238, 0.22), transparent 68%),
    linear-gradient(150deg, var(--surface-alt), var(--bg-subtle) 78%);
  border: 1px solid var(--border-hi);
}
.cta-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise);
  opacity: 0.045;
}
.cta-card h2 { margin: 0 0 var(--space-3); font-size: var(--text-3xl); }
.cta-card p { color: var(--text-muted); max-width: 48ch; margin: 0 auto; }
.cta-card .hero-ctas { margin-top: var(--space-8); }

/* ================= FOOTER ================= */
.footer-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: auto; /* sticky footer */
  padding: var(--space-16) var(--space-6) var(--space-8);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
  border-top: 1px solid var(--border);
}
/* Gradient hairline along the very top edge — brand color without drowning
   the footer in it the way a full gradient fill did. */
.footer-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 12s ease infinite;
}
.footer-grid {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text); }
.footer-brand p { color: var(--text-muted); margin-top: var(--space-3); max-width: 34ch; font-size: var(--text-md); }
.footer-col h4 {
  font-family: var(--font-display); margin: 0 0 var(--space-4);
  font-size: var(--text-sm); color: var(--text);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
/* Plain text links. The clickable affordance comes from an underline that
   wipes in on hover rather than from a box, so the footer stays quiet. */
.footer-col a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 500;
  transition: color 0.18s var(--ease-out);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--iris-4); }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-disclaimer {
  position: relative; z-index: 2;
  max-width: 1160px;
  margin: var(--space-12) auto 0;
  color: var(--text-dim);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}
/* ================= MOBILE NAV ================= */
/* Below the breakpoint the links move into a dropdown behind a hamburger
   rather than being display:none'd — previously they were simply unreachable
   on a phone. */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.pill-nav.is-open .nav-toggle .icon-open { display: none; }
.pill-nav.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pill-nav { gap: var(--space-3); position: relative; }
  .pill-nav .nav-brand { margin-right: auto; }
  .nav-toggle { display: flex; }

  .pill-nav .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: var(--space-3);
    background: rgba(14, 13, 18, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
  }
  .pill-nav.is-open .nav-links { display: flex; }
  .pill-nav .nav-links li { width: 100%; }
  .pill-nav .nav-links a {
    display: block;
    width: 100%;
    text-align: left; /* the pages these sit on centre their content; a menu shouldn't inherit that */
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
  }
  .pill-nav .nav-links a:hover { background: rgba(255, 255, 255, 0.06); }
  /* The sliding underline reads as a glitch inside a stacked dropdown. */
  .pill-nav .nav-links a::after { display: none; }
}

@media (max-width: 520px) {
  /* Keep brand + hamburger; the CTA is repeated in the hero anyway. */
  .pill-nav > .btn { display: none; }
}

/* ================= FEATURES PAGE ================= */
.feature-page { padding-top: var(--space-16); }
.feature-block { margin-bottom: var(--space-20); scroll-margin-top: 110px; }
.feature-block-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.feature-block-head h2 { margin: 0 0 var(--space-1); font-size: var(--text-2xl); }
.feature-block-head p { margin: 0; font-size: var(--text-md); }
.feature-block-head .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.feature-detail h3 { margin: 0 0 var(--space-2); font-size: var(--text-base); font-family: var(--font-display); }
.feature-detail p { margin: 0; color: var(--text-muted); font-size: var(--text-md); }
.feature-detail code { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--iris-4); }
.feature-detail .feature-tags { margin-top: var(--space-4); padding-top: 0; }

/* 404 layout lives in base.css so all three sites share it; the homepage's
   copy just adds the aurora backdrop via the .aurora element in its markup. */

/* ================= WIKI / COMMANDS PAGES ================= */
.commands-page { width: 100%; padding: var(--space-12) var(--space-6) var(--space-24); max-width: 940px; margin: 0 auto; }
.category-section { margin-bottom: var(--space-16); scroll-margin-top: 110px; }
.category-section h2 {
  font-size: var(--text-2xl);
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.category-section h2::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.command-card { scroll-margin-top: 110px; }
.command-card h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--iris-4);
  letter-spacing: 0;
}
.command-card > p { color: var(--text-muted); margin: var(--space-2) 0 0; }
.opt-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); font-size: var(--text-md); }
.opt-table th, .opt-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.opt-table th {
  color: var(--text-dim); font-weight: 700;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.07em;
}
.opt-table td { color: var(--text-muted); }
.opt-table tr:last-child td { border-bottom: none; }
.opt-table code, .command-card .hint code { color: var(--iris-4); }

.wiki-page { width: 100%; padding: var(--space-12) var(--space-6) var(--space-24); max-width: 1000px; margin: 0 auto; }
.wiki-card { text-decoration: none; display: flex; flex-direction: column; gap: var(--space-2); }
.wiki-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 10s ease infinite;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow: var(--glow-iris);
  transition: transform 0.3s var(--ease-spring);
}
.wiki-card:hover .wiki-icon { transform: scale(1.08) rotate(-4deg); }
.wiki-icon svg { width: 23px; height: 23px; }
.wiki-card h3 { margin: 0; font-size: var(--text-lg); }
.wiki-card p { margin: 0; color: var(--text-muted); font-size: var(--text-md); }

.category-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.category-pill {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  background: var(--surface-alt);
  border: 1px solid var(--border-hi);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
}
.category-pill:hover { border-color: var(--iris-1); color: #c4b5fd; transform: translateY(-2px); }

/* ================= SECONDARY PAGES ================= */
.subpage-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * (var(--space-6) + 50px));
  padding: calc(var(--space-20) + 60px) var(--space-6) var(--space-16);
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: radial-gradient(110% 80% at 50% 0%, #16121f 0%, var(--bg) 65%);
}
.subpage-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise); opacity: 0.05;
}
.subpage-hero h1 { color: var(--text); font-size: var(--text-4xl); margin: 0; }
.subpage-hero p { color: var(--text-muted); margin-top: var(--space-3); font-size: var(--text-lg); }

/* Jump-nav pills under a page hero. Without this the anchors fall back to
   plain underlined browser-default links. */
.category-nav {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
  position: relative;
  z-index: 2;
}
.category-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border-hi);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              transform 0.2s var(--ease-spring), background 0.2s var(--ease-out);
}
.category-nav a:hover {
  border-color: var(--iris-4);
  color: var(--iris-4);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.updates-list { width: 100%; padding: var(--space-12) var(--space-6) var(--space-24); max-width: 760px; margin: 0 auto; }
.update-card { margin-bottom: var(--space-5); }
.update-card time { color: var(--iris-4); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.update-card h3 { margin: var(--space-2) 0 var(--space-3); font-size: var(--text-xl); }
.update-card > div { color: var(--text-muted); }
.update-card a { color: var(--iris-4); }

.subscribe-card {
  max-width: 520px;
  margin: calc(-1 * var(--space-10)) auto var(--space-8);
  text-align: center;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-xl);
}
.subscribe-icon {
  width: 50px; height: 50px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--iris-gradient);
  background-size: 250% 250%;
  animation: iris-shift 10s ease infinite;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-iris);
}
.subscribe-icon svg { width: 22px; height: 22px; }
.subscribe-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-xl); }
.subscribe-card .btn { margin-top: var(--space-4); }

.legal { width: 100%; padding: var(--space-12) var(--space-6) var(--space-24); max-width: 760px; margin: 0 auto; }
.legal p, .legal li { color: var(--text-muted); }
.legal h2 { margin-top: var(--space-10); font-family: var(--font-display); font-size: var(--text-xl); color: var(--text); }
.legal a { color: var(--iris-4); }
.legal code { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--iris-4); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: var(--space-2); }
