:root {
  --black: #120e0b;
  --ink: #0c0908;
  --white: #f7f1e8;
  --muted-solid: #d8ccba;
  --gray: rgba(247, 241, 232, 0.1);
  --surface: #181410;
  --surface-2: #1f1a16;
  --line: rgba(247, 241, 232, 0.08);
  --purple: #ff9640;
  --purple-1: #ff9640;
  --purple-2: #ffb06a;
  --purple-3: #ffc896;
  --purple-4: #ffe0c2;
  --muted: rgba(247, 241, 232, 0.62);
  --radius: 999px;
  --radius-lg: 28px;
  --nav-h: 88px;
  --content: 1120px;
  --gutter: 28px;
  --section: 88px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "Bricolage Grotesque", system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

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

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

code {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

/* Buttons — matched to comfy.fun “notify me” */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-black {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(18, 14, 11, 0.42);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 232, 0.14);
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
}

/* Nav */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(920px, 100%);
  padding: 8px 8px 8px 14px;
  background: rgba(18, 14, 11, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(247, 241, 232, 0.1);
}

.nav.is-scrolled .nav-pill {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 17px;
  flex-shrink: 0;
  padding-right: 8px;
  color: var(--white);
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.footer .brand img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 150, 64, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn.is-open span:nth-child(1),
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-btn.is-open span:nth-child(2),
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-open span:nth-child(3),
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--white);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 48px;
  gap: 8px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  font-size: 32px;
  letter-spacing: -0.04em;
  padding: 8px 0;
}

.mobile-menu .btn {
  margin-top: 16px;
  width: fit-content;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 14, 11, 0.52) 0%, rgba(18, 14, 11, 0.12) 48%, rgba(18, 14, 11, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 14, 11, 0.22) 0%, rgba(18, 14, 11, 0.04) 42%, rgba(18, 14, 11, 0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: calc(var(--nav-h) + 12px) 24px 32px;
  max-width: 620px;
  width: 100%;
  margin-right: auto;
  margin-left: clamp(16px, 7vw, 92px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow,
.kicker {
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: none;
  font-weight: 500;
  color: var(--muted-solid);
}

.hero .eyebrow {
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 16px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(247, 241, 232, 0.82);
  text-wrap: pretty;
}

.hero-lede a {
  color: var(--purple-2);
  text-underline-offset: 3px;
}

.hero-lede a:hover {
  text-decoration: underline;
}

.hero-sub {
  margin-top: 14px;
  margin-bottom: 28px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-solid);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px 48px;
}

.hero-ctas {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.hero-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  background: rgba(18, 14, 11, 0.42);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 16px;
}

.ca-label {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted-solid);
  flex-shrink: 0;
}

.hero-ca code,
.wait-row code {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: var(--purple);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--purple);
  color: var(--ink);
  padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-group span:nth-child(even) {
  color: var(--purple-4);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / var(--marquee-copies, 2)));
  }
}

/* Stats — 0G homepage number treatment */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 32px;
}

.stat {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.stat-num {
  font-family: var(--font);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-label {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
}

.stat-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 240px;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.mascot-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 0;
  display: block;
  background: #1a1510;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.mascot-stage::before {
  display: none;
}

.story-copy a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mascot-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 62% center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(-14px);
  }
}

.kicker {
  margin-bottom: 14px;
}

.story-copy h2,
.section-head h2,
.world-copy h2,
.community h2,
.buy-panel h3 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.story-copy p,
.lead,
.world-copy p,
.community p,
.buy-panel p,
.trait p {
  color: var(--muted);
  font-size: 17px;
}

.story-copy p + p {
  margin-top: 16px;
}

.story-copy h2 {
  margin-bottom: 22px;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 500;
  color: var(--purple);
}

.text-link:hover {
  text-decoration: underline;
}

.section-head .text-link + .text-link {
  margin-left: 18px;
}

/* Quote */
.quote {
  padding: 8px var(--gutter) var(--section);
}

