:root {
  --ink: #f7f3e8;
  --muted: #b9b2a4;
  --night: #09090e;
  --panel: rgba(13, 14, 20, 0.72);
  --panel-strong: #14151c;
  --hot: #ff3d77;
  --acid: #b8ff3c;
  --sun: #ffb23f;
  --cyan: #38d5ff;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d8b36a;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 61, 119, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(56, 213, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #08080d 0%, #0f1015 46%, #07070a 100%);
  color: var(--ink);
}

body.has-banner .hero {
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.74) 34%, rgba(7, 8, 12, 0.3) 68%, rgba(7, 8, 12, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.9) 0%, rgba(7, 8, 12, 0.12) 42%, rgba(7, 8, 12, 0.68) 100%),
    var(--banner-image) center / cover no-repeat;
}

body.has-banner #festivalCanvas {
  opacity: 0.22;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 12, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.footer-links,
.hero-actions,
.cta-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #09090e;
  background: linear-gradient(135deg, #f5e4b3, var(--gold), var(--sun));
  border-radius: 0.45rem;
  box-shadow: 0 0 28px rgba(216, 179, 106, 0.28);
}

.brand-text {
  font-size: 1.05rem;
}

.nav-links {
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.15rem;
  border-radius: 0.45rem;
  font-weight: 900;
  font-family: Archivo, Inter, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.nav-cta,
.button.primary {
  color: #09090e;
  background: linear-gradient(135deg, #fff2c0, var(--gold) 48%, var(--sun));
  box-shadow: 0 18px 54px rgba(216, 179, 106, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button.dark {
  background: #101116;
}

.section-band,
.section {
  position: relative;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.hero {
  min-height: 100vh;
  padding-top: 6.8rem;
  padding-bottom: 4.8rem;
  display: grid;
  align-items: center;
}

#festivalCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, #0b0c11 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.48fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.hero-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.pfp-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 179, 106, 0.34);
  border-radius: 0.5rem;
  background: #09090e;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.pfp-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(9, 9, 14, 0.74) 100%);
  pointer-events: none;
}

.pfp-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pfp-poster figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: #f5e4b3;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
}

.launch-ribbon,
.contract-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  border: 1px solid rgba(216, 179, 106, 0.26);
  background: rgba(7, 8, 12, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.launch-ribbon {
  margin-bottom: 1.1rem;
  padding: 0.55rem 0.7rem;
  color: var(--muted);
  border-radius: 99rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-ribbon strong {
  color: #f5e4b3;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #f5e4b3;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1,
h2,
h3 {
  font-family: Archivo, Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 7.4vw, 7rem);
  line-height: 0.88;
  font-weight: 900;
  text-wrap: balance;
}

h1 span {
  color: #f5e4b3;
  text-shadow: 0 0 30px rgba(216, 179, 106, 0.22);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.35rem);
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.hero-story {
  max-width: 680px;
  color: #e4dece;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.56);
}

.hero-actions,
.cta-row {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(680px, 100%);
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 0.5rem;
  overflow: hidden;
}

.proof-strip div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  font-family: Archivo, Inter, sans-serif;
  color: #f5e4b3;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.proof-strip span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.mission-card,
.chain-board,
.token-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.mission-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(216, 179, 106, 0.08),
    var(--shadow);
}

.signal-row,
.meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signal-row {
  justify-content: flex-start;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.live-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(216, 179, 106, 0.8);
  animation: pulse 1.6s infinite;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.countdown div {
  min-width: 0;
  padding: 0.85rem 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  text-align: center;
  border-radius: 0.35rem;
}

.countdown strong {
  display: block;
  font-family: Archivo, Inter, sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
}

.countdown span,
.contract-box span,
.contract-box small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.backstage-meter {
  margin: 1.25rem 0;
}

.meter-track {
  height: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99rem;
  border: 1px solid var(--line);
}

.meter-track span {
  display: block;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--sun), #f5e4b3);
  box-shadow: 0 0 18px rgba(216, 179, 106, 0.34);
  transition: width 700ms ease;
}

.contract-chip {
  margin-top: 1rem;
  padding: 0.62rem 0.78rem;
  color: var(--muted);
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-chip code {
  display: inline-block;
  max-width: min(390px, 54vw);
  overflow: hidden;
  color: #f5e4b3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 0.9rem 1rem;
  color: rgba(247, 243, 232, 0.82);
  background: rgba(7, 8, 12, 0.74);
  border-top: 1px solid rgba(216, 179, 106, 0.18);
  backdrop-filter: blur(14px);
  font-family: Archivo, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-card p,
.chain-copy p,
.token-panel p,
.thesis-grid p,
.timeline p,
.updates-grid p,
.footer span {
  color: var(--muted);
  line-height: 1.58;
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-heading {
  width: min(1040px, 100%);
  margin: 0 auto 2rem;
}

.thesis-grid,
.timeline,
.updates-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.thesis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thesis-grid article,
.timeline article,
.updates-grid article {
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.thesis-grid article span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: #f5e4b3;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 900;
}

.chain-section {
  background:
    linear-gradient(90deg, rgba(255, 61, 119, 0.08), rgba(184, 255, 60, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.chain-board {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  min-height: 340px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.chain-visual {
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.chain-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  color: #09090e;
  font-family: Archivo, Inter, sans-serif;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--acid));
  box-shadow: 0 0 30px rgba(56, 213, 255, 0.22);
  transform: translate(-50%, -50%);
}

.chain-node.pending {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.chain-link {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, var(--hot), var(--sun), var(--acid));
  transform-origin: left center;
  opacity: 0.9;
}

.chain-link.pending {
  background: rgba(255, 255, 255, 0.13);
}

.chain-copy {
  padding: clamp(1.25rem, 4vw, 2rem);
  align-self: center;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  position: relative;
  overflow: hidden;
}

.timeline article::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 0.32rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--hot), var(--sun));
  border-radius: 99rem;
}

.timeline strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #f5e4b3;
  font-family: Archivo, Inter, sans-serif;
}

.token-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 255, 60, 0.13), transparent 28rem),
    rgba(0, 0, 0, 0.18);
}

.token-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 0.5rem;
}

.contract-box {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  padding: 1rem;
  background: #09090e;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.contract-box button {
  width: 100%;
  min-width: 0;
  padding: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.35rem;
  cursor: pointer;
}

.contract-box code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.cta-row {
  width: min(1180px, 100%);
  margin: 1rem auto 0;
}

.updates-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.updates-grid article {
  border-left: 4px solid var(--gold);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #07070a;
}

.footer div:first-child {
  display: grid;
  gap: 0.35rem;
}

.footer-links {
  gap: 1rem;
  color: var(--muted);
  font-weight: 800;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 179, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(216, 179, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 179, 106, 0);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .chain-board,
  .token-panel,
  .thesis-grid,
  .timeline,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 5rem;
  }

  .mission-card {
    align-self: stretch;
  }

  .pfp-poster {
    max-width: 520px;
    transform: none;
  }

  body.has-banner .hero {
    background:
      linear-gradient(180deg, rgba(7, 8, 12, 0.82) 0%, rgba(7, 8, 12, 0.7) 44%, rgba(7, 8, 12, 0.94) 100%),
      var(--banner-image) center top / auto 46vh no-repeat,
      #08090d;
  }

  .ticker-tape {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .chain-board {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-block: 0.75rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .nav-cta {
    min-height: 2.35rem;
    padding-inline: 0.9rem;
  }

  .hero {
    padding-top: 5.8rem;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4.25rem);
  }

  .proof-strip,
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .button {
    width: 100%;
  }

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