/* CamoBits — minimal banner site */
:root {
  --hood: #CDFF00;
  --bg: #070a08;
  --panel: rgba(12, 18, 14, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f0f5ec;
  --muted: #9ab5a4;
  --font: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1100px;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* —— layered chameleon gradients —— */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grad {
  position: absolute;
  inset: -20%;
  filter: blur(40px);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.g1 {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, #CDFF00 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 80% 70%, #00c805 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, #32c864 0%, transparent 45%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.g2 {
  background:
    radial-gradient(ellipse 55% 45% at 70% 20%, #3ecfcf 0%, transparent 50%),
    radial-gradient(ellipse 45% 55% at 30% 80%, #ff64a0 0%, transparent 50%),
    radial-gradient(ellipse 35% 35% at 60% 60%, #b478ff 0%, transparent 45%);
  animation: drift2 22s ease-in-out infinite alternate;
  opacity: 0.7;
}
.g3 {
  background:
    radial-gradient(ellipse 50% 40% at 40% 60%, #f0be28 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 90% 40%, #468ce6 0%, transparent 45%),
    linear-gradient(120deg, rgba(205,255,0,0.25), transparent 40%, rgba(255,100,160,0.2));
  animation: drift3 26s ease-in-out infinite alternate;
  opacity: 0.65;
}
@keyframes drift1 {
  from { transform: translate(-4%, -3%) scale(1) rotate(0deg); }
  to   { transform: translate(6%, 5%) scale(1.12) rotate(8deg); }
}
@keyframes drift2 {
  from { transform: translate(5%, 2%) scale(1.05) rotate(-4deg); }
  to   { transform: translate(-7%, -4%) scale(1.15) rotate(6deg); }
}
@keyframes drift3 {
  from { transform: translate(0, 4%) scale(1.08) rotate(3deg); }
  to   { transform: translate(-5%, -6%) scale(1) rotate(-10deg); }
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* soft dark so text stays readable but camo shows */
.bg-layers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 7, 0.42);
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 8, 0.45);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; letter-spacing: 0.08em; font-size: 0.9rem; }
.logo span { color: var(--hood); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--hood); }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}
.wallet-chip:hover { border-color: var(--hood); color: var(--hood); }
.wallet-chip.on {
  border-color: rgba(205, 255, 0, 0.45);
  color: var(--hood);
}
.wallet-chip .dot,
.wallet-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}
.wallet-chip.on .dot,
.wallet-status.on .dot { background: var(--hood); box-shadow: 0 0 8px rgba(205,255,0,0.55); }

.hero {
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
}
.hero-tag {
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  font-size: clamp(0.72rem, 2.4vw, 0.84rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0 0 1.1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #CDFF00, #00c805, #32d2e6, #ff64a0, #b478ff, #f0be28, #CDFF00);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: camo-shift 8s linear infinite;
}
@keyframes camo-shift {
  to { background-position: 300% center; }
}

.hero-banner-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(205, 255, 0, 0.32);
  aspect-ratio: 3 / 1;
  background: rgba(0,0,0,0.28);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.45),
    0 0 0 1px rgba(205, 255, 0, 0.08),
    0 0 48px rgba(205, 255, 0, 0.12);
}
.hero-banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.stat-strip {
  list-style: none;
  margin: 1.25rem auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.stat-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.5rem;
}
.stat-strip strong { font-size: 1rem; color: var(--text); }
.stat-strip span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  transition: 0.15s;
}
.btn.primary {
  background: var(--hood);
  color: #0a0c08;
  border-color: var(--hood);
  box-shadow: 0 0 24px rgba(205, 255, 0, 0.25);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost:hover, .btn.secondary:hover {
  border-color: var(--hood);
  color: var(--hood);
}
.btn.secondary {
  border-color: rgba(205, 255, 0, 0.4);
  color: var(--hood);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1rem;
}
.section h2 {
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strip { padding-top: 0.5rem; }
.banner-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.banner-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: default;
}
.banner-card img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.lab-box, .mint-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  backdrop-filter: blur(14px);
}
.lab-locked {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.lab-locked p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.lab-locked strong { color: var(--text); }

.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.lab-controls select {
  flex: 1;
  min-width: 8rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.banner-label {
  font-size: 0.8rem;
  color: var(--hood);
  margin: 0 0 0.55rem;
  min-height: 1.1em;
}
.banner-preview-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(205, 255, 0, 0.2);
  aspect-ratio: 3 / 1;
  background: rgba(0,0,0,0.3);
  position: relative;
}
.banner-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-preview-frame.empty img { display: none; }
.banner-preview-frame:not(.empty) .empty-msg { display: none; }
.empty-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.wallet-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(0,0,0,0.2);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.wallet-status:hover { border-color: rgba(205,255,0,0.4); color: var(--text); }
.wallet-status.on {
  border-style: solid;
  border-color: rgba(205,255,0,0.35);
  color: var(--text);
}
.btn-text {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.btn-text:hover { color: var(--hood); }

.mint-line {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.mint-line span { color: var(--text); font-weight: 600; }
.mint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.mint-actions .btn {
  min-height: 44px;
  padding: 0.75rem 1.05rem;
  flex: 1 1 auto;
}
.mint-actions .btn.primary { flex: 1 1 8rem; }
.qty-lab {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.35rem;
  min-height: 44px;
}
.qty-lab input {
  width: 3.75rem;
  min-height: 44px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  text-align: center;
  font-size: 1rem;
}
.mint-note {
  font-size: 0.78rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
}
.mint-msg { font-size: 0.78rem; margin: 0.45rem 0 0; min-height: 1.1em; text-align: center; }
.mint-msg.ok { color: var(--hood); }
.mint-msg.err { color: #ff6b6b; }

@media (max-width: 520px) {
  .nav { padding: 0 0.65rem; }
  .nav-links { gap: 0.65rem; font-size: 0.75rem; }
  .wallet-chip { padding: 0.3rem 0.55rem; font-size: 0.68rem; }
  .hero { padding: 1.15rem 0.75rem 1rem; }
  .hero-tag { margin-bottom: 0.7rem; padding: 0 0.25rem; }
  .hero h1 { font-size: clamp(1.85rem, 11vw, 2.6rem); margin-bottom: 0.85rem; }
  .hero-banner-frame { border-radius: 12px; }
  .hero-cta .btn { min-height: 44px; flex: 1 1 40%; }
  .stat-strip { gap: 1rem; }
  .section { padding: 1.25rem 0.75rem; }
  .wallet-row { flex-wrap: wrap; }
  .mint-actions { flex-direction: column; }
  .mint-actions .btn, .qty-lab { width: 100%; justify-content: center; }
  .qty-lab { justify-content: center; }
  .footer { flex-wrap: wrap; align-items: flex-start; }
}
.hint { font-size: 0.72rem; color: var(--muted); margin: 0.65rem 0 0; }
.hint a { color: var(--hood); }
.mono { font-variant-numeric: tabular-nums; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--hood); }
.foot-left { display: flex; flex-direction: column; gap: 0.35rem; }
.treasury-line {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #6a7f72;
  opacity: 0.85;
}
.treasury-line a {
  color: #7f9588;
  text-decoration: none;
  margin-left: 0.25rem;
}
.treasury-line a:hover { color: var(--hood); }

@media (min-width: 720px) {
  .banner-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 2.25rem 1.5rem 1.75rem; }
  .section { padding: 1.75rem 1.5rem; }
  .stat-strip { gap: 2.5rem; }
}
@media (min-width: 980px) {
  .banner-strip { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 2.5rem 2rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .g1, .g2, .g3, .hero h1 .accent { animation: none; }
}

.page { max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
