/* StarCorp website - glass + 3D, matching the desktop app.
   Colors, spacing and type are tokens below; change them here and the whole site follows. */

/* Fonts are served from this site (no Google Fonts: visitors' IPs stay with us). SIL Open Font License, see assets/fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jersey 25"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jersey-25-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #03050a;
  --bg-2: #070a13;
  --glass: rgba(12, 16, 28, 0.66);
  --glass-strong: rgba(12, 16, 28, 0.82);
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.16);
  --sheen: rgba(255, 255, 255, 0.06);
  --text: #e8eefb;
  --text-2: #a3adc6;
  --text-3: #6b7592;
  --blue: #0059ff;           /* StarCorp blue (logo S and C) */
  --blue-2: #2f7bff;
  --blue-light: #5c96ff;
  --blue-deep: #0a3fb8;      /* the "extruded" edge under buttons, like the logo's blue side */
  --blue-glow: rgba(0, 89, 255, 0.45);
  --good: #3ddc97;
  --warn: #ffa833;
  --bad: #ff5468;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Jersey 25", "Inter", system-ui, sans-serif;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { color: #fff; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(0, 89, 255, 0.45); color: #fff; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- background: the art, a slow drift, light streaks and a 3D floor grid ---------- */

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

.backdrop__art {
  position: absolute;
  inset: -6%;
  background: url("../img/bg.jpg") center / cover no-repeat;
  opacity: 0.55;
  will-change: transform;   /* moved by the GPU; no filter here (it would be redone every frame) */
  animation: drift 38s ease-in-out infinite alternate;
}

.backdrop::after {   /* fade to near-black toward the bottom so text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(0, 89, 255, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(3, 5, 10, 0.2) 0%, rgba(3, 5, 10, 0.75) 55%, var(--bg) 100%);
}

.streak {
  position: absolute;
  left: -40%;
  width: 70%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(92, 150, 255, 0.9), transparent);
  box-shadow: 0 0 18px 2px rgba(0, 110, 255, 0.45);
  transform: rotate(-22deg);
  opacity: 0;
  animation: streak 11s linear infinite;
}
.streak:nth-child(2) { top: 28%; animation-delay: 0s; }
.streak:nth-child(3) { top: 55%; animation-delay: 3.6s; width: 50%; }
.streak:nth-child(4) { top: 82%; animation-delay: 7.2s; }

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, 1%, 0) scale(1.06); }
}
@keyframes streak {
  0%   { transform: translate3d(0, 0, 0) rotate(-22deg); opacity: 0; }
  10%  { opacity: 0.8; }
  60%  { opacity: 0.5; }
  100% { transform: translate3d(190%, -60vh, 0) rotate(-22deg); opacity: 0; }
}

/* ---------- layout ---------- */

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

main { padding-top: var(--nav-h); }

.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 150, 255, 0.3);
  background: rgba(0, 89, 255, 0.12);
  color: var(--blue-light);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; color: var(--text-3); }

.section-head h2 + p { margin-top: 14px; }
.section-head .eyebrow + h2, .section-head .eyebrow + h1 { margin-top: 16px; }

/* "StarCorp" in the pixel font: S and C in brand blue */
.brand-word { font-family: var(--font-brand); font-weight: 400; letter-spacing: 0.01em; color: #fff; }
.brand-word b { color: var(--blue); font-weight: 400; text-shadow: 0 0 24px rgba(0, 89, 255, 0.55); }

/* ---------- glass ---------- */

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  /* No live blur on cards: the background behind them is always moving, so the browser would
     have to re-blur it for every card on every frame. The tint gives the same glass look. */
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glass::before {   /* soft light on the top of the glass */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--sheen), transparent 45%);
  pointer-events: none;
}
.glass--strong { background: var(--glass-strong); }
.pad { padding: clamp(20px, 3vw, 32px); }

/* ---------- 3D tilt cards (site.js sets --rx/--ry/--mx/--my while the mouse is over them) ---------- */

