:root {
  --bg: #0e0f0d;
  --bg-2: #15171430;
  --panel: #161814;
  --panel-2: #1c1f1a;
  --moss: #3d6b3a;
  --moss-deep: #1f3a1d;
  --moss-bright: #6aa05f;
  --ember: #ff7a2e;
  --gold: #f5c352;
  --bone: #f4f1ea;
  --paper: #e9dec7;
  --muted: #8b8f86;
  --line: #2a2d27;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--bone);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* NAV — visually identical to the /pet/ and /agents/ site-bars */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  height: 56px;
  padding: 0 28px;
  background: rgba(14,15,13,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--bone); }
.brand-mark { display: inline-flex; }
.brand-mark img { display: block; border-radius: 6px; object-fit: contain; }
.brand-name { font-family: 'EB Garamond', serif; font-size: 18px; letter-spacing: 0.01em; }
.nav-links {
  list-style: none;
  grid-column: 2;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 0; padding: 0;
  font-size: 13px;
  color: var(--muted);
  background: rgba(22,24,20,0.78);
  border: 1px solid rgba(42,45,39,0.9);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  max-width: min(860px, calc(100vw - 360px));
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--bone);
  background: rgba(244,241,234,0.05);
}
.nav-links a.active {
  color: var(--gold);
  font-weight: 600;
  background: rgba(245,195,82,0.1);
}

/* Social icons in column 3 of the nav grid (right side). Each icon
   sits in a visible pill that pops on hover. */
