/* Shared styles for the CrimeCode marketing/legal pages served alongside the
   SolidJS IDE bundle. Intentionally keep everything inline so the pages
   render instantly with zero JS. */

:root {
  color-scheme: dark;

  /* Locandina system — charcoal ground, white type, glowing crimson HUD */
  --brand-primary: #e11324;
  --brand-primary-hover: #ff3d3d;
  --brand-primary-deep: #95001a;
  --glitch-cyan: #00e5ff;
  --glitch-magenta: #ff2bd6;
  --hud-red: #e11324;
  --hud-hot: #ff2a3a;
  --hud-ink: #050506;
  --hud-panel: rgba(10, 10, 13, 0.92);
  --hud-line: rgba(225, 19, 36, 0.52);
  --hud-line-quiet: rgba(225, 19, 36, 0.18);
  --hud-glow: 0 0 28px rgba(225, 19, 36, 0.38);
  --hud-cut: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --hud-hex: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  --hud-grid:
    linear-gradient(rgba(225, 19, 36, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 19, 36, 0.05) 1px, transparent 1px);

  /* legacy aliases — keep so existing rules keep working during migration */
  --orange: var(--brand-primary);
  --orange-dark: var(--brand-primary-deep);

  /* ── Surfaces ── */
  --bg: #070708;
  --bg-sunken: #050506;
  --bg-panel: rgba(12, 12, 16, 0.88);
  --surface-2: #131318;
  --text: #ffffff;
  --text-dim: #e4e4e7;
  --text-faint: #8a8589;
  --border: rgba(225, 19, 36, 0.18);
  --border-strong: rgba(225, 19, 36, 0.42);

  /* ── Semantic ── */
  --success: #3ddc84;
  --warning: #ffb340;
  --error: #ff4d5e;
  --info: #3ec5e0;

  /* ── Effects Aliases ── */
  --fx-brand: var(--brand-primary);
  --fx-cyan: var(--glitch-cyan);
  --fx-magenta: var(--glitch-magenta);
  --fx-aberration: 1px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: "Chakra Petch", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(190, 6, 25, 0.22) 0%, transparent 42%),
    var(--hud-grid),
    radial-gradient(ellipse at top, #1a0308 0%, var(--bg) 70%) fixed;
  background-size: auto, 28px 28px, auto;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--glitch-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
code { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-size: 0.95em; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15,15,20,0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .logo {
  width: 36px; height: 36px; border-radius: 0;
  clip-path: var(--hud-hex);
  background: linear-gradient(160deg, var(--hud-hot), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 800; font-size: 14px;
  color: #fff;
  box-shadow: var(--hud-glow);
}
.site-header .name {
  font-weight: 800; letter-spacing: 0.3em; font-size: 13px; color: var(--orange);
}
.site-header .header-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Secondary Web app CTA — ghost crimson so Download stays the install pill */
.cta-web {
  --web-line: color-mix(in srgb, var(--brand-primary) 48%, transparent);
  --web-fill: color-mix(in srgb, var(--brand-primary) 7%, #0a0a0c);
  --web-glow: color-mix(in srgb, var(--brand-primary) 16%, transparent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--web-line);
  background: var(--web-fill);
  color: #fff5f5;
  font-family: "Chakra Petch", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 0 12px color-mix(in srgb, var(--brand-primary) 10%, transparent),
    0 0 12px var(--web-glow);
  transition:
    border-color 0.2s ease-out,
    background-color 0.2s ease-out,
    box-shadow 0.22s ease-out,
    color 0.2s ease-out;
}
.cta-web::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    color-mix(in srgb, var(--glitch-cyan) 18%, transparent) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: translateX(-130%);
  opacity: 0.7;
}
.cta-web:hover,
.cta-web:focus-visible {
  text-decoration: none;
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary) 82%, #fff);
  background: color-mix(in srgb, var(--brand-primary) 16%, #0a0a0c);
  box-shadow:
    inset 0 0 16px color-mix(in srgb, var(--brand-primary) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--brand-primary) 34%, transparent);
}
.cta-web:active {
  background: color-mix(in srgb, var(--brand-primary) 22%, #0a0a0c);
  box-shadow:
    inset 0 0 10px color-mix(in srgb, var(--brand-primary) 20%, transparent),
    0 0 10px color-mix(in srgb, var(--brand-primary) 20%, transparent);
}
@keyframes webidle {
  0%, 100% {
    box-shadow:
      inset 0 0 12px color-mix(in srgb, var(--brand-primary) 8%, transparent),
      0 0 10px color-mix(in srgb, var(--brand-primary) 12%, transparent);
  }
  50% {
    box-shadow:
      inset 0 0 16px color-mix(in srgb, var(--brand-primary) 14%, transparent),
      0 0 18px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  }
}
@keyframes websheen {
  0%, 72%, 100% { transform: translateX(-130%); }
  86% { transform: translateX(130%); }
}
@keyframes websweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
@media (prefers-reduced-motion: no-preference) {
  .cta-web { animation: webidle 3.6s ease-in-out infinite; }
  .cta-web::before { animation: websheen 5.4s ease-in-out infinite; }
  .cta-web:hover,
  .cta-web:focus-visible { animation: none; }
  .cta-web:hover::before,
  .cta-web:focus-visible::before {
    animation: websweep 0.55s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-web,
  .cta-web::before {
    animation: none;
  }
}
.site-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.site-header .cta {
  background: linear-gradient(180deg, var(--hud-hot), var(--orange) 48%, var(--orange-dark));
  color: #fff; padding: 8px 18px; border-radius: 0;
  clip-path: var(--hud-cut);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 6px 0 #5a000f, var(--hud-glow);
}
.site-header .cta:hover { text-decoration: none; filter: brightness(1.08); }

main.page { max-width: 1080px; margin: 0 auto; padding: 48px 28px 80px; }
main.page h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: #fff; }
main.page .lead { font-size: 16px; color: var(--text-dim); max-width: 720px; margin: 0 0 40px; }
main.page h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; color: #fff; }
main.page h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; }
main.page p { color: var(--text-dim); margin: 0 0 12px; }
main.page ul, main.page ol { color: var(--text-dim); padding-left: 22px; margin: 0 0 16px; }
main.page li { margin-bottom: 6px; }

.card {
  position: relative;
  background: var(--hud-panel);
  border: 1px solid var(--hud-line-quiet);
  border-radius: 0;
  clip-path: var(--hud-cut);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
  margin: 32px 0;
}
.price-card {
  background: var(--hud-panel); border: 1px solid var(--hud-line-quiet);
  border-radius: 0; clip-path: var(--hud-cut); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-card.featured {
  border-color: var(--hud-line);
  background: linear-gradient(135deg, rgba(225,19,36,0.14), rgba(8,8,11,0.92));
  box-shadow: var(--hud-glow);
}
.price-card:hover {
  border-color: var(--hud-line);
  box-shadow: var(--hud-glow);
}
.price-card .badge {
  align-self: flex-start;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); background: rgba(225,19,36,0.18);
  padding: 4px 10px; border-radius: 0;
  border: 1px solid rgba(225,19,36,0.4);
}
.price-card .title { font-size: 18px; font-weight: 700; color: #fff; }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--orange); text-shadow: 0 0 20px rgba(225,19,36,0.3); line-height: 1.1; }
.price-card .desc { color: var(--text-dim); font-size: 13px; flex: 1; }
.price-card ul { color: var(--text-dim); font-size: 13px; padding-left: 20px; margin: 8px 0 16px; }
.price-card li { margin-bottom: 4px; }
.price-card .cta {
  display: inline-block; text-align: center;
  background: linear-gradient(180deg, var(--hud-hot), var(--orange) 48%, var(--orange-dark));
  color: #fff; padding: 12px 18px; border-radius: 0;
  clip-path: var(--hud-cut);
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 6px 0 #5a000f, var(--hud-glow);
}
.price-card .cta:hover { text-decoration: none; filter: brightness(1.08); }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq details {
  background: var(--hud-panel);
  border: 1px solid var(--hud-line-quiet);
  border-radius: 0;
  clip-path: var(--hud-cut);
  padding: 16px 20px;
}
.faq details[open] { border-color: rgba(225,19,36,0.3); }
.faq summary {
  cursor: pointer; font-weight: 600; color: #fff;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  color: var(--text-faint); font-size: 12px;
  text-align: center;
}
.site-footer .links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.site-footer .links a { color: var(--text-dim); }

.hero {
  text-align: center;
  padding: 80px 28px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -40%; left: 50%;
  width: 700px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(225,19,36,0.15) 0%, transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.hero h1 {
  font-size: 56px; font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 16px; color: #fff; line-height: 1.1;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #fff 0%, #ff8f8f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 4px; display: inline-block;
}
.hero .lead {
  max-width: 640px; margin: 0 auto 32px;
  font-size: 18px; color: var(--text-dim);
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 24px rgba(225,19,36,0.35);
  min-height: 48px;
}
.hero .cta-primary:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(225,19,36,0.55); }
.hero .cta-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  min-height: 48px;
}
.hero .cta-secondary:hover { text-decoration: none; border-color: var(--orange); color: var(--orange); }

/* ── Neon glow on the primary CTA (brand) ── */
.hero .cta-primary {
  box-shadow:
    0 6px 24px color-mix(in srgb, var(--brand-primary) 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.hero .cta-primary:hover {
  box-shadow:
    0 10px 32px color-mix(in srgb, var(--brand-primary) 55%, transparent),
    0 0 22px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

/* ── Glitch — RGB chromatic aberration (marketing hero accent only) ──
   Self-contained copy (marketing pages load only _shared.css). The hero
   accent normally uses gradient-clip text; .glitch overrides it to a solid
   brand fill so the cyan/magenta ghosts render correctly. Requires
   data-text="<same text>". Motion auto-disabled by the reduce block below. */
.glitch {
  position: relative;
  color: var(--brand-primary);
  text-shadow: 0 0 12px color-mix(in srgb, var(--brand-primary) 35%, transparent);
  isolation: isolate;
}
.hero h1 .accent.glitch {
  background: none;
  -webkit-text-fill-color: currentColor;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glitch::before {
  color: var(--glitch-cyan);
  transform: translateX(-1px);
  mix-blend-mode: screen;
  animation: fx-glitch-a 4.2s steps(2, jump-none) infinite;
}
.glitch::after {
  color: var(--glitch-magenta);
  transform: translateX(1px);
  mix-blend-mode: screen;
  animation: fx-glitch-b 3.7s steps(2, jump-none) infinite;
}
@keyframes fx-glitch-a {
  0%, 92%, 100% { transform: translateX(-1px); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px, -1px); clip-path: inset(0 0 55% 0); }
  96% { transform: translate(2px, 1px); clip-path: inset(60% 0 0 0); }
}
@keyframes fx-glitch-b {
  0%, 90%, 100% { transform: translateX(1px); clip-path: inset(0 0 0 0); }
  94% { transform: translate(3px, 1px); clip-path: inset(50% 0 0 0); }
  97% { transform: translate(-2px, -1px); clip-path: inset(0 0 60% 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 128px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 15px; }
  main.page { padding: 32px 20px 64px; }
  main.page h1 { font-size: 28px; }
  .site-header .inner {
    padding: 10px 20px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .site-header nav {
    order: 3;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }
  .site-header nav a {
    justify-content: center;
    padding-inline: 4px;
    white-space: nowrap;
  }
}

/* ───────────────────────────────────────────────────────────────────────
   CrimeCode Visual Redesign Effects (verbatim from effects.css)
   ─────────────────────────────────────────────────────────────────────── */

.scanlines {
  position: relative;
  isolation: isolate;
}
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .scanlines[data-roll]::after {
    animation: fx-scan-roll 8s linear infinite;
  }
}
@keyframes fx-scan-roll {
  to {
    background-position: 0 6px;
  }
}

.neon {
  color: var(--fx-brand);
  text-shadow: 0 0 8px color-mix(in srgb, var(--fx-brand) 45%, transparent);
}
.neon-strong {
  color: var(--fx-brand);
  text-shadow:
    0 0 6px color-mix(in srgb, var(--fx-brand) 60%, transparent),
    0 0 18px color-mix(in srgb, var(--fx-brand) 35%, transparent);
}
.neon-box {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fx-brand) 50%, transparent),
    0 0 18px color-mix(in srgb, var(--fx-brand) 22%, transparent);
}

.rgb-border {
  position: relative;
  border-radius: inherit;
  isolation: isolate;
}
.rgb-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--fx-cyan), var(--fx-brand), var(--fx-magenta));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .rgb-border::before {
    background-size: 200% 200%;
    animation: fx-rgb-pan 6s linear infinite;
  }
}
@keyframes fx-rgb-pan {
  to {
    background-position: 200% 200%;
  }
}

.grid-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: -50% -50% -10% -50%;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fx-cyan) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fx-cyan) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(60deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .grid-bg::before {
    animation: fx-grid-pan 14s linear infinite;
  }
}
@keyframes fx-grid-pan {
  to {
    background-position: 0 48px, 48px 0;
  }
}

