/* =========================================================================
   RUGIR — storefront
   Anime/comic styling: speed lines, halftone dots, energy glow, purple accent.
   ========================================================================= */

:root {
  --bg: #08060f;
  --bg-2: #0d0a1a;
  --panel: rgba(255, 255, 255, .045);
  --panel-brd: rgba(255, 255, 255, .10);
  --txt: #f2f0fb;
  --muted: #9a96b8;
  --accent: #9d4bff;
  --accent-2: #5b8bff;
  --hot: #ff3b6b;
  --gold: #f6c445;
  --ok: #25ff85;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ------------------------------------------------------------------ layers */

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Radial comic speed lines behind the hero. */
.speedlines {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: .30;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(157, 75, 255, .55) 0deg 0.35deg,
    transparent 0.35deg 2.6deg
  );
  mask-image: radial-gradient(circle at 50% 45%, transparent 22%, #000 62%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, transparent 22%, #000 62%, transparent 78%);
  animation: spin 90s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Halftone dot texture (comic print look). */
.halftone {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(157, 75, 255, .85) 1px, transparent 1.4px);
  background-size: 13px 13px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.glow-orb {
  position: fixed;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .5;
}

.orb-1 {
  background: radial-gradient(circle, rgba(157, 75, 255, .40), transparent 62%);
  top: -22vmax;
  left: -14vmax;
  animation: drift1 26s ease-in-out infinite alternate;
}

.orb-2 {
  background: radial-gradient(circle, rgba(91, 139, 255, .30), transparent 62%);
  bottom: -26vmax;
  right: -16vmax;
  animation: drift2 32s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(9vw, 7vh, 0) scale(1.14); } }
@keyframes drift2 { to { transform: translate3d(-8vw, -6vh, 0) scale(1.10); } }

main, .nav, .footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 6, 15, .72);
  border-bottom: 1px solid var(--panel-brd);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--txt);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 18px;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(157, 75, 255, .55);
  flex: none;
}

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

.nav-link {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-link:hover { color: var(--txt); background: rgba(255, 255, 255, .07); }
.nav-link.is-active { color: var(--txt); background: rgba(157, 75, 255, .18); }

/* Discord mark. currentColor, so it inherits whatever the button is doing. */
.ico-discord {
  width: 1.35em;
  height: 1.02em;   /* the mark's viewBox is 127.14 x 96.36 */
  flex: none;
  fill: currentColor;
  transition: color .2s, transform .2s var(--ease);
}

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-brd);
  color: var(--txt);
}

/* Blurple on hover, everywhere the mark appears. */
.nav-discord:hover { background: rgba(88, 101, 242, .18); border-color: rgba(88, 101, 242, .5); }
.nav-discord:hover .ico-discord { color: #5865f2; transform: scale(1.08); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--txt);
  font-size: 22px;
  cursor: pointer;
}

/* -------------------------------------------------------------------- hero */

.view { display: none; }
.view.is-active { display: block; animation: viewIn .45s var(--ease); }

@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.hero {
  min-height: min(88vh, 780px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 22px 60px;
  position: relative;
}

.hero-inner { max-width: 900px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 255, 133, .28);
  background: rgba(37, 255, 133, .08);
  color: #b9ffd8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(37, 255, 133, .6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 11px rgba(37, 255, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 255, 133, 0); }
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(46px, 9.5vw, 108px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.03em;
  font-style: italic;
}

.hero-title .line {
  display: block;
  transition: opacity .34s var(--ease), transform .34s var(--ease), filter .34s var(--ease);
}

/* Out-going state driven by JS. The two lines leave in opposite directions so
   the swap reads as a deliberate cut, not a flicker. */
.hero-title.swap .line { opacity: 0; filter: blur(6px); }
.hero-title.swap #hero-l1 { transform: translateX(-26px) skewX(-7deg); }
.hero-title.swap #hero-l2 { transform: translateX(26px) skewX(-7deg); }

/* The title box must not resize as slogans of different length swap in. */
.hero-title { min-height: calc(2 * .95em); }

.hero-title .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--hot) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(157, 75, 255, .45));
  background-size: 220% auto;
  animation: shift 7s linear infinite;
}

@keyframes shift { to { background-position: 220% center; } }

.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  max-width: 620px;
  margin: 0 auto;
}

.hero-sub strong { color: var(--txt); }

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 58px;
  display: flex;
  gap: 46px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.8s infinite;
}

