:root {
  --ink: #080506;
  --charcoal: #171112;
  --charcoal-2: #221618;
  --blood: #6f0d1a;
  --blood-bright: #b71f2d;
  --ember: #d45a34;
  --bone: #f4ead8;
  --bone-muted: #d9cbb5;
  --brass: #d4a34b;
  --acid: #b7ed63;
  --line: rgba(244, 234, 216, 0.18);
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 6, 0.92), rgba(8, 5, 6, 1)),
    repeating-linear-gradient(90deg, rgba(244, 234, 216, 0.025) 0 1px, transparent 1px 18px),
    var(--ink);
  color: var(--bone);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  padding: 10px;
  background: rgba(8, 5, 6, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--bone);
}

.brand-mark {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(145deg, var(--acid), transparent 56%),
    linear-gradient(315deg, var(--blood-bright), var(--brass));
  border: 1px solid rgba(244, 234, 216, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(183, 237, 99, 0.35);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.header-buy,
.btn,
.copy-btn,
.proof-row a,
.footer-links a {
  min-height: 42px;
  border-radius: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--bone-muted);
  font-size: 0.94rem;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(244, 234, 216, 0.08);
  color: var(--bone);
}

.header-buy,
.btn,
.copy-btn,
.proof-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-buy,
.btn-primary {
  padding: 0 18px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(183, 237, 99, 0.18);
}

.header-buy:hover,
.btn:hover,
.copy-btn:hover,
.proof-row a:hover,
.header-buy:focus-visible,
.btn:focus-visible,
.copy-btn:focus-visible,
.proof-row a:focus-visible {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(244, 234, 216, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--bone);
  border-radius: 2px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82svh;
  padding: 120px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 5, 6, 0.86) 0%, rgba(8, 5, 6, 0.48) 48%, rgba(8, 5, 6, 0.8) 100%),
    linear-gradient(180deg, rgba(8, 5, 6, 0.5) 0%, rgba(8, 5, 6, 0.2) 52%, rgba(8, 5, 6, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.eyebrow span {
  color: var(--bone);
}

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

h1 {
  margin-bottom: 18px;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 0.9;
  overflow-wrap: normal;
}

h2 {
  margin-bottom: 18px;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  color: var(--bone);
  font-size: 1.2rem;
  line-height: 1.18;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 0 auto 28px;
  color: var(--bone);
  font-size: 1.24rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  min-width: 160px;
  min-height: 48px;
  padding: 0 20px;
}

.btn-ghost {
  background: rgba(8, 5, 6, 0.48);
  border-color: rgba(244, 234, 216, 0.28);
  color: var(--bone);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(244, 234, 216, 0.1);
  border-color: rgba(244, 234, 216, 0.42);
}

.contract-strip {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(183, 237, 99, 0.08), transparent 24%),
    rgba(8, 5, 6, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
}

.contract-meta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: rgba(244, 234, 216, 0.07);
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: 6px;
}

.contract-meta span {
  color: var(--brass);
  font-weight: 900;
  white-space: nowrap;
}

.contract-code {
  justify-self: center;
  padding: 0 8px;
}

code {
  color: var(--bone);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.copy-btn {
  min-width: 82px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--blood-bright);
  border-color: rgba(244, 234, 216, 0.18);
  color: var(--bone);
}

.copy-btn.is-copied {
  background: var(--acid);
  color: var(--ink);
}

.section {
  padding: 104px 0;
  scroll-margin-top: 96px;
}

.origin-section,
.chart-section,
.roadmap-section,
.gallery-section {
  background:
    linear-gradient(180deg, rgba(23, 17, 18, 0.96), rgba(8, 5, 6, 0.98)),
    repeating-linear-gradient(0deg, rgba(244, 234, 216, 0.025) 0 1px, transparent 1px 20px);
}

.origin-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.section-copy p,
.section-heading p,
.step-card p,
.timeline-item p,
.site-footer p {
  color: var(--bone-muted);
}

.section-copy .kicker,
.section-heading .kicker {
  color: var(--acid);
}

.section-copy p {
  font-size: 1.05rem;
}

.section-copy strong {
  color: var(--bone);
}

.art-panel {
  margin: 0;
  padding: 10px;
  background: linear-gradient(145deg, rgba(244, 234, 216, 0.1), rgba(183, 31, 45, 0.14));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.art-panel img {
  width: 100%;
  border-radius: 5px;
}

.art-panel figcaption {
  padding: 12px 4px 2px;
  color: var(--bone-muted);
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(780px, 100%);
  margin-bottom: 32px;
}

.chart-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.steps-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card,
.stat-card,
.timeline-item {
  min-height: 218px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(34, 22, 24, 0.98), rgba(14, 9, 10, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.step-number,
.timeline-item span,
.stat-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
}

.buy-section {
  background:
    linear-gradient(180deg, rgba(8, 5, 6, 0.96), rgba(31, 8, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(244, 234, 216, 0.025) 0 1px, transparent 1px 22px);
}

.chart-frame {
  height: 640px;
  overflow: hidden;
  background: #0d0f14;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: dark;
}

.tokenomics-section {
  background:
    linear-gradient(180deg, rgba(27, 7, 11, 0.96), rgba(8, 5, 6, 0.98)),
    repeating-linear-gradient(0deg, rgba(183, 237, 99, 0.03) 0 1px, transparent 1px 24px);
}

.stats-grid {
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
}

.stat-card {
  min-height: 180px;
}

.stat-card strong {
  display: block;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.stat-card code {
  display: block;
  margin: 14px 0;
  color: var(--bone-muted);
}

.inline-copy {
  min-width: 134px;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.proof-row a {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(244, 234, 216, 0.08);
  border-color: var(--line);
  color: var(--bone);
}

.roadmap-grid {
  align-items: start;
}

.timeline {
  display: grid;
  gap: 16px;
  counter-reset: phase;
}

.timeline-item {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.timeline-item::after {
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: rgba(244, 234, 216, 0.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  content: attr(data-phase);
  pointer-events: none;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(8, 5, 6, 0.98), rgba(32, 8, 12, 0.96)),
    repeating-linear-gradient(90deg, rgba(244, 234, 216, 0.022) 0 1px, transparent 1px 18px);
  border-top: 1px solid var(--line);
}

.gallery-heading p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--bone-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: rgba(8, 5, 6, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 64%, rgba(8, 5, 6, 0.24));
  content: "";
  pointer-events: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  filter: saturate(1.03) contrast(1.02) brightness(1.04);
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 240ms ease, filter 240ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-within img {
  filter: saturate(1.12) contrast(1.04) brightness(1.08);
  transform: scale(1.045);
}

.site-footer {
  padding: 48px 0;
  background: #050303;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.site-footer p {
  max-width: 680px;
  margin: 12px 0 0;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--bone-muted);
  border: 1px solid var(--line);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bone);
  background: rgba(244, 234, 216, 0.08);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links,
  .header-buy {
    display: none;
  }

  .nav-open .nav-links {
    position: fixed;
    top: 94px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(8, 5, 6, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  }

  .nav-open .nav-links a {
    min-height: 48px;
    justify-content: center;
  }

  h1 {
    font-size: 5.7rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .origin-grid,
  .roadmap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(1180px, calc(100% - 28px));
  }

  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
  }

  .hero {
    align-items: flex-end;
    min-height: 86svh;
    padding: 112px 0 44px;
  }

  .hero-art {
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 5, 6, 0.42) 0%, rgba(8, 5, 6, 0.3) 34%, rgba(8, 5, 6, 0.94) 78%),
      linear-gradient(90deg, rgba(8, 5, 6, 0.76), rgba(8, 5, 6, 0.42), rgba(8, 5, 6, 0.76));
  }

  h1 {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-copy {
    width: min(280px, 100%);
    font-size: 1rem;
  }

  .hero-actions,
  .proof-row {
    display: grid;
    grid-template-columns: 1fr;
    width: min(280px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .btn,
  .proof-row a {
    max-width: 100%;
    width: 100%;
  }

  .contract-strip {
    grid-template-columns: 1fr;
    justify-items: stretch;
    width: min(280px, 100%);
    text-align: left;
  }

  .contract-code {
    justify-self: start;
    padding: 0;
  }

  .copy-btn {
    max-width: 100%;
    width: 100%;
  }

  .section {
    padding: 74px 0;
  }

  .steps-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .stat-card {
    min-height: auto;
  }

  .chart-frame {
    height: 540px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.95rem;
    line-height: 0.98;
  }

  .hero-copy,
  .hero-actions,
  .contract-strip {
    width: min(280px, 100%);
  }

  .brand {
    font-size: 1rem;
  }

  .nav-toggle {
    flex: 0 0 44px;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
