/* ==========================================================================
   Project Stark — site stylesheet
   Black-first with dark-violet accents. One file for every page.
   ========================================================================== */

:root {
  /* base */
  --black: #060608;
  --ink: #060608;
  --panel: #0b0b0f;
  --panel-2: #101016;
  --panel-3: #15151d;
  --text: #f2f2f4;
  --muted: #a6a6b0;
  --muted-2: #6f6f7a;

  /* dark violet accents */
  --violet-50: #ece7fb;
  --violet-100: #d8ccff;
  --violet-200: #b9a6f2;
  --violet-300: #9d86e0;
  --violet-400: #8b74d8;
  --violet-500: #7c61c4;
  --violet-600: #5f49a0;
  --violet-700: #46357a;
  --violet-800: #2e2154;
  --violet-900: #1d1440;
  --violet-deep: #120b2c;

  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.035);
  --ok: #4ade80;
  --err: #f87171;

  --radius: 16px;
  --radius-lg: 22px;
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(124, 97, 196, 0.4); color: #fff; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- backdrop */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1000px 620px at 50% -12%, rgba(70, 53, 122, 0.55), transparent 62%),
    radial-gradient(760px 520px at 90% 8%, rgba(46, 33, 84, 0.5), transparent 60%),
    radial-gradient(820px 620px at 6% 60%, rgba(29, 20, 64, 0.42), transparent 62%),
    var(--black);
}
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(6, 6, 8, 0.9) 92%);
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 75%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  animation: orbFloat 18s ease-in-out infinite;
}
.bg-orb.a { width: 480px; height: 480px; top: -180px; left: -140px; background: rgba(95, 73, 160, 0.35); }
.bg-orb.b { width: 400px; height: 400px; top: 26%; right: -180px; background: rgba(70, 53, 122, 0.3); animation-delay: -7s; }
.bg-orb.c { width: 520px; height: 520px; bottom: -260px; left: 28%; background: rgba(46, 33, 84, 0.35); animation-delay: -12s; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -30px, 0) scale(1.07); }
}

/* ---------------------------------------------------------------- layout */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.section { padding: 92px 0; scroll-margin-top: calc(var(--nav-h) + 16px); }
.section + .section { padding-top: 20px; }

.section-head { max-width: 620px; margin-bottom: 42px; }
.section-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--violet-900), var(--violet-deep));
  border: 1px solid rgba(124, 97, 196, 0.35);
  color: var(--violet-200);
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(29, 20, 64, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.section-icon svg { width: 24px; height: 24px; }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-300);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav-inner { width: min(1180px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--violet-600), var(--violet-900));
  border: 1px solid rgba(155, 133, 224, 0.35);
  box-shadow: 0 6px 18px rgba(29, 20, 64, 0.7);
  color: var(--violet-100);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(29, 20, 64, 0.7), 0 0 0 1px rgba(155, 133, 224, 0.25);
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(124, 97, 196, 0.12); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(150deg, var(--violet-500), var(--violet-700));
  color: #fff;
  border-color: rgba(185, 166, 242, 0.22);
  box-shadow: 0 10px 26px rgba(29, 20, 64, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, var(--violet-400), var(--violet-600));
  box-shadow: 0 16px 36px rgba(46, 33, 84, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(124, 97, 196, 0.14); border-color: rgba(155, 133, 224, 0.4); transform: translateY(-2px); }
.btn.full { width: 100%; }
.btn.lg { padding: 15px 26px; font-size: 0.98rem; border-radius: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none !important; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(124, 97, 196, 0.6); outline-offset: 2px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(var(--nav-h) + 92px) 0 70px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(46, 33, 84, 0.35);
  border: 1px solid rgba(124, 97, 196, 0.32);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--violet-100);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 18%, var(--violet-100) 58%, var(--violet-500) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 68px); margin-top: 62px; }
.hero-stats > div { display: grid; gap: 3px; }
.hero-stats b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet-100);
}
.hero-stats span { font-size: 0.8rem; color: var(--muted-2); }

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(124, 97, 196, 0.55), rgba(46, 33, 84, 0.4), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55); }
.card:hover::before { opacity: 1; }

