:root {
  color-scheme: dark;
  --bg: #07100d;
  --panel: rgba(12, 22, 18, 0.78);
  --panel-strong: rgba(11, 16, 15, 0.96);
  --line: rgba(198, 255, 220, 0.18);
  --text: #f4fff7;
  --muted: #a7b8ad;
  --green: #52f28c;
  --cyan: #5ed7ff;
  --gold: #f3c75b;
  --red: #d51f45;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(82, 242, 140, 0.16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(94, 215, 255, 0.12), transparent 24%),
    linear-gradient(145deg, #030705 0%, #08120e 46%, #10130f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 7px;
  opacity: 0.16;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient {
  position: fixed;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  animation: drift 9s ease-in-out infinite alternate;
}

.ambient-a {
  left: -12vw;
  top: 24vh;
  background: var(--green);
}

.ambient-b {
  right: -14vw;
  bottom: 10vh;
  background: var(--cyan);
  animation-delay: -3s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #050b09;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.hero-actions,
.mint-mode,
.quantity-control {
  display: flex;
  align-items: center;
}

.wallet-button,
.top-link,
.primary-action,
.secondary-action,
.mint-button,
.mode,
.quantity-control button {
  border: 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.wallet-button,
.primary-action,
.mint-button {
  background: linear-gradient(135deg, #1fd76b, #63d9ff);
  color: #06110c;
  font-weight: 850;
}

.wallet-button {
  padding: 10px 14px;
}

.top-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(198, 255, 220, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.top-link:hover {
  border-color: rgba(82, 242, 140, 0.52);
  background: rgba(82, 242, 140, 0.1);
}

.network-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
  border: 0;
  background: transparent;
}

.network-item {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(198, 255, 220, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.network-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.network-item strong {
  color: var(--text);
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: center;
  gap: 52px;
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text,
.mint-copy p,
.rules-grid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-text {
  max-width: 660px;
}

.hero-actions {
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 850;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.showcase {
  position: relative;
}

.video-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0b0f0d;
}

.showcase-traits {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.showcase-traits .eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
}

.showcase-traits strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
}

.showcase-traits ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.showcase-traits li {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(198, 255, 220, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.mint-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.mint-box {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--panel-strong);
}

.mint-progress {
  padding: 14px;
  border: 1px solid rgba(82, 242, 140, 0.24);
  background: linear-gradient(135deg, rgba(82, 242, 140, 0.12), rgba(94, 215, 255, 0.08));
}

.mint-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.mint-progress-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mint-progress-top strong {
  color: var(--text);
  font-size: 18px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(82, 242, 140, 0.45);
}

.free-block-progress {
  margin-top: 10px;
  border-color: rgba(243, 199, 91, 0.28);
  background: linear-gradient(135deg, rgba(243, 199, 91, 0.12), rgba(82, 242, 140, 0.08));
}

.free-track span {
  background: linear-gradient(90deg, var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(243, 199, 91, 0.36);
}

.mint-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 16px;
}

.mode {
  min-height: 108px;
  padding: 14px;
  border: 1px solid rgba(198, 255, 220, 0.14);
  background: linear-gradient(145deg, rgba(82, 242, 140, 0.08), rgba(255, 255, 255, 0.035));
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.mode span,
.mode strong {
  display: block;
}

.mode-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode strong {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}

.mode span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.paid-mode {
  border-color: rgba(243, 199, 91, 0.28);
  background: linear-gradient(145deg, rgba(243, 199, 91, 0.11), rgba(94, 215, 255, 0.055));
}

.paid-mode .mode-kicker {
  color: var(--gold);
}

.mode.active {
  background: linear-gradient(145deg, rgba(82, 242, 140, 0.26), rgba(94, 215, 255, 0.1));
  color: var(--text);
  border-color: rgba(82, 242, 140, 0.66);
  box-shadow: inset 0 0 0 1px rgba(82, 242, 140, 0.24), 0 0 26px rgba(82, 242, 140, 0.12);
}

.paid-mode.active {
  background: linear-gradient(145deg, rgba(243, 199, 91, 0.28), rgba(82, 242, 140, 0.1));
  border-color: rgba(243, 199, 91, 0.7);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 91, 0.24), 0 0 28px rgba(243, 199, 91, 0.14);
}

.mint-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
}

.mint-row strong {
  color: var(--text);
  text-align: right;
}

.quantity-control {
  justify-content: space-between;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.quantity-control button {
  width: 52px;
  height: 46px;
  background: transparent;
  font-size: 22px;
}

.quantity-control output {
  font-weight: 900;
}

.mint-button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  font-weight: 900;
}

.mint-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.rules-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.rules-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-grid strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 26px;
}

.rules-grid p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .network-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .mint-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .wallet-button {
    width: 100%;
  }

  .hero-actions a,
  .rules-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .mint-panel {
    padding: 22px;
  }
}
