:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0a0a0a;
  --soft: #111111;
  --white: #f3f2ec;
  --grey: #999994;
  --dim: #5d5d59;
  --line: rgba(243, 242, 236, 0.18);
  --mono: "DM Mono", monospace;
  --sans: "Inter", sans-serif;
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

::selection { background: var(--white); color: var(--black); }

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 34px;
  font: 500 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-size: 15px; text-decoration: none; text-transform: lowercase; }
.brand-mark { display: block; width: 25px; height: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); background: #000; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-dot { color: var(--grey); }
.header-status { display: flex; gap: 8px; align-items: center; color: var(--grey); }
.pulse-dot { width: 6px; height: 6px; background: var(--white); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,255,255,.4); animation: pulse 2s infinite; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.text-link { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--line); }

.hero {
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 34px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.display-title { margin: 30px 0 18px; font-size: clamp(66px, 10.4vw, 158px); line-height: .82; letter-spacing: -.072em; font-weight: 800; }
.display-title span { display: block; }
.display-title span:last-child { color: #a6a6a0; }

.hero-grid { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: 7vw; align-items: end; }
.hero-copy { align-self: center; padding: 36px 0; }
.lead { max-width: 610px; margin: 0 0 34px; color: #c3c3bd; font: 300 clamp(17px, 2vw, 25px)/1.55 var(--sans); }
.lead strong { color: var(--white); font-weight: 600; }
.primary-button, .share-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-width: 300px;
  padding: 18px 20px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  font: 500 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.primary-button:hover, .share-button:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

.mascot-stage { position: relative; min-height: 430px; display: grid; place-items: center; overflow: visible; }
.mascot-stage::before { content: ""; position: absolute; z-index: 0; width: min(64%, 400px); aspect-ratio: 1; background: var(--white); transform: translate(18px, 18px); }
.mascot-stage::after { content: "CODEX / ROBINHOOD"; position: absolute; z-index: 3; left: 12%; bottom: 9%; padding: 8px 10px; border: 1px solid rgba(255,255,255,.24); background: var(--black); color: var(--grey); font: 500 8px var(--mono); letter-spacing: .12em; }
.mascot-stage img { position: relative; z-index: 2; width: min(64%, 400px); aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(255,255,255,.22); filter: grayscale(1) contrast(1.16); animation: editorialFloat 8s cubic-bezier(.45,0,.55,1) infinite; }
.scroll-line { height: 44px; width: 1px; background: var(--line); margin: 20px auto -48px; overflow: hidden; }
.scroll-line span { display: block; width: 100%; height: 45%; background: var(--white); animation: scrollLine 2s ease-in-out infinite; }

.manifesto, .missions { max-width: var(--max); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.manifesto { padding: 140px 34px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 150px); align-items: center; border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 20px; color: var(--grey); font: 500 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.manifesto h2, .missions h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.manifesto-copy { max-width: 560px; margin: 32px 0 0; color: #a8a8a2; font: 300 17px/1.72 var(--sans); }
.airdrop-terminal { overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: #070707; box-shadow: 14px 14px 0 #101010; font: 500 11px/1.7 var(--mono); }
.terminal-command { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--grey); }
.terminal-command span, .terminal-prompt { color: var(--white); }
.terminal-output { min-height: 280px; padding: 24px 20px; }
.terminal-output p { display: flex; gap: 12px; margin: 0 0 16px; white-space: pre-wrap; }
.terminal-ready { padding-top: 13px; border-top: 1px dashed var(--line); color: var(--white); }
.terminal-ready span:last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; background: var(--white); vertical-align: -2px; animation: cursorBlink 1s steps(1) infinite; }

.missions { padding: 120px 34px 80px; background: var(--panel); border-top: 1px solid var(--line); }
.missions-head { margin: 0 0 74px; }
.access-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(44px, 8vw, 120px); }

.allowlist-form { min-width: 0; }
.field-block { padding: 0 0 28px; border-bottom: 1px dashed rgba(255,255,255,.23); }
.field-block label { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; margin-bottom: 22px; }
.step-number, .task-state { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--grey); font: 10px var(--mono); }
.field-block label strong, .task-copy strong { display: block; font: 500 17px/1.3 var(--mono); }
.field-block label small, .task-copy small { display: block; margin-top: 7px; color: var(--dim); font: 400 10px/1.45 var(--mono); }
.input-shell { display: flex; align-items: center; gap: 10px; margin-left: 58px; border: 1px solid var(--line); background: #070707; padding: 0 18px; transition: border-color .2s ease, box-shadow .2s ease; }
.input-shell:focus-within { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.input-shell span { color: var(--grey); font: 14px var(--mono); }
.input-shell input { width: 100%; min-width: 0; padding: 17px 0; border: 0; outline: 0; background: transparent; color: var(--white); font: 13px var(--mono); }
.input-shell input::placeholder { color: #454542; }
.field-error { min-height: 16px; margin: 8px 0 0 58px; color: #e6e5df; font: 10px var(--mono); }

.task-list { margin: 0; padding: 0; border: 0; }
.task { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border: 0; border-bottom: 1px dashed rgba(255,255,255,.23); background: transparent; text-align: left; cursor: pointer; transition: padding-left .25s ease, color .25s ease; }
.task:hover { padding-left: 8px; }
.task:focus-visible { outline: 1px solid var(--white); outline-offset: 5px; }
.task-action { color: var(--grey); font: 10px var(--mono); text-transform: uppercase; }
.task.completed .task-state { border-color: var(--white); background: var(--white); color: var(--black); }
.task.completed .task-state::before { content: "✓"; font-size: 13px; }
.task.completed .task-state { font-size: 0; }
.task.completed .task-action { color: var(--white); }
.wallet-block { padding-top: 28px; }
.wallet-shell { margin-top: 0; }

.honeypot { position: absolute; left: -9999px; }
.submit-zone { padding-top: 32px; }
.submit-button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border: 1px solid var(--white); background: var(--white); color: var(--black); cursor: pointer; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background .25s ease, color .25s ease; }
.submit-button:hover:not(:disabled) { background: transparent; color: var(--white); }
.submit-button:disabled { cursor: not-allowed; opacity: .45; }
.submit-button.loading .submit-icon { animation: spin 1s linear infinite; }
.form-status { min-height: 20px; margin: 0 0 10px; color: var(--grey); font: 10px/1.5 var(--mono); }
.form-status.error { color: var(--white); }
.consent { max-width: 520px; margin: 14px 0 0; color: var(--dim); font: 9px/1.55 var(--mono); }

.side-panel { position: sticky; top: 28px; align-self: start; }
.terminal-card { border: 1px solid var(--line); background: #070707; }
.terminal-head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font: 9px var(--mono); text-transform: uppercase; }
.terminal-head span:last-child { color: var(--white); }
.terminal-card pre { margin: 0; padding: 24px 20px 28px; overflow: auto; color: #777773; font: 10px/1.9 var(--mono); }
.terminal-card .bright { color: var(--white); }
.terminal-card .muted { color: #4f4f4b; }
.note-card { display: flex; gap: 15px; padding: 22px; border: 1px solid var(--line); border-top: 0; color: var(--grey); }
.note-symbol { font-size: 22px; }
.note-card p { margin: 0; font: 10px/1.65 var(--mono); }

footer { max-width: var(--max); margin: 0 auto; padding: 42px 34px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; border: 1px solid var(--line); border-top: 0; color: var(--dim); font: 9px/1.6 var(--mono); text-transform: uppercase; }
footer p { margin: 0; }
footer a { justify-self: end; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); animation: fadeIn .3s ease both; }
.success-card { position: relative; z-index: 1; width: min(620px, 100%); max-height: calc(100svh - 32px); overflow-x: hidden; overflow-y: auto; padding: 36px 40px 30px; border: 1px solid var(--white); background: #080808; box-shadow: 0 30px 100px rgba(0,0,0,.8); animation: cardIn .5s cubic-bezier(.22,1,.36,1) both; }
.card-grid { position: absolute; inset: 0; opacity: .1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 38%); }
.modal-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.22); background: rgba(8,8,8,.86); color: var(--grey); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; width: 15px; height: 1px; background: currentColor; }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover { color: var(--white); border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); transform: rotate(2deg); }
.modal-close:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }
.success-card > *:not(.card-grid):not(.modal-close) { position: relative; z-index: 1; }
.success-header { display: flex; align-items: center; gap: 15px; padding-right: 42px; }
.success-logo { flex: 0 0 62px; width: 62px; height: 62px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); background: #000; }
.success-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.success-header .eyebrow { margin-bottom: 7px; color: var(--white); }
.success-kicker { margin: 0; color: var(--dim); font: 500 8px var(--mono); letter-spacing: .12em; }
.success-card h2 { margin: 44px 0 0; font-size: clamp(34px, 7vw, 56px); line-height: .96; letter-spacing: -.055em; }
.success-position { margin: 26px 0 0; color: var(--grey); font: 10px var(--mono); letter-spacing: .11em; }
.success-position strong { display: block; margin-top: 8px; color: var(--white); font-size: 28px; letter-spacing: .04em; }
.success-copy { margin: 24px 0; max-width: 500px; color: #b7b7b1; font: 300 14px/1.68 var(--sans); }
.success-meta { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--dim); font: 9px var(--mono); text-transform: uppercase; }
.success-actions { display: grid; gap: 10px; margin-top: 22px; }
.share-button { width: 100%; margin-top: 0; min-width: 0; cursor: pointer; }
.share-button:disabled { opacity: .55; cursor: wait; transform: none; }
.opensea-button, .download-button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.02); color: var(--white); cursor: pointer; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.opensea-button { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.055); }
.opensea-button:hover, .download-button:hover:not(:disabled) { border-color: var(--white); background: rgba(255,255,255,.09); transform: translateY(-2px); }
.download-button:disabled { opacity: .5; cursor: wait; }
.share-status { min-height: 15px; margin: 9px 0 0; color: var(--grey); font: 9px/1.5 var(--mono); }
.card-foot { margin: 18px 0 0; color: var(--dim); text-align: center; font: 8px var(--mono); letter-spacing: .15em; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes editorialFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scrollLine { 0% { transform: translateY(-110%); } 100% { transform: translateY(240%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes pulseSoft { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.04); } }
@keyframes cursorBlink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 110px; }
  .display-title { margin-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .mascot-stage { min-height: 360px; order: -1; }
  .manifesto { grid-template-columns: 1fr; gap: 48px; padding-top: 100px; }
  .access-grid { margin-left: 0; grid-template-columns: 1fr; }
  .side-panel { position: static; }
}

@media (max-width: 620px) {
  .site-header { padding: 20px; grid-template-columns: 1fr 1fr; }
  .header-status { display: none; }
  .header-actions { gap: 11px; font-size: 9px; }
  .hero { padding: 100px 20px 40px; }
  .display-title { font-size: clamp(52px, 18vw, 84px); line-height: .86; margin: 46px 0 22px; }
  .primary-button { width: 100%; min-width: 0; }
  .mascot-stage { min-height: 290px; }
  .mascot-stage::before, .mascot-stage img { width: 74%; }
  .mascot-stage::after { left: 5%; bottom: 5%; }
  .manifesto, .missions { border-left: 0; border-right: 0; }
  .manifesto { padding: 90px 20px; }
  .manifesto h2, .missions h2 { font-size: 43px; }
  .missions { padding: 84px 20px 60px; }
  .missions-head { margin-bottom: 48px; }
  .field-block label, .task { grid-template-columns: 36px 1fr; gap: 12px; }
  .task-action { grid-column: 2; }
  .input-shell, .field-error { margin-left: 48px; }
  .field-block label strong, .task-copy strong { font-size: 14px; }
  .success-card { padding: 28px 22px 24px; }
  .success-logo { flex-basis: 52px; width: 52px; height: 52px; }
  .success-card h2 { margin-top: 34px; }
  footer { grid-template-columns: 1fr; padding: 34px 20px; }
  footer p { text-align: left; }
  footer a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
