:root {
  --bg: #e8cdb1;
  --bg-soft: #f0dcc5;
  --ink: #0c0c0c;
  --muted: #4a413a;
  --line: rgba(12,12,12,.18);
  --card: rgba(255,255,255,.18);
  --shadow: 0 20px 60px rgba(45, 27, 13, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(180deg, #ead3bc 0%, var(--bg) 55%, #dfc0a0 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(232,205,177,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .08em;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .06em;
  padding: 25px 0 20px;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--ink);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
}

.section {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 82px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: 68px;
}

.cat-wrap {
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cat {
  width: min(100%, 460px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(45, 27, 13, .12);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .82rem;
  letter-spacing: .16em;
  font-weight: 800;
}

h1, h2 {
  margin: 0;
  line-height: .95;
  font-weight: 500;
  letter-spacing: .02em;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  max-width: 760px;
}

.hero-actions,
.buy-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(12,12,12,.18);
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.ghost {
  background: transparent;
}

.btn.disabled {
  opacity: .5;
  pointer-events: none;
}

.panel {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat-card.wide {
  grid-column: span 4;
  min-height: 140px;
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: auto;
}

.stat-card strong {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
}

.stat-card small {
  color: var(--muted);
  margin-top: 4px;
}

.dev-section {
  display: grid;
  place-items: center;
}

.dev-card {
  width: min(820px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}

.dev-card p {
  font-size: 1.08rem;
}

.wallet-box,
.contract-box {
  margin-top: 28px;
  padding: 18px;
  border: 1px dashed rgba(12,12,12,.35);
  display: grid;
  gap: 7px;
}

.wallet-box span,
.contract-box span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.wallet-box code,
.contract-box code {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.wallet-box button,
.contract-box button {
  width: max-content;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.wallet-box button:hover,
.contract-box button:hover {
  background: var(--ink);
  color: #fff;
}

.buy-section {
  text-align: center;
  border-top: 1px solid var(--line);
}

.buy-note {
  max-width: 650px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

.buy-buttons {
  justify-content: center;
}

.contract-box {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

footer {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 900px) {
  .topbar { min-height: 64px; }

  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    margin: 0;
    padding: 10px 6vw 20px;
    background: rgba(232,205,177,.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
  }

  .nav.open { display: flex; }

  .nav a { padding: 14px 0 10px; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-copy {
    order: -1;
  }

  .cat-wrap {
    display: flex;
    justify-content: center;
  }

  .cat {
    width: min(100%, 380px);
  }

  .token-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card.wide {
    grid-column: span 2;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(92vw, 1180px);
    padding: 62px 0;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }

  .stat-card.wide {
    grid-column: auto;
  }

  .dev-card {
    padding: 28px 22px;
  }

  .btn {
    width: 100%;
  }
}
