/*
  $LEGEND landing page
  Single-file vibe: dark, clean, a little unhinged.
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  background: #0d0d0d;
  color: #f2f2f2;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

:root {
  --bg: #0d0d0d;
  --panel: #151515;
  --panel2: #1b1b1b;
  --text: #f2f2f2;
  --muted: #c9c9c9;
  --muted2: #8f8f8f;
  --orange: #ff9f1c;
  --teal: #2ec4b6;
  --shadow: rgba(0, 0, 0, 0.55);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--orange);
  color: #0d0d0d;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.btn-small {
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  font-size: 0.95rem;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.58));
}

.hero-overlay h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: 4px;
  text-shadow: 0 10px 25px var(--shadow);
}

.hero-sub {
  margin-top: 0.75rem;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
}

/* ABOUT */
.content {
  position: relative;
  padding: 4rem 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.content-inner {
  max-width: 740px;
}

.content h2 {
  font-size: clamp(2rem, 3.3vw, 2.6rem);
  margin-bottom: 1.2rem;
  font-weight: 800;
  color: var(--orange);
}

.content p {
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
  color: #e6e6e6;
}

.tiny {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.bullet {
  list-style: none;
  margin: 1.3rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.bullet li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
}

/* Sprinkled sticker */
.sprinkle {
  position: absolute;
  right: 1rem;
  top: 3.2rem;
  width: min(310px, 42vw);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: rotate(4deg);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.55));
}

.sprinkle img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.sprinkle-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .sprinkle {
    position: static;
    width: 100%;
    max-width: 520px;
    margin-top: 1.2rem;
    transform: rotate(0deg);
  }
}

/* RECEIPTS */
.receipts {
  background: linear-gradient(180deg, var(--bg), var(--panel));
  padding: 4rem 1rem;
}

.receipts-header {
  max-width: 980px;
  margin: 0 auto 1.6rem;
}

.receipts h2 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  color: var(--teal);
  margin-bottom: 0.6rem;
  font-weight: 900;
}

.receipts-header p {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0.75rem;
  max-width: 55rem;
}

.receipts-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .receipts-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.receipt-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.receipt-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: block;
}

.receipt-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.receipt-title {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.receipt-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* TOKEN INFO */
.info {
  background: var(--panel2);
  position: relative;
  overflow: hidden;
  padding: 3.6rem 1rem;
  text-align: center;
}

.info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  color: var(--orange);
  font-weight: 900;
}

.contract {
  max-width: 980px;
  margin: 0 auto 1.6rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 1.1rem;
}

.label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.7rem;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.contract code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: var(--teal);
  word-break: break-all;
}

.links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Sprinkle placement inside the token section */
.sprinkle--info {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  top: auto;
  transform: rotate(2deg);
}

@media (max-width: 860px) {
  .sprinkle--info {
    display: none;
  }
}

/* Footer */
footer {
  background: var(--bg);
  color: var(--muted2);
  text-align: center;
  padding: 1.8rem 1rem;
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.lightbox.is-open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 92vw);
  max-height: 88vh;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}

#lightbox-img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