.quote-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 48px 40px;
  border: 1px solid var(--line);
}

.quote-kicker {
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: none;
  color: var(--muted-solid);
  margin-bottom: 20px;
}

.quote-card blockquote {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.quote-meta {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Traits */
.traits {
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px var(--gutter) var(--section);
}

.section-head {
  margin-bottom: 36px;
}

.section-head-center {
  text-align: center;
}

.lead {
  margin-top: 12px;
}

.trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trait {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  min-height: 220px;
  border: 1px solid var(--line);
}

.trait-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--purple);
  letter-spacing: 0.08em;
}

.trait h3 {
  margin: 16px 0 10px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

/* Tokenomics + cubes */
.stack {
  margin: 0 var(--gutter);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: var(--section) 40px;
}

.stack .section-head {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.stack-layout {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cube-field {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  transform-style: preserve-3d;
}

.iso-spin {
  transform-style: preserve-3d;
  animation: spinY 12s linear infinite;
  will-change: transform;
}

.iso-cluster {
  position: relative;
  width: 280px;
  height: 240px;
  transform: rotateX(18deg) rotateZ(-18deg);
  transform-style: preserve-3d;
}

@keyframes spinY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.cube {
  --s: 72px;
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  animation: cubeBob 3.6s ease-in-out infinite;
}

.cube.c-b { animation-delay: -0.4s; }
.cube.c-c { animation-delay: -0.9s; }
.cube.c-d { animation-delay: -1.4s; }
.cube.c-e { animation-delay: -1.9s; }
.cube.c-f { animation-delay: -2.4s; }

@keyframes cubeBob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.cube i {
  position: absolute;
  inset: 0;
  width: var(--s);
  height: var(--s);
}

.cube i:nth-child(1) {
  background: var(--purple-4);
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}

.cube i:nth-child(2) {
  background: var(--purple-1);
  transform: rotateY(-90deg) translateZ(calc(var(--s) / 2));
}

.cube i:nth-child(3) {
  background: var(--purple);
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}

.cube::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple-2);
  transform: translateZ(calc(var(--s) / 2));
}

.c-a {
  top: 40px;
  left: 90px;
}
.c-b {
  top: 40px;
  left: 162px;
  --s: 64px;
}
.c-c {
  top: 108px;
  left: 90px;
}
.c-d {
  top: 108px;
  left: 18px;
  --s: 64px;
}
.c-e {
  top: 0;
  left: 90px;
  --s: 56px;
}
.c-f {
  top: 108px;
  left: 162px;
  --s: 56px;
}

.token-list {
  list-style: none;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.token-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.token-list li:last-child {
  border-bottom: 0;
}

.token-list span {
  color: var(--muted);
}

.token-list strong {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--mono);
  font-size: 14px;
}

.token-list a {
  color: var(--purple);
  text-underline-offset: 3px;
}

.token-list a:hover {
  text-decoration: underline;
}

/* Buy */
.buy {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--section) var(--gutter);
}

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.steps {
  list-style: none;
  display: grid;
  gap: 12px;
}

.step {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 20px;
  background: #1c1814;
  transition: background 0.2s ease;
}

.step:hover,
.step.is-on {
  background: #2a1c12;
}

.step-num {
  font-family: var(--mono);
  color: var(--purple);
  font-size: 14px;
  padding-top: 4px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-body strong {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.step-body em {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
}

.buy-panel {
  margin-top: 0;
  background: var(--surface);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 24px;
  align-content: space-between;
  border: 1px solid var(--line);
}

.buy-panel .kicker {
  color: var(--muted-solid);
}

.buy-panel p {
  color: rgba(255, 255, 255, 0.62);
  margin-top: 8px;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(18, 14, 11, 0.42);
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
}

.ca-row code {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border-radius: 0;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
}

.swap-card {
  max-width: 420px;
  margin: 0 auto;
  background: #1c1814;
  border-radius: 28px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(247, 241, 232, 0.08);
}

.swap-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.swap-tab {
  border-radius: 18px;
  padding: 14px 12px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--muted-solid);
  background: #14110e;
}

.swap-tab.is-on {
  background: #2a241e;
  color: var(--white);
}

.swap-leg {
  position: relative;
  background: #14110e;
  border-radius: 22px;
  padding: 16px 16px 12px;
}

.swap-leg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-solid);
  font-size: 14px;
  margin-bottom: 4px;
}