.flicker {
  animation: fx-flicker 5s linear infinite;
}
@keyframes fx-flicker {
  0%, 97%, 100% {
    opacity: 1;
  }
  97.5% {
    opacity: 0.72;
  }
  98.2% {
    opacity: 1;
  }
  98.6% {
    opacity: 0.85;
  }
}

.terminal-cursor::after {
  content: "▌";
  margin-left: 2px;
  color: var(--fx-brand);
}
@media (prefers-reduced-motion: no-preference) {
  .terminal-cursor::after {
    animation: fx-blink 1.05s steps(1) infinite;
  }
}
@keyframes fx-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- 8. AMBIENT BLOBS — Floating blur blobs ---------- */
.ambient-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient-blobs::before,
.ambient-blobs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  mix-blend-mode: screen;
}
.ambient-blobs::before {
  width: 300px;
  height: 300px;
  background: var(--brand-primary, #e11324);
  left: 10%;
  top: 20%;
}
.ambient-blobs::after {
  width: 350px;
  height: 350px;
  background: var(--glitch-cyan, #00e5ff);
  right: 15%;
  bottom: 10%;
}
@media (prefers-reduced-motion: no-preference) {
  .ambient-blobs::before {
    animation: fx-float-a 25s ease-in-out infinite alternate;
  }
  .ambient-blobs::after {
    animation: fx-float-b 30s ease-in-out infinite alternate;
  }
}
@keyframes fx-float-a {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 80px) scale(0.9); }
}
@keyframes fx-float-b {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -30px) scale(0.9); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* ---------- 9. FROSTED GLASS — Glassmorphic card surface ---------- */
.frosted-glass {
  background: rgba(12, 14, 23, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .scanlines::after,
  .rgb-border::before,
  .grid-bg::before,
  .flicker,
  .terminal-cursor::after,
  .ambient-blobs::before,
  .ambient-blobs::after,
  .cta-web,
  .cta-web::before {
    animation: none !important;
  }
}

html[data-fx="off"] .scanlines::after,
html[data-fx="off"] .rgb-border::before,
html[data-fx="off"] .grid-bg::before,
html[data-fx="off"] .flicker,
html[data-fx="off"] .terminal-cursor::after,
html[data-fx="off"] .ambient-blobs::before,
html[data-fx="off"] .ambient-blobs::after,
html[data-fx="off"] .cta-web,
html[data-fx="off"] .cta-web::before {
  animation: none !important;
}

/* Locandina HUD utilities — shared by faq/guide/privacy/terms */
.hud-frame {
  position: relative;
  border: 1px solid var(--hud-line-quiet);
  background: var(--hud-panel);
  clip-path: var(--hud-cut);
}
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--brand-primary);
  pointer-events: none;
}
.hud-frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hud-frame::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
.site-header {
  border-bottom-color: var(--hud-line-quiet);
  background: rgba(7, 7, 8, 0.88);
}
.site-footer {
  border-top: 1px solid var(--hud-line-quiet);
  background: linear-gradient(180deg, transparent, rgba(20, 3, 7, 0.35));
}