@keyframes wheel { 60% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

/* ----------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s, background .25s, opacity .2s;
  color: var(--txt);
}

.btn:active { transform: scale(.97); }

.btn-lg { padding: 15px 34px; font-size: 16.5px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-block { width: 100%; margin-top: 14px; }

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 34px rgba(157, 75, 255, .42);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(157, 75, 255, .58); }

.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border-color: var(--panel-brd);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .10); transform: translateY(-2px); }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Sweeping highlight across primary buttons. */
.btn-shine {
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-22deg);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine { 0%, 62% { left: -140%; } 88%, 100% { left: 160%; } }

/* ---------------------------------------------------------------- sections */

.section { max-width: 1180px; margin: 0 auto; padding: 84px 22px; }
.section.narrow { max-width: 780px; }

.section-head { text-align: center; margin-bottom: 46px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow.ok { color: var(--ok); }

.section-head h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: -.02em;
  font-style: italic;
}

.section-head p { color: var(--muted); max-width: 560px; margin: 12px auto 0; }

/* --------------------------------------------------------------- showcase */

.stage {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

/* Module picker: the screenshot is never covered by text, the copy lives here. */
.mod-list { display: flex; flex-direction: column; gap: 8px; }

.mod {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .025);
  color: var(--txt);
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}

.mod:hover { background: rgba(157, 75, 255, .08); transform: translateX(3px); }

.mod-n {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  transition: background .25s, color .25s;
}

.mod b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.mod i { display: block; font-size: 12.5px; font-style: normal; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.mod.is-active {
  background: linear-gradient(90deg, rgba(157, 75, 255, .17), rgba(157, 75, 255, .03));
  border-color: rgba(157, 75, 255, .38);
}

.mod.is-active .mod-n { background: var(--accent); color: #fff; }

/* Rail that grows on the active entry. */
.mod::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .3s var(--ease);
}

.mod.is-active::before { height: 74%; }

/* Window frame around the capture. */
.win {
  border-radius: var(--r-lg);
  border: 1px solid rgba(157, 75, 255, .3);
  background: linear-gradient(180deg, rgba(157, 75, 255, .10), rgba(0, 0, 0, .4));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(157, 75, 255, .14);
  overflow: hidden;
}

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 6, 15, .75);
  border-bottom: 1px solid rgba(157, 75, 255, .2);
}

.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dots i:first-child { background: rgba(157, 75, 255, .75); }

.win-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-zoom {
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--panel-brd);
  background: rgba(255, 255, 255, .04);
  color: var(--txt);
  font-size: 13px;
  cursor: pointer;
  transition: background .25s;
}

.win-zoom:hover { background: var(--accent); }

/* Autoplay countdown, restarted by JS on every slide change. */
.win-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(157, 75, 255, .8);
}

.win-progress.run { animation: bar 6000ms linear forwards; }

@keyframes bar { to { width: 100%; } }

/* contain, not cover: a UI screenshot must never be cropped. */
.win-body {
  position: relative;
  background: #08060f;
  aspect-ratio: 1100 / 645;
}

.win-body img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}

.win-body img.swapping { opacity: 0; transform: translateX(14px); }

/* Only shown on mobile, where the picker collapses to title-only chips. */
.shot-desc { display: none; margin: 14px 2px 0; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 4vmin;
  background: rgba(3, 2, 7, .94);
  backdrop-filter: blur(10px);
  animation: fade .25s;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--r-md);
  border: 1px solid rgba(157, 75, 255, .35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .8);
  animation: pop .35s var(--ease);
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--panel-brd);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  font-size: 17px;
  cursor: pointer;
  z-index: 2;
}

.lb-close:hover { background: var(--accent); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--panel-brd);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lb-arrow:hover { background: var(--accent); }
.lb-arrow.prev { left: 3vmin; }
.lb-arrow.next { right: 3vmin; }

