/* ---------- Design tokens ---------- */
:root {
  --bg: #050505;
  --bg-raised: #0A0C06;
  --bg-card: #0C0E08;
  --bg-card-alt: #0E1109;
  --border: #1C1F16;
  --border-strong: #2A3120;
  --text: #F2F2F0;
  --text-muted: #D8DCCE;
  --text-dim: #C9CDBF;
  --text-dimmer: #9BA08D;
  --text-faint: #8D9182;
  --text-footer: #6E7364;
  --green: #A8FF1F;
  --green-dark: #7ED30F;
  --red: #FF1744;
  --ink: #0A0C05;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  letter-spacing: .06em;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--ink);
  padding: 13px 22px;
  font-size: 15px;
}
.btn-primary:hover { background: var(--red); color: #fff; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  padding: 13px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  min-height: 44px;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-large { font-size: 18px; padding: 15px 30px; }
.btn-small { font-size: 14px; padding: 12px 16px; min-height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--green);
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav a:not(.btn) {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.primary-nav a:not(.btn):hover { color: var(--red); }

.mobile-actions { display: none; align-items: center; gap: 10px; }
.menu-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--green);
  cursor: pointer;
  position: relative;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: sticky;
  top: 75px;
  z-index: 49;
  flex-direction: column;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 8px 18px 16px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid #171B10;
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .primary-nav { display: none; }
  .mobile-actions { display: flex; }
  .mobile-nav { display: flex; }
}
@media (min-width: 761px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 22px;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 44px);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 22px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
}
.accent-green { color: var(--green); }
.accent-red { color: var(--red); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}
.body-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 52ch;
}

.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.three-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-grid.four-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover { border-color: var(--green); }
.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}
.card-body { font-size: 15px; line-height: 1.6; color: var(--text-dimmer); }
.card-tag { font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; margin: 0; }
.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: #1F2616;
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; }
.hero-media { position: relative; isolation: isolate; }
.hero-image {
  width: 100%;
  height: 58vw;
  max-height: 300px;
  object-fit: cover;
  object-position: 46% center;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 55%, rgba(5, 5, 5, .95) 100%);
}
.hero-copy {
  padding: 4px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}
.hero-copy .eyebrow { font-size: 11px; letter-spacing: .24em; }
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 12vw, 60px);
  line-height: .94;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-copy .lede { font-size: 16px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.hero-copy .hero-headline { display: none; margin: 0; }
.hero-copy .lede-desktop { display: none; }
.hero-copy .lede-mobile { display: block; }
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding-top: 4px;
}
.cta-row .btn { min-height: 48px; }

@media (min-width: 761px) {
  .hero-image { height: auto; max-height: none; object-position: center; }
  .hero-fade { background: linear-gradient(180deg, rgba(5, 5, 5, 0) 62%, rgba(5, 5, 5, .9) 100%); }
  .hero-copy {
    padding: clamp(18px, 2.5vw, 32px) 22px clamp(44px, 6vw, 72px);
  }
  .hero-copy .eyebrow { font-size: 13px; letter-spacing: .3em; }
  .hero-copy h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-copy .hero-headline {
    display: block;
    margin: 0;
    max-width: 52ch;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 38px);
    line-height: 1.12;
    text-transform: uppercase;
    text-wrap: balance;
  }
  .hero-copy .lede { max-width: 56ch; font-size: clamp(15px, 1.6vw, 19px); }
  .hero-copy .lede-desktop { display: block; }
  .hero-copy .lede-mobile { display: none; }
  .cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .cta-row .btn { min-height: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--green);
  color: var(--ink);
  border-top: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  padding: 11px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: feg-marquee 26s linear infinite;
}
.marquee-group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes feg-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes feg-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .pulse-dot { animation: none; }
}

/* ---------- Mission ---------- */
.mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.mission-media {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.mission-tags {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
}
.tag-green { background: var(--green); color: var(--ink); }
.tag-red { background: var(--red); color: #fff; }
.mission-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mission-copy h2 { font-size: clamp(30px, 4.6vw, 58px); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
  padding-top: 6px;
}
.stat-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  padding: 18px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--green);
  line-height: 1;
}
.stat-label { margin: 6px 0 0; font-size: 13px; color: var(--text-faint); line-height: 1.4; }

/* ---------- Fund ---------- */
.fund-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.section-inner.fund-header,
.fund-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.fund-note { max-width: 44ch; }
.fund-progress {
  border: 2px solid var(--green);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 34px);
  background: #050705;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.fund-progress-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}
.fund-raised {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  color: var(--green);
}
.fund-goal { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.progress-track { height: 16px; border-radius: 999px; background: #171B10; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-dark), var(--green)); }

.fund-section .card { background: var(--bg-card-alt); }

/* ---------- Buy ---------- */
.contract-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 22px;
}
.contract-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.contract-address {
  font-family: ui-monospace, monospace;
  font-size: 14px;
  color: var(--green);
  word-break: break-all;
  flex: 1 1 260px;
  min-width: 0;
}
#copy-contract { min-height: 44px; padding: 13px 22px; }

/* ---------- Tokenomics ---------- */
.tokenomics-section { border-top: 1px solid var(--border); background: var(--bg-raised); }
.tokenomics-section .section-inner { padding: clamp(56px, 8vw, 96px) 22px; }
.tokenomics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.tokenomics-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tokenomics-copy h2 { font-size: clamp(28px, 4.2vw, 52px); }
.tokenomics-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tokenomics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.tokenomics-row dt { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.tokenomics-row dd { font-family: var(--font-display); font-size: 22px; }

/* ---------- Roadmap ---------- */
.phase-status { display: flex; align-items: center; gap: 10px; }
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  animation: feg-pulse 2.4s ease-in-out infinite;
  display: inline-block;
}
.phase-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Same chain ---------- */
.same-chain { border-top: 1px solid var(--border); display: flex; flex-direction: column; padding: 0; gap: 0; max-width: none; }
.same-chain-media { position: relative; isolation: isolate; }
.same-chain-media img {
  width: 100%;
  height: 50vw;
  max-height: 260px;
  object-fit: cover;
  object-position: 38% center;
}
.same-chain-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 50%, rgba(5, 5, 5, .95) 100%);
}
.same-chain-copy {
  padding: 4px 18px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.same-chain-copy h2 { font-size: clamp(32px, 10vw, 48px); line-height: .98; }
.same-chain-copy .btn { align-self: flex-start; }

@media (min-width: 761px) {
  .same-chain { position: relative; isolation: isolate; }
  .same-chain-media img { height: auto; min-height: 320px; max-height: none; object-position: center; }
  .same-chain-fade { background: linear-gradient(90deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .5) 55%, rgba(5, 5, 5, .2) 100%); }
  .same-chain-copy {
    position: absolute;
    inset: 0;
    justify-content: center;
    max-width: 30ch;
    padding: clamp(22px, 5vw, 72px);
  }
  .same-chain-copy h2 { font-size: clamp(28px, 4.6vw, 58px); }
}

/* ---------- FAQ ---------- */
.faq-section { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 20px 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  color: var(--green);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dimmer);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-raised); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; }
.footer-brand-name { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; color: var(--green); line-height: 1; }
.footer-tagline { margin: 4px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px 40px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-footer);
  max-width: 80ch;
}
