/* ==========================================================================
   HONEYQUANT (HQF) — BLOOD MOON QUANTITATIVE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Blood Moon Obsidian Void & Deep Crimson Surfaces */
  --bg-void: #050204;
  --bg-surface: #0a0408;
  --bg-surface-elevated: #12070f;
  --bg-card: rgba(18, 7, 15, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-blood: rgba(225, 29, 72, 0.35);
  --border-blood-bright: rgba(244, 63, 94, 0.6);

  /* Blood Moon Accents */
  --blood-900: #881337;
  --blood-700: #be123c;
  --blood-600: #e11d48;
  --blood-500: #f43f5e;
  --blood-400: #fb7185;
  --blood-glow: rgba(225, 29, 72, 0.35);

  /* Secondary Accents */
  --silver-100: #ffffff;
  --silver-200: #f1f5f9;
  --silver-400: #94a3b8;
  --silver-600: #475569;
  
  --emerald-400: #34d399;
  --cyan-400: #38bdf8;

  /* Typography: Precision Quantitative Design System */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;
}

.font-mono, [data-ticker], .metric-value, .brand-badge {
  font-variant-numeric: tabular-nums lining-nums;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-display);
  background-color: var(--bg-void);
  color: var(--silver-200);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-void);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #230c17;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blood-600);
}

/* Background 3D Canvas strictly behind all details */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Subtle Blood Moon Nebula Orbs */
.blood-moon-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22) 0%, rgba(136, 19, 55, 0.08) 45%, transparent 70%);
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
  animation: pulseNebula 12s ease-in-out infinite alternate;
}

.blood-moon-glow-bottom {
  position: fixed;
  bottom: -200px;
  left: -150px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 18, 60, 0.16) 0%, transparent 65%);
  filter: blur(130px);
  z-index: 1;
  pointer-events: none;
}

@keyframes pulseNebula {
  0% { transform: scale(1) translate(0, 0); opacity: 0.18; }
  50% { transform: scale(1.15) translate(-30px, 40px); opacity: 0.28; }
  100% { transform: scale(0.95) translate(20px, -20px); opacity: 0.2; }
}

/* Floating Glass Navbar */
.nav-glass-container {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}

.nav-glass-pill {
  width: 100%;
  max-width: 1240px;
  background: rgba(14, 6, 12, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(225, 29, 72, 0.15);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nav-glass-pill:hover {
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.75), 0 0 30px rgba(225, 29, 72, 0.22);
}

/* Brand Identity in Navbar */
.brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #14050e;
  border: 1px solid rgba(244, 63, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.35);
  flex-shrink: 0;
  padding: 4px;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.015em;
  color: #ffffff;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.brand-badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 8.5px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 1.5px;
}

.btn-short-text {
  display: none;
}

.btn-full-text {
  display: inline;
}

/* Blood Moon Pill Button */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #060204;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.btn-pill-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.btn-pill-blood {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.4);
}

.btn-pill-blood:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.6);
  border-color: rgba(251, 113, 133, 0.6);
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--silver-200);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-pill-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   THE HARDWARE DEVICE FRAME (LIKE USER UPLOADED SCREENSHOTS)
   ========================================================================== */
.device-frame-wrapper {
  position: relative;
  width: 100%;
  perspective: 1200px;
}

/* Ambient Reactive Bias Lighting Underglow (Crisp Toned) */
.device-bias-glow {
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  background: radial-gradient(
    ellipse at center,
    rgba(225, 29, 72, 0.3) 0%,
    rgba(234, 88, 12, 0.12) 38%,
    transparent 68%
  );
  filter: blur(34px);
  z-index: -3;
  pointer-events: none;
  animation: biasPulse 6.5s ease-in-out infinite alternate;
}

@keyframes biasPulse {
  0% { opacity: 0.45; transform: scale(0.97); filter: blur(28px); }
  50% { opacity: 0.75; transform: scale(1.03); filter: blur(42px); }
  100% { opacity: 0.52; transform: scale(0.99); filter: blur(32px); }
}

/* Precision 1px Hairline Conic Gradient Plasma Laser Beam */
.device-laser-border {
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  padding: 1px; /* Exact 1px Hairline */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.device-laser-border::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    transparent 335deg,
    rgba(234, 88, 12, 0.5) 345deg,
    #f43f5e 354deg,
    #ffffff 360deg
  );
  animation: laserSpin 4.5s linear infinite;
}