.lb-cap {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(10, 8, 20, .9);
  border: 1px solid var(--panel-brd);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--panel-brd);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(157, 75, 255, .16), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover { transform: translateY(-7px); border-color: rgba(157, 75, 255, .45); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card.featured { border-color: rgba(157, 75, 255, .5); box-shadow: 0 0 0 1px rgba(157, 75, 255, .2), var(--shadow); }

.card.sold-out { opacity: .58; }
.card.sold-out:hover { transform: none; border-color: var(--panel-brd); box-shadow: none; }

.card-flag {
  position: absolute;
  top: 15px;
  right: -34px;
  transform: rotate(38deg);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 5px 42px;
}

.card-flag.out { background: linear-gradient(120deg, #6b6b7d, #45455a); }

.card h3 { font-size: 21px; font-weight: 800; }
.card .card-desc { color: var(--muted); font-size: 14px; min-height: 40px; margin-top: 4px; }

.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.price b { font-size: 42px; font-weight: 900; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }

.perks { list-style: none; margin: 18px 0 20px; display: grid; gap: 9px; }

.perks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  color: #d8d4ee;
}

.perks li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(37, 255, 133, .16);
  box-shadow: inset 0 0 0 1px rgba(37, 255, 133, .45);
  background-image: linear-gradient(transparent, transparent);
}

.stock { margin-top: auto; }

.stock-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.stock-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width 1.1s var(--ease);
}

.stock-fill.low { background: linear-gradient(90deg, var(--hot), #ff8a3b); }

.stock-txt {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 14px;
}

.stock-txt b { color: var(--txt); }
.stock-txt .low { color: var(--hot); }

.skeleton-card {
  height: 400px;
  border-radius: var(--r-lg);
  border: 1px solid var(--panel-brd);
  background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%);
  background-size: 220% 100%;
  animation: sk 1.4s linear infinite;
}

@keyframes sk { to { background-position: -120% 0; } }

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.feature {
  padding: 26px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--panel-brd);
  background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s;
}

.feature:hover { transform: translateY(-5px); border-color: rgba(157, 75, 255, .4); }
.feature h3 { font-size: 17px; margin-bottom: 6px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 14px; }

.feature-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
  background: rgba(157, 75, 255, .14);
  border: 1px solid rgba(157, 75, 255, .3);
}

.feature-ico-discord {
  background: rgba(88, 101, 242, .16);
  border-color: rgba(88, 101, 242, .4);
  color: #8b95f8;
}

.feature-ico-discord .ico-discord { width: 24px; height: 18px; }

/* --------------------------------------------------------------------- faq */

.faq { display: grid; gap: 12px; }

.faq details {
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 16px 20px;
  transition: border-color .25s;
}

.faq details[open] { border-color: rgba(157, 75, 255, .4); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* Section labels between question groups. Higher specificity than `.faq p`
   above, which would otherwise steal the colour and spacing. */
.faq > .faq-group { margin: 26px 0 2px; color: var(--accent); }
.faq > .faq-group:first-child { margin-top: 0; }

.faq code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(157, 75, 255, .16);
  color: var(--txt);
}

/* ------------------------------------------------------------------ panels */

.panel {
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 26px;
}

.panel + .panel { margin-top: 16px; }

.key-form { display: flex; gap: 10px; flex-wrap: wrap; }

.key-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--panel-brd);
  background: rgba(0, 0, 0, .3);
  color: var(--txt);
  font: inherit;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  letter-spacing: .06em;
  transition: border-color .2s, box-shadow .2s;
}

.key-form input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157, 75, 255, .18);
}

.form-error {
  color: #ff9db4;
  background: rgba(255, 59, 107, .10);
  border: 1px solid rgba(255, 59, 107, .3);
  border-radius: var(--r-sm);
  padding: 11px 15px;
  margin-top: 14px;
  font-size: 14px;
}

.license-card { margin-top: 18px; animation: viewIn .4s var(--ease); }

.license-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel-brd);
}

.license-head h3 { font-size: 24px; font-weight: 800; }

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(157, 75, 255, .18);
  border: 1px solid rgba(157, 75, 255, .4);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  padding: 20px 0;
}

.license-grid span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.license-grid b { font-size: 15px; }

.license-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--panel-brd); }

.hint { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }

/* ------------------------------------------------------------------ status */

.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.status-tile h3 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.notes { white-space: pre-wrap; margin-top: 8px; color: #d8d4ee; }

.timeline { display: grid; gap: 14px; }

.tl-item {
  position: relative;
  padding: 18px 22px 18px 30px;
  border: 1px solid var(--panel-brd);
  border-radius: var(--r-md);
  background: var(--panel);
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.tl-item b { font-size: 16px; }
.tl-item p { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* ------------------------------------------------------------------- modal */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, .78);
  backdrop-filter: blur(7px);
  animation: fade .25s;
}

@keyframes fade { from { opacity: 0; } }

.modal-box {
  position: relative;
  width: min(480px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  animation: pop .35s var(--ease);
}

@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(.96); } }