/* site.js turns these toward the mouse, a little every frame (smooth, but never behind the mouse).
   Tilting cards skip the live blur: re-blurring the page behind a moving card is what made it lag. */
.tilt {
  transform: perspective(1000px);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass.tilt {
  background: rgba(13, 17, 30, 0.82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tilt.is-moving { will-change: transform; }

/* glare that follows the mouse: a soft light moved with transform only (no repainting) */
.glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.glare::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(92, 150, 255, 0.17), transparent);
  transform: translate3d(var(--gx, 50%), var(--gy, 0), 0);
  will-change: transform;
}
.tilt:hover .glare { opacity: 1; }
.tilt:hover { border-color: rgba(92, 150, 255, 0.28); box-shadow: 0 34px 70px -28px rgba(0, 40, 140, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); }

/* layers inside a tilt card float at different depths */
.z1 { transform: translateZ(18px); }
.z2 { transform: translateZ(36px); }
.z3 { transform: translateZ(56px); }

/* ---------- buttons: face + extruded blue edge (like the logo) ---------- */

.btn {
  --edge-col: var(--blue-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a78ff 0%, var(--blue) 55%, #004ee0 100%);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--edge-col), 0 14px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 7px 0 var(--edge-col), 0 20px 36px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge-col), 0 6px 14px -6px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn[disabled], .btn.is-busy { cursor: default; filter: saturate(0.6) brightness(0.8); transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  --edge-col: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--edge-strong);
  box-shadow: 0 5px 0 var(--edge-col), 0 14px 30px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn--ghost:hover { box-shadow: 0 7px 0 var(--edge-col), 0 18px 34px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn--discord { background: linear-gradient(180deg, #6f7bff 0%, #5865f2 60%, #4a55d8 100%); --edge-col: #323cab; }
.btn--danger { background: linear-gradient(180deg, #ff6b7d, #e5364f); --edge-col: #9e1f32; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }

.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 13, 0.55);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.nav__brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(0, 89, 255, 0.45)); }
.nav__brand .brand-word { font-size: 30px; line-height: 1; }
.nav__links { display: flex; gap: 6px; margin-left: 8px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav__links a[aria-current="page"] { color: #fff; background: rgba(0, 89, 255, 0.16); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--edge-strong);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.25s, background 0.25s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px var(--gutter) 18px;
    background: rgba(5, 7, 13, 0.94);
    border-bottom: 1px solid var(--edge);
    backdrop-filter: blur(18px);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px; font-size: 16px; }
  .nav__end .btn { display: none; }
  .nav__end .nav__toggle { display: inline-flex; }
}

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

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 80px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 .brand-word { display: block; font-size: clamp(64px, 10vw, 118px); line-height: 0.9; margin-bottom: 10px; }
.hero .lead { margin-top: 20px; }
.hero .actions { margin-top: 32px; }
.hero__note { margin-top: 18px; }

/* the floating 3D logo */
.stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 480px);
  margin-inline: auto;
  perspective: 1100px;
}
.stage__floor {   /* a glowing grid floor seen in perspective */
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -8%;
  height: 70%;
  background-image:
    linear-gradient(rgba(92, 150, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 150, 255, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(72deg);
  transform-origin: 50% 100%;
  mask-image: radial-gradient(ellipse 55% 60% at 50% 70%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 70%, #000 20%, transparent 70%);
  overflow: hidden;
  background-image: none;
}
.stage__floor::before {   /* the grid itself, slid toward you with the GPU (no repainting) */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -44px;
  bottom: 0;
  background-image:
    linear-gradient(rgba(92, 150, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 150, 255, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  will-change: transform;
  animation: floor 6s linear infinite;
}
@keyframes floor { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 44px, 0); } }

.stage__glow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 8%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 110, 255, 0.6), rgba(0, 110, 255, 0.2) 55%, transparent);
  transform: scale(1.35);
  will-change: transform, opacity;
  animation: glow 6s ease-in-out infinite;
}
.stage__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1.5px solid rgba(92, 150, 255, 0.35);
  box-shadow: 0 0 30px rgba(0, 89, 255, 0.25), inset 0 0 30px rgba(0, 89, 255, 0.15);
  transform: rotateX(74deg);
  animation: ring 14s linear infinite;
}
.stage__ring--2 { inset: 3%; border-color: rgba(92, 150, 255, 0.16); animation-duration: 22s; animation-direction: reverse; }
.stage__logo {
  position: absolute;
  inset: 14%;
  transform-style: preserve-3d;
  will-change: transform;   /* site.js turns it toward the mouse every frame */
}
.stage__logo img {
  /* logo-hero.png already has the shadow and blue glow drawn in: a CSS filter on a moving
     3D picture gets redone every frame and was the main cause of the lag */
  position: absolute;
  left: -18.75%;   /* the picture has 96px of glow around the 512px logo: 704 / 512 = 137.5% */
  top: -18.75%;
  width: 137.5%;
  height: 137.5%;
  max-width: none;
  will-change: transform;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate3d(0, -2%, 40px); } 50% { transform: translate3d(0, 2.5%, 40px); } }
@keyframes glow { 0%, 100% { opacity: 0.9; transform: scale(1.35); } 50% { opacity: 0.6; transform: scale(1.2); } }
@keyframes ring { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .stage { width: min(78%, 360px); }
}

/* ---------- feature cards ---------- */

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.feature { padding: 26px; min-height: 100%; }
.feature h3 { margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* 3D icon tile: dark face with a blue extruded bottom, like the logo */
.icon3d {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a1f2e, #0b0e17);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 0 var(--blue-deep), 0 10px 24px -6px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--blue-light);
}
.icon3d svg { width: 24px; height: 24px; }

/* ---------- app preview (3D angled screenshot) ---------- */

.preview { perspective: 1400px; }
.preview__frame {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 20px;
  transform: rotateX(14deg) rotateY(-12deg) rotateZ(2deg);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -30px 60px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(92, 150, 255, 0.2), 0 30px 80px -20px rgba(0, 89, 255, 0.35);
}
.preview:hover .preview__frame { transform: rotateX(4deg) rotateY(-3deg) rotateZ(0deg); }
.preview__frame img { border-radius: 12px; width: 100%; }
.preview__tag {
  position: absolute;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transform: translateZ(70px);
}
.preview__tag--a { top: 16%; right: -3%; }
.preview__tag--b { bottom: 12%; left: -3%; }
.preview__tag span { color: var(--blue-light); }
@media (max-width: 700px) { .preview__tag { display: none; } }

/* ---------- steps ---------- */

.steps { counter-reset: step; }
.step { padding: 26px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2a78ff, var(--blue));
  box-shadow: 0 4px 0 var(--blue-deep), 0 10px 20px -6px var(--blue-glow);
}
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* ---------- call to action band ---------- */

.cta { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; }
.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: url("../img/logo.png") center / contain no-repeat;
  opacity: 0.12;
  transform: rotate(-14deg);
  pointer-events: none;
}
.cta p { margin-top: 10px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- page header (inner pages) ---------- */

.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(20px, 4vw, 36px); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 16px; }
.page-head .lead { margin-top: 14px; }

