/* ============================================================
   RECONLION — home-cockpit.css
   Direction A: "Deepened Cockpit"
   Homepage-only overlay. Loaded AFTER assets/styles.css on
   index.html only — every rule here is scoped to the homepage
   by virtue of no other page linking this file. Do not link
   this file from signal/ops/verticals/tools/about.
   teal structural | amber CTA only — discipline preserved.
   ============================================================ */

:root {
  --teal-glow-2:   rgba(45,216,223,0.16);
  --teal-glow-3:   rgba(45,216,223,0.35);
  --teal-hairline: rgba(45,216,223,0.12);
  --amber-glow:    rgba(245,166,35,0.35);
  --depth-shadow:  0 24px 60px -20px rgba(0,0,0,0.65);
}

/* ============================================================
   AMBIENT BACKGROUND — layered depth
   ============================================================ */
body {
  background:
    radial-gradient(ellipse 900px 560px at 12% -8%, var(--teal-glow), transparent 60%),
    radial-gradient(ellipse 700px 500px at 92% 8%, rgba(245,166,35,0.05), transparent 55%),
    radial-gradient(ellipse 1100px 700px at 50% 110%, rgba(45,216,223,0.05), transparent 60%),
    var(--bg-void);
  background-attachment: fixed;
}

body::before {
  display: block;
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45,216,223,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,216,223,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.scanlines {
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.045) 2px, rgba(0,0,0,0.045) 4px);
  z-index: 9998;
}

/* radar-style sweep, slow + faint, disabled under reduced motion */
.hud-scan {
  position: fixed; left: 0; right: 0; top: -10%;
  height: 30vh;
  background: linear-gradient(180deg, transparent, var(--teal-hairline) 45%, transparent 100%);
  pointer-events: none; z-index: 1;
  animation: hudScan 14s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes hudScan {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  50%  { transform: translateY(360vh); opacity: 0.6; }
  92%  { opacity: 0; }
  100% { transform: translateY(360vh); opacity: 0; }
}

/* ============================================================
   VIEWPORT HUD FRAME — corner brackets + telemetry tags
   ============================================================ */
.hud-frame { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.hud-corner {
  position: fixed; width: 22px; height: 22px;
  border-color: var(--teal); opacity: 0.4;
}
.hud-corner-tl { top: 14px; left: 14px; border-top: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.hud-corner-tr { top: 14px; right: 14px; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.hud-corner-bl { bottom: 14px; left: 14px; border-bottom: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.hud-corner-br { bottom: 14px; right: 14px; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }
.hud-frame-tag {
  position: fixed;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--text-muted); opacity: 0.55;
  text-transform: uppercase;
}
.hud-frame-tag-tl { top: 18px; left: 46px; }
.hud-frame-tag-br { bottom: 18px; right: 46px; color: var(--green); opacity: 0.5; }

@media (max-width: 900px) {
  .hud-frame { display: none; }
}

/* ============================================================
   NAV — refined glow
   ============================================================ */
.topbar {
  background: rgba(8,12,16,0.82);
  box-shadow: 0 1px 0 var(--teal-hairline), 0 12px 30px -18px rgba(0,0,0,0.8);
  z-index: 1000;
}
.nav-logo-ring {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm);
  background: var(--teal-glow);
  box-shadow: inset 0 0 12px rgba(45,216,223,0.12);
}
.nav-logo-img { height: 18px; width: 18px; }
.nav-link.active::after { box-shadow: 0 0 8px var(--teal-glow-3); }
.nav-link:hover { box-shadow: inset 0 -1px 0 var(--teal-border); }

/* ============================================================
   ACCESS BANNER — telemetry strip
   ============================================================ */
.access-banner {
  background: linear-gradient(90deg, rgba(45,216,223,0.06), rgba(45,216,223,0.02) 60%, transparent);
  border-bottom: 1px solid var(--teal-hairline);
  position: relative;
}
.access-banner::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-border), transparent 70%);
}
.banner-status {
  box-shadow: 0 0 10px var(--teal-glow-2), inset 0 0 0 1px var(--teal-border);
}

/* ============================================================
   HERO — depth + telemetry rail
   ============================================================ */
.hero { position: relative; z-index: 3; padding: 64px 0 72px; }

.hero-copy {
  position: relative;
  border-left: none;
  padding-left: 28px;
}
.hero-rail {
  position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px;
  background:
    repeating-linear-gradient(180deg, var(--teal) 0px, var(--teal) 3px, transparent 3px, transparent 10px);
  opacity: 0.55;
}
.hero-rail::before {
  content: '';
  position: absolute; left: -3px; top: 0; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px 2px var(--teal-glow-3);
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px 1px rgba(57,211,83,0.6);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  text-shadow: 0 0 40px rgba(45,216,223,0.18);
}
.hero-title-sub {
  text-shadow: 0 0 24px rgba(45,216,223,0.35);
}

