:root {
  color-scheme: dark;
  --ink: #f5efe2;
  --muted: #c8bfae;
  --dim: #8f897f;
  --bg: #151311;
  --panel: #211d18;
  --panel-2: #2b251e;
  --line: rgba(245, 239, 226, 0.16);
  --amber: #f0b44d;
  --mint: #72d19a;
  --cyan: #62c7d8;
  --red: #e1664d;
  --violet: #8b77e6;
  --shadow: rgba(0, 0, 0, 0.46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#atlas,
#token,
#roadmap {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  align-items: center;
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header::before {
  background: linear-gradient(to bottom, rgba(15, 12, 9, 0.86), rgba(15, 12, 9, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: #f5efe2;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  color: #151311;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 4px;
}

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

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 9px 13px;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  min-height: 84svh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  min-height: 84svh;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 12, 9, 0.88) 0%, rgba(15, 12, 9, 0.66) 38%, rgba(15, 12, 9, 0.12) 78%),
    linear-gradient(to top, rgba(21, 19, 17, 0.95) 0%, rgba(21, 19, 17, 0) 38%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 760px;
  padding: clamp(120px, 19vh, 190px) clamp(20px, 6vw, 76px) 180px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.04;
  margin-bottom: 12px;
}

.hero-copy {
  color: var(--ink);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  margin-bottom: 32px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
}

.button-stack {
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  line-height: 1.05;
}

.button-stack small {
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.7;
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

.button-secondary {
  background: rgba(245, 239, 226, 0.1);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-strip {
  align-items: stretch;
  backdrop-filter: blur(16px);
  background: rgba(20, 16, 12, 0.74);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-strip span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  font-weight: 700;
  padding: 18px clamp(16px, 4vw, 56px);
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 70px);
}

.section-heading {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  margin: 0 auto 38px;
  max-width: 1220px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.section-heading p:not(.eyebrow) {
  align-self: end;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-atlas {
  background:
    linear-gradient(180deg, #151311 0%, #1b1713 52%, #171615 100%);
}

.atlas-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px var(--shadow);
  margin: 0 auto;
  max-width: 1220px;
  overflow: hidden;
}

.tab-bar {
  background: #191612;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0;
}

.tab-button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  padding: 16px 22px;
}

.tab-button.is-active {
  background: #2b241c;
  color: var(--ink);
}

.panel {
  display: none;
}

.panel.is-active {
  display: grid;
}

#worlds-panel {
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.75fr);
}

.featured-world {
  display: grid;
  grid-template-rows: minmax(280px, 520px) auto;
}

.featured-media {
  background: #0f0d0b;
  min-height: 320px;
  overflow: hidden;
}

.featured-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, opacity 180ms ease;
  width: 100%;
}

.featured-copy {
  border-top: 1px solid var(--line);
  padding: clamp(22px, 4vw, 38px);
}

.page-number {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.featured-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
}

.world-list {
  border-left: 1px solid var(--line);
  display: grid;
}

.world-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 18px 20px;
  text-align: left;
}

.world-row:hover,
.world-row.is-active {
  background: #342a21;
}

.world-row span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.world-row strong {
  font-size: 1.08rem;
}

.world-row small {
  color: var(--muted);
  font-size: 0.84rem;
}

.more-worlds {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(240, 180, 77, 0.18), rgba(98, 199, 216, 0.09)),
    #221c16;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  min-height: 176px;
  padding: 24px 20px;
}

.more-worlds span {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.06;
}

.demo-panel {
  padding: clamp(20px, 4vw, 44px);
}

.demo-stage {
  display: grid;
  gap: 18px;
}

.demo-frame {
  aspect-ratio: 16 / 9;
  background: #0f0d0b;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.demo-iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.demo-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-notes span,
.signal-board span {
  background: rgba(245, 239, 226, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 13px;
}

.ai-section {
  align-items: center;
  background: #171615;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  margin: 0 auto;
}

.ai-copy {
  max-width: 760px;
}

.ai-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.signal-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signal-board span:nth-child(2n) {
  border-color: rgba(114, 209, 154, 0.42);
}

.signal-board span:nth-child(3n) {
  border-color: rgba(98, 199, 216, 0.42);
}

.signal-board span:nth-child(4n) {
  border-color: rgba(225, 102, 77, 0.42);
}

.token-section {
  background: #201a14;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
}

.token-lockup p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 650px;
}

.contract-address {
  align-items: center;
  background: rgba(245, 239, 226, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 24px;
  max-width: 650px;
  padding: 14px 16px;
}

.contract-address span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.contract-address code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  overflow-wrap: anywhere;
}

.roadmap {
  display: grid;
  gap: 12px;
}

.roadmap article {
  background: rgba(245, 239, 226, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.roadmap span {
  color: var(--amber);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.roadmap strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.roadmap p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.site-footer {
  align-items: center;
  background: #100e0c;
  border-top: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 70px);
}

@media (max-width: 960px) {
  .site-header {
    height: 66px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 8px 9px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-image {
    min-height: 82svh;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip span {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 12px 20px;
  }

  .section-heading,
  #worlds-panel,
  .ai-section,
  .token-section {
    grid-template-columns: 1fr;
  }

  .world-list {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .hero-content {
    padding: 104px 20px 190px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .contract-address {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 16px;
  }

  .atlas-shell {
    border-radius: 6px;
  }

  .tab-button {
    flex: 1;
    padding: 14px 10px;
  }

  .featured-world {
    grid-template-rows: minmax(230px, 300px) auto;
  }

  .demo-frame {
    min-height: 260px;
  }

}
