/* ----------------------------------------------------------------------
   The Hive Spoofer — design tokens
   --------------------------------------------------------------------- */
:root {
  /* Base canvas */
  --bg-0: #08080b;            /* deepest base */
  --bg-1: #0c0c11;            /* page bg */
  --bg-2: #111118;            /* card bg */
  --bg-3: #16161e;            /* elevated card */
  --bg-4: #1c1c25;            /* hover surface */

  /* Hairlines */
  --line-1: #1c1c24;
  --line-2: #262630;
  --line-3: #34343f;

  /* Text */
  --fg-0: #ffffff;
  --fg-1: #ededf0;
  --fg-2: #a8a8b3;
  --fg-3: #6e6e7a;
  --fg-4: #4a4a55;

  /* Brand */
  --amber: #ffb300;
  --amber-bright: #ffc233;
  --amber-deep: #d99500;
  --amber-glow: rgba(255, 179, 0, 0.18);
  --amber-soft: rgba(255, 179, 0, 0.08);

  /* Spoofer accent — semantic for Wash features + Spoofer credits */
  --spoof: #ef4848;
  --spoof-bright: #ff6464;
  --spoof-deep: #c0292c;
  --spoof-glow: rgba(239, 72, 72, 0.22);
  --spoof-soft: rgba(239, 72, 72, 0.08);

  /* Status */
  --green: #2eb67d;
  --red: #ef4444;
  --blue: #4f8bff;
  --violet: #a78bfa;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Easing */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container: 1200px;
  --container-sm: 880px;
  --view-max: 1280px;          /* (DR-822) single source for the shell content column */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body { overflow-x: hidden; }

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

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

button { font-family: inherit; }

::selection { background: var(--amber); color: #000; }

/* Grain overlay for atmosphere */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* Type primitives */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber-glow);
}

.h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0;
}
.h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 620px;
}
.muted { color: var(--fg-2); }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }

.btn-primary {
  background: var(--amber);
  color: #0a0a0a;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,179,0,0.4) inset, 0 8px 24px -8px rgba(255,179,0,0.45);
}
.btn-primary:hover {
  background: var(--amber-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,179,0,0.5) inset, 0 14px 28px -8px rgba(255,179,0,0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-3);
  color: var(--fg-0);
  border-color: var(--line-2);
}
.btn-secondary:hover { background: var(--bg-4); border-color: var(--line-3); }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--fg-0); }

.btn-text {
  background: transparent;
  color: var(--fg-1);
  height: auto; padding: 0;
  border: none;
}
.btn-text:hover { color: var(--amber); }

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.pill .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(46,182,125,0.6);
}

/* Card */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease), background 250ms var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
}

/* Hairline divider */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  border: 0;
}

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 700ms var(--ease-out) both; }
.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 160ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 320ms; }
.reveal-5 { animation-delay: 400ms; }

/* Geometric icons (line, 1.5 stroke) */
.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 28px; height: 28px; }

/* ── (DR-822) Global a11y baseline ──────────────────────────────────────── */
/* Consistent keyboard focus ring across all interactive elements. :where() keeps
   specificity at 0 so component styles still win; :focus-visible only triggers on
   keyboard focus, never plain mouse clicks. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
/* Respect the OS reduced-motion preference: neutralize reveal/transform/scroll
   animation so the app stays fast + calm for motion-sensitive users. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