.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.modal-x:hover { color: var(--txt); }

.step h3 { font-size: 25px; font-weight: 800; margin-bottom: 4px; }
.co-price { margin-bottom: 20px; }
.co-price b { font-size: 27px; font-weight: 900; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field > span i { opacity: .7; font-style: normal; }

.field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--panel-brd);
  background: rgba(0, 0, 0, .3);
  color: var(--txt);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157, 75, 255, .18); }
.field input[readonly] { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }

.methods { display: grid; gap: 11px; }

.method {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--panel-brd);
  background: rgba(255, 255, 255, .04);
  color: var(--txt);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .22s, background .22s, transform .18s var(--ease);
}

.method:hover { border-color: rgba(157, 75, 255, .55); background: rgba(157, 75, 255, .10); transform: translateX(3px); }
.method[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.m-ico {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 19px;
  background: rgba(157, 75, 255, .16);
  border: 1px solid rgba(157, 75, 255, .3);
}

/* The Discord method carries the brand colour instead of the purple accent. */
.m-ico-discord {
  background: rgba(88, 101, 242, .18);
  border-color: rgba(88, 101, 242, .42);
  color: #7d88f7;
}

.m-ico-discord .ico-discord { width: 22px; height: 17px; }
#m-discord:hover .m-ico-discord { background: rgba(88, 101, 242, .3); color: #fff; }

.m-body { flex: 1; }
.m-body b { display: block; font-size: 15px; }
.m-body i { font-style: normal; font-size: 13px; color: var(--muted); }
.m-go { color: var(--accent); font-size: 19px; }

.pay-amount { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 18px; }
.pay-amount b { font-size: 31px; font-weight: 900; font-family: ui-monospace, Consolas, monospace; }
.pay-amount span { color: var(--muted); text-transform: uppercase; font-weight: 700; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }

.waiting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: var(--r-md);
  background: rgba(157, 75, 255, .08);
  border: 1px solid rgba(157, 75, 255, .22);
  margin: 16px 0 12px;
  font-size: 14.5px;
}

.spinner {
  flex: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(157, 75, 255, .3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.ref-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .32);
  border: 1px dashed rgba(157, 75, 255, .45);
  margin: 14px 0;
}

.ref-box b { font-size: 21px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }

.done-burst {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 255, 133, .35), transparent 68%);
  border: 2px solid var(--ok);
  position: relative;
  animation: burst .55s var(--ease);
}

.done-burst::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ok);
  font-size: 29px;
  font-weight: 900;
}

@keyframes burst { from { transform: scale(0); opacity: 0; } }

#step-done { text-align: center; }
#step-done .copy-row { margin-top: 12px; }

/* ------------------------------------------------------------------- toast */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(20, 16, 34, .96);
  border: 1px solid rgba(157, 75, 255, .45);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .28s, transform .28s var(--ease);
}

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

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--panel-brd); margin-top: 60px; padding: 44px 22px 30px; }

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-inner b { letter-spacing: .14em; margin-left: 8px; }
.footer-inner p { font-size: 14px; margin-top: 8px; }

.footer-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.footer-links button, .footer-links a {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}

.footer-links button:hover, .footer-links a:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }

#footer-discord { display: inline-flex; align-items: center; gap: 7px; }
#footer-discord:hover { background: rgba(88, 101, 242, .16); }
#footer-discord:hover .ico-discord { color: #5865f2; }

.legal { max-width: 1180px; margin: 26px auto 0; font-size: 12.5px; text-align: center; }

/* ------------------------------------------------------------------ reveal */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ mobile */

/* ================================================================== mobile */

/* Tablets and below. */
@media (max-width: 1000px) {
  /* Picker turns into a horizontal chip rail above the capture. */
  .stage { grid-template-columns: minmax(0, 1fr); max-width: 100%; gap: 16px; }

  .mod-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .mod-list::-webkit-scrollbar { height: 5px; }
  .mod-list::-webkit-scrollbar-thumb { background: rgba(157, 75, 255, .4); border-radius: 999px; }

  .mod {
    flex: none;
    display: block;
    padding: 10px 16px;
    scroll-snap-align: start;
    border: 1px solid var(--panel-brd);
    border-radius: 999px;
  }

  .mod:hover { transform: none; }
  .mod::before, .mod-n, .mod i { display: none; }
  .mod b { font-size: 13.5px; white-space: nowrap; }
  .mod.is-active { border-color: rgba(157, 75, 255, .5); }

  .shot-desc { display: block; }
}