/* ── CrimeCode Grid Background ── */
.crimecode-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.006) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.006) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
  background-position: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at center, black 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
  animation: ccGridBreathe 10s ease-in-out infinite alternate;
}

.laser-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  box-shadow: 0 0 8px rgba(255,255,255,0.15);
  opacity: 0.6;
  animation: ccLaserScan 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ccGridBreathe {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}

@keyframes ccLaserScan {
  0%   { top: -2%; }
  100% { top: 102%; }
}

@media (prefers-reduced-motion: reduce) {
  .crimecode-grid-bg { animation: none; }
  .laser-scan { animation: none; }
}

/* ── CrimeCode OSINT network tracker (mouse HUD) ── */
.crimecode-network-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 12;
}

.data-stream {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.02) 80%,
    transparent 100%);
  animation: packetFlow 6s linear infinite;
}
.stream-1 { top: 25%; animation-duration: 4s; opacity: 0.6; }
.stream-2 { top: 50%; animation-duration: 8s; opacity: 0.4; }
.stream-3 { top: 75%; animation-duration: 5s; opacity: 0.5; }

.network-tracker {
  position: absolute;
  width: 160px;
  height: 160px;
  left: -200px;
  top: -200px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.network-tracker.is-on { opacity: 1; }

.hud-outer-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: rotateTracker 25s linear infinite;
}

.hud-inner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 0.5px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) center/10px 10px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) center/10px 10px;
}

.hud-telemetry {
  position: absolute;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  white-space: nowrap;
}
.hud-telemetry.top-left     { top: -15px; left: -15px; }
.hud-telemetry.top-right    { top: -15px; right: -15px; }
.hud-telemetry.bottom-left  { bottom: -15px; left: -15px; }
.hud-telemetry.bottom-right { bottom: -15px; right: -15px; }

@keyframes packetFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes rotateTracker {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .data-stream, .hud-outer-ring { animation: none; }
  .network-tracker { display: none; }
}
@media (pointer: coarse) {
  .network-tracker { display: none; }
}