@keyframes laserSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.device-frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background: #0c050a;
  /* Realistic iPad/Workstation Bezel */
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 30px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 50px -10px rgba(225, 29, 72, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  animation: deviceFloating 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes deviceFloating {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.3deg);
  }
}

.device-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 40px 90px -15px rgba(0, 0, 0, 0.98),
    0 0 65px 0px rgba(225, 29, 72, 0.4);
}

/* Inside Screen Glass */
.device-screen {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #040103;
  aspect-ratio: 1918 / 1009;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Dynamic Glass Specular Reflection Sweep */
.device-specular-sweep {
  position: absolute;
  top: -100%;
  left: -130%;
  width: 75%;
  height: 300%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 65%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 8;
  animation: glassSheenSweep 8.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes glassSheenSweep {
  0%, 35% {
    left: -130%;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  68% {
    left: 210%;
    opacity: 1;
  }
  74%, 100% {
    left: 210%;
    opacity: 0;
  }
}

/* Device Corner Specular Highlight */
.device-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
  z-index: 6;
}

/* Floating Holographic Telemetry HUD Badges */
.floating-hud-badge {
  position: absolute;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 5, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 63, 94, 0.38);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 18px rgba(225, 29, 72, 0.22);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  white-space: nowrap;
}

.hud-chip-top {
  top: -14px;
  left: 24px;
}

.hud-chip-right {
  top: 40%;
  right: -24px;
  border-color: rgba(225, 29, 72, 0.55);
}

.hud-chip-bottom {
  bottom: -14px;
  left: 32px;
  border-color: rgba(52, 211, 153, 0.4);
}

.hud-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  animation: pulse 1.6s infinite;
}

/* Chassis Micro-Detail Bar (Bottom LED & Screws) */
.chassis-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 2px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.chassis-led-bulb {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  display: inline-block;
  margin-right: 6px;
  animation: tickBlink 2.4s ease-in-out infinite;
}

@keyframes tickBlink {
  0%, 100% { background: #34d399; box-shadow: 0 0 6px #34d399; }
  50% { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
}

.chassis-screw {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.9);
  display: inline-block;
}

/* Feature Bullet Points (Left Column) */
.feature-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--silver-400);
  font-size: 15px;
  line-height: 1.5;
}

.feature-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blood-500);
  box-shadow: 0 0 10px var(--blood-500);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Interactive Tabs for Screenshots */
.blood-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--silver-400);
  background: rgba(25, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.blood-tab:hover {
  color: #ffffff;
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(35, 14, 28, 0.8);
}

.blood-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: #fb7185;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
}

/* Stat Card Blood Moon Style with Spotlight support */
.stat-blood-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 7, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-blood-card > * {
  position: relative;
  z-index: 3;
}

.stat-blood-card:hover {
  border-color: rgba(225, 29, 72, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   REACT BITS: INTERACTIVE SPOTLIGHT CARD (MOUSE-TRACKING RADIAL GLOW)
   ========================================================================== */
.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-opacity: 0;
  --spotlight-color: rgba(225, 29, 72, 0.16);
  --spotlight-border: rgba(251, 113, 133, 0.6);
}

.spotlight-card > * {
  position: relative;
  z-index: 3;
}

/* Interior radial spotlight glow */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 65%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* 1px Illuminated border highlight tracking mouse */
.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    320px circle at var(--mouse-x) var(--mouse-y),
    var(--spotlight-border),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--spotlight-opacity);
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

/* Custom Venue-specific spotlight glow colors */
.card-lighter {
  --spotlight-color: rgba(255, 255, 255, 0.12);
  --spotlight-border: rgba(255, 255, 255, 0.6);
}
.card-lighter:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 255, 255, 0.12) !important;
}

.card-qfex {
  --spotlight-color: rgba(56, 189, 248, 0.15);
  --spotlight-border: rgba(56, 189, 248, 0.65);
}
.card-qfex:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.22) !important;
}

.card-hyperliquid {
  --spotlight-color: rgba(52, 211, 153, 0.15);
  --spotlight-border: rgba(52, 211, 153, 0.65);
}
.card-hyperliquid:hover {
  border-color: rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 28px rgba(52, 211, 153, 0.22) !important;
}

.card-aster {
  --spotlight-color: rgba(251, 191, 36, 0.15);
  --spotlight-border: rgba(251, 191, 36, 0.65);
}
.card-aster:hover {
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 28px rgba(251, 191, 36, 0.22) !important;
}

/* ==========================================================================
   REACT BITS: DECRYPTED MATRIX TEXT SCRAMBLE
   ========================================================================== */
