:root {
  color-scheme: dark;
  --black: #030504;
  --ink: #0a0d0b;
  --panel: #101410;
  --white: #f3f5f1;
  --muted: #9ea7a1;
  --green: #21ff75;
  --green-soft: rgba(33, 255, 117, 0.22);
  --gold: #d4ad52;
  --red: #ec2429;
  --line: rgba(243, 245, 241, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(3, 5, 4, 0.9), rgba(3, 5, 4, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px var(--green-soft));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 110px clamp(22px, 7vw, 96px) 92px;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.96) 0%, rgba(3, 5, 4, 0.62) 43%, rgba(3, 5, 4, 0.25) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, 0.95) 0%, rgba(3, 5, 4, 0.18) 38%, rgba(3, 5, 4, 0.72) 100%);
}

.pi-stream {
  position: absolute;
  z-index: 1;
  top: 92px;
  left: 5vw;
  right: 5vw;
  color: rgba(33, 255, 117, 0.16);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(22px, 3.2vw, 56px);
  line-height: 1.1;
  overflow: hidden;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(72px, 15vw, 210px);
  font-weight: 950;
  text-shadow: 0 0 34px rgba(33, 255, 117, 0.22);
}

h2 {
  font-size: clamp(38px, 6vw, 88px);
  max-width: 920px;
}

.hero-line {
  max-width: 610px;
  margin: 26px 0 0;
  color: #d8ded8;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.35;
}

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

.contract-strip {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 680px);
  margin-top: 22px;
  border: 1px solid rgba(33, 255, 117, 0.28);
  background: rgba(3, 5, 4, 0.58);
  box-shadow: 0 0 28px rgba(33, 255, 117, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.contract-strip span {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-right: 1px solid rgba(33, 255, 117, 0.22);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.contract-strip strong {
  min-width: 0;
  padding: 12px 16px;
  color: #dce4dd;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.button.primary {
  background: var(--white);
  color: var(--black);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  padding: clamp(80px, 10vw, 140px) clamp(22px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.section-copy p:not(.section-kicker),
.minimal-band p,
.manifesto p {
  color: #c4ccc5;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(33, 255, 117, 0.26);
  background: #050705;
  box-shadow: 0 0 60px rgba(33, 255, 117, 0.1);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(78px, 10vw, 132px) clamp(22px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 22%, rgba(33, 255, 117, 0.13), transparent 24%),
    linear-gradient(180deg, #030504, #070a08);
}

.live-copy p:not(.section-kicker) {
  max-width: 660px;
  color: #c4ccc5;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.55;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.market-grid div {
  min-height: 112px;
  padding: 20px;
  background: rgba(10, 13, 11, 0.9);
}

.market-grid span,
.burn-rule span,
.burn-address span,
.chart-head,
.progress-meta,
.ledger-row {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.market-grid span,
.burn-rule span,
.burn-address span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.market-grid strong {
  display: block;
  color: var(--white);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.chart-panel {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 126px;
  border: 1px solid rgba(33, 255, 117, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 40%),
    #050806;
  box-shadow: 0 0 50px rgba(33, 255, 117, 0.08);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.chart-head span:first-child {
  color: var(--green);
}

.range-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.range-tabs button {
  min-width: 42px;
  height: 28px;
  border: 1px solid rgba(243, 245, 241, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.range-tabs button:hover,
.range-tabs button.active {
  border-color: rgba(33, 255, 117, 0.55);
  color: var(--green);
  background: rgba(33, 255, 117, 0.08);
}

.chart-meta,
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  color: rgba(243, 245, 241, 0.52);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.chart-meta {
  border-bottom: 1px solid rgba(243, 245, 241, 0.08);
}

.chart-foot {
  border-top: 1px solid rgba(243, 245, 241, 0.08);
}

.chart-foot strong {
  color: var(--green);
}

#kline-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 430;
}

.minimal-band {
  padding: clamp(78px, 10vw, 132px) clamp(22px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(33, 255, 117, 0.07), transparent 42%),
    radial-gradient(circle at 85% 50%, rgba(212, 173, 82, 0.11), transparent 30%);
}

.band-inner {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: 1120px;
}

.large-pi {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: clamp(160px, 18vw, 260px);
  line-height: 0.8;
  text-shadow: 0 0 36px rgba(33, 255, 117, 0.33);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 230px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 950;
  line-height: 0.95;
}

.metric p {
  max-width: 300px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.burn-section {
  padding: clamp(78px, 10vw, 132px) clamp(22px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(236, 36, 41, 0.07), transparent 28%),
    linear-gradient(270deg, rgba(33, 255, 117, 0.08), transparent 32%),
    #030504;
}

.burn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.burn-rule {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(10, 13, 11, 0.92);
}

.burn-rule strong {
  display: block;
  color: var(--white);
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.95;
}

.burn-rule p {
  max-width: 300px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.burn-ledger {
  margin-top: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(33, 255, 117, 0.24);
  background: rgba(9, 12, 10, 0.82);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.ledger-head h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.burn-address {
  min-width: 210px;
  text-align: right;
}

.burn-address strong {
  display: block;
  color: var(--white);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.progress-wrap {
  padding: 24px clamp(22px, 3vw, 32px) 30px;
  border-bottom: 1px solid var(--line);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--red));
  box-shadow: 0 0 20px var(--green-soft);
}

.ledger-table {
  width: 100%;
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px clamp(22px, 3vw, 32px);
  border-bottom: 1px solid rgba(243, 245, 241, 0.08);
  color: #dce4dd;
  font-size: 13px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row-head {
  color: var(--green);
  text-transform: uppercase;
}

.ledger-row a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  padding: clamp(80px, 10vw, 140px) clamp(22px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}

.manifesto img {
  width: 100%;
  filter: drop-shadow(0 0 36px rgba(33, 255, 117, 0.2));
}

.launch-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(22px, 7vw, 96px);
}

.launch-strip p {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.link-row a {
  border: 1px solid var(--line);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 94px 20px 70px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(3, 5, 4, 0.95), rgba(3, 5, 4, 0.58)),
      linear-gradient(0deg, rgba(3, 5, 4, 0.94), rgba(3, 5, 4, 0.1) 45%, rgba(3, 5, 4, 0.78));
  }

  .hero-bg img {
    object-position: 60% center;
  }

  .split-section,
  .manifesto,
  .band-inner,
  .metrics,
  .live-section,
  .burn-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    display: block;
  }

  .metric {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .contract-strip {
    display: flex;
    width: 100%;
  }

  .ledger-head,
  .progress-meta {
    flex-direction: column;
  }

  .burn-address {
    min-width: 0;
    text-align: left;
  }

  .ledger-row {
    grid-template-columns: 1fr;
  }

  .launch-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-row {
    justify-content: flex-start;
  }
}