.swap-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1814;
  border: 1px solid rgba(247, 241, 232, 0.08);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
}

.swap-mark-og,
.swap-mark-tok {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swap-mark-og {
  display: none;
  background: radial-gradient(circle at 40% 35%, #c9a6ff, #7b5cff 55%, #4b2d9b);
}

.swap-chip.is-og .swap-mark-og {
  display: block;
}

.swap-chip.is-og .swap-mark-tok {
  display: none;
}

.swap-leg input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  padding: 4px 0 8px;
  appearance: textfield;
}

.swap-leg input:focus {
  outline: none;
}

.swap-leg input::-webkit-outer-spin-button,
.swap-leg input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.swap-leg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.swap-available {
  color: var(--muted);
  font-size: 13px;
}

.swap-pct {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.swap-pct button {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-solid);
  background: #1c1814;
  border: 1px solid rgba(247, 241, 232, 0.08);
}

.swap-pct button:hover {
  color: var(--white);
}

.swap-flip {
  width: 36px;
  height: 36px;
  margin: -12px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c1814;
  border: 4px solid #1c1814;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 232, 0.1);
  position: relative;
  z-index: 2;
  color: var(--muted-solid);
  font-size: 16px;
}

.swap-slip {
  display: flex;
  justify-content: space-between;
  padding: 16px 8px 10px;
  color: var(--muted-solid);
  font-size: 15px;
}

.swap-go {
  width: 100%;
  border-radius: 18px;
  padding: 16px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  background: #14110e;
  border: 1px solid rgba(247, 241, 232, 0.08);
}

.swap-go:hover {
  background: #221c18;
}

.swap-account {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.swap-comfy {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-solid);
  text-decoration: none;
}

.swap-comfy:hover {
  color: var(--white);
}

.swap-more {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.swap-more summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  padding: 6px;
}

.swap-more summary::-webkit-details-marker {
  display: none;
}

.trade-tx {
  display: block;
  text-align: center;
  color: var(--purple);
  font-size: 14px;
  margin: 4px 0 10px;
}

.trade-tx[hidden] {
  display: none;
}

.trade-status {
  min-height: 0;
  font-size: 14px;
  color: var(--muted-solid);
  text-align: center;
  margin: 8px 0 0;
}

.trade-status[data-kind="err"] {
  color: #ffb4a2;
}

.trade-status[data-kind="ok"] {
  color: #8fd4a4;
}

.trade-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.trade-tabs {
  display: flex;
  gap: 6px;
  background: rgba(18, 14, 11, 0.5);
  border-radius: 999px;
  padding: 4px;
}

.trade-tab {
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-solid);
}

.trade-tab.is-on {
  background: var(--purple);
  color: var(--ink);
}

.trade-account {
  font-size: 13px;
  color: var(--muted-solid);
}

.trade-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.trade-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-solid);
  font-size: 13px;
}

.trade-field em {
  font-style: normal;
  font-family: var(--font);
  font-weight: 500;
}

.trade-max {
  color: var(--purple);
  font-weight: 600;
}

.trade-field input {
  width: 100%;
  border: 1px solid rgba(247, 241, 232, 0.14);
  background: rgba(18, 14, 11, 0.42);
  color: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  appearance: textfield;
}

.trade-field input::-webkit-outer-spin-button,
.trade-field input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.trade-field input:focus {
  outline: 1px solid var(--purple);
}

