:root {
  --bg: #030604;
  --panel: rgba(6, 13, 8, 0.86);
  --lime: #9cff38;
  --lime-soft: #63d91e;
  --lime-dim: rgba(156, 255, 56, 0.18);
  --line: rgba(156, 255, 56, 0.24);
  --gold: #f2c75c;
  --text: #e8f5e1;
  --muted: #768374;
  --mono: "Courier New", "Lucida Console", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .72;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(3, 8, 4, .52) 0 22%, transparent 62%);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
}

.gate::before {
  content: "";
  position: absolute;
  width: min(78vw, 760px);
  height: min(78vw, 760px);
  border: 1px solid rgba(156, 255, 56, .12);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(101, 255, 31, .05) inset;
  pointer-events: none;
}

.gate.is-exiting { opacity: 0; transform: scale(1.02); visibility: hidden; }
.gate-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--bg);
  background: var(--lime);
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(156, 255, 56, .45);
}
.eyebrow, .gate-status, .gate-hint { letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { margin: 0 0 .8rem; color: var(--lime); font-size: .72rem; }
.gate h1 {
  margin: 0;
  font-family: Arial Black, Impact, sans-serif;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: .84;
  letter-spacing: -.085em;
  color: var(--lime);
  text-shadow: 0 0 34px rgba(156, 255, 56, .22);
}
.gate h1::first-letter { color: var(--gold); }
.gate-expansion { margin: 1rem 0 0; font-size: clamp(.72rem, 1.5vw, 1rem); letter-spacing: .18em; }
.gate-status { margin-top: 2.5rem; color: var(--muted); font-size: .68rem; }
.gate-status span, .live-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.enter-button {
  position: relative;
  min-width: 12rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--lime);
  background: rgba(3, 6, 4, .78);
  color: var(--lime);
  letter-spacing: .22em;
  cursor: pointer;
  transition: .2s ease;
}
.enter-button:hover, .enter-button:focus-visible { color: var(--bg); background: var(--lime); box-shadow: 0 0 35px rgba(156, 255, 56, .35); outline: none; }
.enter-button span { opacity: .55; }
.gate-hint { margin: -.6rem 0 0; color: #4b5a4a; font-size: .62rem; animation: blink 1.4s steps(2) infinite; }

.is-hidden { display: none !important; }
.site-shell { position: relative; z-index: 2; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: .8rem clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 4, .88);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-glyph { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: var(--lime); color: var(--bg); font-size: 1.2rem; font-weight: 900; }
.brand strong { display: block; font-family: Arial Black, Impact, sans-serif; letter-spacing: -.04em; }
.brand small { display: block; margin-top: .12rem; color: var(--muted); font-size: .55rem; letter-spacing: .12em; }
.nav { display: flex; justify-content: center; gap: clamp(.7rem, 1.5vw, 1.6rem); }
.nav a { position: relative; color: #8d998a; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--lime); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.65rem; height: 1px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.connect-button, .menu-toggle { padding: .65rem .8rem; border: 1px solid var(--line); background: transparent; color: var(--lime); font-size: .68rem; letter-spacing: .1em; cursor: pointer; }
.connect-button .live-dot { margin-left: .5rem; width: .35rem; height: .35rem; }
.menu-toggle { display: none; }

main { min-height: calc(100vh - 122px); padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 6vw, 7rem); background: linear-gradient(90deg, rgba(3,6,4,.5), rgba(3,6,4,.22), rgba(3,6,4,.5)); }
.page { width: min(1320px, 100%); margin: 0 auto; animation: reveal .55s ease both; }
.home-hero { min-height: calc(100vh - 220px); display: grid; align-content: center; }
.terminal-label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem; color: var(--lime); font-size: .72rem; letter-spacing: .18em; }
.terminal-label::before { content: ""; width: 2rem; height: 1px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; }
.hero-copy h2 { max-width: 820px; margin: 0; font-family: Arial Black, Impact, sans-serif; font-size: clamp(3.3rem, 8vw, 8rem); line-height: .88; letter-spacing: -.075em; text-transform: uppercase; }
.hero-copy h2 span { color: transparent; -webkit-text-stroke: 1px var(--lime); text-shadow: 0 0 20px rgba(156,255,56,.13); }
.hero-copy p { max-width: 650px; margin: 2rem 0 0; color: #99a797; font-family: Arial, sans-serif; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; }

.countdown-panel { position: relative; padding: 1.4rem; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(9,20,11,.94), rgba(3,6,4,.85)); box-shadow: 0 0 50px rgba(72, 255, 33, .06); overflow: hidden; }
.countdown-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(156,255,56,.04), transparent); transform: translateX(-100%); animation: scan 4s linear infinite; }
.countdown-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .65rem; letter-spacing: .12em; }
.countdown-head b { color: var(--lime); font-weight: 400; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin: 1.4rem 0; }
.time-cell { padding: 1rem .25rem; border: 1px solid rgba(156,255,56,.14); background: rgba(156,255,56,.025); text-align: center; }
.time-cell strong { display: block; color: var(--lime); font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1; text-shadow: 0 0 16px rgba(156,255,56,.3); font-weight: 400; }
.time-cell span { display: block; margin-top: .6rem; color: #52604f; font-size: .56rem; letter-spacing: .13em; }
.countdown-foot { display: flex; justify-content: space-between; color: #52604f; font-size: .62rem; }

.page-header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 2.5rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.page-kicker { color: var(--lime); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.page-header h1 { margin: .7rem 0 0; font-family: Arial Black, Impact, sans-serif; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.page-code { color: #455343; font-size: .65rem; letter-spacing: .14em; }
.workspace { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.panel { position: relative; padding: clamp(1.1rem, 2vw, 1.8rem); border: 1px solid rgba(156,255,56,.2); background: rgba(5, 12, 7, .96); overflow: hidden; }
.panel::after { content: ""; position: absolute; top: 0; left: 0; width: 1.4rem; height: 1.4rem; border-top: 1px solid var(--lime); border-left: 1px solid var(--lime); }
.panel h3 { margin: 0 0 .8rem; color: var(--lime); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.panel p { margin: 0; color: #a0ad9d; font-family: Arial, sans-serif; line-height: 1.55; }
.span-12 { grid-column: span 12; }.span-8 { grid-column: span 8; }.span-7 { grid-column: span 7; }.span-6 { grid-column: span 6; }.span-5 { grid-column: span 5; }.span-4 { grid-column: span 4; }
.big-number { margin: .7rem 0; color: var(--text); font-size: clamp(2rem, 5vw, 4.6rem); }
.big-number em { color: var(--lime); font-style: normal; }
.fake-button { display: inline-flex; margin-top: 1.4rem; padding: .8rem 1rem; border: 1px solid var(--lime); color: var(--lime); font-size: .7rem; letter-spacing: .12em; }
.data-list { display: grid; gap: .65rem; margin-top: 1rem; }
.data-row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(156,255,56,.1); color: #899887; font-size: .76rem; }
.data-row b { color: var(--text); font-weight: 400; }.data-row i { color: var(--lime); font-style: normal; }
.nft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.nft-card { aspect-ratio: 1; display: grid; align-content: end; padding: 1rem; border: 1px solid rgba(156,255,56,.16); background: radial-gradient(circle at 50% 35%, rgba(156,255,56,.18), transparent 24%), linear-gradient(145deg, #0a130c, #030604); }
.nft-face { align-self: center; justify-self: center; width: 42%; aspect-ratio: 1; clip-path: polygon(50% 0, 86% 28%, 100% 85%, 70% 72%, 50% 100%, 30% 72%, 0 85%, 14% 28%); background: #111613; border: 1px solid var(--lime); filter: drop-shadow(0 0 12px rgba(156,255,56,.25)); }
.nft-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }.nft-meta b { color: var(--lime); }
.doc-links { display: grid; gap: .75rem; margin-top: 1rem; }
.doc-link { display: flex; justify-content: space-between; padding: 1rem; border: 1px solid rgba(156,255,56,.14); color: #a9b5a6; }.doc-link span:last-child { color: var(--lime); }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 3.5rem); border-top: 1px solid var(--line); color: #40503f; font-size: .6rem; letter-spacing: .12em; }

@keyframes blink { 50% { opacity: .25; } }
@keyframes scan { to { transform: translateX(100%); } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto auto auto; justify-content: space-between; gap: 1rem; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: #050a06; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem; }
  .nav a.active::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .countdown-panel { max-width: 700px; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 66px; }
  .connect-button { display: none; }
  .nav { top: 66px; }
  main { padding-top: 3rem; }
  .gate-expansion { max-width: 290px; line-height: 1.6; }
  .page-header { grid-template-columns: 1fr; gap: .8rem; }
  .workspace { display: block; }
  .panel { margin-bottom: 1rem; }
  .nft-grid { grid-template-columns: repeat(2, 1fr); }
  .data-row { grid-template-columns: 1fr auto; }.data-row span:nth-child(2) { display: none; }
  footer span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