/* ---------------------------------------------------------------- games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.game-card { display: block; }
.game-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(70, 53, 122, 0.5), transparent 60%),
    linear-gradient(150deg, #12101c, #0a0a0e);
  overflow: hidden;
}
.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s ease;
}
.game-card:hover .thumb img { transform: scale(1.05); }
.game-card.offline .thumb img { filter: grayscale(0.9) brightness(0.55); }
.game-card .tag {
  position: absolute;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.game-card .tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.game-card .tag.live { background: rgba(10, 24, 15, 0.72); border: 1px solid rgba(74, 222, 128, 0.35); color: #86efac; }
.game-card .tag.live::before { background: var(--ok); }
.game-card .tag.off { background: rgba(235, 235, 244, 0.92); border: 1px solid rgba(255, 255, 255, 0.55); color: #101014; text-shadow: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.game-card .tag.off::before { background: #4b4b55; }
.game-card .tag.warn { background: rgba(38, 26, 6, 0.85); border: 1px solid rgba(251, 191, 36, 0.4); color: #fcd34d; }
.game-card .tag.warn::before { background: #fbbf24; }
.game-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
.game-card .name { font-size: 0.94rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card .arrow { color: var(--violet-300); opacity: 0; transform: translateX(-5px); transition: opacity 0.3s ease, transform 0.3s var(--ease); flex: none; }
.game-card .arrow svg { width: 15px; height: 15px; }
.game-card:hover .arrow { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(286px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; }
.price-card.featured {
  border-color: rgba(124, 97, 196, 0.45);
  background:
    radial-gradient(340px 200px at 50% -20%, rgba(70, 53, 122, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: 0 0 0 1px rgba(124, 97, 196, 0.12), 0 26px 64px rgba(12, 8, 28, 0.8);
}
.price-card.featured::before { opacity: 0.65; }
.price-badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(150deg, var(--violet-500), var(--violet-700));
  border: 1px solid rgba(185, 166, 242, 0.3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 20, 64, 0.8);
}
.price-head { display: grid; gap: 6px; }
.price-head h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; display: flex; align-items: baseline; gap: 8px; color: var(--violet-50); }
.price small { font-size: 0.82rem; font-weight: 600; color: var(--muted-2); font-family: var(--font-body); letter-spacing: 0; }
.price-note { font-size: 0.83rem; color: var(--muted-2); margin-top: -12px; }
.perks { list-style: none; display: grid; gap: 11px; flex: 1; }
.perks li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--muted); align-items: flex-start; line-height: 1.5; }
.perks svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--violet-300); }
.perks b { color: var(--text); font-weight: 700; }

.payments {
  margin-top: 26px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 22px;
}
.payments .label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.payments span:not(.label) { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- panels */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.panel { padding: 30px 28px; }
.panel h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.panel > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }
.perk-rows { display: grid; gap: 14px; }
.perk-row { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--violet-900), var(--violet-deep));
  border: 1px solid rgba(124, 97, 196, 0.32);
  color: var(--violet-200);
}
.perk-icon svg { width: 17px; height: 17px; }
.perk-row h4 { font-size: 0.94rem; font-weight: 700; margin-bottom: 2px; }
.perk-row p { font-size: 0.85rem; color: var(--muted-2); line-height: 1.5; }
.platforms { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.platforms span {
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.platforms span:hover { border-color: rgba(124, 97, 196, 0.45); color: var(--text); }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; max-width: 780px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq details[open] { border-color: rgba(124, 97, 196, 0.4); background: rgba(70, 53, 122, 0.1); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--violet-300); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.9rem; }
.faq .faq-body a { color: var(--violet-200); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- cta band */
.cta-band {
  padding: 54px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(620px 260px at 50% -10%, rgba(70, 53, 122, 0.5), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(124, 97, 196, 0.3);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-band .hero-actions { margin-top: 0; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--border); padding: 44px 0 36px; margin-top: 56px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 5px; }
.foot-links a { padding: 8px 12px; border-radius: 9px; font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: color 0.2s ease, background 0.2s ease; }
.foot-links a:hover { color: var(--text); background: rgba(124, 97, 196, 0.12); }
.foot-note { color: var(--muted-2); font-size: 0.8rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.75);
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s ease;
}
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.modal-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.modal-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.2rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-x:hover { background: rgba(124, 97, 196, 0.15); color: var(--text); }
.code {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #07070a;
  padding: 18px 16px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--violet-200);
  word-break: break-all;
}
.code .copy {
  margin-top: 14px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--violet-500), var(--violet-700));
  border: 1px solid rgba(185, 166, 242, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: filter 0.2s ease, transform 0.15s ease;
}
.code .copy:hover { filter: brightness(1.12); }
.code .copy:active { transform: scale(0.99); }
.code .copy.done { background: linear-gradient(150deg, #22c55e, #15803d); }
.modal-foot { margin-top: 16px; font-size: 0.86rem; color: var(--muted-2); }
.modal-foot a { color: var(--violet-200); font-weight: 700; }
.modal-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Sub-pages (claim / loadstring / 404): centered card on the same backdrop
   ========================================================================== */
.page { min-height: 100vh; display: grid; place-items: center; padding: clamp(16px, 3vw, 30px); }
.page-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 42px 36px;
  text-align: center;
}
.page-card.wide { max-width: 640px; }
.page-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 20%, var(--violet-200) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; line-height: 1.55; }
.hidden { display: none !important; }
.stack { display: grid; gap: 12px; }
.steps { text-align: left; margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.95; }
.steps li::marker { color: var(--violet-300); font-weight: 700; }
.keybox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #07070a;
  border: 1px dashed rgba(124, 97, 196, 0.6);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.keybox span { flex: 1; text-align: left; color: #fff; }
.copy {
  border: 1px solid var(--border-2);
  background: rgba(124, 97, 196, 0.16);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.copy:hover { background: rgba(124, 97, 196, 0.32); }
.meta { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-top: 12px; }
.meta b { color: #fff; }
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(70, 53, 122, 0.12);
  border: 1px solid rgba(124, 97, 196, 0.22);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
  text-align: left;
}
.note b { color: var(--text); }
.status { margin-top: 16px; font-size: 0.88rem; min-height: 1.2em; color: var(--muted); line-height: 1.5; }
.status.error { color: var(--err); }
.status.ok { color: var(--ok); }
.page-footer { margin-top: 24px; font-size: 0.8rem; color: var(--muted-2); }
.page-footer a { color: var(--violet-200); font-weight: 600; }
.page-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* loadstring page */
.codebox {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #07070a;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--violet-200);
}
.codebox code { font-family: inherit; }
.title-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.title-link:hover { color: var(--violet-200); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--violet-500), var(--violet-700));
  border: 1px solid rgba(185, 166, 242, 0.22);
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.2s ease;
  box-shadow: 0 10px 26px rgba(29, 20, 64, 0.75);
}
.copy-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.copy-btn:active { transform: translateY(0); }

/* 404 */
.error-code {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 15%, var(--violet-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-sub { color: var(--violet-300); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin: 10px 0 26px; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding-top: calc(var(--nav-h) + 60px); }
  .hero-stats { gap: 24px; }
  .nav-cta .btn-ghost { display: none; }
  .cta-band { padding: 40px 24px; }
  .page-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bg-orb { animation: none; }
}