/* ---------- store ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.plan { padding: 30px 26px 26px; display: flex; flex-direction: column; }
.plan--featured { border-color: rgba(92, 150, 255, 0.45); background: linear-gradient(180deg, rgba(0, 89, 255, 0.18), rgba(12, 16, 28, 0.62) 55%); }
@media (min-width: 901px) { .plan--featured { margin-top: -14px; margin-bottom: -14px; } }
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  translate: -50% 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #2a78ff, var(--blue));
  box-shadow: 0 3px 0 var(--blue-deep), 0 8px 18px -6px var(--blue-glow);
}
.plan__name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan__price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-size: 52px; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.plan__price span { color: var(--text-3); font-size: 14px; }
.plan__per { margin-top: 8px; font-size: 13.5px; color: var(--blue-light); font-weight: 500; min-height: 1.6em; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.plan li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(61, 220, 151, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan .btn { margin-top: auto; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(2, 3, 7, 0.7); backdrop-filter: blur(6px); animation: fade 0.25s ease; }
.modal__card { position: relative; width: min(100%, 480px); padding: 30px; animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); cursor: pointer; display: grid; place-items: center; }
.modal__close:hover { background: rgba(255, 255, 255, 0.1); }
.modal__close svg { width: 16px; height: 16px; }
.summary { margin: 20px 0; padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary strong { color: #fff; font-size: 17px; }
.summary .price { font-size: 26px; font-weight: 700; color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

/* ---------- FAQ ---------- */

