/* =========================================================
   MOGECOIN — comic / neon boulevard craft
   Library A cinematic + Library I chapter props (re-skinned)
   ========================================================= */

:root {
  --night: #0a0612;
  --night-2: #160b24;
  --night-3: #1e1030;
  --ink: #fff5ec;
  --muted: #cbb6d8;
  --pink: #ff2d95;
  --pink-2: #ff5eb0;
  --orange: #ff8a3d;
  --sun: #ffd166;
  --gold: #f0c14a;
  --violet: #8b5cf6;
  --teal: #22d3c5;
  --line: rgba(255, 245, 236, 0.12);
  --glass: rgba(18, 8, 28, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bungee", system-ui, sans-serif;
  --ui: "Orbitron", system-ui, sans-serif;
  --body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 45, 149, 0.22), transparent 55%),
    radial-gradient(900px 600px at 10% 20%, rgba(255, 138, 61, 0.14), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, var(--night) 100%);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.92), rgba(10, 6, 18, 0.35) 70%, transparent);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.topbar__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.topbar__nav {
  display: none;
  gap: 1.25rem;
  margin-left: 1rem;
  font-family: var(--ui);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.topbar__nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.topbar__nav a:hover {
  color: var(--ink);
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.topbar__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar__menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1.35rem;
  background: var(--glass);
}

@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .topbar__menu { display: none; }
}

/* Stripe mobile menu — Library I rhythm */
.stripe-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--night);
  padding: 4rem 0;
}

.stripe-menu[hidden] {
  display: none;
}

.stripe-menu > a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.5vw, 2.1rem);
  letter-spacing: 0;
}

.stripe-menu > a:nth-of-type(odd) {
  background: var(--pink);
  color: var(--ink);
}

.stripe-menu > a:nth-of-type(even) {
  background: var(--ink);
  color: var(--night);
}

.stripe-menu > a.btn--buy {
  margin: 1.25rem 1.5rem 0;
  width: calc(100% - 3rem);
  text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--orange)) !important;
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.6rem;
  border-radius: 12px;
}

.stripe-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--line);
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: var(--ui);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s;
}

.btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
}

.btn--lg {
  padding: 1rem 1.7rem;
  font-size: 1.05rem;
}

.btn--buy {
  color: #1a0610;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 55%, var(--sun) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(255, 45, 149, 0.35);
}

.btn--buy:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(255, 138, 61, 0.45);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 245, 236, 0.06);
  border-color: rgba(255, 245, 236, 0.22);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--pink-2);
  box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.25);
}

/* ---------- Type ---------- */
.kicker {
  margin: 0 0 0.6rem;
  font-family: var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--sun);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff 0%, #ffe0c2 55%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(200, 16, 46, 0.35));
}

.sub {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.sec {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 3rem);
}

.sec__head {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 42rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.sec__head .sub {
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 6.5rem clamp(1.1rem, 4vw, 3rem) 4rem;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 6, 18, 0.92) 0%, rgba(10, 6, 18, 0.72) 38%, rgba(10, 6, 18, 0.25) 68%, rgba(10, 6, 18, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 6, 18, 0.55) 0%, transparent 28%, rgba(10, 6, 18, 0.88) 100%);
}

.hero__copy {
  max-width: 34rem;
}

.brand {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff 10%, #ffd9a8 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 4px 0 rgba(120, 10, 50, 0.55))
    drop-shadow(0 0 28px rgba(255, 45, 149, 0.35));
}

.lede {
  margin: 0 0 1.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: #f6e7ff;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.ca-block {
  max-width: 34rem;
}

.ca-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 236, 0.18);
  background: rgba(12, 6, 22, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ca-pill:hover {
  border-color: rgba(255, 45, 149, 0.55);
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.25);
}

.ca-pill img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ca-pill__label {
  font-family: var(--ui);
  letter-spacing: 0.14em;
  color: var(--sun);
  flex: 0 0 auto;
}

.ca-pill code {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
}

.ca-pill i {
  color: var(--muted);
}

.ca-warn {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-family: var(--ui);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--muted);
  animation: floaty 2.2s ease-in-out infinite;
}

/* ---------- Lore ---------- */
.lore__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.lore__figure {
  display: grid;
  place-items: center;
}

.lore__figure img {
  width: min(100%, 420px);
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(255, 45, 149, 0.28));
  animation: pointpulse 3.4s ease-in-out infinite;
}

@keyframes pointpulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

.lore__prose {
  display: grid;
  gap: 1rem;
}

.lore__prose p {
  margin: 0;
  color: #f0e4ff;
  font-size: 1.08rem;
}

.lore__prose .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

