/* ScopeX — design system
   "Optical / Scope" aesthetic: graphite black, acid-green signal, radar/reticle
   motifs, Chakra Petch (display) + Space Mono (body/data). Sharp corners,
   hairline accent borders, grid + grain atmosphere. */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  /* Background — graphite, faint green-black */
  --bg: #0b0d0e;
  --bg-elev: #0f1213;
  --bg-elev-2: #151a17;
  --bg-input: #0d100f;
  --bg-header: rgba(11, 13, 14, 0.78);

  /* Borders — dark green-gray + an acid hairline for signal accents */
  --border: #232a20;
  --border-light: #333c2d;
  --line: rgba(198, 241, 53, 0.11);

  /* Text — warm off-white with a green cast */
  --text: #e9efe6;
  --text-dim: #7c877a;
  --text-muted: #4b524a;

  /* Signal — acid green */
  --accent: #c6f135;
  --accent-hover: #d6fb5c;
  --accent-dark: #a6cf1f;
  --accent-glow: rgba(198, 241, 53, 0.35);
  --accent-dim: rgba(198, 241, 53, 0.14);
  --accent-grad: linear-gradient(135deg, #c6f135 0%, #a6cf1f 100%);

  /* Status */
  --success: #6fe36f;
  --success-bg: rgba(111, 227, 111, 0.12);
  --success-border: rgba(111, 227, 111, 0.35);
  --danger: #ff5c4d;
  --danger-bg: rgba(255, 92, 77, 0.12);
  --danger-border: rgba(255, 92, 77, 0.35);
  --warning: #ffb638;
  --warning-bg: rgba(255, 182, 56, 0.12);
  --warning-border: rgba(255, 182, 56, 0.35);
  --info: #58c7ff;
  --info-bg: rgba(88, 199, 255, 0.12);
  --info-border: rgba(88, 199, 255, 0.35);

  /* Radii / shadows — sharp, instrument-like */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Layout */
  --header-h: 64px;
  --container: 1200px;
  --sidebar-w: 240px;

  /* Type — Chakra Petch for display, Space Mono for body/data */
  --font: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Chakra Petch", "Space Mono", ui-monospace, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmosphere: instrument grid + a single acid glow, masked so it fades out. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(55% 45% at 92% 4%, rgba(198, 241, 53, 0.10) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  pointer-events: none;
  z-index: -1;
}
/* Fine grain overlay for depth (SVG fractal noise). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

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

/* ───────────────────────── Typography ───────────────────────── */
h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-display); }
h1 { font-size: 34px; text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: 25px; text-transform: uppercase; letter-spacing: 0.01em; }
h3 { font-size: 18px; }
h4 { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
p { margin: 0 0 12px; color: var(--text-dim); }
p.lead { font-size: 17px; color: var(--text); line-height: 1.6; }
small { font-size: 13px; color: var(--text-dim); }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.muted { color: var(--text-dim); }
.dim { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.flex { display: flex; gap: 8px; align-items: center; }
.flex-wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; }
.hidden { display: none !important; }
.spacer { height: 16px; }
.spacer-lg { height: 32px; }

/* ───────────────────────── Layout ───────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-md {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

main { display: block; }
.page { padding: 32px 0 64px; }

/* ───────────────────────── Header ───────────────────────── */
header.site-header,
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
/* Reticle brand mark — a crosshair-in-a-ring, drawn in CSS (no glyph) */
.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,241,53,.12), transparent 70%);
  box-shadow: 0 0 10px var(--accent-glow);
  flex: none;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.brand-mark::before { left: 50%; top: -3px; bottom: -3px; width: 1.5px; transform: translateX(-50%); }
.brand-mark::after  { top: 50%; left: -3px; right: -3px; height: 1.5px; transform: translateY(-50%); }

header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
header nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
header nav a:hover { color: var(--text); background: var(--bg-elev); }
header nav a.is-active { color: var(--text); }
header nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--bg-elev); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn--primary,
button.btn:not([class*="btn--"]) {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.25);
}
.btn--primary:hover,
button.btn:not([class*="btn--"]):hover {
  box-shadow: 0 0 0 1px var(--accent-hover), 0 8px 24px var(--accent-glow);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn--secondary:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text); background: var(--bg-elev); }

.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger-border);
}
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn--success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }

/* Legacy compat (existing pages use .btn / .btn.secondary) */
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border-light); box-shadow: none; }
.btn.secondary:hover { background: var(--bg-elev); border-color: var(--accent); color: var(--text); box-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger-border); box-shadow: none; }
.btn.danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ───────────────────────── Cards ───────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.card--hover:hover,
.card--interactive:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.card--highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);
  position: relative;
}
.card--padded { padding: 32px; }
.card--compact { padding: 16px; }
.card__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.card__desc { color: var(--text-dim); font-size: 14px; margin: 0; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}

