/* ============================================================
   FOMO CAT — $FOMOCAT
   Palette taken straight from the cat: near-black fur,
   teal ears, glossy white eyes.
   ============================================================ */

:root {
  --bg:        #07090f;
  --bg-2:      #0b0f18;
  --panel:     #10161f;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text:      #eef2f6;
  --muted:     #98a3b3;

  --teal:      #24e3dc;
  --teal-2:    #0fb9c4;
  --teal-dim:  rgba(36, 227, 220, 0.12);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;

  --font-head: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--teal); color: #04121a; }

/* ---------- background glow ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora::after {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.orb--1 { width: 620px; height: 620px; top: -240px; left: -140px; background: rgba(36,227,220,.20); }
.orb--2 { width: 520px; height: 520px; top: 30%;   right: -200px; background: rgba(15,185,196,.14); }
.orb--3 { width: 700px; height: 700px; bottom: -360px; left: 30%; background: rgba(36,227,220,.10); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 780px; }

.section { padding: 110px 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
  border-block: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.sub { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0 0 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #04121a;
  box-shadow: 0 8px 30px rgba(36,227,220,.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(36,227,220,.34); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(36,227,220,.45); transform: translateY(-2px); }

.btn--icon { padding: 11px; }
.btn:active { transform: translateY(0); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  max-width: 1280px;
  margin-inline: auto;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(7,9,15,.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(36,227,220,.35)); }
.brand__name { font-family: var(--font-head); font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; }

.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 500;
  transition: color .18s ease;
}
.nav a:hover { color: var(--teal); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 60px 0 40px; }
.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(36,227,220,.28);
  background: var(--teal-dim);
  color: var(--teal);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(36,227,220,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(36,227,220,0); }
  100% { box-shadow: 0 0 0 0 rgba(36,227,220,0); }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  margin: 20px 0 18px;
}
.hero__title em { font-style: italic; color: var(--teal); }
.grad {
  background: linear-gradient(100deg, var(--teal), #7ef7e2 55%, var(--teal-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 54ch; margin: 0 0 30px; }
.hero__lead strong { color: var(--text); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__cta--center { justify-content: center; }

/* contract address */
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px dashed rgba(36,227,220,.32);
  background: rgba(36,227,220,.05);
  border-radius: 14px;
  max-width: 560px;
}
.ca__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  color: var(--teal); text-transform: uppercase;
}
.ca__value {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .84rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.ca__copy {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(36,227,220,.14);
  color: var(--teal);
  font-family: var(--font-body); font-weight: 700; font-size: .84rem;
  transition: background .18s ease, color .18s ease;
}
.ca__copy:hover { background: var(--teal); color: #04121a; }
.ca__copy.is-done { background: var(--teal); color: #04121a; }

/* hero art */
.hero__art { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cat { position: relative; width: min(420px, 88%); }
.cat img {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.cat__halo {
  position: absolute;
  inset: 8% 8% 4%;
  background: radial-gradient(circle, rgba(36,227,220,.42), transparent 68%);
  filter: blur(46px);
  z-index: -1;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-14px); }
}
@keyframes breathe {
  50% { opacity: .55; transform: scale(1.08); }
}

.hero__stats {
  display: flex;
  gap: 10px;
  width: min(420px, 90%);
}
.hero__stats div {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025);
}
.hero__stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--teal);
  line-height: 1.2;
}
.hero__stats span { font-size: .76rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(36,227,220,.04);
  padding: 14px 0;
  margin-top: 40px;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: scroll 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: rgba(238,242,246,.72);
}
.marquee__track i { font-style: normal; color: var(--teal); font-size: 1rem; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- legend ---------- */
.legend p { color: var(--muted); font-size: 1.06rem; margin: 0 0 20px; }
.legend strong, .legend em { color: var(--text); }
.legend__lead {
  font-family: var(--font-head);
  font-size: 1.35rem !important;
  line-height: 1.45;
  color: var(--text) !important;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin-bottom: 30px !important;
}
.legend__kicker {
  color: var(--text) !important;
  font-weight: 700;
  margin-top: 30px !important;
}

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(36,227,220,.4);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.card__icon {
  font-size: 1.7rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--teal-dim);
  border: 1px solid rgba(36,227,220,.2);
  margin-bottom: 16px;
}
.card h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- tokenomics ---------- */
.tokenomics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.tok {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.022);
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.tok:hover { border-color: rgba(36,227,220,.38); background: rgba(36,227,220,.05); }
.tok b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--teal);
  line-height: 1.25;
  word-break: break-word;
}
.tok span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.note {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(36,227,220,.22);
  background: rgba(36,227,220,.05);
  color: var(--muted);
}
.note strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 1.05rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  position: relative;
  overflow: hidden;
}
.step__n {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(36,227,220,.22);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-family: var(--font-head); font-size: 1.12rem; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(36,227,220,.35); }
.step a:hover { border-bottom-color: var(--teal); }

.buy-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(36,227,220,.05));
}
.timeline__item { position: relative; padding: 0 0 38px 22px; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--teal);
  box-shadow: 0 0 16px rgba(36,227,220,.5);
}
.timeline__tag {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.timeline__item h3 { font-family: var(--font-head); font-size: 1.35rem; margin: 6px 0 8px; }
.timeline__item p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.022);
  padding: 0 20px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(36,227,220,.35); background: rgba(36,227,220,.04); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 18px; font-size: .97rem; }

/* ---------- community ---------- */
.community { text-align: center; }
.community__cat {
  width: 140px; height: 140px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 18px 40px rgba(36,227,220,.28));
}
.community .sub { margin-inline: auto; margin-bottom: 30px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 46px 0 40px; background: rgba(0,0,0,.25); }
.footer__inner { display: grid; gap: 20px; text-align: center; justify-items: center; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 46px; height: 46px; object-fit: contain; }
.footer__brand div { text-align: left; line-height: 1.3; }
.footer__brand b { font-family: var(--font-head); display: block; letter-spacing: .04em; }
.footer__brand span { color: var(--muted); font-size: .84rem; }
.footer__disclaimer { color: var(--muted); font-size: .84rem; max-width: 70ch; margin: 0; }
.footer__copy { color: rgba(152,163,179,.6); font-size: .82rem; margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(16,22,31,.95);
  border: 1px solid rgba(36,227,220,.4);
  color: var(--text);
  font-weight: 600;
  font-size: .93rem;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { max-width: 60ch; }
  .hero__cta { justify-content: center; }
  .ca { width: 100%; }
  .hero__art { order: -1; }
  .cat { width: min(300px, 62vw); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tokenomics { grid-template-columns: repeat(2, 1fr); }
  .sub { margin-inline: auto; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }

  .nav {
    position: fixed;
    inset: 68px 12px auto 12px;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(11,15,24,.97);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 8px; font-size: 1rem; color: var(--text); border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }

  .burger { display: block; }
  .header { gap: 10px; }
  .header__actions { margin-left: auto; }
  .header__actions .btn--primary { display: none; }

  .grid--3, .steps, .tokenomics { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .cat { width: min(240px, 56vw); }
  .hero__stats { width: 100%; }
  .hero__stats b { font-size: 1.1rem; }
  .hero__stats span { font-size: .68rem; letter-spacing: .04em; }
  .ca { flex-wrap: wrap; }
  .ca__value { flex-basis: 100%; white-space: normal; word-break: break-all; font-size: .78rem; }
  .ca__copy { margin-left: auto; }
  .legend__lead { font-size: 1.18rem !important; padding-left: 16px; }
}

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