:root {
  --bg: #08070b;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --ink: #fff8ec;
  --muted: #b9ad9d;
  --gold: #f7d774;
  --rose: #ff6b91;
  --cyan: #5de1ff;
  --green: #79f2a6;
  --border: 1px solid rgba(255, 248, 236, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 107, 145, 0.26), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(93, 225, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 50% 95%, rgba(247, 215, 116, 0.18), transparent 32rem),
    var(--bg);
}

a {
  color: inherit;
}

code {
  color: var(--gold);
  font-family: "Space Mono", ui-monospace, monospace;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.page-shell {
  width: 100%;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: var(--border);
  border-radius: 999px;
  background: rgba(8, 7, 11, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(150px, 19vw, 265px);
  height: auto;
}

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

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--panel-strong);
}

.snap-pages {
  width: 100%;
}

.snap-section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.25rem, 8vw, 7.8rem);
  line-height: 0.84;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.hero-ticket {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: var(--border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(247, 215, 116, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-ticket::before {
  content: "";
  position: absolute;
  inset: 90px 22px 120px;
  border: 2px dashed rgba(255, 248, 236, 0.22);
  border-radius: 999px 999px 36px 36px;
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.ticket-top strong {
  color: var(--ink);
}

.ticket-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #120c00;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  letter-spacing: -0.08em;
  background: conic-gradient(from 210deg, var(--gold), var(--cyan), var(--rose), var(--gold));
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.35), 0 24px 70px rgba(0, 0, 0, 0.36);
}

.hero-ticket p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.copy-contract {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  background: rgba(8, 7, 11, 0.6);
  cursor: pointer;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
}

.copy-contract:hover {
  border-color: rgba(247, 215, 116, 0.7);
}

.copy-toast {
  min-height: 18px;
  color: var(--green);
  font-size: 0.78rem;
  text-align: center;
}

.market-copy-toast {
  display: block;
  margin-top: 12px;
}

.frame-section {
  padding: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading-wide {
  max-width: 860px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.frame-card {
  position: relative;
  width: 100%;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  background: #050507;
  overflow: hidden;
}

.frame-card iframe {
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  border: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  transform: translateX(-50%);
  padding: 10px 14px;
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  background: rgba(8, 7, 11, 0.72);
  backdrop-filter: blur(16px);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 3px 0 0 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

.market-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 34px;
}

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

.token-card {
  position: relative;
  min-height: 270px;
  padding: 16px;
  border: var(--border);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 88% 12%, var(--accent-glow), transparent 13rem);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.token-card.featured {
  grid-column: 1 / -1;
  min-height: 270px;
  border-color: rgba(247, 215, 116, 0.55);
  background:
    linear-gradient(145deg, rgba(247, 215, 116, 0.2), rgba(255, 107, 145, 0.08)),
    radial-gradient(circle at 88% 12%, var(--accent-glow), transparent 13rem);
  box-shadow: 0 30px 90px rgba(247, 215, 116, 0.12);
}

.token-card.featured h3 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.token-card::before {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(18px);
  opacity: 0.16;
}

.token-image-wrap {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 98px;
  flex: 0 0 98px;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 28px;
  background: rgba(8, 7, 11, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.token-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-image-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #100c09;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent),
    var(--accent);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.25rem;
}

.token-card.featured .token-image-wrap {
  width: 124px;
  height: 124px;
  flex-basis: 124px;
  border-radius: 34px;
}

.token-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.token-card-title {
  min-width: 0;
  flex: 1;
}

.token-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2.3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.token-subtitle {
  position: relative;
  z-index: 1;
  min-height: 38px;
  color: var(--muted);
  line-height: 1.45;
}

.token-card.featured h3,
.token-card.featured .token-subtitle {
  max-width: none;
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.metric {
  padding: 10px;
  color: inherit;
  border: var(--border);
  border-radius: 18px;
  background: rgba(8, 7, 11, 0.38);
}

.metric-copy {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.metric-copy:hover:not(:disabled),
.metric-copy:focus-visible:not(:disabled) {
  border-color: rgba(247, 215, 116, 0.66);
  background: rgba(247, 215, 116, 0.1);
}

.metric-copy:active:not(:disabled) {
  transform: translateY(1px);
}

.metric-copy:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.metric span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric strong {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.metric .positive {
  color: var(--green);
}

.metric .negative {
  color: var(--rose);
}

.token-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.token-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.token-link {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 22px;
  padding: 14px 18px;
  color: var(--muted);
  border: var(--border);
  border-radius: 22px;
  background: rgba(8, 7, 11, 0.68);
  text-align: center;
}

.site-footer p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.45;
}

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

  .hero-ticket {
    min-height: auto;
  }

  .token-card.featured {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .site-header {
    top: 10px;
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

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

  .hero-ticket,
  .frame-card,
  .token-card {
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(2.7rem, 18vw, 4.3rem);
  }

  .market-section {
    width: min(100% - 22px, 1180px);
    padding-top: 130px;
  }

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

  .site-footer {
    border-radius: 18px;
  }
}
