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

:root {
  --void: #050918;
  --iron: #071022;
  --steel: #0c1834;
  --plate: #122040;
  --navy: #06101f;
  --navy-2: #081428;
  --navy-3: #0e1c38;
  --gold: #d4af37;
  --gold-2: #9a7420;
  --gold-soft: #f0d78c;
  --crimson: #b22234;
  --cream: #f3ead4;
  --muted: #9aa3b8;
  --line: rgba(212, 175, 55, 0.38);
  --font-display: "Playfair Display", "Cinzel", serif;
  --font-head: "Cinzel", serif;
  --font-serif: "Cinzel", serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.center { text-align: center; }
.muted { color: var(--muted); }
.gold-ink { color: var(--gold); }

.stars,
.flag-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stars {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(240, 215, 140, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, rgba(243, 234, 212, 0.22) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 70%, rgba(212, 175, 55, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 82%, rgba(240, 215, 140, 0.28) 50%, transparent 51%);
  opacity: 0.55;
}

.flag-glow {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(178, 34, 52, 0.22), transparent 42%),
    radial-gradient(ellipse at 92% 6%, rgba(212, 175, 55, 0.16), transparent 46%),
    radial-gradient(ellipse at 50% 100%, rgba(10, 28, 80, 0.35), transparent 50%);
}

.flag-bar {
  height: 5px;
  background: linear-gradient(90deg, #b22234 0 16%, #f4f4f2 16% 20%, #b22234 20% 36%, #f4f4f2 36% 40%, #d4af37 40% 60%, #f4f4f2 60% 64%, #b22234 64% 80%, #f4f4f2 80% 84%, #0a1c50 84% 100%);
}

/* ── Header ── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 9, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  background: #0a1228;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-copy em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.nav-socials {
  display: flex;
  gap: 0.45rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--gold) !important;
  clip-path: var(--cut);
  background: var(--steel);
}

.icon-btn:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gold);
}

/* ── Hero ── */
.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.stage-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
  filter: contrast(1.06) saturate(1.08);
}

.stage-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 9, 24, 0.98) 0%, rgba(5, 9, 24, 0.78) 24%, rgba(5, 9, 24, 0.18) 52%, rgba(5, 9, 24, 0.4) 100%);
}

.stage-plate {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 7.5rem 0 2.6rem;
}

.stage-copy {
  max-width: 40rem;
}

.stage-kicker {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.36em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin-bottom: 0.55rem;
}

.stage h1 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  text-transform: none;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-style: italic;
}

.gold-type {
  display: block;
  background: linear-gradient(180deg, #fff4c8 0%, #d4af37 42%, #8a6414 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5));
}

.steel-type {
  display: block;
  color: #d8d4cc;
  font-size: 0.7em;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 0 #000;
}

.stage-ticker {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--gold);
  margin: 0.55rem 0 0.85rem;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
}

.stage-line {
  max-width: 34rem;
  color: rgba(232, 224, 208, 0.86);
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 1.45rem;
}

.stage-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stage-mark {
  width: 148px;
  height: 148px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 32px rgba(212, 175, 55, 0.35);
  background: #0a1228;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: var(--cut);
  border-radius: 0;
}

.btn-gold {
  background: linear-gradient(180deg, #f0d78c 0%, #d4af37 42%, #9a7420 100%);
  color: #140f04;
  box-shadow: 0 12px 32px rgba(154, 116, 32, 0.45);
}

.btn-gold:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(5, 9, 24, 0.55);
  color: var(--cream);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg { padding: 1.05rem 1.8rem; }

.btn-copy { flex-shrink: 0; }
.btn-copy.copied { background: var(--navy-3); color: var(--gold); }

/* ── Tape ── */
.ticker-tape {
  background: #06101f;
  color: var(--gold);
  overflow: hidden;
  padding: 0.72rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold-2);
}

.tape {
  display: flex;
  gap: 1.6rem;
  white-space: nowrap;
  animation: tape 24s linear infinite;
  font-family: var(--font-head);
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}

@keyframes tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Panels ── */
.panel {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.panel-head {
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-size: 0.7rem;
  margin-bottom: 0.7rem;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  text-transform: none;
  margin-bottom: 0.8rem;
}

.panel-head p,
.lore-copy p {
  color: rgba(244, 234, 216, 0.78);
  font-size: 1.05rem;
}

/* ── The Seal ── */
.seal { background: linear-gradient(180deg, var(--navy), var(--navy-2)); }

.seal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.seal-card {
  background: var(--navy-3);
  border: 1px solid var(--line);
  padding: 1.7rem 1.35rem 1.5rem;
  clip-path: var(--cut);
  position: relative;
}

.seal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), #0a1c50);
}

.seal-card-gold {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.12), transparent 48%),
    var(--navy-3);
  border-color: var(--gold);
}

.seal-star {
  display: block;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.35em;
}

.seal-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--gold-soft);
  margin-bottom: 0.65rem;
}

