:root {
  --bg: #12110f;
  --bg-elevated: #1b1916;
  --bg-cream: #f3ead8;
  --fg: #f4efe6;
  --fg-muted: #b7ae9e;
  --fg-subtle: #8a8173;
  --ink: #161412;
  --ink-muted: #5c564c;
  --accent: #c45c2a;
  --accent-hover: #d46a36;
  --accent-fg: #fff6ea;
  --border: rgba(244, 239, 230, 0.12);
  --border-strong: rgba(244, 239, 230, 0.22);
  --border-ink: rgba(22, 20, 18, 0.14);
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(2.15rem, 1.3rem + 3.2vw, 4.25rem);
  --shadow-soft: 0 18px 50px rgba(10, 8, 6, 0.35);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
  margin: 0;
}
p { text-wrap: pretty; margin: 0; }
button, input { font: inherit; }

.site-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(196, 92, 42, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(122, 163, 192, 0.05), transparent 50%),
    var(--bg);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(18, 17, 15, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-links a:hover { color: var(--fg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-btn svg { width: 20px; height: 20px; }

@media (min-width: 840px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease), border-color 150ms var(--ease);
}

.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--bg-cream); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #fff6ea; }

.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover:not(:disabled) { border-color: rgba(244, 239, 230, 0.4); }

.btn-ink { background: var(--ink); color: var(--bg-cream); }
.btn-ink:hover:not(:disabled) { background: #000; }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  padding: 32px 0 20px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero { padding: 56px 0 28px; }
  .hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 42, 0.22);
}

.hero h1 {
  font-size: var(--text-2xl);
  max-width: 11ch;
  margin-bottom: 18px;
}

.lede {
  max-width: 38ch;
  color: var(--fg-muted);
  font-size: var(--text-lg);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--fg-subtle);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* STAGE / POLAROIDS */
.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 960px) {
  .stage {
    display: block;
    position: relative;
    min-height: 500px;
  }
}

.polaroid {
  position: relative;
  width: 100%;
  background: var(--bg-cream);
  padding: 10px 10px 28px;
  border-radius: 10px 10px 14px 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.polaroid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.polaroid:nth-child(3) {
  grid-column: 1 / -1;
  width: 58%;
  justify-self: center;
}

@media (min-width: 960px) {
  .polaroid {
    position: absolute;
    width: min(52%, 270px);
  }
  .polaroid:nth-child(1) {
    top: 18%;
    left: 22%;
    transform: rotate(-8deg);
    z-index: 2;
    width: min(48%, 240px);
    grid-column: auto;
  }
  .polaroid:nth-child(2) {
    top: 2%;
    right: 0;
    left: auto;
    transform: rotate(6deg);
    z-index: 3;
    width: min(56%, 280px);
  }
  .polaroid:nth-child(3) {
    bottom: 6%;
    left: 40%;
    transform: rotate(2deg);
    z-index: 1;
    width: min(48%, 240px);
    justify-self: auto;
  }
  .polaroid:hover {
    z-index: 4;
    transform: rotate(0deg) translateY(-6px);
  }
}

/* MARQUEE */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section-tight { padding-top: 12px; }
.section-faq { padding-top: 8px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 62ch;
}

.section-head h2 { font-size: var(--text-xl); }
.section-head p { color: var(--fg-muted); }

.steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--fg-muted); font-size: var(--text-sm); }

/* FILTERS + GRID */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.filter.is-on,
.filter:hover {
  color: var(--ink);
  background: var(--bg-cream);
  border-color: var(--bg-cream);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.nft {
  display: block;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-md) + 10px);
  padding: 8px;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.nft:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.nft img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.nft-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 6px 4px;
}

.nft-meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.nft-meta span {
  color: var(--fg-subtle);
  font-size: var(--text-xs);
}

.nft[hidden] { display: none; }

/* WHITELIST */
.wl {
  background: var(--bg-cream);
  color: var(--ink);
  border-radius: 32px;
  padding: 28px 22px;
  display: grid;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.wl::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -90px;
  background: url("logo.jpg") center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

@media (min-width: 880px) {
  .wl {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 48px 44px;
    align-items: center;
    gap: 48px;
  }
}

.wl .kicker { color: var(--accent); }

.wl-copy h2 {
  font-size: var(--text-xl);
  margin: 10px 0 12px;
}

.wl-copy p {
  color: var(--ink-muted);
  max-width: 44ch;
}

.wl-note {
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.spots { margin: 22px 0 8px; }

.spots-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.12);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 90%;
  background: var(--accent);
  border-radius: inherit;
}

.wl-card {
  background: #fff8ee;
  border: 1px solid var(--border-ink);
  border-radius: 24px;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.wl-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.wl-card .sub {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-ink);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  width: 100%;
}

.field input:focus {
  outline: 2px solid rgba(196, 92, 42, 0.5);
  outline-offset: 1px;
}

.field input:read-only { background: #f6efe2; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 8px 0 16px;
}

.check input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.success {
  display: none;
  text-align: center;
  padding: 12px 4px 4px;
}

.success.is-on { display: block; }

.success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg-cream);
  display: grid;
  place-items: center;
}

.success h3 { margin-bottom: 8px; }
.success p { color: var(--ink-muted); font-size: var(--text-sm); }

.addr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 12px;
  padding: 8px 10px;
  background: #f3ead8;
  border-radius: 8px;
  word-break: break-all;
}

.form.is-hidden { display: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }

@media (min-width: 800px) {
  .faq { grid-template-columns: 1fr 1fr; }
}

.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 16px;
}

.faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform 250ms var(--ease);
  flex: none;
}

.faq details[open] summary::after { transform: rotate(225deg); }

.faq details p {
  color: var(--fg-muted);
  padding: 0 0 16px;
  font-size: var(--text-sm);
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--fg); }

/* DRAWER */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 17, 15, 0.7);
  display: none;
}

.drawer.is-on { display: block; }

.drawer nav {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 100%);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  padding: 88px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.modal.is-on { display: grid; }

.modal-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-cream);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  animation: pop-in 250ms var(--ease) forwards;
}

@keyframes pop-in {
  from { transform: scale(0.96); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-card p { color: var(--ink-muted); font-size: var(--text-sm); margin-bottom: 18px; }

.wallet-list { display: grid; gap: 8px; }

.wallet-opt {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-ink);
  background: #fff8ee;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.wallet-opt:hover { border-color: var(--ink); }

.wallet-opt-hint {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 13px;
}

.or {
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 0 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 20px;
  cursor: pointer;
}

.lightbox.is-on { display: grid; }

.lightbox figure { width: min(560px, 100%); }

.lightbox img {
  width: 100%;
  border-radius: 16px;
}

.lightbox figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-display);
}

/* TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  background: var(--bg-cream);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .polaroid,
  .nft,
  .btn,
  .modal-card,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}