@media (max-width: 760px) {
  /* Respect notches / rounded corners. */
  body { padding-bottom: env(safe-area-inset-bottom); }

  .nav-inner { padding: 11px 16px; }

  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    left: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--panel-brd);
    background: rgba(13, 10, 26, .985);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open { display: flex; animation: viewIn .25s var(--ease); }
  .nav-burger { display: block; padding: 6px 10px; }
  .nav-link { text-align: left; padding: 13px 15px; font-size: 15.5px; }

  /* Hero */
  .hero { min-height: auto; padding: 54px 18px 44px; }
  .hero-title { margin: 18px 0 14px; }
  .hero-cta { margin-top: 26px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 40px; gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 22px; }
  .stat span { font-size: 10.5px; letter-spacing: .06em; }
  .scroll-hint { display: none; }

  .section { padding: 52px 16px; }
  .section-head { margin-bottom: 30px; }

  /* Showcase */
  .win { border-radius: var(--r-md); }
  .win-bar { padding: 8px 11px; gap: 9px; }
  .win-title { font-size: 11.5px; }
  .win-zoom { width: 28px; height: 28px; }

  /* Products */
  .products { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 20px 20px; }
  .card .card-desc { min-height: 0; }
  .price b { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr; }

  /* Client area */
  .key-form { flex-direction: column; }
  .key-form input { min-width: 0; width: 100%; }
  .key-form .btn { width: 100%; }
  .license-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .license-actions { flex-direction: column; align-items: stretch; }
  .license-actions .btn { width: 100%; }

  /* Modal takes the full sheet on phones. */
  .modal { padding: 0; align-items: flex-end; }

  .modal-box {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    animation: sheetUp .35s var(--ease);
  }

  .modal-x { top: 12px; right: 12px; width: 34px; height: 34px; }
  .step h3 { font-size: 21px; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
  .ref-box { flex-direction: column; gap: 10px; text-align: center; }
  .ref-box .btn { width: 100%; }

  /* iOS zooms in when a focused input is under 16px — keep them at 16. */
  input, textarea, select { font-size: 16px !important; }

  /* Lightbox */
  .lb-arrow { width: 42px; height: 42px; font-size: 24px; }
  .lb-arrow.prev { left: 8px; }
  .lb-arrow.next { right: 8px; }
  .lb-cap { bottom: 14px; font-size: 12.5px; padding: 8px 16px; }
  .lightbox img { max-height: 72vh; }

  /* Footer */
  .footer { padding: 34px 16px calc(24px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-links { gap: 2px; }

  /* Cheaper background work on phones. */
  .speedlines { opacity: .18; }
  .glow-orb { filter: blur(70px); opacity: .38; }
}

@keyframes sheetUp { from { opacity: 0; transform: translateY(100%); } }

/* Small phones. */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
  .license-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 16px; }
  .mod { padding: 9px 13px; }
  .mod b { font-size: 12.5px; }
}

/* Touch devices: no hover state should hide anything. */
@media (hover: none) {
  .card:hover, .feature:hover, .mod:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- patreon claim */

/* Second buy path on a card: the locked post for that tier. Sits under the
   Buy button, deliberately quieter than it — the site is the main door. */
.btn-patreon {
  width: 100%;
  margin-top: 9px;
  background: rgba(255, 66, 77, .10);
  border-color: rgba(255, 66, 77, .38);
  color: #ff8b93;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-patreon:hover {
  background: rgba(255, 66, 77, .18);
  border-color: rgba(255, 66, 77, .62);
  color: #ffb0b5;
  transform: translateY(-2px);
}

/* Warning-coloured eyebrow, used when the claim is one step short. */
.eyebrow.hot { color: var(--hot); }

/* The verified badge keeps its dot inline with the label. */
#step-patreon .eyebrow.ok { display: inline-flex; align-items: center; gap: 8px; }
#step-patreon .eyebrow.ok .pulse-dot { margin: 0; }

/* Claim steps are text-led: give the paragraphs room to read as instructions
   rather than as fine print. */
#step-patreon > p,
#step-patreon-done > p,
#step-patreon-blocked > p {
  color: var(--muted);
  line-height: 1.62;
  margin: 12px 0 4px;
}

#step-patreon-done .ref-box { margin-top: 14px; }
#step-patreon-done .hint { margin-top: 12px; }