.nav-socials {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--bone);
  background: rgba(22,24,20,0.78);
  border: 1px solid rgba(244,241,234,0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 2px 6px rgba(0,0,0,0.25);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              background .15s ease,
              border-color .15s ease,
              box-shadow .2s ease,
              color .15s ease;
}
.nav-social:hover {
  transform: translateY(-3px) scale(1.18);
  background: rgba(245,195,82,0.12);
  border-color: var(--gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
              0 10px 22px rgba(245,195,82,0.28),
              0 0 0 3px rgba(245,195,82,0.08);
  color: var(--gold);
}
.nav-social:active { transform: translateY(-1px) scale(1.08); }
.nav-social svg,
.nav-social img { display: block; }
.nav-social img {
  width: 22px; height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--gold); color: #1a1408; }
.btn-primary:hover { background: #ffd56b; transform: translateY(-1px); color: #1a1408; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 64px 96px;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-loud {
  font-size: 13px;
  letter-spacing: 0.22em;
  padding: 6px 14px;
  background: rgba(245,195,82,0.06);
  box-shadow: 0 0 24px rgba(245,195,82,0.2);
}

/* Contract-address strip under the navbar. Sized to comfortably hold a
   full 60-character address in a monospace font so the layout doesn't
   jump when the placeholder is replaced with the real contract. */
.ca-strip {
  display: flex;
  justify-content: center;
  padding: 36px 16px 8px;
}
.ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245,195,82,0.45);
  background: rgba(245,195,82,0.06);
  color: var(--gold);
  cursor: pointer;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  min-width: min(640px, 92vw);
  max-width: 92vw;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.ca-btn:hover {
  background: rgba(245,195,82,0.12);
  border-color: var(--gold);
}
.ca-btn:active { transform: translateY(1px); }
.ca-btn .ca-label {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(245,195,82,0.15);
}
.ca-btn .ca-value {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.ca-btn .ca-copy {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
}
.ca-btn.is-copied {
  background: rgba(106,160,95,0.18);
  border-color: rgba(106,160,95,0.7);
  color: #b9e3a8;
}
.ca-btn.is-copied .ca-copy { opacity: 1; }
.hero-tagline {
  margin-top: 0;
  margin-bottom: 30px;
  color: #b9bdb1;
  font-size: 15px;
  max-width: 560px;
  border-left: 3px solid var(--moss-deep);
  padding-left: 14px;
}
.hero-tagline b { color: var(--gold); }
.hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
}
.accent { color: var(--moss-bright); font-style: italic; }
.lede { font-size: 18px; color: #cdd1c7; max-width: 560px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 14px; margin-bottom: 28px; }
.proof-row { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.proof-row .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.demo-note {
  margin: 16px 0 22px;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
}
.demo-note code {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  color: var(--gold);
}

.desktop-wrap { position: relative; }
.preview-caption {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.preview-caption b {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.preview-caption code {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--gold);
  font-size: 11.5px;
}
.preview-caption:hover { color: var(--gold); }

/* DESKTOP MOCK */
.desktop {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
}
.desktop-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #1f221d;
  border-bottom: 1px solid var(--line);
}
.desktop-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.desktop-bar .dot.red    { background: #ff5f57; }
.desktop-bar .dot.yellow { background: #ffbd2e; }
.desktop-bar .dot.green  { background: #28c840; }
.desktop-title { color: var(--muted); font-size: 12px; margin-left: auto; margin-right: auto; }

.desktop-screen {
  position: relative;
  height: 460px;
  background: linear-gradient(180deg, #1c2a1a 0%, #0f1a0e 100%);
  overflow: hidden;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 24px;
  pointer-events: none;
  opacity: 0.65;
}
.icon { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #c8cdc1; }
.icon-square { width: 38px; height: 38px; background: #2a3328; border: 1px solid #3d4a3a; border-radius: 6px; }
.icon-square.paper { background: #ddd2bb; }
.icon-square.zip   { background: #4a3f28; }
.icon-square.link  { background: linear-gradient(135deg, var(--gold) 50%, #c79a30 50%); }

/* lair drawer */
.lair-drawer {
  position: absolute;
  right: -2px; top: 70px;
  display: flex; align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 18px;
  background: #2c2412;
  border: 1px solid #5a4a26;
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 6px 18px rgba(0,0,0,0.4);
}
.lair-tab {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.lair-shinies { display: flex; gap: 4px; }
.shiny { width: 10px; height: 10px; border-radius: 50%; }
.shiny.gold   { background: var(--gold); box-shadow: 0 0 10px rgba(245,195,82,0.6); }
.shiny.silver { background: #c8cbc1; }

/* mutter bubble */
.mutter {
  position: absolute;
  left: 280px;
  bottom: 110px;
  background: var(--paper);
  color: #2b2410;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  padding: 10px 16px 12px;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid #c9bd9c;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transform-origin: bottom left;
  animation: mutter-pop 5s ease-in-out infinite;
}
.mutter::after {
  content: '';
  position: absolute;
  left: 8px; bottom: -8px;
  width: 12px; height: 12px;
  background: var(--paper);
  border-right: 1px solid #c9bd9c;
  border-bottom: 1px solid #c9bd9c;
  transform: rotate(45deg);
}

/* main goblin */
.goblin {
  position: absolute;
  left: 220px;
  bottom: 30px;
  animation: goblin-walk 8s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
}
.goblin .arm-left  { transform-origin: 18px 50px; animation: arm-wave 1.6s ease-in-out infinite; }
.goblin .arm-right { transform-origin: 62px 50px; animation: arm-wave 1.6s ease-in-out infinite reverse; }

/* mini goblins */
.mini-layer { position: absolute; inset: 0; pointer-events: none; }
.mini {
  position: absolute;
  width: 26px; height: 30px;
  background: radial-gradient(circle at 50% 35%, #4d7d49 0 40%, #3d6b3a 40% 70%, #1f3a1d 70% 100%);
  border-radius: 14px 14px 10px 10px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.2);
}
.mini::before, .mini::after {
  content: ''; position: absolute; top: 9px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.mini::before { left: 6px; }
.mini::after  { right: 6px; }

/* ledger pop */
.ledger-pop {
  position: absolute;
  right: 22px; bottom: 26px;
  width: 260px;
  background: #2a1a0e;
  border: 1px solid #5e3a18;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #f4d6b4;
  box-shadow: 0 8px 24px rgba(255,122,46,0.15), 0 0 0 3px rgba(255,122,46,0.08);
  animation: ember-glow 3s ease-in-out infinite;
}
.ledger-pop-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ember);
  margin-bottom: 8px;
  font-size: 13px;
}
.ledger-pop ul { margin: 0; padding-left: 14px; }
.ledger-pop li { margin: 3px 0; }
.badge {
  background: var(--ember); color: #1a0d04;
  border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 700;
}

/* taskbar */
.taskbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #11130f;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.tb-app { width: 18px; height: 18px; background: #2a3328; border-radius: 4px; }
.tb-spacer { flex: 1; }

/* SECTIONS */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 48px;
}
.section-dark {
  background: #11130f;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
.section-lede {
  font-size: 19px;
  color: #cdd1c7;
  max-width: 720px;
  margin: 0 0 48px;
}
.footnote { color: var(--muted); font-size: 14px; margin-top: 28px; }

/* THREE COL */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--moss-bright); transform: translateY(-2px); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 72px;
  height: 30px;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(245,195,82,0.45);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245,195,82,0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.card h3 { font-family: 'EB Garamond', serif; font-size: 26px; margin: 0 0 8px; }
.card p { color: #cdd1c7; margin: 0; }

/* FLOW */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow li {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold); color: #1a1408;
  font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.flow h4 { font-family: 'EB Garamond', serif; margin: 0 0 6px; font-size: 19px; }
.flow p  { margin: 0; color: #cdd1c7; font-size: 14px; }

/* CREW */
.crew-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.crew-grid-7 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .crew-grid-7 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .crew-grid-7 { grid-template-columns: 1fr; } }
.goblin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s ease;
}
.goblin-card:hover { border-color: var(--gold); }
.goblin-portrait {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--moss-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(245,195,82,0.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  overflow: hidden;
}
/* Once a real Petdex sprite has been swapped into the portrait, drop
   the gold-on-moss badge styling so the sprite reads cleanly on a
   neutral panel background that matches every agent's vibe. */
.goblin-portrait.portrait-sprite {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: transparent;
  font-size: 0;
}
.goblin-portrait.portrait-sprite > span {
  transform: translateY(2px);
}

/* Hero pets row: a horizontal strip perched on top of the desktop
   modal so visitors see a lineup of Petdex characters above the fold. */
.hero-pets-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 6px;
  margin-bottom: -10px; /* let the pets overlap the top edge of the modal frame */
  min-height: 70px;
  position: relative;
  z-index: 3;
  pointer-events: none;
  flex-wrap: wrap;
}
.hero-pet-cell {
  display: inline-flex;
  align-items: flex-end;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
}
.hero-pet-cell > span {
  vertical-align: bottom;
}
.goblin-card h3 { font-family: 'EB Garamond', serif; font-size: 22px; margin: 0 0 4px; }
.goblin-card .role { color: var(--gold); font-size: 13px; margin: 0 0 10px; font-style: italic; }
.goblin-card p { color: #cdd1c7; font-size: 14px; margin: 0 0 12px; }
.agent-line { color: var(--muted); font-size: 11px; margin-top: auto; letter-spacing: 0.04em; text-transform: uppercase; }

/* LAIR */
.lair-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.lair-mockup {
  margin-top: 36px;
  background: #1a1c17;
  border: 1px solid #3a3d33;
  border-radius: 14px;
  overflow: hidden;
}
.lair-mockup-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  background: #2c2412;
  border-bottom: 1px solid #5a4a26;
}
.lair-mockup-tab {
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-size: 13px;
}
.lair-mockup-counter { color: var(--muted); font-size: 12px; }
.lair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.lair-cell {
  padding: 16px 18px;
  border-right: 1px solid #2d3027;
}
.lair-cell:last-child { border-right: none; }
.lair-kind {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px; font-weight: 600;
}
.lair-row {
  font-size: 12.5px;
  color: #cdd1c7;
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lair-row b { color: var(--bone); }
.lair-icon {
  display: inline-block;
  width: 11px; height: 11px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
  background: #3d4a3a;
}
.lair-icon.paper { background: #ddd2bb; }
.lair-icon.zip   { background: #4a3f28; }
.lair-icon.img   { background: linear-gradient(135deg, var(--gold) 50%, var(--moss-deep) 50%); }
@media (max-width: 1100px) { .lair-grid { grid-template-columns: 1fr 1fr; } .lair-cell { border-right: none; border-bottom: 1px solid #2d3027; } }
@media (max-width: 720px)  { .lair-grid { grid-template-columns: 1fr; } }
.lair-split p { font-size: 17px; color: #cdd1c7; }
.memory-quotes blockquote {
  margin: 0 0 16px;
  background: var(--panel);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: 'Caveat', cursive;
  font-size: 21px;
  color: #f4eccd;
}

/* LEDGER */
.ledger-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.ledger-fields { padding-left: 20px; }
.ledger-fields li { margin: 6px 0; color: #cdd1c7; }
.ledger-card {
  background: #1a1108;
  border: 1px solid #5e3a18;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 0 0 4px rgba(255,122,46,0.06);
}
.ledger-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--ember);
  border-bottom: 1px dashed #5e3a18;
  padding-bottom: 10px; margin-bottom: 10px;
}
.conf { background: var(--ember); color: #1a0d04; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.ledger-row { color: #f4d6b4; font-size: 14px; padding: 6px 0; border-bottom: 1px solid #2c1a0e; }
.ledger-row:last-child { border-bottom: none; }
.ledger-row span {
  display: inline-block; min-width: 78px;
  color: var(--ember); font-weight: 600;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.ledger-actions {
  display: flex; gap: 8px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px dashed #5e3a18;
}
.lc-btn {
  background: transparent;
  color: var(--ember);
  border: 1px solid #5e3a18;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lc-btn:hover { background: rgba(255,122,46,0.1); }
.lc-btn.gold {
  color: var(--gold);
  border-color: #5a4a26;
}
.lc-btn.gold:hover { background: rgba(245,195,82,0.1); }

/* SWARMS WORKFLOWS */
.workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 32px 0 12px; }
.wf {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.wf h4 { font-family: 'EB Garamond', serif; margin: 0 0 6px; font-size: 19px; color: var(--gold); }
.wf p  { margin: 0; font-size: 14px; color: #cdd1c7; }
.wf i  { color: var(--muted); }
.wf-diagram {
  width: 100%; height: 50px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 4px;
}
.wf-node      { fill: var(--moss-bright); stroke: var(--moss-deep); stroke-width: 1; }
.wf-node.head { fill: var(--gold);        stroke: #5a4a26; }
.wf-edge      { stroke: var(--moss-bright); stroke-width: 1.5; opacity: 0.6; }

.swarms-callout {
  margin-top: 28px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 22px 26px;
}
.swarms-callout h4 {
  margin: 0 0 8px;
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  color: var(--gold);
}
.swarms-callout p { color: #cdd1c7; margin: 0 0 10px; }
.swarms-callout ul { margin: 8px 0 12px; padding-left: 20px; color: #cdd1c7; }
.swarms-callout li { margin: 6px 0; font-size: 14.5px; }
.swarms-callout code {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--gold);
}

/* USE CASES */
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.use h4 { font-family: 'EB Garamond', serif; margin: 0 0 6px; font-size: 18px; }
.use p  { margin: 0; color: #cdd1c7; font-size: 14px; }

/* PULL QUOTE */
.pull-quote { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.pull-quote .kicker { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; margin: 0 0 16px; }
.pull-quote h2 { font-family: 'EB Garamond', serif; font-size: clamp(36px, 4.4vw, 60px); margin: 0 0 22px; line-height: 1.05; }
.pull-quote p { max-width: 680px; margin: 0 auto; color: #cdd1c7; font-size: 17px; }

/* ROADMAP */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rm {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.rm-tag {
  display: inline-block;
  background: var(--moss-deep);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rm p { margin: 0; color: #cdd1c7; }

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 8px 0;
  cursor: pointer;
}
details summary { font-weight: 600; }
details[open] { background: var(--panel-2); }
details p { margin: 8px 0 0; color: #cdd1c7; }

/* CTA */
.section-cta {
  text-align: center;
  background: linear-gradient(180deg, #1c2a1a 0%, #0e0f0d 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: 24px; padding-right: 24px;
}
.section-cta h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(36px, 4.6vw, 60px);
  margin: 0 0 28px;
  line-height: 1.1;
}
.waitlist-form {
  display: flex; gap: 10px; max-width: 540px; margin: 0 auto 14px;
  flex-wrap: wrap; justify-content: center;
}
.waitlist-form input[type=email] {
  flex: 1; min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  padding: 12px 18px;
  font-size: 15px;
}
.waitlist-form input[type=email]:focus { outline: none; border-color: var(--gold); }
.check { color: var(--muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 48px 24px;
  background: #0a0b09;
}
.footer-cols {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.footer-cols b { display: block; margin-bottom: 10px; color: var(--bone); }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--gold); }
.muted { color: var(--muted); font-size: 13px; }
.footer-bottom {
  max-width: 1180px; margin: 24px auto 0;
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-goblin { font-size: 22px; cursor: pointer; user-select: none; transition: transform 0.2s ease; }
.footer-goblin:hover { transform: rotate(-12deg) scale(1.2); }

/* ANIMATIONS */
@keyframes goblin-walk {
  0%   { transform: translateX(0)    translateY(0); }
  25%  { transform: translateX(60px) translateY(-2px); }
  50%  { transform: translateX(120px) translateY(0); }
  75%  { transform: translateX(60px) translateY(-2px); }
  100% { transform: translateX(0)    translateY(0); }
}
@keyframes arm-wave {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-12deg); }
}
@keyframes mutter-pop {
  0%, 60%, 100% { opacity: 0; transform: scale(0.85) translateY(8px); }
  10%, 50%      { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ember-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,122,46,0.15), 0 0 0 3px rgba(255,122,46,0.08); }
  50%      { box-shadow: 0 8px 28px rgba(255,122,46,0.32), 0 0 0 5px rgba(255,122,46,0.14); }
}
@keyframes mini-scurry {
  0%   { transform: translateX(0)    translateY(0)    scale(0.95); }
  20%  { transform: translateX(0)    translateY(-4px) scale(1); }
  100% { transform: translateX(420px) translateY(0)    scale(0.95); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 48px 28px 64px; }
  .nav {
    display: flex;
    justify-content: center;
    padding: 0 16px;
  }
  .nav-links { display: none; }
  .brand-name {
    max-width: calc(100vw - 86px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .three-col, .crew-grid, .flow, .workflow-grid, .use-grid, .roadmap, .footer-cols, .lair-split, .ledger-split {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .three-col, .crew-grid, .flow, .workflow-grid, .use-grid, .roadmap, .footer-cols, .lair-split, .ledger-split {
    grid-template-columns: 1fr;
  }
  .section { padding: 64px 24px; }
}

/* Pets strip on home (featured community pets) ---------------------- */
.pets-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 24px 0 10px;
  padding: 18px 16px;
  background: rgba(245, 195, 82, 0.06);
  border: 1px solid rgba(245, 195, 82, 0.18);
  border-radius: 14px;
  min-height: 140px;
  align-items: stretch;
}
.pets-strip-empty {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted, #9b9684);
  text-align: center;
  padding: 24px 8px;
  font-style: italic;
}
.pets-strip-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(14, 15, 13, 0.55);
  border: 1px solid rgba(245, 195, 82, 0.12);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pets-strip-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 195, 82, 0.45);
  background: rgba(14, 15, 13, 0.85);
}
.pets-strip-thumb {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f4f1ea 0%, #e9dec7 100%);
  border-radius: 8px;
  overflow: hidden;
}
.pets-strip-name {
  font-size: 12px;
  font-weight: 600;
  color: #e8e3d2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pets-strip-caption {
  font-size: 13px;
  color: var(--muted, #9b9684);
  text-align: center;
  margin-bottom: 28px;
}

/* Floating section nav (home page only). Lives outside the page flow so
   it stays put at any scroll position. */
.home-side-nav {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px 36px;
  background: rgba(14, 15, 13, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 195, 82, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-family: inherit;
  transition: transform 0.25s ease, opacity 0.25s ease, left 0.25s ease;
}
.home-side-nav-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5c352;
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0 4px;
}
.home-side-nav-link {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #d8d3c2;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.home-side-nav-link:hover {
  background: rgba(245, 195, 82, 0.12);
  color: #f5c352;
  border-color: rgba(245, 195, 82, 0.3);
}
.home-side-nav-link.is-active {
  background: rgba(245, 195, 82, 0.18);
  color: #f5c352;
  border-color: rgba(245, 195, 82, 0.45);
}
.home-side-nav-toggle {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px; height: 22px;
  background: transparent;
  color: #f5c352;
  border: 1px solid rgba(245, 195, 82, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  line-height: 0;
  padding: 0;
}
.home-side-nav-toggle:hover { background: rgba(245, 195, 82, 0.12); }

/* Collapsed state: panel slides off-screen, only a small re-open tab
   remains. Toggled via the .is-collapsed class on the aside. */
.home-side-nav.is-collapsed {
  transform: translate(calc(-100% + 26px), -50%);
}
.home-side-nav.is-collapsed .home-side-nav-toggle {
  position: absolute;
  top: 50%;
  right: -14px;
  bottom: auto;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .home-side-nav { left: 8px; padding: 10px 8px 30px; }
  .home-side-nav-link { font-size: 12px; padding: 5px 10px; }
}
