/* ==========================================================================
   WaveClient site
   --------------------------------------------------------------------------
   Palette is taken from the client's own UI constants so the site and the
   in-game menu look like the same product:
     #070B14  menu background      #00F5FF  neon accent
     #EAFDFF  primary text         #9AA0C9  muted text
     #52DE78 / #FFD34E / #FF4D5F   the three risk indicator colours
   Light blue and purple are layered on top of that for the space theme.

   Sections, in order:
     1  Tokens        6  Header / nav      11  Media
     2  Reset         7  Buttons           12  Pricing
     3  Fonts         8  Hero              13  FAQ
     4  Background    9  Cards / shots     14  Footer + Discord button
     5  Layout       10  Modules           15  Motion + responsive
   ========================================================================== */


/* == 1. Tokens ============================================================ */

:root {
  /* Surfaces */
  --bg:            #05070f;
  --bg-raised:     #070b14;
  --surface:       rgba(146, 190, 255, 0.045);
  --surface-hover: rgba(146, 190, 255, 0.075);
  --line:          rgba(125, 211, 252, 0.13);
  --line-strong:   rgba(125, 211, 252, 0.26);

  /* Text */
  --ink:       #eafdff;
  --ink-soft:  #c3d3ee;
  --muted:     #9aa0c9;

  /* Accents */
  --cyan:   #00f5ff;
  --sky:    #7dd3fc;
  --violet: #8b5cf6;
  --purple: #a855f7;

  --grad:      linear-gradient(120deg, #8ce9ff 0%, #7dd3fc 38%, #b79bff 100%);
  --grad-text: linear-gradient(115deg, #b8f4ff 0%, #7dd3fc 42%, #c4a6ff 100%);

  /* Risk dots - identical to the in-game values */
  --risk-low:    #52de78;
  --risk-medium: #ffd34e;
  --risk-high:   #ff4d5f;

  /* Screenshot opacity. JS overrides these per picture from config.js. */
  --shot-opacity: 0.62;
  --shot-opacity-hover: 1;

  /* Shape + rhythm */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.9);
}


/* == 2. Reset ============================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Deep-space base: fixed nebula pools behind the moving aurora + starfield. */
  background:
    radial-gradient(1200px 820px at 14% -12%, rgba(0, 140, 200, 0.20), transparent 60%),
    radial-gradient(1050px 720px at 88% 6%, rgba(130, 74, 214, 0.18), transparent 60%),
    radial-gradient(1500px 950px at 50% 118%, rgba(46, 86, 190, 0.16), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 clamp(15px, 0.35vw + 14px, 16.5px)/1.65 "Inter", ui-sans-serif, system-ui,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.022em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

button, input {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}

code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  background: rgba(125, 211, 252, 0.11);
  color: var(--sky);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

[hidden] { display: none !important; }


/* == 3. Fonts ============================================================= */
/* Inter, self-hosted from the client's own assets. SIL Open Font License -
   see assets/fonts/INTER-LICENSE.txt. No third-party font requests. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter_medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter_semibold.ttf") format("truetype");
  font-weight: 600 700;
  font-display: swap;
}


/* == 4. Background ======================================================== */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* A faint diagonal galaxy band + edge vignette for depth. */
.aurora::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 38%, rgba(150, 190, 255, 0.06) 50%, transparent 62%);
  transform: rotate(-8deg);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(3, 5, 12, 0.72) 100%);
}

.aurora-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-blob--cyan {
  top: -14vh;
  left: -8vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(0, 190, 255, 0.36), transparent 66%);
  animation: drift-a 34s var(--ease) infinite alternate;
}
.aurora-blob--violet {
  top: 24vh;
  right: -16vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34), transparent 66%);
  animation: drift-b 42s var(--ease) infinite alternate;
}
.aurora-blob--deep {
  bottom: -26vh;
  left: 22vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(96, 130, 255, 0.2), transparent 68%);
  animation: drift-a 50s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, 6vh, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to   { transform: translate3d(-6vw, -5vh, 0) scale(1); }
}

/* Everything above the background layers. */
.siteheader, main, .sitefooter, .discordfab { position: relative; z-index: 1; }


