/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #050d1a;
  font-family: 'Rajdhani', sans-serif;
  color: #c8d8f0;
  overflow-x: hidden;
}

/* ── Blueprint grid bg ── */
.bg-blueprint {
  background-color: #050d1a;
  background-image:
    linear-gradient(rgba(74,128,196,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,128,196,0.13) 1px, transparent 1px),
    linear-gradient(rgba(74,128,196,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,128,196,0.06) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}

/* ── Scanline overlay ── */
.scanline-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0,0,0,0.04) 50%
  );
  background-size: 100% 4px;
  z-index: 1;
}

/* ── Corner brackets ── */
.bracket::before, .bracket::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(96,165,250,0.6);
  border-style: solid;
}
.bracket::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.bracket::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ── Monospaced label ── */
.mono-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(96,165,250,0.55);
  text-transform: uppercase;
}

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  z-index: 50;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

/* ── Navbar scroll shadow ── */
nav { transition: background 0.3s, box-shadow 0.3s; }
nav.scrolled {
  background: rgba(5,13,26,0.98) !important;
  box-shadow: 0 1px 0 rgba(74,128,196,0.3), 0 8px 32px rgba(0,0,0,0.6);
}

/* ── Hero animation delays ── */
.hero-tag   { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title { animation: fadeUp 0.7s ease 0.25s both; }
.hero-sub   { animation: fadeUp 0.7s ease 0.4s both; }
.hero-desc  { animation: fadeUp 0.7s ease 0.55s both; }
.hero-btns  { animation: fadeUp 0.7s ease 0.7s both; }
.hero-stats { animation: fadeUp 0.7s ease 0.85s both; }

/* ── Card hover ── */
.version-card {
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.version-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.7), 0 12px 56px rgba(59,130,246,0.28), inset 0 1px 0 rgba(96,165,250,0.2);
  border-color: rgba(96,165,250,0.7);
}
.version-card:hover .card-accent { opacity: 1; }

/* ── Schematic SVG decorations ── */
.schematic-line {
  stroke: rgba(74,128,196,0.35);
  stroke-width: 1;
  fill: none;
}
.schematic-dot {
  fill: rgba(96,165,250,0.5);
}

/* ── Glowing text ── */
.text-glow {
  text-shadow: 0 0 20px rgba(96,165,250,0.7), 0 0 60px rgba(59,130,246,0.3);
}
.text-glow-cyan {
  text-shadow: 0 0 16px rgba(0,212,255,0.8), 0 0 40px rgba(0,212,255,0.3);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050d1a; }
::-webkit-scrollbar-thumb { background: rgba(74,128,196,0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(96,165,250,0.7); }

/* ── Divider line ── */
.blueprint-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74,128,196,0.5) 30%, rgba(96,165,250,0.7) 50%, rgba(74,128,196,0.5) 70%, transparent);
}

/* ── FAQ / About section ── */
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.chevron { transition: transform 0.3s ease; }

/* ── Scout v1 obfuscate flicker ── */
.obfuscate-flicker {
  animation: obfuscate-flicker 0.2s steps(2, end) infinite;
}
@keyframes obfuscate-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Dev-log button v1 (cyan theme) ── */
.dev-log-btn-v1 {
  color: rgba(0, 212, 255, 0.8);
}
.dev-log-btn-v1:hover {
  color: rgba(0, 212, 255, 1);
}