.seal-card p {
  color: rgba(243, 234, 212, 0.78);
  font-size: 0.95rem;
}

/* ── Lore ── */
.lore { background: var(--navy-2); }

.lore-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.lore-visual { position: relative; }

.lore-frame {
  position: relative;
  z-index: 1;
  border: 3px solid var(--gold);
  padding: 10px;
  background: #050918;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.22);
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
}

.lore-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lore-orbit {
  position: absolute;
  inset: -12%;
  border: 1px dashed rgba(232, 197, 71, 0.35);
  border-radius: 50%;
  z-index: 0;
}

.lore-orbit span {
  position: absolute;
  font-size: 1.4rem;
}

.lore-orbit span:nth-child(1) { top: 8%; left: 46%; }
.lore-orbit span:nth-child(2) { bottom: 10%; right: 8%; }
.lore-orbit span:nth-child(3) { top: 42%; left: 0; }

.lore-copy p { margin-bottom: 1rem; }
.lore-copy strong { color: var(--gold-soft); }

.lore-stats {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin-top: 1.8rem;
}

.lore-stats li {
  border-top: 2px solid var(--gold);
  padding-top: 0.7rem;
  min-width: 90px;
}

.lore-stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.lore-stats span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Memes ── */
.vault { background: var(--navy); }

.meme-show {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-auto-rows: clamp(220px, 28vw, 360px);
  gap: 0.85rem;
}

.meme-card {
  position: relative;
  display: grid;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  background: #080808;
  cursor: zoom-in;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  clip-path: var(--cut);
  width: 100%;
  min-height: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.meme-card:hover,
.meme-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.55), 0 16px 36px rgba(0, 0, 0, 0.45);
  outline: none;
  z-index: 1;
}

.meme-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.5s ease;
}

.meme-card:hover img,
.meme-card:focus-visible img { transform: scale(1.05); }

.meme-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(5, 7, 14, 0.92) 12%, transparent);
  pointer-events: none;
}

.meme-card span {
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.8rem;
  z-index: 1;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.meme-lead {
  grid-column: auto;
  grid-row: auto;
}

.meme-lead span {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  bottom: 1.1rem;
  left: 1.2rem;
}

.meme-lead img { object-position: center 45%; }
.meme-face img { object-position: center; object-fit: contain; background: #0a1228; }

.lightbox {
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
}

.lightbox::backdrop { background: rgba(4, 6, 12, 0.88); }

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid var(--gold);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
}

/* ── CA / chart / buy ── */
.ca { background: var(--navy-2); border-top: 1px solid var(--line); }

.ca-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 760px;
  margin: 1.4rem auto 0;
  padding: 1rem 1.15rem;
  background: var(--steel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.ca-address {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  letter-spacing: 0.08em;
  word-break: break-all;
  color: var(--gold-soft);
}

.copy-toast {
  text-align: center;
  min-height: 1.25rem;
  margin-top: 0.7rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.copy-toast.show { opacity: 1; }

.chart-panel { background: var(--navy); }

.chart-frame {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  min-height: 0;
}

.dexscreener-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.dexscreener-embed.hidden,
.chart-placeholder.hidden { display: none; }

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}

@media (min-width: 1100px) {
  .chart-frame { padding-bottom: 72%; }
}

.chart-link {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
}

.buy { background: linear-gradient(180deg, var(--navy-2), var(--navy)); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 2.4rem 0 2.4rem;
  counter-reset: none;
}

.timeline li {
  background: var(--navy-3);
  border: 1px solid var(--line);
  padding: 1.5rem 1.15rem;
  clip-path: var(--cut);
  position: relative;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.timeline span {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.timeline h3 {
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.4rem 0 0.4rem;
}

.timeline p { color: var(--muted); font-size: 0.92rem; }

.buy-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-foot {
  background: #050918;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: 2.4rem 0 2rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.foot-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: #0a1228;
}

.foot-brand strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
}

.foot-brand span { color: var(--muted); font-size: 0.85rem; }

.foot-links {
  display: flex;
  gap: 1.4rem;
}

.foot-links a {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.disclaimer {
  max-width: 640px;
  font-size: 0.75rem;
  color: #6d7588;
}

@media (max-width: 900px) {
  .stage-plate,
  .lore-split,
  .seal-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .stage-mark { width: 96px; height: 96px; }

  .stage-banner { object-position: 72% center; }

  .meme-show {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .meme-card,
  .meme-lead {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .meme-face {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5, 9, 24, 0.98);
    flex-direction: column;
    padding: 1.4rem;
    gap: 1.1rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }

  .ca-box { flex-direction: column; }
  .btn-copy { justify-content: center; width: 100%; }
}

@media (max-width: 520px) {
  .meme-show {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 0.7rem;
  }

  .meme-card,
  .meme-lead,
  .meme-face {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .meme-lead span { font-size: 1rem; }

  .stage-mark { display: none; }

  .brand-copy strong { font-size: 0.78rem; }
}
