:root {
  --bg: #06090a;
  --bg-alt: #0a0f0d;
  --panel: #0d1512;
  --panel-border: #1e3324;
  --green: #76b900;
  --green-bright: #9ee62c;
  --green-dim: #4d7a12;
  --text: #eaf5e6;
  --text-dim: #9fb3a0;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* matrix rain background */
#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
  opacity: .55;
  background: var(--bg);
}

/* flickering light dots */
.flicker-lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.flicker-lights span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 6px 1px rgba(158,230,44,.9);
  animation: flickerDot 3s ease-in-out infinite;
}
@keyframes flickerDot {
  0%, 100% { opacity: 0; }
  45% { opacity: 0; }
  50% { opacity: 1; }
  55% { opacity: .2; }
  60% { opacity: 1; }
  90% { opacity: 0; }
}

/* background grid + scanlines */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(118, 185, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 185, 0, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0px,
    rgba(0,0,0,0.08) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: .5;
  mix-blend-mode: overlay;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(118,185,0,.6));
}

.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
  color: var(--green-bright);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: .92rem;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--green-bright); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #06120a;
  box-shadow: 0 0 18px rgba(118,185,0,.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(158,230,44,.7);
  background: var(--green-bright);
}

.btn-ghost {
  border-color: var(--panel-border);
  color: var(--text);
  background: rgba(118,185,0,.05);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--green-bright);
}

/* HERO */
.hero {
  position: relative;
  z-index: 2;
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--green);
  font-size: .85rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1;
}

.glitch {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 700;
  color: var(--green-bright);
  position: relative;
  text-shadow: 0 0 24px rgba(118,185,0,.55);
  font-family: var(--sans);
  letter-spacing: -1px;
  width: fit-content;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  color: var(--green-bright);
}
.glitch::before {
  animation: glitchTop 3.5s infinite linear alternate-reverse;
  color: #06120a;
  clip-path: inset(0 0 60% 0);
}
.glitch::after {
  animation: glitchBottom 2.7s infinite linear alternate-reverse;
  color: var(--green);
  clip-path: inset(60% 0 0 0);
}

@keyframes glitchTop {
  0% { transform: translate(0,0); }
  20% { transform: translate(-3px,-1px); }
  40% { transform: translate(3px,1px); }
  60% { transform: translate(-2px,1px); }
  80% { transform: translate(2px,-1px); }
  100% { transform: translate(0,0); }
}
@keyframes glitchBottom {
  0% { transform: translate(0,0); }
  20% { transform: translate(2px,1px); }
  40% { transform: translate(-3px,-1px); }
  60% { transform: translate(2px,-1px); }
  80% { transform: translate(-2px,1px); }
  100% { transform: translate(0,0); }
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-dim);
  font-weight: 500;
  font-family: var(--mono);
}

.hero-desc {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-desc strong { color: var(--green-bright); }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: .75rem;
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--green);
  background: rgba(118,185,0,.06);
}

.hero-art {
  position: relative;
}

.hero-art-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 0 1px rgba(118,185,0,.15), 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -10px rgba(118,185,0,.25);
}
.hero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(158,230,44,.9), transparent);
  filter: blur(1px);
  animation: scan 3.2s linear infinite;
  box-shadow: 0 0 12px rgba(158,230,44,.8);
}
@keyframes scan {
  0% { top: 0%; }
  100% { top: 100%; }
}

.ticker-chip {
  position: absolute;
  bottom: -18px;
  left: 20px;
  background: #0a1410;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.hero-marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: var(--green);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 18px;
  padding: 12px 0;
  animation: marquee 18s linear infinite;
  font-family: var(--mono);
  font-weight: 700;
  color: #06120a;
  letter-spacing: 1px;
  font-size: .85rem;
}
.marquee-track span { padding: 0 6px; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(118,185,0,.04), transparent); }

.section-eyebrow {
  font-family: var(--mono);
  color: var(--green);
  font-size: .8rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 24ch;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 28px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 12px 30px -10px rgba(118,185,0,.3);
}
.about-icon { font-size: 1.8rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--green-bright); }
.about-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.55; }

/* SPEC STRIP */
.spec-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: var(--bg-alt);
}
.spec-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 40px 24px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--panel-border);
}
.spec-item:last-child { border-right: none; }
.spec-value {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: 0 0 20px rgba(118,185,0,.4);
}
.spec-label {
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .5px;
}