/* HUD gauge meta pills */
.hero-meta { gap: 0; }
.meta-pill {
  position: relative;
  flex-direction: column; align-items: flex-start; gap: 5px;
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-raised));
  padding: 8px 14px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.meta-value { text-shadow: 0 0 12px rgba(45,216,223,0.4); }
.meta-value.green { text-shadow: 0 0 12px rgba(57,211,83,0.45); }
.meta-bar {
  display: block; width: 100%; height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
}
.meta-bar i {
  display: block; height: 100%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal-glow-3);
}
.meta-bar-green i { background: var(--green); box-shadow: 0 0 6px rgba(57,211,83,0.6); }

/* ============================================================
   BUTTONS — tighter glow
   ============================================================ */
.btn-primary {
  box-shadow: 0 0 0 1px rgba(245,166,35,0.35), 0 8px 24px -8px var(--amber-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(245,166,35,0.55), 0 10px 30px -6px var(--amber-glow);
  opacity: 1;
}
.btn-secondary { position: relative; }
.btn-secondary:hover {
  box-shadow: 0 0 0 1px var(--teal-border), 0 0 20px -4px var(--teal-glow-3);
}

/* ============================================================
   COMMAND NODE PANEL — layered HUD depth
   ============================================================ */
.hud-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(45,216,223,0.03), transparent 40%),
    var(--bg-surface);
  box-shadow: var(--depth-shadow), inset 0 1px 0 rgba(255,255,255,0.02);
  border-color: var(--border-mid);
}
.hud-panel-corner {
  position: absolute; width: 14px; height: 14px; z-index: 2;
  opacity: 0.7; pointer-events: none;
}
.hud-panel-corner-tl { top: -1px; left: -1px; border-top: 1px solid var(--teal); border-left: 1px solid var(--teal); }
.hud-panel-corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--teal); border-right: 1px solid var(--teal); }

.panel-head {
  background: rgba(45,216,223,0.03);
  letter-spacing: 0.24em;
}
.panel-live { display: flex; align-items: center; gap: 6px; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(57,211,83,0.55);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.nav-card { position: relative; padding-left: 16px; }
.nav-card-head { justify-content: flex-start; gap: 8px; }
.nav-card-index {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-muted);
  letter-spacing: 0.05em;
}
.nav-card-arrow { margin-left: auto; }
.nav-card:hover {
  background: var(--bg-raised);
  box-shadow: inset 2px 0 0 var(--teal);
}
.nav-card:hover .nav-card-desc { color: var(--text-primary); }

.status-lines { background: rgba(0,0,0,0.15); }
.status-line { transition: background 0.15s; }
.status-line:hover { background: rgba(45,216,223,0.03); }

/* ============================================================
   VERTICALS STRIP — denser HUD table
   ============================================================ */
.verticals-strip {
  position: relative; z-index: 3;
  background: linear-gradient(180deg, var(--bg-surface), rgba(13,17,23,0.6));
}
.strip-rule {
  background: linear-gradient(90deg, var(--border-dim), var(--teal-hairline), var(--border-dim));
}
.vertical-card { position: relative; padding-top: 16px; }
.vertical-card::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: transparent; transition: background 0.2s;
}
.vertical-card:hover::after { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow-3); }
.vertical-card:hover {
  background: var(--bg-raised);
  box-shadow: inset 0 20px 30px -25px var(--teal-glow-3);
}
.vertical-card-top {
  display: flex; align-items: center; justify-content: space-between;
}
.vertical-index {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.05em;
}
.vertical-indicator { display: flex; align-items: center; gap: 6px; }
.ping-dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px 1px rgba(57,211,83,0.55);
}
.ping-dot::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(57,211,83,0.5);
  animation: pingRing 2.2s ease-out infinite;
}
.ping-dot-amber { background: var(--amber); box-shadow: 0 0 6px 1px rgba(245,166,35,0.5); }
.ping-dot-amber::before { border-color: rgba(245,166,35,0.5); animation-duration: 2.6s; }

.footer-nominal { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
@keyframes pingRing {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-scan, .eyebrow-dot, .live-dot, .ping-dot::before {
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-copy { padding-left: 20px; }
}
@media (max-width: 600px) {
  .hud-frame-tag { display: none; }
  .hero-meta { flex-wrap: wrap; }
}