.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 22px; margin-bottom: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  color: #fff;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-light);
  border-bottom: 2px solid var(--blue-light);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- download ---------- */

.dl { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(16px, 3vw, 28px); align-items: stretch; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl__card { padding: clamp(24px, 4vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.dl__logo { width: 132px; height: 132px; margin-bottom: 8px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(0, 89, 255, 0.35)); }
.dl__meta { margin: 10px 0 24px; color: var(--text-3); font-size: 14px; min-height: 1.6em; }
.req { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.req li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); font-size: 15px; }
.req li:last-child { border-bottom: 0; }
.req li span:first-child { color: var(--text-3); }
.req li span:last-child { color: #fff; text-align: right; }

.changelog { display: grid; gap: 14px; }
.changelog article { padding: 20px 22px; border-radius: var(--r-md); }
.changelog h3 { font-size: 16px; }
.changelog ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.changelog li + li { margin-top: 4px; }

/* ---------- dashboard ---------- */

.dash { display: grid; gap: clamp(14px, 2vw, 20px); }
.dash-head { padding: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #2a78ff, var(--blue));
  box-shadow: 0 5px 0 var(--blue-deep), 0 14px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-head__who { min-width: 0; flex: 1; }
.dash-head__who h1 { font-size: 26px; overflow-wrap: anywhere; }
.dash-head__who p { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.dash-head__end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill--blue { color: var(--blue-light); background: rgba(0, 89, 255, 0.12); border-color: rgba(92, 150, 255, 0.35); }
.pill--good { color: var(--good); background: rgba(61, 220, 151, 0.1); border-color: rgba(61, 220, 151, 0.35); }
.pill--warn { color: var(--warn); background: rgba(255, 168, 51, 0.1); border-color: rgba(255, 168, 51, 0.35); }
.pill--bad { color: var(--bad); background: rgba(255, 84, 104, 0.1); border-color: rgba(255, 84, 104, 0.35); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 16px); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { padding: 18px; }
.tile span { display: block; font-size: 13px; color: var(--text-3); }
.tile strong { display: block; margin-top: 6px; font-size: 18px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.tile strong.is-warn { color: var(--warn); }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 20px); }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-title h2 { font-size: 19px; }
.card-sub { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }

.banner { padding: 16px 20px; border-radius: var(--r-md); display: flex; gap: 14px; align-items: center; }
.banner--warn { background: rgba(255, 168, 51, 0.1); border: 1px solid rgba(255, 168, 51, 0.35); color: #ffd9a3; }
.banner--bad { background: rgba(255, 84, 104, 0.1); border: 1px solid rgba(255, 84, 104, 0.35); color: #ffc2ca; }
.banner[hidden] { display: none; }

/* inputs */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 14px; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--edge-strong);
  background: rgba(3, 5, 10, 0.55);
  color: #fff;
  font-size: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--blue-light); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 89, 255, 0.22); }
.input--key { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.row { display: flex; gap: 12px; }
.row .input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .row { flex-direction: column; } }

.msg { margin-top: 12px; min-height: 1.5em; font-size: 14.5px; }
.msg--ok { color: var(--good); }
.msg--bad { color: var(--bad); }

.list { display: grid; }
.list__row { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--edge); }
.list__row:last-child { border-bottom: 0; }
.list__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.list__dot--good { background: var(--good); box-shadow: 0 0 8px rgba(61, 220, 151, 0.6); }
.list__dot--warn { background: var(--warn); box-shadow: 0 0 8px rgba(255, 168, 51, 0.6); }
.list__main { min-width: 0; }
.list__main strong { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.list__main span { display: block; color: var(--text-3); font-size: 13.5px; overflow-wrap: anywhere; }
.list__end { text-align: right; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.list__end span { display: block; color: var(--text-3); font-size: 12.5px; }
.list--scroll { max-height: 440px; overflow-y: auto; padding-right: 6px; }
.empty { padding: 20px 0; color: var(--text-3); text-align: center; }

.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; }

.discord-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.discord-row .who { flex: 1; min-width: 180px; }
.discord-row .who strong { display: block; color: #fff; }
.discord-row .who span { font-size: 14px; color: var(--text-2); }

.login { width: min(100%, 440px); margin: clamp(24px, 6vw, 64px) auto; padding: clamp(24px, 4vw, 36px); }
.login__logo { width: 64px; height: 64px; margin: 0 auto 10px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(0, 89, 255, 0.35)); }
.login h1 { font-size: 26px; text-align: center; }
.login .muted { text-align: center; margin-top: 6px; }
.login form { margin-top: 26px; }
.login .btn { margin-top: 20px; }
.login__help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--edge); font-size: 14px; color: var(--text-3); display: grid; gap: 6px; text-align: center; }