@media (min-width: 900px) {
  .lore__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

/* ---------- Comic panels ---------- */
.panels {
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255, 138, 61, 0.12), transparent 60%),
    transparent;
}

.panel-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78vw);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
  cursor: grab;
}

.panel-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.panel-rail::-webkit-scrollbar {
  height: 8px;
}

.panel-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border-radius: 999px;
}

.comic-panel {
  scroll-snap-align: start;
  border: 4px solid #1a0c28;
  border-radius: 18px;
  overflow: hidden;
  background: #12081c;
  box-shadow:
    0 0 0 3px rgba(255, 209, 102, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}

.comic-panel:hover {
  transform: translateY(-4px);
}

.comic-panel__art {
  aspect-ratio: 1 / 1;
  background: #000;
  display: grid;
  place-items: center;
}

.comic-panel__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comic-panel__cap {
  padding: 0.95rem 1rem 1.15rem;
  border-top: 3px solid rgba(255, 209, 102, 0.35);
  background: linear-gradient(180deg, #1a0f2c, #12081c);
}

.comic-panel__cap h3 {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sun);
}

.comic-panel__cap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

@media (min-width: 1100px) {
  .panel-rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    cursor: default;
  }

  .panel-nav {
    display: none;
  }
}

/* ---------- How to ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 1100px;
}

.step {
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 45, 149, 0.08), rgba(18, 8, 28, 0.6));
}

.step__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  border-radius: 14px;
  background: rgba(255, 245, 236, 0.06);
  border: 1px solid var(--line);
}

.step__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--ui);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.howto__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Specs ---------- */
.spec-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

.spec {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(255, 245, 236, 0.04);
}

.spec--wide {
  grid-column: 1 / -1;
}

.spec__label {
  display: block;
  font-family: var(--ui);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--sun);
  margin-bottom: 0.35rem;
}

.spec__value {
  font-family: var(--ui);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  word-break: break-all;
}

.spec__value--row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---------- Chart ---------- */
.jumbo {
  max-width: 1100px;
  margin: 0 auto;
}

.jumbo__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 209, 102, 0.4);
  background: #0c0714;
  box-shadow:
    0 0 0 6px rgba(255, 45, 149, 0.12),
    0 24px 50px rgba(0, 0, 0, 0.45);
}

.jumbo__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.jumbo__frame.has-ca iframe {
  display: block;
}

.jumbo__frame.has-ca .jumbo__placeholder {
  display: none;
}

.jumbo__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 45, 149, 0.2), transparent 55%),
    #0c0714;
}

.jumbo__placeholder img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.jumbo__placeholder p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

.live-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--ui);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  background: rgba(10, 6, 18, 0.75);
  border: 1px solid rgba(255, 45, 149, 0.45);
}

.live-badge i {
  font-size: 0.55rem;
  color: var(--pink);
  animation: livepulse 1.4s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(255, 45, 149, 0); opacity: 0.7; }
}

/* ---------- Media ---------- */
.media-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.media-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 209, 102, 0.28);
  background: #0c0714;
}

.media-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #000;
}

.media-card--wide {
  grid-column: 1 / -1;
}

.media-card--wide img {
  aspect-ratio: 21 / 9;
  object-fit: contain;
}

.media-card figcaption {
  padding: 0.7rem 0.9rem;
  font-family: var(--ui);
  letter-spacing: 0.14em;
  color: var(--sun);
  border-top: 2px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(255, 245, 236, 0.04);
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-family: var(--ui);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--pink);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.faq-item a {
  color: var(--sun);
  text-decoration: underline;
}

/* ---------- Closer ---------- */
.closer {
  padding-bottom: 5rem;
}

.closer__stage {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 24px;
  border: 3px solid rgba(255, 45, 149, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 138, 61, 0.22), transparent 55%),
    rgba(18, 8, 28, 0.65);
}

.closer__mascot {
  width: min(280px, 70vw);
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(255, 45, 149, 0.35));
}

.closer__copy .cta-row {
  justify-content: center;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem clamp(1.1rem, 4vw, 3rem) 3rem;
  border-top: 4px solid;
  border-image: repeating-linear-gradient(
      90deg,
      var(--pink) 0 18px,
      #fff 18px 36px
    )
    1;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.footer__brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.footer__brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  justify-content: center;
  font-family: var(--ui);
  letter-spacing: 0.14em;
}

.footer__links a:hover {
  color: var(--sun);
}

.footer__legal {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #1a0610;
  font-family: var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue,
  .lore__figure img,
  .live-badge i {
    animation: none !important;
  }

  .btn,
  .comic-panel,
  .toast {
    transition: none !important;
  }
}