/* == 5. Layout ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 800px; }
.wrap--wide { max-width: 1340px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Tinted bands carry a faint full-bleed screenshot behind them. */
.section--tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent,
    rgba(10, 14, 32, 0.55) 18%,
    rgba(10, 14, 32, 0.55) 82%,
    transparent);
  pointer-events: none;
}

.section__shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.section__shot .shot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--shot-opacity, 0.14);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.section--tinted > .wrap { position: relative; }

/* Section headings */
.sechead { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 54px); }

.sechead__kicker {
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.sechead__title { font-size: clamp(29px, 4.1vw, 45px); }

.sechead__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  max-width: 58ch;
}


/* == 6. Header / nav ====================================================== */

.siteheader {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.siteheader.is-scrolled {
  background: rgba(5, 7, 15, 0.76);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
}

.siteheader__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

/* --- Logo lockup ---------------------------------------------------------
   Drawn rather than an image: crisp at any size, recolourable, and about
   400 bytes instead of 115 KB. One shared gradient (#waveGrad in index.html)
   fills the mark; the wordmark uses the same gradient via background-clip. */

.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  flex: none;
  font-size: 22px;            /* the one knob that scales the whole lockup */
  line-height: 1;
  white-space: nowrap;
}

.logo__mark {
  width: 1.32em;
  height: 1.32em;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 0 0.5em rgba(0, 220, 255, 0.35));
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Constellation mark: linked star nodes rising to a sparkle peak. */
.logo__line {
  fill: none;
  stroke: url(#waveGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}
.logo__node {
  fill: url(#waveGrad);
  transform-box: fill-box;
  transform-origin: center;
}
.logo__star {
  fill: #eafdff;
  transform-box: fill-box;
  transform-origin: center;
  animation: star-twinkle 3.2s ease-in-out infinite;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.6; transform: scale(0.82); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
a.logo:hover .logo__line { opacity: 0.72; }
a.logo:hover .logo__node { filter: drop-shadow(0 0 2px rgba(125, 211, 252, 0.8)); }

.logo__word {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.96em;
  letter-spacing: -0.005em;
}
.logo__wave {
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.logo__client {
  margin-left: 0.24em;
  font-weight: 400;
  letter-spacing: 0.17em;
  color: var(--ink-soft);
}

/* Header instance */
a.logo:hover .logo__mark {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 0.75em rgba(0, 220, 255, 0.6));
}

/* Hero instance */
.logo--hero {
  font-size: clamp(30px, 6.4vw, 62px);
  gap: 0.34em;
}
.logo--hero .logo__mark {
  filter: drop-shadow(0 0 0.34em rgba(0, 210, 255, 0.5))
          drop-shadow(0 0 0.8em rgba(150, 100, 255, 0.32));
  animation: float 9s ease-in-out infinite;
}
.logo--hero .logo__client { letter-spacing: 0.14em; }
.logo--hero .logo__node { animation: node-twinkle 3.6s ease-in-out infinite; }
.logo--hero .logo__node:nth-of-type(2) { animation-delay: 0.5s; }
.logo--hero .logo__node:nth-of-type(3) { animation-delay: 1s; }
.logo--hero .logo__node:nth-of-type(4) { animation-delay: 1.6s; }
@keyframes node-twinkle {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}

/* Footer instance */
.logo--footer { font-size: 19px; opacity: 0.92; }

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.mainnav a {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.mainnav a:hover { color: var(--ink); background: var(--surface); }
.mainnav a.is-active { color: var(--ink); }
.mainnav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.siteheader__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.navtoggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  cursor: pointer;
}
.navtoggle__bar {
  display: block;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.navtoggle__bar + .navtoggle__bar { margin-top: 5px; }
.navtoggle[aria-expanded="true"] .navtoggle__bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bar:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }


/* == 7. Buttons =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.25s var(--ease);
}
.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn--primary {
  color: #05070f;
  background: var(--grad);
  box-shadow: 0 10px 30px -12px rgba(125, 211, 252, 0.75);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(150, 160, 255, 0.85);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--sky);
  background: var(--surface-hover);
}

.btn--block { width: 100%; }

/* A checkout link that has not been filled in yet. */
.btn.is-unset {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.btn:active { transform: translateY(0); }


/* == 8. Hero ============================================================== */

.hero {
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: var(--section-y);
  text-align: center;
}
.hero__inner { display: grid; justify-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.55);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 245, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0); }
}

.hero__title { margin-top: 30px; font-weight: 400; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hero__lead {
  margin-top: 24px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
.stat {
  display: grid;
  gap: 3px;
  padding: 20px 12px;
  background: rgba(7, 11, 20, 0.82);
}
.stat b {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* == 9. Cards and screenshots ============================================= */

.card {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(0, 245, 255, 0.14), rgba(168, 85, 247, 0.14));
  color: var(--sky);
}
.card__icon svg { width: 21px; height: 21px; }

.card__title { font-size: 17.5px; margin-bottom: 9px; }
.card__text { color: var(--muted); font-size: 14.6px; line-height: 1.62; }

.about {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
.about__cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- Screenshot frames ---------------------------------------------------
   Opacity is driven by --shot-opacity, which JS sets per picture from
   config.js -> screenshots. Hover lift is optional (brightenOnHover).      */

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.6);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.shot__img {
  width: 100%;
  opacity: var(--shot-opacity);
  transition: opacity 0.55s var(--ease), transform 0.9s var(--ease);
}
.shot:hover .shot__img {
  opacity: var(--shot-opacity-hover);
  transform: scale(1.014);
}

/* Soft gradient rim so a low-opacity shot still reads as a panel. */
.shot__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(0, 245, 255, 0.12), transparent 58%),
    radial-gradient(120% 80% at 88% 100%, rgba(168, 85, 247, 0.14), transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.09);
}

.shot--about { position: sticky; top: 104px; }

/* --- Section 2: the big screenshot --------------------------------------
   Sits directly under the hero and is the first real look at the client, so
   it runs wider than the text column and gets a stronger frame.           */

.showcase {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.shot--showcase {
  border-radius: clamp(16px, 2.2vw, 30px);
  border-color: rgba(125, 211, 252, 0.22);
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -50px rgba(125, 180, 255, 0.8);
}
.shot--showcase .shot__img { width: 100%; }

/* A soft pool of light under the frame so it lifts off the starfield. */
.showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 5vw, 60px);
  width: min(900px, 84vw);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(90, 150, 255, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}


/* == 10. Modules ========================================================== */

.modules__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 20px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 250px;
  max-width: 340px;
}
.search__icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 12px 16px 12px 43px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--surface-hover);
}
.search__input::-webkit-search-cancel-button { filter: invert(0.7); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pill:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.pill.is-active {
  color: #05070f;
  border-color: transparent;
  background: var(--grad);
  font-weight: 600;
}

.modules__count {
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.modulegrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
}

.module {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.4);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.module:hover {
  border-color: var(--line-strong);
  background: rgba(12, 18, 34, 0.62);
}

.module__head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.module__name {
  font-size: 14.8px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.module__desc {
  font-size: 13.2px;
  line-height: 1.55;
  color: var(--muted);
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--risk-low);
}
.dot--low    { background: var(--risk-low);    box-shadow: 0 0 9px rgba(82, 222, 120, 0.55); }
.dot--medium { background: var(--risk-medium); box-shadow: 0 0 9px rgba(255, 211, 78, 0.55); }
.dot--high   { background: var(--risk-high);   box-shadow: 0 0 9px rgba(255, 77, 95, 0.55); }

/* --- Detection summary --------------------------------------------------
   Three counts above the grid, computed from the module list so they can
   never drift out of step with it.                                        */

.riskbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.riskstat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.42);
}
.riskstat__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.riskstat--low    .riskstat__dot { background: var(--risk-low);    box-shadow: 0 0 9px rgba(82, 222, 120, 0.7); }
.riskstat--medium .riskstat__dot { background: var(--risk-medium); box-shadow: 0 0 9px rgba(255, 211, 78, 0.7); }
.riskstat--high   .riskstat__dot { background: var(--risk-high);   box-shadow: 0 0 9px rgba(255, 77, 95, 0.7); }

