/* Shadow Agent — dark shadow theme (near-black, violet, gold) */
:root {
  --bg: #0B0B10;
  --bg2: #12121A;
  --card: #17171F;
  --line: #2A2A38;
  --line2: #3A3A4D;
  --text: #EDEAF6;
  --muted: #9A94B3;
  --orange: #8B5CF6;
  --btn: #7C3AED;
  --btn-hover: #6D28D9;
  --gold: #C9A227;
  --gold-dot: #E3B341;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { color: var(--btn); }
h1, h2, h3 {
  font-family: "Cinzel", "Times New Roman", serif;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
h2 { font-size: clamp(1.75rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
code {
  background: #1E1E2A;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  word-break: break-all;
}
.section-sub { color: var(--muted); max-width: 720px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-size: 1rem; font-weight: 700; padding: 13px 26px; border-radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.btn-primary { background: var(--btn); color: #FFFFFF; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-cream { background: var(--card); color: var(--text); border: 1px solid var(--line2); }
.btn-cream:hover { border-color: var(--orange); }
.btn-ghost { background: transparent; color: var(--btn); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-small { padding: 8px 14px; font-size: 0.88rem; border-radius: 8px; }

/* Hero */
.hero { background: var(--bg2); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 48px; }
.hero-art { order: -1; }
.hero-art img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.art-caption { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-dot); }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.h1-brown { color: var(--text); }
.h1-orange { color: var(--orange); }
.lede { font-size: 1.12rem; color: #C9C4DC; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }

/* Live supply card */
.supply-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; margin-top: 22px; max-width: 560px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.supply-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.supply-label {
  display: block; font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  margin-bottom: 2px;
}
.supply-numbers strong { font-size: 1.45rem; font-weight: 800; }
.supply-bar {
  height: 10px; background: #26263A; border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden; margin-top: 14px;
}
#supplyFill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #C084FC);
  border-radius: 999px; transition: width 0.6s ease;
}
.live-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #2E9E5B; margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Stat strip */
.statstrip { background: var(--bg2); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stat-grid > div { display: flex; flex-direction: column; }
.stat-grid strong {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.5rem; font-weight: 800; color: var(--orange);
}
.stat-grid span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
main section { padding-top: 44px; padding-bottom: 12px; }
.rarities h2, .mint-section h2, .agents h2, .faq h2, .metadata h2 { margin-bottom: 8px; }

/* Rarities */
.rarity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.rarity-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.rarity-card img { width: 100%; height: auto; display: block; aspect-ratio: 9 / 16; object-fit: cover; }
.rarity-card h3 { padding: 14px 16px 0; font-size: 1.05rem; }
.rarity-card .count { padding: 0 16px 16px; color: var(--muted); margin: 0; font-weight: 700; }
.rarity-card .count span { color: var(--orange); }
.rarity-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

/* Mint section */
.mint-layout { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
.mint-panel, .facts {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.mint-fields, .facts-list { margin: 16px 0 0; }
.mint-fields div, .facts-list div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.mint-fields div:first-child, .facts-list div:first-child { border-top: 0; padding-top: 0; }
.mint-fields dt, .facts-list dt {
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.mint-fields dd, .facts-list dd { margin: 0; font-weight: 600; word-break: break-all; }
.price { font-size: 1.35rem; color: var(--orange); font-weight: 800; }
.mint-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
#mintStatus { overflow-wrap: anywhere; margin-top: 12px; }
.wallet-status { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.facts-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Steps */
.how { margin-top: 28px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Agents */
.agents {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.faq summary {
  cursor: pointer; font-weight: 700;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Metadata */
.metadata p { color: var(--muted); max-width: 720px; }

/* Footer */
footer {
  background: #08080D; color: #C9C4DC;
  margin-top: 48px; padding: 30px 0 36px;
}
.footer-line { font-weight: 700; margin-bottom: 8px; }
.footer-line code { background: #1E1E2A; border-color: #3A3A4D; color: #E3B341; }
.footer-note { color: #8A84A3; margin: 0; }

/* Desktop */
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.25fr 0.85fr; align-items: center; gap: 44px; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { order: 0; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .rarity-grid { grid-template-columns: repeat(5, 1fr); }
  .mint-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Lore */
.lore {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.lore-quote {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.25rem; font-style: italic; color: var(--gold-dot);
  margin: 0 0 14px; line-height: 1.5;
}
.lore p { color: var(--muted); max-width: 760px; }
.lore p strong { color: var(--text); }