/* TOKENOMICS */
.tokenomics-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.chip-visual { display: flex; justify-content: center; }
.chip {
  position: relative;
  width: 230px;
  height: 230px;
  background: linear-gradient(145deg, #0d1512, #0a0f0d);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(118,185,0,.08), 0 0 40px -10px rgba(118,185,0,.35);
}
.chip-core {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  background: #06100a;
  border: 1px solid var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 0 30px rgba(118,185,0,.5) inset;
}
.chip-core img { width: 100%; filter: drop-shadow(0 0 10px rgba(118,185,0,.6)); }

.pin {
  position: absolute;
  background: var(--green-dim);
}
.pin-t1, .pin-t2, .pin-t3, .pin-b1, .pin-b2, .pin-b3 {
  width: 3px; height: 16px;
}
.pin-l1, .pin-l2, .pin-r1, .pin-r2 {
  width: 16px; height: 3px;
}
.pin-t1 { top: -16px; left: 30%; }
.pin-t2 { top: -16px; left: 48%; }
.pin-t3 { top: -16px; left: 66%; }
.pin-b1 { bottom: -16px; left: 30%; }
.pin-b2 { bottom: -16px; left: 48%; }
.pin-b3 { bottom: -16px; left: 66%; }
.pin-l1 { left: -16px; top: 35%; }
.pin-l2 { left: -16px; top: 60%; }
.pin-r1 { right: -16px; top: 35%; }
.pin-r2 { right: -16px; top: 60%; }

.token-table {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
}
.token-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: .92rem;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel);
}
.token-row:last-child { border-bottom: none; }
.token-row span:first-child { color: var(--text-dim); }
.token-row span:last-child { color: var(--green-bright); font-weight: 600; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 22px;
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  color: var(--green);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .88rem; line-height: 1.5; }

.contract-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 28px;
}
.contract-label {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.contract-value {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.contract-value code {
  font-family: var(--mono);
  background: #06100a;
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--green-bright);
  flex: 1;
  min-width: 240px;
  word-break: break-all;
}
.copy-btn {
  font-family: var(--mono);
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green-bright);
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .82rem;
  transition: all .2s;
}
.copy-btn:hover { background: var(--green); color: #06120a; }
.contract-warning {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-dim);
}

/* ROADMAP */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.roadmap-phase {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.roadmap-phase::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 14px 14px 0 0;
}
.phase-tag {
  font-family: var(--mono);
  color: var(--green-bright);
  font-size: .78rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.roadmap-phase li {
  font-size: .88rem;
  color: var(--text-dim);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.roadmap-phase li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* GALLERY */
.gallery-desc {
  color: var(--text-dim);
  margin-top: -32px;
  margin-bottom: 40px;
  max-width: 48ch;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--green);
  box-shadow: 0 12px 26px -10px rgba(118,185,0,.4);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4,6,6,.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 60px rgba(118,185,0,.25);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s;
}
.lightbox-close:hover { border-color: var(--green); color: var(--green-bright); }

/* COMMUNITY */
.section-community { text-align: center; }
.community-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.community-logo {
  width: 72px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 16px rgba(118,185,0,.5));
}
.community-desc {
  color: var(--text-dim);
  max-width: 42ch;
  margin: 14px auto 34px;
}
.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  font-family: var(--mono);
  font-size: .85rem;
  padding: 12px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  transition: all .2s;
}
.social-btn:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: rgba(118,185,0,.06);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--panel-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green-bright);
}
.footer-brand img { width: 26px; }
.footer-disclaimer {
  max-width: 60ch;
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer-copy {
  font-size: .78rem;
  color: var(--text-dim);
  opacity: .6;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .tokenomics-grid { grid-template-columns: 1fr; }
  .spec-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .spec-item:nth-child(2) { border-right: none; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .about-grid, .steps, .roadmap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 40px; }

  .navbar-inner { flex-wrap: wrap; position: relative; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    order: 4;
    width: 100%;
    background: rgba(6, 9, 10, 0.98);
    border-top: 1px solid var(--panel-border);
    margin-top: 14px;
  }
  .nav-links.open a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--panel-border);
  }
  .nav-cta.open {
    display: inline-flex;
    order: 5;
    width: 100%;
    margin-top: 10px;
  }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
