@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #100818;
  --panel: rgba(27, 15, 41, .88);
  --panel-strong: #21132f;
  --line: rgba(211, 155, 255, .24);
  --line-bright: rgba(239, 115, 228, .8);
  --text: #fffaff;
  --muted: #d3c4df;
  --pink: #f22b98;
  --pink-light: #ff55b1;
  --purple: #c854f3;
  --green: #2dd780;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(84, 19, 105, .24), transparent 58%),
    linear-gradient(145deg, #0d0714 0%, #160a21 52%, #100818 100%);
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #ff8cde;
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .16;
  pointer-events: none;
}
.ambient-one { top: 8%; left: -230px; background: #d51bd9; }
.ambient-two { top: 48%; right: -260px; background: #7d29ff; }

.app-shell {
  width: min(100% - 40px, 1180px);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 4;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font: 700 20px 'Space Grotesk', sans-serif;
  letter-spacing: -.7px;
}
.brand img { width: 36px; height: 38px; object-fit: cover; mix-blend-mode: screen; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.desktop-nav a, .mobile-nav a {
  color: #e8dced;
  font-size: 13px;
  transition: color .18s ease;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-nav a:hover { color: #ff82d2; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: linear-gradient(105deg, #ed1688, #df28c5);
  box-shadow: 0 9px 28px rgba(229, 30, 165, .22), inset 0 1px rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(229, 30, 165, .32); }
.button:active { transform: translateY(0); }
.button-small { min-height: 40px; padding: 0 18px; border-radius: 11px; font-size: 12px; }
.button-quiet {
  border-color: var(--line);
  background: rgba(43, 26, 59, .78);
  box-shadow: none;
}
.button-quiet:hover { box-shadow: 0 0 22px rgba(186, 66, 234, .2); }
.button-arrow { font-size: 21px; line-height: 1; }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

.page-content { flex: 1; display: flex; align-items: center; padding: 36px 0 44px; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(380px, 1.06fr);
  align-items: center;
  width: 100%;
  min-height: 520px;
  padding: 54px 60px;
  overflow: hidden;
  border: 1px solid rgba(212, 125, 255, .22);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 75% 53%, rgba(204, 39, 233, .3), transparent 42%),
    linear-gradient(125deg, rgba(28, 12, 39, .98), rgba(31, 11, 42, .94) 56%, rgba(48, 10, 64, .86));
  box-shadow: 0 26px 90px rgba(0,0,0,.33), inset 0 1px rgba(255,255,255,.06);
}
.hero-copy { position: relative; z-index: 2; max-width: 550px; }
.campaign-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(206, 120, 255, .28);
  border-radius: 999px;
  background: rgba(82, 39, 116, .35);
  color: #b7d9ff;
  font-size: 12px;
  font-weight: 600;
}
.campaign-tag .spark { color: #db91ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.045em; }
.hero h1 { max-width: 550px; margin-bottom: 18px; font-size: clamp(42px, 5.2vw, 66px); line-height: .99; }
.gradient-text {
  display: block;
  background: linear-gradient(90deg, #ff74d1, #d86dff 55%, #9f73ff);
  background-clip: text;
  color: transparent;
}
.hero-copy > p { max-width: 420px; margin-bottom: 25px; color: var(--muted); font-size: 17px; line-height: 1.52; }
.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 53%;
  height: 100%;
  overflow: hidden;
  opacity: .94;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 50%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 14%, #000 50%);
}
.hero-art img {
  position: absolute;
  top: 7%;
  right: -1%;
  width: min(60%, 340px);
  height: 92%;
  object-fit: cover;
  object-position: 50% 33%;
  filter: drop-shadow(0 0 32px rgba(199, 61, 255, .58));
  mix-blend-mode: screen;
}
.hero-art::after {
  position: absolute;
  inset: auto -25% -22% 5%;
  height: 48%;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent, rgba(185, 51, 238, .34), transparent);
  content: "";
  transform: rotate(-17deg);
  filter: blur(20px);
}
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
  margin: 34px 0 25px;
}
.hero-stat { display: flex; align-items: center; gap: 10px; min-width: 125px; color: #f6eafa; font-size: 12px; }
.stat-icon { color: #dc8aff; font-size: 22px; line-height: 1; }
.hero .button { min-width: 234px; }

.flow-panel {
  width: min(100%, 790px);
  margin: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(132, 47, 175, .13), transparent 52%),
    linear-gradient(145deg, rgba(29, 16, 43, .96), rgba(19, 11, 29, .96));
  box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
}
.flow-panel.narrow { width: min(100%, 560px); }
.panel-heading { margin: 0 auto 25px; text-align: center; }
.panel-heading h1 { margin-bottom: 9px; font-size: clamp(32px, 4vw, 43px); }
.panel-heading p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.55; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #e7b4ff;
  font-size: 13px;
  cursor: pointer;
}
.back-link:hover { color: white; }
.nft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nft-card {
  overflow: hidden;
  border: 1px solid rgba(220, 147, 255, .42);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(71, 39, 91, .57), rgba(29, 18, 41, .96));
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.nft-image-wrap { position: relative; height: 205px; overflow: hidden; background: #230e37; }
.nft-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .3s ease; }
.nft-card:hover .nft-image-wrap img { transform: scale(1.04); }
.nft-info { padding: 12px 12px 13px; }
.nft-info h3 { margin: 0 0 4px; font: 600 13px 'DM Sans', sans-serif; letter-spacing: -.02em; }
.nft-info p { margin: 0; color: #d4c2e0; font-size: 12px; }
.nft-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; color: #d491ff; font-size: 13px; }
.nft-selection { display: flex; align-items: center; gap: 8px; }
.nft-selection input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--pink);
  cursor: pointer;
}
.panel-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.panel-actions .button { min-width: 200px; }
.eligibility-list { overflow: hidden; border: 1px solid rgba(207, 142, 236, .23); border-radius: 15px; }
.eligibility-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; color: #f1e7f5; font-size: 13px; line-height: 1.5; }
.eligibility-item + .eligibility-item { border-top: 1px solid rgba(207, 142, 236, .2); }
.check-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #d986f1;
  color: #2a1236;
  font-size: 13px;
  font-weight: 700;
}
.terms-link { display: block; width: fit-content; margin: 18px auto 0; color: #e28dff; font-size: 13px; }
.terms-link:hover { color: #fff; }
.wallet-list { display: grid; gap: 10px; }
.connect-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 55px;
  padding: 10px 15px;
  border: 1px solid rgba(220, 147, 255, .2);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(70, 42, 84, .54), rgba(37, 24, 50, .72));
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.connect-btn:hover, .connect-btn.featured { border-color: var(--line-bright); background: rgba(90, 43, 105, .42); }
.connect-btn:hover { transform: translateY(-1px); }
.wallet-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 19px; }
.connect-btn:nth-child(1) .wallet-icon { background: linear-gradient(135deg,#ffc94d,#e88e2c); }
.connect-btn:nth-child(2) .wallet-icon { background: rgba(53, 134, 255, .2); color: #55a1ff; }
.connect-btn:nth-child(3) .wallet-icon { background: rgba(47, 115, 250, .25); color: #8eb3ff; }
.wallet-name { flex: 1; font-size: 14px; font-weight: 600; }
.wallet-chevron { color: #cfb8d8; font-size: 22px; }
.status-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 15px;
  border: 2px solid #8fffc1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,215,128,.34), rgba(45,215,128,.08));
  box-shadow: 0 0 26px rgba(45,215,128,.32), inset 0 0 18px rgba(45,215,128,.2);
  color: #baffd9;
  font-size: 38px;
}
.status-panel { overflow: hidden; margin-top: 20px; border: 1px solid rgba(212, 149, 255, .32); border-radius: 14px; background: rgba(47, 28, 63, .67); }
.status-row { display: flex; align-items: center; gap: 13px; padding: 12px 15px; }
.status-row + .status-row { border-top: 1px solid rgba(212, 149, 255, .19); }
.status-symbol { width: 22px; color: #d990ff; font-size: 19px; text-align: center; }
.status-label { display: block; margin-bottom: 2px; color: #cebddd; font-size: 11px; }
.status-value { display: block; color: white; font-size: 13px; }
.status-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #159b5c; color: white; font-size: 11px; font-weight: 700; }
.full-width { width: 100%; }
.claim-grid .nft-card { position: relative; cursor: pointer; }
.claim-grid .nft-image-wrap { height: 175px; }
.claim-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.claim-grid .nft-card.is-unselected { opacity: .58; }
.claim-grid .nft-card.is-unselected .claim-mark { background: rgba(22, 12, 30, .65); color: transparent; }
.claim-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(218, 147, 255, .35);
  border-radius: 13px;
  background: rgba(68, 40, 83, .4);
}
.claim-summary .gift { color: #e891ff; font-size: 25px; }
.claim-summary strong { flex: 1; font-size: 14px; }
.claim-summary .chevron { color: #d9c6e2; font-size: 22px; }
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.success-actions .button { min-height: 46px; padding-inline: 12px; font-size: 12px; }
.success-actions .button-quiet { font-size: 11px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 15px 16px; border: 1px solid rgba(207, 142, 236, .22); border-radius: 12px; background: rgba(49, 29, 63, .48); }
.faq-list summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.faq-list p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 3px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #a997b3;
  font-size: 11px;
}
.demo-note { color: #b9a2c6; text-align: right; }
.modal-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 3, 10, .72);
  backdrop-filter: blur(10px);
  animation: fade-in .18s ease;
}
.wallet-modal {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #e3e5ee;
  border-radius: 18px;
  background: #f9faff;
  box-shadow: 0 24px 90px rgba(0,0,0,.4);
  color: #11121a;
  text-align: center;
}
.wallet-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.wallet-modal-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wc-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #3987f7; color: white; font-size: 16px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #5e6370; font-size: 24px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #edf0f7; }
.wallet-modal h2 { margin: 0 0 17px; color: #11121a; font: 700 20px 'DM Sans', sans-serif; letter-spacing: -.03em; }
.qr-placeholder {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 13px;
  padding: 10px;
  border: 1px solid #dfe3eb;
  border-radius: 13px;
  background:
    repeating-conic-gradient(#10131b 0 25%, #fff 0 50%) 0 0 / 14px 14px;
  box-shadow: inset 0 0 0 6px white;
}
.qr-placeholder::before, .qr-placeholder::after, .qr-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 6px solid #10131b;
  border-radius: 7px;
  background: white;
  box-shadow: inset 0 0 0 5px white, inset 0 0 0 11px #10131b;
  content: "";
}
.qr-placeholder::before { top: 14px; left: 14px; }
.qr-placeholder::after { top: 14px; right: 14px; }
.qr-corner { bottom: 14px; left: 14px; }
.qr-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  background: #3b8df6;
  color: white;
  font-size: 20px;
  transform: translate(-50%, -50%);
}
.modal-caption { margin: 0 auto 16px; color: #505564; font-size: 12px; line-height: 1.5; }
.modal-demo-label { display: inline-block; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; background: #edf2fb; color: #586174; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.wallet-modal .button { width: 100%; min-height: 45px; border-radius: 10px; font-size: 13px; }
.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(228, 166, 255, .38);
  border-radius: 12px;
  background: #261537;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  color: #f8edff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 850px) {
  .app-shell { width: min(100% - 28px, 680px); }
  .site-header { min-height: 68px; gap: 14px; }
  .desktop-nav, .header-connect { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 2px; background: #fff; }
  .mobile-nav:not([hidden]) {
    position: absolute;
    z-index: 5;
    top: 62px;
    right: max(14px, calc((100vw - 680px) / 2));
    display: grid;
    min-width: 190px;
    gap: 1px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #21132f;
    box-shadow: 0 15px 38px rgba(0,0,0,.36);
  }
  .mobile-nav a { padding: 11px 12px; border-radius: 8px; }
  .mobile-nav a:hover { background: rgba(255,255,255,.06); }
  .page-content { padding: 22px 0 30px; }
  .hero { min-height: 600px; grid-template-columns: 1fr; padding: 42px 38px; align-items: start; }
  .hero-copy { max-width: 470px; }
  .hero-art { top: auto; bottom: 0; width: 85%; height: 63%; opacity: .82; }
  .hero-art img { right: 0; width: min(52%, 275px); height: 100%; }
  .hero-stats { gap: 14px; max-width: 430px; }
  .hero-stat { min-width: 120px; }
}

@media (max-width: 560px) {
  .app-shell { width: calc(100% - 22px); }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 34px; }
  .page-content { padding: 14px 0 24px; }
  .hero { min-height: 690px; padding: 29px 22px; border-radius: 20px; }
  .hero h1 { max-width: 390px; font-size: clamp(39px, 12vw, 54px); }
  .hero-copy > p { max-width: 340px; font-size: 15px; }
  .hero-art { width: 100%; height: 49%; opacity: .72; }
  .hero-art img { right: -10px; width: 58%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; margin-top: 25px; }
  .hero-stat { font-size: 11px; min-width: 0; }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .hero .button { position: relative; z-index: 2; min-width: 100%; }
  .flow-panel { padding: 22px 16px; border-radius: 19px; }
  .panel-heading { margin-bottom: 21px; }
  .panel-heading h1 { font-size: 33px; }
  .panel-heading p { font-size: 13px; }
  .nft-grid { gap: 8px; }
  .nft-image-wrap { height: clamp(105px, 35vw, 160px); }
  .nft-info { padding: 9px 8px 10px; }
  .nft-info h3 { font-size: 11px; line-height: 1.3; }
  .nft-info p { font-size: 10px; }
  .nft-footer { margin-top: 8px; font-size: 11px; }
  .claim-grid .nft-image-wrap { height: clamp(100px, 32vw, 148px); }
  .claim-grid .nft-info { padding: 8px 7px 9px; }
  .claim-grid .nft-info h3 { font-size: 10px; }
  .claim-grid .nft-info p { font-size: 9px; }
  .claim-mark { top: 6px; right: 6px; width: 20px; height: 20px; }
  .nft-selection { gap: 5px; font-size: 10px; }
  .nft-selection input { width: 15px; height: 15px; }
  .panel-actions { flex-direction: column; }
  .panel-actions .button { width: 100%; }
  .site-footer { flex-direction: column; gap: 6px; font-size: 10px; }
  .demo-note { text-align: left; }
  .eligibility-item { padding: 13px 12px; font-size: 12px; }
  .connect-btn { min-height: 52px; }
  .success-actions { grid-template-columns: 1fr; }
  .wallet-modal { padding: 20px; }
}

@media (max-height: 500px) {
  .modal-backdrop { align-items: start; padding-block: 10px; }
  .wallet-modal { max-height: calc(100vh - 20px); padding: 14px; }
  .wallet-modal-head { margin-bottom: 8px; }
  .wallet-modal h2 { margin-bottom: 8px; }
  .qr-placeholder { width: 115px; height: 115px; margin-bottom: 8px; padding: 6px; background-size: 10px 10px; }
  .qr-placeholder::before, .qr-placeholder::after, .qr-corner { width: 25px; height: 25px; border-width: 4px; border-radius: 5px; box-shadow: inset 0 0 0 3px white, inset 0 0 0 7px #10131b; }
  .qr-placeholder::before { top: 10px; left: 10px; }
  .qr-placeholder::after { top: 10px; right: 10px; }
  .qr-corner { bottom: 10px; left: 10px; }
  .qr-center { width: 32px; height: 32px; font-size: 16px; }
  .modal-demo-label { margin-bottom: 7px; padding: 4px 8px; }
  .modal-caption { margin-bottom: 8px; font-size: 11px; line-height: 1.35; }
  .wallet-modal .button { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