.riskstat__count {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.riskstat--low    .riskstat__count { color: var(--risk-low); }
.riskstat--medium .riskstat__count { color: var(--risk-medium); }
.riskstat--high   .riskstat__count { color: var(--risk-high); }

.riskstat__word {
  font-size: 13.5px;
  color: var(--muted);
}

.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}


/* == 11. Media ============================================================ */

.mediagrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.clip {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.62);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.clip:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.clip__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(140deg, #0a0f22, #140c26);
  overflow: hidden;
}
/* Vertical clips (TikTok) keep phone proportions instead of letterboxing. */
.clip__frame--portrait {
  aspect-ratio: 9 / 16;
  max-width: 300px;
  margin-inline: auto;
}
.clip__frame iframe,
.clip__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-load facade - no request to the video host before this. */
.clip__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  cursor: pointer;
  padding: 0;
  /* Branded backdrop shown when a clip has no thumbnail (e.g. TikTok), so the
     card reads as designed rather than an empty frame with a lone button. A
     real poster (below) covers this when one is provided. */
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(125, 211, 252, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(32, 44, 72, 0.92), rgba(9, 13, 23, 0.97));
}
.clip__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}
.clip__facade:hover .clip__poster { opacity: 0.92; transform: scale(1.04); }

.clip__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--grad);
  color: #05070f;
  box-shadow:
    0 16px 40px -12px rgba(0, 0, 0, 0.9),
    0 0 0 6px rgba(125, 211, 252, 0.12),
    0 0 0 13px rgba(125, 211, 252, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.clip__facade:hover .clip__play {
  transform: scale(1.1);
  box-shadow:
    0 20px 48px -12px rgba(0, 0, 0, 0.95),
    0 0 0 7px rgba(125, 211, 252, 0.2),
    0 0 0 16px rgba(125, 211, 252, 0.09);
}
.clip__play svg { width: 24px; height: 24px; margin-left: 3px; }

.clip__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
}
.clip__title { font-size: 14.8px; font-weight: 500; }
.clip__tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Unrecognised link - render a safe outbound card instead of an iframe. */
.clip__external {
  display: grid;
  place-items: center;
  gap: 10px;
  position: absolute;
  inset: 0;
  color: var(--sky);
  font-size: 14px;
  font-weight: 500;
}

