/* ============================================================
   STEALERS.CLOUD — Design System  v2
   "Refined intelligence terminal" · dark · violet signature
   ============================================================ */

:root {
  /* ---- Signature accent (from the fingerprint mark) — overridable via Tweaks ---- */
  --accent: #9050ff;
  --accent-rgb: 144, 80, 255;
  --accent-2: #b98bff;          /* lighter — highlights, gradient top */
  --accent-3: #6d28d9;          /* deeper — gradient base */
  --accent-ink: #0a0612;        /* text/icons sitting on accent fills */
  --accent-soft: rgba(144, 80, 255, 0.10);
  --accent-line: rgba(144, 80, 255, 0.32);
  --accent-glow: rgba(144, 80, 255, 0.26);

  /* ---- Surfaces — deep near-black with a violet undertone ---- */
  --bg: #07060c;
  --bg-2: #0a0812;
  --surface: #0e0c18;
  --surface-2: #14111f;
  --surface-3: #1b1729;

  /* ---- Hairlines (rgba so they read as light, not painted) ---- */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.16);

  /* ---- Text ramp ---- */
  --text: #f2eefb;
  --text-2: #aaa3c0;
  --text-3: #6a6480;

  /* ---- Status ---- */
  --danger: #ff4d6a;
  --danger-rgb: 255, 77, 106;
  --warn: #ffb347;
  --ok: #3fe0a8;

  /* ---- Type ---- */
  --font-display: "Clash Display", "Archivo", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* ---- Modular scale (fluid) ---- */
  --fs-display: clamp(42px, 6.4vw, 82px);
  --fs-h2: clamp(29px, 4.1vw, 50px);
  --fs-h3: clamp(20px, 2vw, 24px);
  --fs-lead: clamp(16px, 1.55vw, 19px);

  /* ---- Geometry ---- */
  --maxw: 1240px;
  --gutter: 32px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --radius: 12px;          /* legacy alias used by some components */

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv01";
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }
img, video { max-width: 100%; }

/* ---------- Ambient background: aurora glow + engineering grid + vignette ---------- */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-field .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% -2%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 55% at 50% -2%, #000 0%, transparent 72%);
  opacity: 0.6;
}
.bg-field .glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 60%),
    radial-gradient(circle at 30% 40%, rgba(40, 224, 255, 0.06), transparent 55%);
  filter: blur(50px); opacity: 0.7;
}
.bg-field .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 130% 95% at 50% -8%, transparent 38%, var(--bg) 100%);
}

.app { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.04;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  display: inline-block;
}
.eyebrow .idx { color: var(--text-3); }

.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); }
.hl { color: var(--accent-2); }

/* gradient text utility for signature headline fragments */
.grad {
  background: linear-gradient(110deg, var(--accent-2) 0%, var(--accent) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 500;
  padding: 14px 26px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), border-color 0.18s, color 0.18s, background 0.18s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 30px -14px var(--accent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 0 0 1px var(--accent-line), 0 14px 40px -14px var(--accent);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text); border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-2); background: var(--accent-soft); }
.btn.big { font-size: 14px; padding: 18px 36px; }

/* ---------- Reveal on scroll (opacity flips by class so static captures never freeze) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Section frame ---------- */
section { position: relative; }
.section-pad { padding: 128px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }
  .section-pad { padding: 78px 0; }
}

/* ---------- Boot / inter-page loader ---------- */
.boot {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.5s ease;
}
.boot--out { opacity: 0; pointer-events: none; }
.boot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(58% 58% at 50% 50%, #000, transparent 75%);
}
.boot-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.boot-mark { height: 66px; width: auto; filter: drop-shadow(0 0 30px var(--accent-glow)); animation: bootPulse 1.7s ease-in-out infinite; }
@keyframes bootPulse { 0%, 100% { opacity: 0.6; transform: scale(0.985); } 50% { opacity: 1; transform: scale(1); } }
.boot-bar { margin-top: 30px; width: 132px; height: 2px; background: var(--line-2); overflow: hidden; position: relative; border-radius: 2px; }
.boot-bar i { position: absolute; top: 0; height: 100%; width: 38%; left: -38%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); animation: bootBar 1.05s cubic-bezier(0.6, 0.05, 0.4, 0.95) infinite; }
@keyframes bootBar { 0% { left: -38%; } 100% { left: 100%; } }
.boot-label { margin-top: 20px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.42em; text-indent: 0.42em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .boot-mark, .boot-bar i { animation: none !important; }
  .boot-bar i { left: 0; width: 100%; }
}
