:root {
  --ink: #080909;
  --surface: #101112;
  --surface-2: #151719;
  --line: #2a2d30;
  --line-light: #3b3f43;
  --text: #f1f2f2;
  --muted: #94999e;
  --metal: #c3c7ca;
  --mint: #79d8c4;
  --violet: #aeb1d9;
  --error: #ff8c80;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.site-shell {
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 42px;
}

.topbar {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand img { width: 34px; height: 34px; object-fit: cover; }

nav { display: flex; gap: 34px; }
nav a, .panel-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
nav a:hover, .panel-links a:hover { color: var(--text); }

.network {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--metal);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.network i, .live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(121,216,196,0.72);
}

.mint-layout {
  min-height: calc(100vh - 142px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.65fr);
  align-items: stretch;
  gap: 0;
}

.product {
  position: relative;
  min-height: 690px;
  padding: 72px 6vw 48px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.product::after {
  content: "212";
  position: absolute;
  right: 1vw;
  top: 42%;
  color: rgba(255,255,255,0.025);
  font: 700 25rem/0.7 "Barlow Condensed", sans-serif;
  pointer-events: none;
}

.kicker, .panel-kicker {
  margin: 0;
  color: var(--muted);
  font: 600 0.7rem/1.3 "Archivo", sans-serif;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 20px;
  font: 600 clamp(4.4rem, 7vw, 8.4rem)/0.78 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-light);
}

.intro {
  width: min(560px, 90%);
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.product-visual {
  position: relative;
  min-height: 370px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.box-art {
  position: relative;
  z-index: 2;
  width: min(570px, 78%);
  height: auto;
  margin-bottom: -42px;
  filter: drop-shadow(0 38px 44px rgba(0,0,0,0.75));
}

.edition-stamp {
  position: absolute;
  left: 0;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--line-light);
}
.edition-stamp span { font: 600 3.6rem/1 "Barlow Condensed", sans-serif; }
.edition-stamp small { font-size: 0.55rem; line-height: 1.5; }

.mint-panel {
  align-self: center;
  margin: 46px 0 46px 46px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 26px 80px rgba(0,0,0,0.38);
}

.panel-head { display: flex; justify-content: space-between; align-items: flex-start; }
.panel-head h2, .modal h3 {
  margin: 6px 0 0;
  font: 600 2rem/1 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--metal);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.supply-block { margin: 30px 0 26px; }
.supply-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.72rem; }
.supply-line strong { color: var(--text); font-weight: 600; }
.progress { height: 3px; margin-top: 12px; background: #25282a; overflow: hidden; }
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transition: width 0.35s ease;
}

.mint-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  border: 1px solid var(--line);
}
.mint-facts div { padding: 15px 12px; }
.mint-facts div + div { border-left: 1px solid var(--line); }
.mint-facts dt { margin-bottom: 7px; color: var(--muted); font-size: 0.62rem; text-transform: uppercase; }
.mint-facts dd { margin: 0; color: var(--metal); font-size: 0.82rem; font-weight: 600; }

.btn {
  width: 100%;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.38; }
.btn.connect { background: transparent; border-color: var(--line-light); color: var(--text); }
.btn.connect:hover { border-color: var(--metal); }
.btn.mint { background: var(--text); color: var(--ink); }
.btn.mint:not(:disabled):hover { background: var(--mint); }

.disconnect-link {
  width: 100%;
  margin: 9px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
}
.disconnect-link:hover { color: var(--text); }
.hidden { display: none !important; }

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.stepper { display: grid; grid-template-columns: 35px 42px 35px; height: 35px; border: 1px solid var(--line-light); }
.qty-btn, #qtyDisplay { display: grid; place-items: center; min-width: 0; border: 0; background: transparent; color: var(--text); }
.qty-btn { cursor: pointer; font-size: 1rem; }
.qty-btn:hover { background: var(--surface-2); }
#qtyDisplay { border-inline: 1px solid var(--line-light); font-size: 0.78rem; }

.wallet-info, .status { min-height: 1.2em; margin: 10px 0 0; font-size: 0.72rem; line-height: 1.45; }
.wallet-info { color: var(--muted); }
.status { color: var(--mint); }
.status.error { color: var(--error); }

.trust-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust-block p { margin: 7px 0; color: var(--muted); font-size: 0.67rem; line-height: 1.45; }
.trust-block span { color: var(--mint); margin-right: 7px; }
.panel-links { display: flex; justify-content: space-between; margin-top: 22px; }
.panel-links a { font-size: 0.65rem; }

footer {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #666b70;
  font-size: 0.62rem;
  text-transform: uppercase;
}

footer > span:last-child { justify-self: end; }

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.1s ease;
}

.social-links a:hover {
  border-color: var(--line-light);
  background: var(--surface);
}

.social-links a:active { transform: translateY(1px); }

.social-links img {
  width: 16px;
  height: 16px;
  opacity: 0.62;
  filter: invert(1);
  transition: opacity 0.18s ease;
}

.social-links a:hover img { opacity: 1; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,4,4,0.82);
  backdrop-filter: blur(10px);
}
.modal { width: min(360px, 100%); padding: 28px; background: var(--surface); border: 1px solid var(--line-light); border-radius: 6px; }
.modal h3 { margin-bottom: 22px; }
.wallet-list { display: grid; gap: 9px; }
.wallet-option, .modal-close {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  text-align: left;
  text-decoration: none;
}
.wallet-option:hover, .modal-close:hover { border-color: var(--metal); }
.wallet-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-light);
  border-radius: 7px;
  color: var(--text);
  font-weight: 700;
}
.wallet-m { background: #f6851b; color: #17110d; }
.wallet-c { background: #1652f0; color: #fff; border-radius: 50%; }
.wallet-t { background: #3375bb; color: #fff; }
.wallet-option-copy { display: grid; gap: 3px; flex: 1; }
.wallet-option-copy strong { font-size: 0.8rem; }
.wallet-option-copy small { color: var(--muted); font-size: 0.62rem; }
.wallet-option-action { color: var(--muted); font-size: 0.65rem; text-transform: uppercase; }
.modal-close { margin-top: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .site-shell { padding: 0 22px; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .mint-layout { grid-template-columns: 1fr; }
  .product { min-height: 640px; padding: 54px 0 30px; border-right: 0; }
  .product-visual { min-height: 330px; }
  .box-art { width: min(500px, 72%); }
  .mint-panel { width: min(560px, 100%); margin: 0 auto 60px; }
}

@media (max-width: 600px) {
  .site-shell { padding: 0 16px; }
  .topbar { height: 64px; }
  .network { font-size: 0; }
  .network i { width: 8px; height: 8px; }
  .brand img { width: 30px; height: 30px; }
  .product { min-height: 560px; padding-top: 42px; }
  h1 { font-size: 4.6rem; }
  .intro { width: 100%; font-size: 0.86rem; }
  .product-visual { min-height: 275px; }
  .box-art { width: 88%; margin-bottom: -25px; }
  .edition-stamp { display: none; }
  .mint-panel { padding: 24px 20px; margin-bottom: 40px; }
  .mint-facts div { padding: 13px 8px; }
  footer {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 18px 0;
  }
  .social-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