.media__empty {
  grid-column: 1 / -1;
  padding: 54px 26px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}
.media__empty b { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 600; }
.media__empty code { display: inline-block; margin-top: 3px; }


/* == 12. Pricing ========================================================== */

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 860px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.72);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.plan--featured {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 30px 80px -40px rgba(120, 140, 255, 0.75);
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  opacity: 0.5;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.plan__badge {
  position: absolute;
  top: -11px;
  right: 26px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--grad);
  color: #05070f;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.plan__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 14px;
}
.plan__amount {
  font-size: clamp(34px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.plan__period { color: var(--muted); font-size: 14.5px; }

.plan__tagline {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.6px;
}

.plan__features {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.4px;
  color: var(--ink-soft);
}
.plan__features svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--cyan);
}

.plan__cta { margin-top: auto; }
.plan__note {
  margin-top: 13px;
  text-align: center;
  font-size: 12.6px;
  color: var(--muted);
}

.plans__foot {
  margin-top: 30px;
  max-width: 62ch;
  font-size: 14px;
  color: var(--muted);
}


/* == 13. FAQ ============================================================== */

.faq {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.faq__item + .faq__item { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  cursor: pointer;
  font-size: 15.6px;
  font-weight: 500;
  list-style: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--surface-hover); }

.faq__q::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1.8px solid var(--sky);
  border-bottom: 1.8px solid var(--sky);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.32s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq__a {
  padding: 0 22px 21px;
  color: var(--muted);
  font-size: 14.6px;
  line-height: 1.68;
}
.faq__a b { color: var(--ink-soft); font-weight: 600; }
.faq__item[open] .faq__a { animation: fade-down 0.35s var(--ease) both; }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* == 14. Footer + Discord button ========================================== */

