:root {
  --bg: #070707;
  --bg-elevated: #111111;
  --bg-soft: #161210;
  --ink: #f5f0e6;
  --ink-muted: #b8a98a;
  --gold: #f0c43a;
  --gold-deep: #d4a017;
  --gold-glow: rgba(240, 196, 58, 0.35);
  --line: rgba(240, 196, 58, 0.22);
  --white: #ffffff;
  --danger: #ff6b6b;
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(240, 196, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(240, 196, 58, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0908 0%, #070707 40%, #0c0a07 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(240, 196, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 196, 58, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 20px var(--gold-glow);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #151008;
  box-shadow: 0 0 24px var(--gold-glow);
}

.btn-gold:hover {
  box-shadow: 0 0 32px rgba(240, 196, 58, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) 1.25rem clamp(3rem, 7vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fade-up 0.8s ease both;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 0 40px var(--gold-glow);
  animation: fade-up 0.9s ease 0.08s both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  animation: fade-up 1s ease 0.16s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: fade-up 1.05s ease 0.24s both;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: float-in 1.2s ease 0.2s both;
}

.hero-logo {
  width: min(320px, 70vw);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 80px var(--gold-glow);
  animation: pulse-glow 5s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  width: min(380px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    conic-gradient(from 180deg, transparent, rgba(240, 196, 58, 0.25), transparent 40%);
  animation: spin-slow 18s linear infinite;
  mask: radial-gradient(circle, transparent 58%, black 59%);
}

/* Strip */
.strip {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.strip button {
  text-align: left;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 196, 58, 0.06), transparent);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.strip button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: rgba(240, 196, 58, 0.1);
}

.strip span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.strip small {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(240, 196, 58, 0.03), transparent);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-grid h3,
.future-item h3,
.roadmap h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.about-grid p,
.future-item p,
.roadmap p {
  margin: 0;
  color: var(--ink-muted);
}

.contract-bar {
  margin-top: 2.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-soft);
}

.contract-bar .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.contract-bar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  word-break: break-all;
  color: var(--gold);
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Future */
.future-list {
  display: grid;
  gap: 1.5rem;
}

.future-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.future-item:last-child {
  border-bottom: 1px solid var(--line);
}

.future-item .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

/* Trade */
.trade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.pairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.pair {
  text-align: left;
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pair:hover {
  border-color: var(--gold);
  background: rgba(240, 196, 58, 0.07);
  transform: translateY(-2px);
}

.pair strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pair span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.dex-note {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.social-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.1rem 0 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 196, 58, 0.08);
  text-decoration: none;
}

/* Roadmap */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.roadmap li {
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.roadmap time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

/* Token meta */
.token-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
}

.token-meta div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.token-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.token-meta dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* CTA band */
.cta-band {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(240, 196, 58, 0.12), transparent 65%);
}

.cta-band img {
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--gold-glow);
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--ink-muted);
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-top: 0;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  border-radius: 50%;
}

.fineprint {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px var(--gold-glow);
  animation: fade-up 0.35s ease both;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.modal-sub {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.modal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.modal-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  padding: 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
}

.modal-tabs button.is-active {
  background: rgba(240, 196, 58, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.field select,
.field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field select:focus,
.field input:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.wallet-status {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.wallet-status.is-connected {
  color: var(--gold);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.modal-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  max-width: min(90vw, 360px);
  text-align: center;
}

.toast[hidden] {
  display: none;
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px var(--line),
      0 20px 60px rgba(0, 0, 0, 0.55),
      0 0 60px var(--gold-glow);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(240, 196, 58, 0.45),
      0 20px 60px rgba(0, 0, 0, 0.55),
      0 0 90px rgba(240, 196, 58, 0.5);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: 2.5rem;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    width: min(240px, 58vw);
  }

  .strip,
  .pairs,
  .roadmap,
  .about-grid,
  .token-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(240, 196, 58, 0.1);
  }

  .nav-menu .btn {
    width: 100%;
  }

  .strip,
  .pairs,
  .roadmap,
  .about-grid,
  .token-meta {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .contract-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
