:root {
  --bg: #11100f;
  --bg-2: #171311;
  --panel: #1e1815;
  --panel-soft: #241b17;
  --copper: #d77d45;
  --copper-light: #f0ad79;
  --copper-dark: #7f3c23;
  --patina: #48a98f;
  --patina-dark: #1d5d50;
  --text: #fff8ef;
  --muted: #bcaea2;
  --line: rgba(240, 173, 121, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 4%, rgba(72, 169, 143, 0.08), transparent 28rem),
    radial-gradient(circle at 10% 20%, rgba(215, 125, 69, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.2;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0 2px, rgba(255,255,255,0.025) 2px 3px),
    repeating-linear-gradient(117deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 16, 15, 0.82);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  color: #17100d;
  background: linear-gradient(145deg, var(--copper-light), var(--copper));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 20px;
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--copper-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.top-actions,
.hero-buttons,
.join-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240,173,121,.48);
  background: rgba(215,125,69,.08);
}

.buy-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.015em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.buy-btn,
.primary-btn {
  color: #1a100c;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  box-shadow: 0 12px 30px rgba(215,125,69,.15), inset 0 1px 0 rgba(255,255,255,.25);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.buy-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.buy-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  transform: translateY(-2px);
}

.primary-btn:hover,
.buy-btn:hover {
  box-shadow: 0 16px 38px rgba(215,125,69,.22), inset 0 1px 0 rgba(255,255,255,.3);
}

.secondary-btn:hover {
  border-color: rgba(72,169,143,.5);
  background: rgba(72,169,143,.08);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: 64px;
  min-height: 760px;
  padding: 86px 0 74px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--patina);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .21em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

h1 {
  margin-bottom: 22px;
  max-width: 700px;
  font-size: clamp(64px, 8.7vw, 132px);
  line-height: .82;
  font-weight: 800;
}

h1 span {
  color: var(--copper-light);
  text-shadow: 0 6px 35px rgba(215,125,69,.14);
}

.lede {
  max-width: 630px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.hero-buttons {
  margin-bottom: 32px;
}

.ca-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 720px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(240,173,121,.25);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(215,125,69,.06), rgba(72,169,143,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ca-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ca-meta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ca-meta strong {
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-box button {
  min-width: 108px;
  height: 45px;
  padding: 0 14px;
  border: 1px solid rgba(72,169,143,.34);
  border-radius: 12px;
  color: #eafcf6;
  background: rgba(72,169,143,.12);
  font-weight: 900;
  cursor: pointer;
}

.ca-box button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.coin-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.coin-stage img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 590px);
  height: auto;
  filter: drop-shadow(0 35px 40px rgba(0,0,0,.38));
  animation: coinFloat 6.5s ease-in-out infinite;
}

.halo {
  position: absolute;
  filter: blur(2px);
}

.halo-one {
  width: 470px;
  height: 470px;
  background: radial-gradient(circle, rgba(215,125,69,.18), rgba(215,125,69,0) 67%);
}

.halo-two {
  width: 560px;
  height: 560px;
  border: 1px dashed rgba(72,169,143,.16);
  animation: slowSpin 22s linear infinite;
}

.oxidized-stamp {
  position: absolute;
  right: 5%;
  bottom: 13%;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid rgba(72,169,143,.38);
  border-radius: 10px;
  color: var(--patina);
  background: rgba(17,16,15,.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(-7deg);
}

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #16110f;
}

.marquee {
  display: flex;
  width: max-content;
  padding: 13px 0;
  color: var(--copper-light);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

.marquee span {
  padding-right: 28px;
}

.story {
  padding: 112px 0 120px;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 850px;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: .95;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}

.story-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.005)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.story-card.big {
  grid-row: span 2;
  min-height: 534px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,125,69,.13), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.005)),
    var(--panel);
}

.story-card.oxidized {
  background:
    radial-gradient(circle at 100% 0%, rgba(72,169,143,.16), transparent 48%),
    var(--panel-soft);
}

.card-index {
  display: inline-block;
  margin-bottom: 66px;
  color: var(--copper-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
}

.story-card.big .card-index {
  margin-bottom: 180px;
}

.story-card h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.story-card p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.chart-section {
  padding: 10px 0 120px;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}

.secondary-btn.compact {
  min-height: 44px;
  padding-inline: 16px;
}

.chart-shell {
  overflow: hidden;
  border: 1px solid rgba(240,173,121,.24);
  border-radius: var(--radius);
  background: #0f0d0c;
  box-shadow: var(--shadow);
}

.chart-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--patina);
}

.live-dot i {
  width: 7px;
  height: 7px;
  background: var(--patina);
  box-shadow: 0 0 16px rgba(72,169,143,.68);
}

.chart-frame-wrap {
  position: relative;
  min-height: 560px;
}

#dexChart {
  display: none;
  width: 100%;
  height: 620px;
  border: 0;
  background: #0f0d0c;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(215,125,69,.06), transparent 46%);
  background-size: 42px 42px, 42px 42px, auto;
}

.chart-placeholder strong {
  color: var(--copper-light);
}

.join {
  padding: 10px 0 110px;
}

.join-card {
  position: relative;
  overflow: hidden;
  padding: 70px clamp(28px, 6vw, 76px);
  border: 1px solid rgba(72,169,143,.26);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(72,169,143,.19), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(215,125,69,.14), transparent 42%),
    var(--panel);
}

.join-card h2 {
  margin-bottom: 18px;
  font-size: clamp(50px, 6vw, 84px);
  line-height: .96;
}

.join-card > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer div {
  display: flex;
  gap: 12px;
}

footer strong {
  color: var(--text);
}

footer p {
  margin: 0;
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 920px) {
  .topbar {
    width: min(100% - 20px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 70px;
  }

  .coin-stage {
    order: -1;
    min-height: 420px;
  }

  .coin-stage img {
    width: min(92vw, 520px);
  }

  .halo-one {
    width: 390px;
    height: 390px;
  }

  .halo-two {
    width: 460px;
    height: 460px;
  }

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

  .story-card.big {
    min-height: 380px;
    grid-row: auto;
  }

  .story-card.big .card-index {
    margin-bottom: 110px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 10px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .top-actions .icon-btn {
    display: none;
  }

  .buy-btn {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .section {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 46px 0 62px;
  }

  .coin-stage {
    min-height: 330px;
  }

  .coin-stage img {
    width: min(94vw, 400px);
  }

  .halo-one {
    width: 310px;
    height: 310px;
  }

  .halo-two {
    width: 350px;
    height: 350px;
  }

  .oxidized-stamp {
    right: 4%;
    bottom: 8%;
  }

  h1 {
    font-size: clamp(56px, 20vw, 88px);
  }

  .lede {
    font-size: 16px;
  }

  .hero-buttons,
  .join-actions {
    align-items: stretch;
  }

  .hero-buttons a,
  .join-actions a {
    flex: 1 1 100%;
  }

  .ca-box {
    grid-template-columns: 1fr;
  }

  .ca-box button {
    width: 100%;
  }

  .story {
    padding: 82px 0 90px;
  }

  .story-card,
  .story-card.big {
    min-height: auto;
  }

  .story-card .card-index,
  .story-card.big .card-index {
    margin-bottom: 72px;
  }

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

  #dexChart {
    height: 520px;
  }

  .chart-frame-wrap {
    min-height: 520px;
  }

  .join-card {
    padding-block: 54px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
