/* =========================================================
   Meme coin site template — stylesheet
   Colors, radius and fonts all come from config.json "theme".
   You should not need to edit this file to reskin the site.
   ========================================================= */

:root {
  /* Fallbacks only — app.js overwrites these from config.json */
  --primary: #ffc93c;
  --primary-contrast: #0a0d12;
  --secondary: #45d6e8;
  --secondary-contrast: #04141a;
  --bg: #070b11;
  --surface: #0e1620;
  --surface-alt: #131e2b;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f2f6fb;
  --muted: #8ea3ba;
  --radius: 20px;
  --font-display: 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --gutter: clamp(18px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Background effects ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-fx.is-off { display: none; }

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.20;
}

.blob--1 { top: -14vw; right: -10vw; background: var(--primary); }
.blob--2 { bottom: -18vw; left: -12vw; background: var(--secondary); opacity: 0.16; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

#app { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn--primary:hover {
  box-shadow: 0 14px 38px -8px color-mix(in srgb, var(--primary) 85%, transparent);
}

.btn--ghost {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--secondary); color: var(--secondary); }

.btn--sm { padding: 10px 18px; font-size: 0.92rem; }

.btn.is-soon {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}
.btn.is-soon:hover { transform: none; }

.btn__soon {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.icon { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-right: auto;
}

.nav__brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav__links { display: flex; gap: 26px; }

.nav__links a {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--primary); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 13px 0;
  background: var(--primary);
  color: var(--primary-contrast);
  border-block: 1px solid color-mix(in srgb, var(--primary) 60%, #000);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-speed, 30s) linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-inline: 26px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.marquee__item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

/* No logo configured: centre the copy instead of leaving a dead column. */
.hero__inner--solo {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero__inner--solo .hero__sub { margin-inline: auto; }
.hero__inner--solo .hero__actions { justify-content: center; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--secondary) 70%, transparent);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-shadow: 0 0 48px color-mix(in srgb, var(--primary) 35%, transparent);
}

.hero__sub {
  margin: 20px 0 0;
  max-width: 30ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__art { position: relative; display: flex; justify-content: center; }

.hero__art img {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 60px color-mix(in srgb, var(--primary) 30%, transparent));
}

@keyframes float {
  50% { transform: translateY(-16px); }
}

/* ---------- Contract address ---------- */

.ca { padding-bottom: clamp(40px, 6vw, 72px); }

.ca__box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-alt) 92%, transparent));
}

.ca__meta { flex: 1 1 260px; min-width: 0; }

.ca__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.ca__value {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  color: var(--text);
  overflow-wrap: anywhere;
}

.ca__value.is-pending { color: var(--muted); font-style: italic; font-family: var(--font-body); }

.ca__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--secondary) 16%, transparent);
  color: var(--secondary);
  vertical-align: middle;
}

.ca__actions { display: flex; gap: 10px; }

.ca__copy.is-done { background: var(--secondary); color: var(--secondary-contrast); }

/* ---------- Socials ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.social:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.social.is-soon { opacity: 0.5; cursor: not-allowed; }
.social.is-soon:hover { transform: none; border-color: var(--border); color: inherit; }

/* ---------- Sections ---------- */

.section { padding: clamp(52px, 8vw, 96px) 0; }

.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.section__title {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
}

.section__sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.stat {
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat:hover { border-color: var(--primary); transform: translateY(-4px); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat__label {
  margin-top: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 34px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.step__num {
  position: absolute;
  top: -21px;
  left: 26px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.step h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.phase {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}

.phase__tag {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 15%, transparent);
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }

.phase ul { margin: 0; padding: 0; list-style: none; }

.phase li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--muted);
}

.phase li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) 0 40px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.footer__disclaimer {
  max-width: 68ch;
  margin: 0 auto 22px;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer__copy { font-size: 0.85rem; color: var(--muted); opacity: 0.75; }

/* ---------- Logo shape helper ----------
   "circle" force-crops to a square so a wide logo file still renders as a
   round token. "rounded" / "square" keep the file's own aspect ratio, which
   is what you want for a wide wordmark or banner logo. */

.logo-shape--circle {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}
.logo-shape--rounded { border-radius: var(--radius); }
.logo-shape--square { border-radius: 0; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Setup / error panel ---------- */

.setup {
  max-width: 640px;
  margin: 12vh auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.setup h1 { font-size: 1.6rem; margin-bottom: 12px; }
.setup p { color: var(--muted); }

.setup pre {
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 80%, #000);
  color: var(--primary);
  font-size: 0.9rem;
  overflow-x: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; }
  /* Keep the logo small enough that the headline and CTA stay above the fold. */
  .hero__art img { width: min(56%, 240px); }
  .nav__links { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ca__box { flex-direction: column; align-items: stretch; }
  .ca__actions .btn { flex: 1; }
  .btn { padding: 13px 20px; }
}

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