.loading { display: grid; place-items: center; min-height: 40vh; color: var(--text-3); gap: 14px; }
.loading .spinner { width: 28px; height: 28px; border: 3px solid rgba(92, 150, 255, 0.25); border-top-color: var(--blue-light); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ---------- legal pages ---------- */

.prose { max-width: 760px; padding: clamp(24px, 4vw, 44px); }
.prose h2 { font-size: 21px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: #fff; }

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

.footer { border-top: 1px solid var(--edge); background: rgba(3, 5, 10, 0.85); margin-top: clamp(40px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer .nav__brand .brand-word { font-size: 28px; }
.footer p { margin-top: 12px; font-size: 14.5px; color: var(--text-3); max-width: 34ch; }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); font-size: 14.5px; }
.footer ul a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--edge); font-size: 13.5px; color: var(--text-3); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

.no-js .reveal { opacity: 1; transform: none; }

/* people who asked their system for less motion get a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .streak { display: none; }
}

/* ---------- small utilities (the site's security policy blocks inline style="" attributes) ---------- */
.center { text-align: center; }
.mt-xs { margin-top: 10px; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 18px; }
.mt-l { margin-top: 28px; }
.h-card { font-size: 26px; }
.h-sub { font-size: 22px; }
.lead--center { margin-inline: auto; }
.actions--center { justify-content: center; }
.steps-list { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.nf-logo { width: 120px; margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(0, 89, 255, 0.4)); }

/* anything with the hidden attribute stays hidden, even if a class gives it display: grid/flex */
[hidden] { display: none !important; }

/* the hero's 3D floor and rings reach past the edges: never let them widen the page on phones */
.hero { overflow-x: clip; }

/* ---------- fixes and additions ---------- */

[hidden] { display: none !important; }
.hero { overflow-x: clip; }

/* dashboard header on narrow screens: name keeps its width, time + Log out move to their own row */
.dash-head__who { min-width: 160px; }
@media (max-width: 560px) { .dash-head__end { width: 100%; } }

/* download card: key box */
.dl-form { width: 100%; margin-top: 4px; text-align: left; }
.dl-form .msg { text-align: left; }

/* text written on the admin page (Website tab) */
[data-text] strong { color: #fff; }

/* store: the order code in the popup */
.order-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(92, 150, 255, 0.5);
  background: rgba(0, 89, 255, 0.08);
}
.order-code__value { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; font-weight: 600; letter-spacing: 0.08em; color: #fff; }
.order-code.is-loading .order-code__value { font-size: 15px; letter-spacing: 0; color: var(--text-3); font-family: var(--font); font-weight: 500; }