.decrypted-text {
  font-variant-numeric: tabular-nums lining-nums;
  cursor: default;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  user-select: none;
}

.decrypted-text:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(251, 113, 133, 0.75);
}



/* ==========================================================================
   MODALS & LIGHTBOX (SOLID OPAQUE OVERLAY — ZERO BLEED-THROUGH)
   ========================================================================== */
.modal-overlay, #beta-modal, #lightbox-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important;
  background: rgba(4, 1, 4, 0.96) !important; /* 96% Dark Obsidian & Blur */
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open, #beta-modal.open, #lightbox-modal.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-dialog-card {
  position: relative !important;
  width: 100%;
  max-width: 520px;
  background: #0d040a !important; /* 100% Solid Opaque Obsidian Background */
  border: 1px solid rgba(225, 29, 72, 0.5) !important;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.98),
    0 0 50px rgba(225, 29, 72, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  margin: auto;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000000 !important;
  color: #ffffff;
}

.modal-overlay.open .modal-dialog-card,
#beta-modal.open .modal-dialog-card,
#lightbox-modal.open .modal-dialog-card {
  transform: scale(1);
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #14060e !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  border-color: var(--blood-500) !important;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}

.modal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   GENERAL LAYOUT, SPACING & RESPONSIVE UTILITIES
   ========================================================================== */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.cursor-pointer { cursor: pointer; }
.cursor-zoom-in { cursor: zoom-in; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: 4rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-14 { padding: 3.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

.text-white { color: #ffffff; }
.text-blood-400 { color: var(--blood-400); }
.text-blood-500 { color: var(--blood-500); }
.text-silver-200 { color: var(--silver-200); }
.text-silver-400 { color: var(--silver-400); }
.text-silver-600 { color: var(--silver-600); }
.text-emerald-400 { color: var(--emerald-400); }

.bg-blood-glow {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.15) 0%, transparent 70%);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1.08; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:p-14 { padding: 3.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1.05; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
}

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE AUTO-ADJUST ENGINE
   ========================================================================== */

/* Universal Horizontal Overflow Protection */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* Screen widths < 1180px: Hide Explore Features in navbar so it never clips */
@media (max-width: 1180px) {
  .nav-btn-explore {
    display: none !important;
  }
}

/* Screen widths < 768px: Mobile & Narrow Window Adjustments */
@media (max-width: 768px) {
  .nav-glass-container {
    padding: 0 10px;
    top: 10px;
  }
  .nav-glass-pill {
    padding: 6px 12px;
    gap: 8px;
  }
  .brand-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-title {
    font-size: 14px !important;
  }
  .brand-badge {
    font-size: 9px !important;
    padding: 1px 6px !important;
  }
  .brand-tagline {
    font-size: 7px !important;
    letter-spacing: 0.08em !important;
  }
  .nav-btn-key {
    padding: 7px 14px !important;
    font-size: 12px !important;
  }
  
  /* Hero Display Monitor scaling */
  .device-frame-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
  .device-frame {
    border-radius: 18px;
    padding: 6px;
  }
  .device-screen {
    border-radius: 14px;
  }
  /* Floating HUD chips on mobile */
  .floating-hud-badge {
    font-size: 9.5px !important;
    padding: 4px 10px !important;
  }
  .hud-chip-top {
    top: -10px !important;
    left: 10px !important;
  }
  .hud-chip-right {
    display: none !important; /* Prevents horizontal clipping on phones */
  }
  .hud-chip-bottom {
    bottom: -10px !important;
    left: 14px !important;
  }
}

/* Screen widths < 560px: Small Phone adjustments */
@media (max-width: 560px) {
  .brand-tagline {
    display: none !important; /* Hide tagline completely on tiny mobile screens */
  }
  .brand-title {
    font-size: 13px !important;
  }
  .nav-btn-key .btn-full-text {
    display: none !important;
  }
  .nav-btn-key .btn-short-text {
    display: inline !important;
  }
  .nav-btn-key {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   QUANTITATIVE DESKTOP FOOTER (WINDOWS ARCHITECTURE)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: #050204;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.footer-top-flare {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.7) 25%, #ffffff 50%, rgba(225, 29, 72, 0.7) 75%, transparent);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

.footer-top-radial {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fb7185;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.footer-brand-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8.5vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(225, 29, 72, 0.02) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  text-align: center;
  padding-top: 36px;
  padding-bottom: 24px;
  pointer-events: none;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn-back-to-top {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-to-top:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}
