:root {
  --bg: #070909;
  --panel: #0b0e0d;
  --panel-2: #0f1311;
  --line: rgba(235, 244, 238, 0.14);
  --line-strong: rgba(235, 244, 238, 0.26);
  --text: #f3f6f4;
  --muted: #8b9690;
  --green: #6ef2ad;
  --green-soft: rgba(110, 242, 173, 0.11);
  --gold: #f5c84b;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}

.section-shell,
.topbar {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 9, .88);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 25px;
}
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 12px; letter-spacing: .15em; font-weight: 750; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: #b9c2bd;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); }
.nav .nav-buy {
  border: 1px solid var(--line-strong);
  padding: 12px 16px;
  color: var(--text);
}
.nav .nav-buy:hover { border-color: var(--green); background: var(--green-soft); }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  gap: 72px;
  align-items: center;
  padding-block: 72px 80px;
}

.eyebrow,
.section-label,
.visual-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--gold); }

h1, h2 { margin: 0; font-weight: 760; letter-spacing: -.055em; }
h1 {
  margin-top: 28px;
  font-size: clamp(62px, 7.1vw, 116px);
  line-height: .82;
}
h1 em { font-style: normal; color: var(--gold); }

.hero-description {
  max-width: 610px;
  margin: 32px 0 0;
  color: #a8b1ac;
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  border: 1px solid var(--line-strong);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); border-color: var(--green); color: #04100a; }
.button.secondary:hover { border-color: var(--gold); }

.ca-card {
  margin-top: 44px;
  max-width: 660px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.ca-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ca-meta span { color: var(--muted); font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.ca-meta .network { color: var(--green); }
.ca-copy {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.ca-copy code {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  color: #d6ded9;
}
.ca-copy span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; }

.hero-visual-wrap { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.visual-index { margin-bottom: 12px; text-align: right; }
.hero-visual {
  margin: 0;
  position: relative;
  border: 1px solid var(--line-strong);
  background: #050707;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  pointer-events: none;
}
.hero-visual::before { left: -1px; top: -1px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.hero-visual::after { right: -1px; bottom: -1px; border-right: 1px solid var(--green); border-bottom: 1px solid var(--green); }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ruled-section { border-top: 1px solid var(--line); padding-block: 88px; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; margin-top: 38px; align-items: start; }
h2 { font-size: clamp(44px, 5vw, 78px); line-height: .95; }
.about-grid p { margin: 5px 0 0; max-width: 620px; color: #9aa59f; font-size: 17px; line-height: 1.8; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric { min-height: 112px; padding: 24px; border-right: 1px solid var(--line); display: grid; align-content: space-between; }
.metric:last-child { border-right: 0; }
.metric span { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.metric strong { font-size: 20px; letter-spacing: -.025em; }

.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.section-head h2 { margin-top: 18px; }
.text-link { color: var(--muted); font-size: 10px; letter-spacing: .12em; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.dex-frame {
  margin-top: 40px;
  min-height: 640px;
  position: relative;
  border: 1px solid var(--line-strong);
  background: #050707;
  overflow: hidden;
}
.dex-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.dex-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; }
.dex-placeholder span { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.dex-placeholder p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.dex-placeholder code { color: var(--green); }

.join { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: start; }
.join-copy h2 { margin-top: 22px; }
.join-links { border-top: 1px solid var(--line); }
.join-links a {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
  color: #cfd7d2;
  transition: padding .2s ease, color .2s ease;
}
.join-links a:hover { padding-left: 12px; color: var(--green); }
.join-links span { font-size: 13px; letter-spacing: .12em; font-weight: 760; }
.join-links b { font-size: 18px; font-weight: 400; }

.footer {
  min-height: 86px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .15em;
}

@media (max-width: 1100px) {
  .nav a:not(.nav-buy) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual-wrap { max-width: 760px; }
  .visual-index { text-align: left; }
  .about-grid, .join { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .section-shell, .topbar { width: min(calc(100% - 28px), var(--max)); }
  .topbar { height: 74px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy small { font-size: 8px; }
  .nav .nav-buy { padding: 10px 12px; font-size: 9px; }
  .hero { min-height: auto; padding-block: 54px 66px; }
  h1 { font-size: clamp(54px, 17vw, 84px); }
  .hero-description { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .ruled-section { padding-block: 66px; }
  h2 { font-size: clamp(40px, 12vw, 64px); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: start; flex-direction: column; }
  .dex-frame { min-height: 520px; }
  .footer { gap: 24px; align-items: flex-start; justify-content: center; flex-direction: column; padding-block: 28px; }
}