.trade-token input {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.trade-field small {
  color: var(--muted);
  font-size: 12px;
}

.trade-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.trade-status {
  min-height: 1.3em;
  font-size: 13px;
  color: var(--muted-solid);
  margin-bottom: 12px;
}

.trade-status[data-kind="err"] {
  color: #ffb4a2;
}

.trade-status[data-kind="ok"] {
  color: #b6e3b4;
}

.trade-card .btn-lg {
  width: 100%;
}

/* World card */
.world {
  padding: 8px var(--gutter) var(--section);
}

.world-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface);
  color: var(--white);
  min-height: 420px;
  border: 1px solid var(--line);
}

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.world-copy {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.world-copy .kicker {
  color: var(--purple-2);
}

.world-copy h2 {
  margin: 8px 0 16px;
}

.world-copy p {
  color: rgba(255, 255, 255, 0.68);
}

/* Community */
.community {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
  margin: 0 var(--gutter) var(--gutter);
  border-radius: 32px;
  border: 1px solid var(--line);
}

.community-bg {
  position: absolute;
  inset: 0;
}

.community-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.45), rgba(18, 14, 11, 0.62));
}

.community-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 96px 24px;
}

.kicker-light {
  color: var(--muted-solid);
}

.community h2 {
  margin: 10px 0 16px;
}

.community p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}

.community .hero-ctas {
  justify-content: center;
  margin-top: 32px;
}

/* Footer */
.footer {
  background: #0c0a09;
  padding: 56px 32px 32px;
  border-top: 1px solid var(--line);
}

.footer-top {
  max-width: var(--content);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 140px);
  gap: 32px;
}

.footer-cols p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
}

.footer-cols a:hover {
  color: var(--purple);
}

.footer-bottom {
  max-width: var(--content);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--white);
  color: var(--black);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 56px 20px 24px;
  }

  .buy-grid,
  .story,
  .stack-layout,
  .world-card {
    grid-template-columns: 1fr;
  }

  .stack {
    margin: 0 16px;
    padding: 64px 20px;
  }

  .community {
    margin: 0 16px 16px;
    min-height: 440px;
  }

  .quote,
  .world {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cube-field {
    height: 300px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section: 64px;
  }

  .hero-inner {
    padding-top: calc(var(--nav-h) + 28px);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px 20px;
  }

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

  .hero-ctas .btn {
    flex: 1;
  }

  .hero-ca {
    width: 100%;
    justify-content: space-between;
  }

  .stats {
    grid-template-columns: 1fr;
    padding: 48px 16px 16px;
  }

  .stat,
  .stat:nth-child(odd),
  .stat:nth-child(-n + 2) {
    border: 1px solid var(--line);
  }

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

  .quote-card,
  .buy-panel,
  .world-copy {
    padding: 28px 22px;
  }

  .nav-pill {
    padding: 6px 6px 6px 10px;
  }

  .ca-row .btn {
    width: 100%;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* Standalone buy page */
.buy-page {
  min-height: 100dvh;
  background: #0c0908;
}

.buy-desk {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.buy-desk-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  z-index: 0;
}

.buy-desk-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(12, 9, 8, 0.88) 0%,
    rgba(12, 9, 8, 0.62) 42%,
    rgba(12, 9, 8, 0.18) 72%,
    rgba(12, 9, 8, 0.28) 100%
  );
}

.buy-desk-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 48px;
}

.buy-desk-inner > div {
  max-width: 460px;
}

.buy-intro {
  margin-bottom: 22px;
}

.buy-intro .eyebrow {
  margin-bottom: 10px;
}

.buy-intro h1 {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.buy-intro .hero-sub {
  margin-top: 12px;
  margin-bottom: 20px;
}

.buy-page .swap-card {
  margin: 0;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 960px) {
  .buy-desk-inner {
    padding-top: calc(var(--nav-h) + 36px);
  }

  .buy-desk-bg {
    object-position: 70% center;
  }

  .buy-desk-veil {
    background: linear-gradient(180deg, rgba(12, 9, 8, 0.72), rgba(12, 9, 8, 0.88));
  }
}

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