/* ============================================================
   BinGest — Design tokens
   Following the system from the product dashboard:
   navy + white + blue + green, with red for losses.
   ============================================================ */

:root {
  /* Brand */
  --navy-950: #0A1226;
  --navy-900: #0E1A3A;
  --navy-800: #122148;
  --navy-700: #1B2D5E;
  --navy-600: #2A3C73;
  --navy-500: #3E4F88;

  --blue-700: #1E4FD8;
  --blue-600: #2A5BFF;
  --blue-500: #3D6BFF;
  --blue-100: #DCE6FE;
  --blue-50: #EEF3FF;

  --green-700: #15803D;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-100: #D1FAE5;
  --green-50: #ECFDF5;

  --red-700: #B91C1C;
  --red-600: #DC2626;
  --red-500: #EF4444;
  --red-100: #FEE2E2;
  --red-50: #FEF2F2;

  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;

  --purple-100: #ECE7F6;
  --purple-500: #7C5BD8;

  /* Neutrals */
  --ink: #0B132A;
  --ink-2: #1F2740;
  --muted: #5C6680;
  --muted-2: #8892A8;
  --border: #E3E7EF;
  --border-2: #EEF0F5;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --surface-3: #F1F3F8;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

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

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(15,26,58,.04), 0 8px 28px -10px rgba(15,26,58,.10);
  --shadow-pop:  0 1px 0 rgba(15,26,58,.04), 0 24px 60px -20px rgba(15,26,58,.25);
  --shadow-deep: 0 30px 80px -30px rgba(0,0,0,.45);

  /* Layout */
  --container: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: #E8ECF5;
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Continuous dark backdrop — matches the BinGest reference:
   top-right + bottom-center blue glows, tiny purple hint top-left,
   grid visible across the entire viewport. Painted via a fixed full-viewport
   div (#bg-fx) instead of body::before so it sits ABOVE body's own background. */
#bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 80% 5%,   rgba(42, 91, 255, 0.32), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(42, 91, 255, 0.30), transparent 65%),
    radial-gradient(ellipse 30% 40% at 5% 15%,   rgba(124, 91, 216, 0.10), transparent 70%);
}
#bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .85;
}

/* Ensure page content sits above the fixed backdrop layers */
#root { position: relative; z-index: 2; }

body {
  overflow-x: hidden;
}

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

button { font-family: inherit; cursor: pointer; }

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

/* Type scale (default colors = light-on-dark) */
.t-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.t-display {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #fff;
}
.t-h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: #fff;
}
.t-h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: #fff;
}
.t-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,.65);
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 28px -10px rgba(42,91,255,.55);
}
.btn-primary:hover { background: var(--blue-700); }
.btn-blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(42,91,255,.55);
}
.btn-blue:hover { background: var(--blue-700); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-light {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* Pill chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--green-500); }
.chip-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }

/* Sections */
section {
  position: relative;
  padding: 120px 0;
}
@media (max-width: 800px) { section { padding: 80px 0; } }

/* Blueprint grid background (subtle) */
.blueprint-bg {
  background-image:
    linear-gradient(to right, rgba(15,26,58,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,26,58,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Marquee */
.marquee {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Number ticker pulse */
@keyframes tick-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Hotspot pulse */
@keyframes hotspot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(42,91,255,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(42,91,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,91,255,0); }
}
@keyframes hotspot-pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* Float bobbing */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Fade up */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .6s ease both; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.2,.6,.3,1), transform .85s cubic-bezier(.2,.6,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Section: hero ----- */
.hero {
  padding-top: 110px;
  padding-bottom: 80px;
  overflow: hidden;
}

/* ----- Section: cost (dark cinema) ----- */
.section-dark {
  background: transparent;
  color: #fff;
}
.section-dark .t-lead { color: rgba(255,255,255,.7); }

/* Top nav */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10,18,38,.65);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

/* Spinner-y dashed border */
.dashed { border: 1.5px dashed rgba(255,255,255,.18); }

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.relative { position: relative; }

/* Scroll-snap horizontal */
.snap-x { scroll-snap-type: x mandatory; }

/* Tabular nums everywhere by default for currency */
.tabular { font-variant-numeric: tabular-nums; }