/* ───────────────────────── Badges ───────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge--accent { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.badge--success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.badge--warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.badge--info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ───────────────────────── Forms ───────────────────────── */
label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--text-dim);
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { min-height: 100px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239095a5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ───────────────────────── Alerts (status messages) ───────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 12px 0;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.alert.error,
.alert--error   { background: var(--danger-bg);  color: #fca5a5; border-color: var(--danger-border); }
.alert.success,
.alert--success { background: var(--success-bg); color: #86efac; border-color: var(--success-border); }
.alert.info,
.alert--info    { background: var(--info-bg);    color: #93c5fd; border-color: var(--info-border); }
.alert.warning,
.alert--warning { background: var(--warning-bg); color: #fcd34d; border-color: var(--warning-border); }

/* ───────────────────────── Tables ───────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--bg-elev-2);
  position: sticky;
  top: 0;
}
.table tbody tr:hover { background: var(--bg-elev-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table--compact th, .table--compact td { padding: 8px 12px; }

/* Inline row used on existing pages (dashboard "label: value") */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.row:last-child { border-bottom: none; }
.row .key { color: var(--text-dim); font-size: 13px; }
.row .val { font-weight: 500; }

/* ───────────────────────── Chips / filter pills ───────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--border-light); }
.chip.is-active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Tier grid used in dashboard quick-buy */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tier-grid .btn { width: 100%; }

.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  padding: 80px 0 60px;
  position: relative;
  /* Contain the decorative glow/visual — it bled past the right edge and gave
     the whole page a horizontal scroll on mobile. */
  overflow-x: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #c7c8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero__bullets span { display: inline-flex; align-items: center; gap: 6px; }
.hero__bullets .ok { color: var(--success); font-weight: 700; }

.hero__visual {
  position: relative;
}
.hero__visual img,
.hero__visual .mockup {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 60% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ───────────────────────── Section ───────────────────────── */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head h2 { font-size: 36px; margin-bottom: 12px; letter-spacing: -0.02em; }
.section__head p { font-size: 17px; color: var(--text-dim); }
.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-grid .card { margin-bottom: 0; padding: 28px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.step h3 { margin-bottom: 8px; }

/* ───────────────────────── Pricing ───────────────────────── */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 auto 48px;
}
.pricing-toggle__wrap { text-align: center; }
.pricing-toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.15s ease;
}
.pricing-toggle button:hover { color: var(--text); }
.pricing-toggle button.is-active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.pricing-toggle .save {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
/* Free-trial banner — a standalone "5th tier" above the paid grid */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  background: var(--bg-elev);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 20px;
}
.trial-banner__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.trial-banner__name .free-tag {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  margin-left: 8px;
}
.trial-banner p { margin: 2px 0; font-size: 13px; }
.trial-banner .btn { white-space: nowrap; }
.tier-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tier-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.tier-card--popular {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0,0,0,.5), 0 0 24px rgba(198,241,53,.10);
}
.tier-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.tier-card--popular .tier-card__name { color: var(--accent); }
.tier-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.tier-card__price .amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tier-card__price .period {
  font-size: 14px;
  color: var(--text-dim);
}
.tier-card__credits {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1 1 auto;
}
.tier-card ul li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23a878ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5L5 9l4.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.tier-card ul li.muted-feat { color: var(--text-muted); }
.tier-card ul li.muted-feat::before {
  background-image: none;
  background: var(--bg-elev-2);
}

/* Skip-to-content link — off-screen until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid #fff;
}

/* Comparison table */
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  /* Freeze the Feature column so the row label stays visible while the tier
     columns scroll horizontally on narrow screens. */
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-elev);
}
.compare-table thead th {
  /* Keep tier labels (Basic/Lite/Pro/Eclipse) visible while scrolling rows. */
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elev);
}
.compare-table thead th:first-child { z-index: 3; }
.compare-table th, .compare-table td { text-align: center; }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--text-muted); }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--border-light); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-dim);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding: 0 22px 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  color: var(--text-dim);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* legacy <footer> (small) */
body > footer:not(.site-footer) {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ───────────────────────── Auth shell ───────────────────────── */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .lead { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.auth-card .btn { width: 100%; }
.auth-card .alt {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}

/* ───────────────────────── App shell (sidebar + main) ───────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
}
.app-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  background: var(--bg);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.app-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.app-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.app-sidebar a:hover { color: var(--text); background: var(--bg-elev); }
.app-sidebar a.is-active {
  color: var(--text);
  background: var(--accent-dim);
}
.app-sidebar a.is-active .ico { color: var(--accent); }
.app-sidebar .ico { font-size: 16px; width: 18px; text-align: center; }
.app-sidebar h4 {
  font-size: 11px;
  margin: 16px 12px 8px;
  letter-spacing: 0.08em;
}
.app-main {
  padding: 32px 32px 64px;
  min-width: 0;
}
.app-main h1 { font-size: 24px; margin-bottom: 8px; }
.app-main .subtitle { color: var(--text-dim); margin-bottom: 24px; }

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dash-grid .card { margin: 0; }
.dash-grid .span-2 { grid-column: span 2; }

/* Progress bar */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress--danger .progress__bar { background: var(--danger); }

/* ───────────────────────── Tabs ───────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-radius: 0;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ───────────────────────── Modal ───────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.modal h2 { font-size: 18px; margin-bottom: 16px; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ───────────────────────── Alerts feed (live cards) ───────────────────────── */
.feed { display: flex; flex-direction: column; gap: 10px; }
.alert-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  animation: slideIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.alert-card:hover { border-color: var(--border-light); }
.alert-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 22px;
}
.alert-card__icon.is-sm { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.alert-card__icon.is-mg { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.alert-card__icon.is-dv { background: rgba(59, 130, 246, 0.12); color: var(--info); }
.alert-card__icon.is-bl { background: rgba(236, 72, 153, 0.12); color: #f472b6; }
.alert-card__body { min-width: 0; }
.alert-card__ticker {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
  color: var(--text);
}
.alert-card__name { font-size: 13px; color: var(--text-dim); }
.alert-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.alert-card__time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
@keyframes slideIn {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ───────────────────────── Danger zone ───────────────────────── */
.danger-zone {
  background: var(--bg-elev);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.danger-zone h3 { color: var(--danger); margin-bottom: 8px; }

/* ───────────────────────── Misc ───────────────────────── */
.kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 56px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section__head h2 { font-size: 28px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    overflow-x: auto;
  }
  .app-sidebar nav { flex-direction: row; gap: 6px; overflow-x: auto; }
  .app-sidebar h4 { display: none; }
  .app-sidebar a { white-space: nowrap; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .span-2 { grid-column: span 1; }
}

@media (max-width: 640px) {
  header.site-header,
  body > header { padding: 0 16px; }
  header nav { display: none; }
  header nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 12px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  header nav.is-open a { padding: 12px; }
  .nav-toggle { display: inline-flex; }

  .container, .container-md, .container-narrow { padding: 0 16px; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero__sub { font-size: 16px; }
  .section__head h2 { font-size: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  /* Shrink the feature-comparison table so it fits the phone width instead
     of forcing an awkward sideways scroll inside its card. */
  .compare-table th,
  .compare-table td { padding: 9px 6px; font-size: 12px; }
  .compare-table th:first-child,
  .compare-table td:first-child { font-size: 12px; line-height: 1.3; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .app-main { padding: 20px 16px 48px; }
  .card { padding: 20px; }
  .card--padded { padding: 24px; }
  .auth-card { padding: 28px 22px; }
}

/* CA Sniper list view in admin (added with admin v2 expansion) */
.lite-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.lite-list li { padding: 6px 0; border-bottom: 1px solid var(--border, #2a2a3a); font-size: 13px; }
.lite-list li:last-child { border-bottom: none; }

/* ═══════════════ Optical / Scope additions ═══════════════ */
/* Buttons — instrument-style: display font, uppercase, sharp */
.btn { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.btn--primary { box-shadow: 0 0 0 rgba(198,241,53,0); transition: transform .12s ease, box-shadow .2s ease; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(198,241,53,.22); }

/* Brand mark tint */
.brand .brand-mark { color: var(--accent); }

/* Eyebrow / signal chip */
.eyebrow { display:inline-flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.22em;
  color:var(--accent); border:1px solid var(--line); padding:7px 12px; border-radius:99px; text-transform:uppercase; }
.eyebrow .sq { width:6px; height:6px; background:var(--accent); display:inline-block; }

/* Hero headline treatment */
.hero h1 .out { color: transparent; -webkit-text-stroke: 1.4px var(--text-dim); }
.hero h1 .hi { color: var(--accent); }

/* ── the scope instrument ── */
.scope-wrap { position:relative; aspect-ratio:1; display:flex; align-items:center; justify-content:center; }
.scope { position:relative; width:min(430px,92%); aspect-ratio:1; border-radius:50%; border:1px solid var(--line);
  background: radial-gradient(circle, rgba(198,241,53,.05) 0%, transparent 62%), var(--bg-elev);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 0 60px rgba(198,241,53,.06); cursor:crosshair; }
.scope .ring { position:absolute; border:1px solid var(--line); border-radius:50%; }
.scope .r1{inset:8%}.scope .r2{inset:22%}.scope .r3{inset:38%}
.scope .cross-h{position:absolute;left:6%;right:6%;top:50%;height:1px;background:var(--line)}
.scope .cross-v{position:absolute;top:6%;bottom:6%;left:50%;width:1px;background:var(--line)}
.scope .sweep{position:absolute;inset:0;border-radius:50%;overflow:hidden;
  -webkit-mask:radial-gradient(circle,#000 62%,transparent 62%);mask:radial-gradient(circle,#000 62%,transparent 62%)}
.scope .sweep::before{content:"";position:absolute;inset:0;
  background:conic-gradient(from 0deg,rgba(198,241,53,.34),rgba(198,241,53,0) 55deg,transparent 360deg);
  animation:sx-spin 3.4s linear infinite;transform-origin:center}
@keyframes sx-spin{to{transform:rotate(360deg)}}
.scope .blip{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 10px var(--accent);transform:translate(-50%,-50%);opacity:0;animation:sx-ping 3.4s infinite}
.scope .b1{left:66%;top:34%;animation-delay:.6s}.scope .b2{left:38%;top:60%;animation-delay:1.7s}.scope .b3{left:58%;top:70%;animation-delay:2.6s}
@keyframes sx-ping{0%,100%{opacity:0;transform:translate(-50%,-50%) scale(.4)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}40%{opacity:.2}}
.scope .reticle{position:absolute;left:50%;top:50%;width:74px;height:74px;transform:translate(-50%,-50%);
  border:1.5px solid var(--accent);border-radius:2px;animation:sx-lock 4.5s ease-in-out infinite}
.scope .reticle::before{content:"";position:absolute;left:50%;top:-10px;bottom:-10px;width:1.5px;background:var(--accent);transform:translateX(-50%)}
.scope .reticle::after{content:"";position:absolute;top:50%;left:-10px;right:-10px;height:1.5px;background:var(--accent);transform:translateY(-50%)}
@keyframes sx-lock{0%,100%{transform:translate(-50%,-50%) scale(1.15);opacity:.6}45%,65%{transform:translate(-50%,-50%) scale(1);opacity:1}}
.scope .callout{position:absolute;left:50%;bottom:12%;transform:translateX(-50%);border:1px solid var(--line);
  background:rgba(11,13,14,.85);backdrop-filter:blur(4px);padding:9px 14px;border-radius:var(--radius);
  font-size:12px;letter-spacing:.05em;white-space:nowrap;display:flex;gap:10px;align-items:center}
.scope .callout .tag{color:var(--accent);font-weight:700}
.scope .callout .up{color:var(--accent)}
.scope .callout .cmono{color:var(--text-dim)}
.scope .callout b{transition:opacity .18s}

/* ── live ticker strip ── */
.sx-ticker{position:relative;z-index:5;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  overflow:hidden;white-space:nowrap;background:rgba(198,241,53,.02)}
.sx-ticker .track{display:inline-flex;gap:44px;padding:12px 0;animation:sx-marq 28s linear infinite;
  font-size:12px;letter-spacing:.08em;color:var(--text-dim)}
.sx-ticker .track b{color:var(--text);font-weight:400}
.sx-ticker .track .g{color:var(--accent)}
.sx-ticker .track .sep{color:var(--text-muted)}
@keyframes sx-marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* staggered load reveal */
.reveal{opacity:0;transform:translateY(14px);animation:sx-rise .7s cubic-bezier(.2,.7,.2,1) forwards}
.reveal.d1{animation-delay:.05s}.reveal.d2{animation-delay:.16s}.reveal.d3{animation-delay:.28s}
.reveal.d4{animation-delay:.4s}.reveal.d5{animation-delay:.52s}
@keyframes sx-rise{to{opacity:1;transform:none}}

/* live pulse dot (nav) */
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);display:inline-block;
  box-shadow:0 0 0 0 rgba(198,241,53,.6);animation:sx-pulse 1.6s infinite}
@keyframes sx-pulse{0%{box-shadow:0 0 0 0 rgba(198,241,53,.5)}70%{box-shadow:0 0 0 8px rgba(198,241,53,0)}100%{box-shadow:0 0 0 0 rgba(198,241,53,0)}}

@media(max-width:900px){ .scope-wrap{order:-1} }