.sitefooter {
  padding-block: 54px 96px;
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 13, 0.6);
}
.sitefooter__inner { display: grid; gap: 26px; }

.sitefooter__brand { display: grid; gap: 11px; justify-items: start; }
.sitefooter__meta { font-size: 13px; color: var(--muted); }

.sitefooter__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
}
.sitefooter__nav a { transition: color 0.25s var(--ease); }
.sitefooter__nav a:hover { color: var(--ink); }

.sitefooter__legal {
  max-width: 68ch;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.6px;
  line-height: 1.66;
  color: rgba(154, 160, 201, 0.72);
}

/* Always-on Discord button, bottom right. */
.discordfab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px 17px 24px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.96), rgba(139, 92, 246, 0.96));
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  box-shadow: 0 16px 42px -14px rgba(88, 101, 242, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.discordfab:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px -14px rgba(120, 110, 250, 1);
}
.discordfab__icon { width: 26px; height: 26px; flex: none; }

/* Soft halo so it stays visible over any screenshot. */
.discordfab::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(14px);
  opacity: 0.45;
}


/* == 15. Motion + responsive ============================================== */

/* Scroll reveal - deliberately fails open.
   Content is only hidden once site.js has added .reveal-on to <html>, which it
   does exactly when it has a working way to reveal it again. No JS, old
   browser, or a script error before that point all leave the page fully
   visible rather than blank. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .about { grid-template-columns: 1fr; }
  .shot--about { position: static; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }

  .mainnav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: rgba(7, 11, 20, 0.97);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
                visibility 0.28s var(--ease);
  }
  .mainnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mainnav a { padding: 12px 14px; font-size: 15px; }
  .mainnav a.is-active::after { display: none; }

  .navtoggle { display: block; }
  .siteheader__actions .btn--primary { display: none; }

  .about__cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .discordfab { padding: 14px; }
  .discordfab__label { display: none; }
}

@media (max-width: 560px) {
  .modulegrid { grid-template-columns: 1fr; }
  .mediagrid  { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* Only prevent an awkward mid-phrase break on wider screens. */
@media (min-width: 700px) { .nowrap-md { white-space: nowrap; } }

@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-on .reveal { opacity: 1; transform: none; }
  .starfield { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c2c8ea;
    --line: rgba(125, 211, 252, 0.3);
    --shot-opacity: 0.85;
  }
}

@media print {
  .starfield, .aurora, .discordfab, .siteheader { display: none; }
  body { background: #fff; color: #000; }
}


/* == Success page ========================================================= */

.success {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: clamp(60px, 12vh, 140px);
}
.success__inner { text-align: center; display: grid; justify-items: center; gap: 18px; }

.success__badge {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(0, 245, 255, 0.14), rgba(168, 85, 247, 0.14));
  color: var(--sky);
  animation: pulse 2.6s var(--ease) infinite;
}
.success__badge.is-done { color: var(--risk-low); animation: none; }
.success__badge svg { width: 30px; height: 30px; }

.success__title { font-size: clamp(26px, 4vw, 40px); }
.success__lead { max-width: 46ch; color: var(--muted); font-size: 16px; }

.success__keybox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 20, 0.7);
}
.success__key {
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: none;
  padding: 0;
  word-break: break-all;
}
.success__note { max-width: 48ch; font-size: 13.5px; color: var(--muted); }
.success__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.success__steps { max-width: 46ch; display: grid; gap: 14px; margin-top: 4px; }
.success__banner {
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-accent, rgba(125, 211, 252, 0.4));
  background: rgba(125, 211, 252, 0.08);
  font-size: 14px;
  color: var(--ink-soft);
}
.success__banner b { color: var(--ink); }
.success__list {
  display: grid;
  gap: 9px;
  text-align: left;
  padding-left: 4px;
  counter-reset: step;
}
.success__list li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.success__list li b { color: var(--ink-soft); font-weight: 600; }
.success__list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #05070f;
  font-size: 12px;
  font-weight: 700;
}

/* Cursor comet trail (decorative, never intercepts clicks). */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .cursor-trail { display: none; } }
