@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* =============================================================
   DSM — Dark Liquid-Glass Theme
   Shared design system extracted from bg-explorer.html.
   Pairs with Tailwind CDN (layout utilities) + dsm-hero.js.
   ============================================================= */

:root {
  --dsm-green:        #01ac49;
  --dsm-green-deep:   #017d35;
  --dsm-green-soft:   rgba(1, 172, 73, 0.12);
  --dsm-cyan:         #59bfb7;
  --dsm-cyan-deep:    #3c8f89;
  --dsm-cyan-soft:    rgba(89, 191, 183, 0.08);
  --dsm-cyan-line:    rgba(89, 191, 183, 0.35);
  --dsm-warn:         #d18f33;
  --dsm-warn-soft:    rgba(209, 143, 51, 0.14);
  --dsm-bg:           #0b0f12;
  --dsm-bg-pure:      #000;
  --dsm-bg-navy:      #161f26;
  --dsm-text:         #ffffff;
  --dsm-text-soft:    rgba(255, 255, 255, 0.74);
  --dsm-text-faint:   rgba(255, 255, 255, 0.52);
  --dsm-border:       rgba(255, 255, 255, 0.12);
  --dsm-border-hover: rgba(1, 172, 73, 0.4);
  --dsm-glass-1:      rgba(29, 37, 43, 0.8);
  --dsm-glass-2:      rgba(17, 23, 28, 0.92);
  --dsm-acrylic-sheen:  linear-gradient(158deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.005) 100%);
  --dsm-acrylic-base:   rgba(14, 20, 24, 0.78);
  --dsm-acrylic-border: rgba(255, 255, 255, 0.14);
  --dsm-acrylic-hover:  rgba(255, 255, 255, 0.06);
  --dsm-acrylic-blur:   blur(10px) saturate(1.05);
  --hud-cut:          12px;
  --dsm-mono:         ui-monospace, 'SF Mono', 'JetBrains Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  --dsm-blueprint:    rgba(111, 132, 148, 0.11);
  --dsm-ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dsm-ease-smooth:  cubic-bezier(0.42, 0, 0.28, 1);
  --dsm-ease-glass:   cubic-bezier(0.22, 1, 0.36, 1);
  --dsm-font-body:    'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --dsm-font-display: 'Barlow Condensed', 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(180deg, #182026 0%, #0d1216 38%, #090d10 100%);
  color: var(--dsm-text);
  font-family: var(--dsm-font-body);
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 20px),
    linear-gradient(315deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 28px);
  background-size: 24px 24px, 32px 32px;
  opacity: 0.3;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(1200px 800px at 50% -14%, rgba(255,255,255,0.08), transparent 60%);
}

h1, h2, h3, h4,
.heading-gradient {
  font-family: var(--dsm-font-display);
}

/* ---------- Atmospheric overlays (fixed, site-wide) ---------- */
.dsm-grain {
  position: fixed; inset: 0; z-index: 4;
  pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ---------- Hero engine scaffold ---------- */
.dsm-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.dsm-hero--short { min-height: 78vh; }

.dsm-hero__stage {
  position: absolute; inset: 0;
  z-index: 0;
  will-change: transform;
  transform-origin: center center;
  perspective: 920px;
}
.dsm-hero__layer {
  position: absolute;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* photo + atmospheric layers */
.dsm-hero__photo   { inset: -13%; background-size: cover; background-position: center; }
.dsm-hero__haze    { inset: -9%;  background-size: cover; background-position: center; filter: blur(44px) brightness(0.78); opacity: 0.16; }
.dsm-hero__vignette{ inset: -5%;  background: radial-gradient(ellipse 105% 96% at 50% 50%, transparent 20%, rgba(0,0,0,0.74) 100%); }

.dsm-hero__specular {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle 680px at 50% 50%, rgba(255,255,255,0.06), transparent 50%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* hex grid layer */
.dsm-hero__hex {
  position: absolute; inset: -10%; z-index: 3; pointer-events: none;
}
.dsm-hero__hex-base {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2784%27 height=%27147%27 viewBox=%270 0 84 147%27%3E%3Cpath d=%27M 0 49 L 42 24.5 L 84 49 L 84 98 L 42 122.5 L 0 98 Z M 42 24.5 L 42 0 M 42 122.5 L 42 147%27 stroke=%27%23ffffff%27 stroke-width=%272%27 fill=%27none%27 stroke-opacity=%270.08%27/%3E%3C/svg%3E");
  background-size: 84px 147px; opacity: 0.34; mix-blend-mode: normal;
  filter: blur(0.6px); -webkit-filter: blur(0.6px);
}
.dsm-hero__hex-pulse { position: absolute; inset: 0; overflow: hidden; transform: translateZ(0); }

.ring-hex {
  position: absolute;
  width: 160px; height: 174px;
  margin-left: -80px; margin-top: -87px;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-38 -38 160 174'%3E%3Cdefs%3E%3Cfilter id='halo' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3Cfilter id='coreGlow' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='42,0 84,24.5 84,73.5 42,98 0,73.5 0,24.5' fill='none' stroke='%23ffffff' stroke-width='8' filter='url(%23halo)' opacity='0.7' stroke-linejoin='round'/%3E%3Cpolygon points='42,0 84,24.5 84,73.5 42,98 0,73.5 0,24.5' fill='none' stroke='%23ffffff' stroke-width='3' filter='url(%23coreGlow)' opacity='0.9' stroke-linejoin='round'/%3E%3Cpolygon points='42,0 84,24.5 84,73.5 42,98 0,73.5 0,24.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
@keyframes hexLightUp {
  0%   { opacity: 0;                      transform: scale(0.85); }
  15%  { opacity: calc(var(--max-op) * 1.0); transform: scale(1.05); }
  75%  { opacity: calc(var(--max-op) * 0.8); transform: scale(1.0); }
  100% { opacity: 0;                      transform: scale(0.98); }
}

/* hero gradients */
.dsm-hero__grad-top {
  position: absolute; inset-inline: 0; top: 0; height: 30%; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.dsm-hero__grad-bottom {
  position: absolute; inset-inline: 0; bottom: 0; height: 60%; z-index: 5; pointer-events: none;
  background: linear-gradient(to top, var(--dsm-bg) 0%, rgba(0,0,0,0.30) 55%, transparent 100%);
}
.dsm-hero__content { position: relative; z-index: 10; }

/* ---------- Tactical navbar ---------- */
.dsm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--dsm-acrylic-sheen), rgba(10, 15, 18, 0.66);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border-bottom: 1px solid var(--dsm-acrylic-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.45s var(--dsm-ease-glass), opacity 0.4s ease,
              background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}
.dsm-nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 20%, var(--dsm-green-soft) 50%, rgba(255,255,255,0.15) 80%, transparent 100%);
  opacity: 0.7;
}
.dsm-nav[data-scrolled] {
  background: var(--dsm-acrylic-sheen), rgba(7, 11, 14, 0.8);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07);
}
.dsm-nav[data-scrolled]::after { opacity: 0.85; }
/* Hide on scroll down, reveal on scroll up */
.dsm-nav[data-hidden] {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.dsm-nav-link {
  position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  font-family: var(--dsm-font-display);
  color: rgba(255,255,255,0.78);
  padding: 0.5rem 0.875rem;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: color 0.2s ease, background 0.2s ease, backdrop-filter 0.2s ease;
}
.dsm-nav-link:hover {
  color: #fff; background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dsm-nav-link[aria-current="page"] {
  color: #fff; font-weight: 600;
  background: var(--dsm-green-soft);
  box-shadow: inset 0 0 0 1px rgba(1,172,73,0.42);
}
.dsm-nav-link[aria-current="page"]::before {
  content: ''; position: absolute; left: 0.875rem; right: 0.875rem; bottom: 3px; height: 1.5px;
  background: var(--dsm-green);
  box-shadow: none;
}
.dsm-logo-img { height: 2.25rem; width: auto; filter: brightness(0) invert(1); }

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--dsm-font-display);
  background: linear-gradient(135deg, var(--dsm-green) 0%, var(--dsm-green-deep) 100%);
  color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 10px 24px rgba(1,172,73,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.25s var(--dsm-ease-spring), box-shadow 0.25s ease;
  text-decoration: none; cursor: pointer; border: none;
}
.dsm-nav .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(1,172,73,0.3), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--dsm-font-display);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dsm-acrylic-border);
  backdrop-filter: var(--dsm-acrylic-blur); -webkit-backdrop-filter: var(--dsm-acrylic-blur);
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.25s ease; text-decoration: none; cursor: pointer;
}
.btn-glass:hover { color: #fff; background: var(--dsm-acrylic-hover); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-glass:active { transform: translateY(0) scale(0.98); }
.btn-glass svg { width: 1rem; height: 1rem; }

.btn-tactical {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--dsm-font-display);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(89,191,183,0.35);
  color: #d0ece9; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 0 1px rgba(89,191,183,0.08);
  transition: all 0.25s ease; text-decoration: none; cursor: pointer;
}
.btn-tactical:hover { color: #fff; background: rgba(89,191,183,0.13); border-color: rgba(89,191,183,0.5); box-shadow: 0 10px 22px rgba(6,12,15,0.48); transform: translateY(-2px); }
.btn-tactical:active { transform: translateY(0) scale(0.98); }
.btn-tactical svg { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.btn-tactical:hover svg { transform: translateX(3px); }

/* ---------- Section eyebrow / headings ---------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--dsm-green);
  font-family: var(--dsm-mono);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.section-eyebrow::before { content: ''; width: 0.5rem; height: 0.5rem; border: 1.5px solid var(--dsm-green); border-right-color: transparent; border-bottom-color: transparent; display: inline-block; }
.section-eyebrow--centered { justify-content: center; }
.section-eyebrow--centered::after { content: ''; width: 0.5rem; height: 0.5rem; border: 1.5px solid var(--dsm-green); border-left-color: transparent; border-top-color: transparent; display: inline-block; }

.heading-gradient {
  text-transform: uppercase;
  background: linear-gradient(180deg, #f4f7f8 0%, rgba(168,184,194,0.9) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 12px 34px rgba(0,0,0,0.42);
}

/* ---------- Acrylic card / bento ---------- */
.glass-card {
  background: var(--dsm-acrylic-sheen), var(--dsm-acrylic-base);
  border: 1px solid var(--dsm-acrylic-border);
  border-radius: 4px;
  backdrop-filter: blur(8px) saturate(1.06); -webkit-backdrop-filter: blur(8px) saturate(1.06);
  box-shadow: 0 18px 34px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--dsm-ease-glass), border-color 0.4s ease, box-shadow 0.4s ease;
}
.glass-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 24%);
}
.glass-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px circle at 50% -10%, rgba(1,172,73,0.06), transparent 48%);
  opacity: 0; transition: opacity 0.5s ease;
}
.glass-card--interactive::after {
  opacity: 0.05;
  animation: glassIdleGlow 7.2s ease-in-out infinite;
}
.glass-card--interactive:hover {
  border-color: rgba(1,172,73,0.26);
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.42), 0 0 18px rgba(1,172,73,0.06), inset 0 1px 0 rgba(255,255,255,0.09);
}
.glass-card--interactive:hover::after { opacity: 1; }
@keyframes glassIdleGlow {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.14; }
}

/* soft acrylic (lighter, for nested panels / form fields) */
.glass-soft {
  background: var(--dsm-acrylic-sheen), rgba(8,8,10,0.24);
  border: 1px solid var(--dsm-acrylic-border);
  border-radius: 4px;
  backdrop-filter: var(--dsm-acrylic-blur); -webkit-backdrop-filter: var(--dsm-acrylic-blur);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ===========================================================
   TACTICAL-HUD COMPONENT LAYER
   Angular notched panels, corner brackets, blueprint grids,
   mono micro-labels, telemetry readouts + status dots.
   =========================================================== */

/* Angular notched panel — thin gradient "edge" + acrylic fill */
.hud-panel {
  --hud-cut: 16px;
  /* default notch: top-left + bottom-right */
  --hud-clip: polygon(var(--hud-cut) 0, 100% 0, 100% calc(100% - var(--hud-cut)), calc(100% - var(--hud-cut)) 100%, 0 100%, 0 var(--hud-cut));
  position: relative; isolation: isolate;
  background: linear-gradient(138deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.02) 44%, rgba(89,191,183,0.05) 100%);
  clip-path: var(--hud-clip);
  transition: transform 0.5s var(--dsm-ease-glass), background 0.4s ease, filter 0.4s ease;
}
.hud-panel::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none;
  background: var(--dsm-acrylic-sheen), var(--dsm-acrylic-base);
  backdrop-filter: blur(8px) saturate(1.05); -webkit-backdrop-filter: blur(8px) saturate(1.05);
  clip-path: var(--hud-clip);
}
.hud-panel--green { background: linear-gradient(135deg, rgba(1,172,73,0.26) 0%, rgba(255,255,255,0.08) 45%, rgba(1,172,73,0.1) 100%); }
.hud-panel--cyan  { background: linear-gradient(135deg, rgba(89,191,183,0.22) 0%, rgba(255,255,255,0.08) 45%, rgba(89,191,183,0.08) 100%); }
/* ---- Notch variations (keep the system from looking repetitive) ---- */
/* mirrored: top-right + bottom-left */
.hud-panel--alt {
  --hud-clip: polygon(0 0, calc(100% - var(--hud-cut)) 0, 100% var(--hud-cut), 100% 100%, var(--hud-cut) 100%, 0 calc(100% - var(--hud-cut)));
  background: linear-gradient(225deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 42%, rgba(89,191,183,0.08) 100%);
}
/* single clipped top-right corner — calmer, for dense grids */
.hud-panel--clip-tr {
  --hud-clip: polygon(0 0, calc(100% - var(--hud-cut)) 0, 100% var(--hud-cut), 100% 100%, 0 100%);
}
/* notched top edge only (left + right top corners) — banner/feature look */
.hud-panel--notch-top {
  --hud-clip: polygon(var(--hud-cut) 0, calc(100% - var(--hud-cut)) 0, 100% var(--hud-cut), 100% 100%, 0 100%, 0 var(--hud-cut));
}
.hud-panel--interactive { cursor: pointer; }
.hud-panel--interactive::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: var(--hud-clip);
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.05) 42%, rgba(89,191,183,0.05) 55%, transparent 100%);
  opacity: 0.08;
  animation: hudIdlePulse 6.5s ease-in-out infinite;
}
.hud-panel--interactive:nth-child(even)::after {
  animation-duration: 8.5s;
  animation-delay: -2s;
}
.hud-panel--interactive:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(1,172,73,0.36) 0%, rgba(89,191,183,0.15) 50%, rgba(1,172,73,0.22) 100%);
  filter: drop-shadow(0 20px 32px rgba(0,0,0,0.46));
}
.hud-panel--interactive:hover::after { opacity: 0.4; animation: hudSheenSlide 1.2s var(--dsm-ease-smooth) 1; }
.hud-panel--alt.hud-panel--interactive:hover { background: linear-gradient(225deg, rgba(89,191,183,0.24) 0%, rgba(1,172,73,0.22) 50%, rgba(89,191,183,0.18) 100%); }
@keyframes hudIdlePulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.2; }
}
@keyframes hudSheenSlide {
  0% { transform: translateX(-90%); opacity: 0.15; }
  100% { transform: translateX(85%); opacity: 0.35; }
}

/* Corner brackets — drop ONE <i class="hud-corners"></i> inside a panel.
   Draws an L at top-right + bottom-left (the square corners of a TL/BR notch). */
.hud-corners { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hud-corners::before, .hud-corners::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,0.5); opacity: 0.55;
}
.hud-corners::before { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hud-corners::after  { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.hud-corners--green::before, .hud-corners--green::after { border-color: var(--dsm-green); }
/* mirrored brackets to match .hud-panel--alt (top-left + bottom-right) */
.hud-corners--alt::before { top: 8px; left: 8px; right: auto; border: 1.5px solid var(--dsm-cyan); border-right: 0; border-bottom: 0; }
.hud-corners--alt::after  { bottom: 8px; right: 8px; left: auto; border: 1.5px solid var(--dsm-cyan); border-left: 0; border-top: 0; }
.hud-corners--alt.hud-corners--green::before, .hud-corners--alt.hud-corners--green::after { border-color: var(--dsm-green); }

/* Blueprint grid overlay — faint cyan technical grid */
.hud-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(var(--dsm-blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--dsm-blueprint) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 80%);
  overflow: hidden;
}

.hud-grid-scan-line {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hud-grid-scan-line--x {
  left: 0;
  right: 0;
  height: 1px;
  top: var(--scan-pos, 50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 16%,
    rgba(89,191,183,0.42) 50%,
    rgba(1,172,73,0.34) 72%,
    transparent 100%
  );
  animation: hudGridScanX var(--scan-dur, 1800ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hud-grid-scan-line--y {
  top: 0;
  bottom: 0;
  width: 1px;
  left: var(--scan-pos, 50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255,0.06) 16%,
    rgba(89,191,183,0.38) 50%,
    rgba(1,172,73,0.3) 72%,
    transparent 100%
  );
  animation: hudGridScanY var(--scan-dur, 2000ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hudGridScanX {
  0% { opacity: 0; transform: translateX(-16%); }
  18% { opacity: 0.36; }
  100% { opacity: 0; transform: translateX(16%); }
}

@keyframes hudGridScanY {
  0% { opacity: 0; transform: translateY(-16%); }
  18% { opacity: 0.32; }
  100% { opacity: 0; transform: translateY(16%); }
}

/* Mono micro-label — coordinates, sector tags, status text */
.hud-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--dsm-mono);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dsm-text-faint);
}
.hud-label--cyan { color: rgba(157,220,213,0.88); }
.hud-label--green { color: var(--dsm-green); }

/* Status dot — pair with .hud-label */
.hud-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; position: relative; }
.hud-dot--ok   { background: var(--dsm-green); box-shadow: 0 0 4px rgba(1,172,73,0.42); }
.hud-dot--active { background: var(--dsm-cyan); box-shadow: 0 0 4px rgba(89,191,183,0.38); }
.hud-dot--warn { background: var(--dsm-warn); box-shadow: 0 0 4px rgba(209,143,51,0.4); }
.hud-dot--active::after, .hud-dot--ok::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0; animation: hudPing 2.4s var(--dsm-ease-smooth) infinite;
}
.hud-dot--active::after { color: var(--dsm-cyan); }
.hud-dot--ok::after { color: var(--dsm-green); }
@keyframes hudPing { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

/* Diagonal section divider line */
.hud-divider {
  height: 1px; border: 0; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 30%, var(--dsm-green) 50%, rgba(255,255,255,0.18) 70%, transparent);
  opacity: 0.34;
}

/* Telemetry readout — segmented stat block */
.hud-readout { font-family: var(--dsm-mono); }
.hud-readout .hud-readout__val { font-variant-numeric: tabular-nums; }

/* ---------- Feature pills ---------- */
.feature-item {
  background: var(--dsm-acrylic-sheen), var(--dsm-acrylic-base);
  border: 1px solid var(--dsm-acrylic-border);
  padding: 16px 20px; border-radius: 4px;
  backdrop-filter: var(--dsm-acrylic-blur); -webkit-backdrop-filter: var(--dsm-acrylic-blur);
  min-width: 140px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.4s var(--dsm-ease-glass), background 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover { background: var(--dsm-acrylic-sheen), rgba(20,20,22,0.52); border-color: rgba(1,172,73,0.26); transform: translateY(-2px); }
.feature-item strong {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--dsm-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dsm-green); margin-bottom: 6px;
}
.feature-item strong svg { width: 12px; height: 12px; }
.feature-item span { display: block; font-size: 15px; font-weight: 500; color: #fff; }

/* ---------- Telemetry bars ---------- */
.tel-item { width: 100%; }
.tel-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--dsm-mono); font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.12em; }
.tel-val { color: var(--dsm-green); font-family: var(--dsm-mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tel-track { height: 6px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; position: relative; }
.tel-fill { height: 100%; background: linear-gradient(90deg, var(--dsm-green-deep), var(--dsm-green)); border-radius: 999px; box-shadow: 0 0 12px rgba(1,172,73,0.5); position: relative; }
.tel-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
}
.tel-item--cyan .tel-val { color: var(--dsm-cyan); }
.tel-item--cyan .tel-fill { background: linear-gradient(90deg, var(--dsm-cyan-deep), var(--dsm-cyan)); box-shadow: 0 0 8px rgba(89,191,183,0.4); }
.glass-card:hover .tel-fill::after, .hud-panel:hover .tel-fill::after { animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- Glass form fields ---------- */
.glass-field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dsm-border);
  border-radius: 2px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 0.75rem 1rem;
  font-size: 0.875rem; color: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.glass-field::placeholder { color: rgba(255,255,255,0.35); }
.glass-field:focus { border-color: var(--dsm-green); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(1,172,73,0.18); }
select.glass-field option { background: #111; color: #fff; }

/* ---------- Footer ---------- */
.dsm-footer { background: var(--dsm-bg-pure); border-top: 1px solid var(--dsm-border); position: relative; z-index: 10; }
.dsm-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 22%, var(--dsm-green) 50%, rgba(255,255,255,0.2) 78%, transparent 100%);
  opacity: 0.48;
}
.dsm-footer a { transition: color 0.2s ease; }

/* ---------- Scroll-reveal helper ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--dsm-ease-smooth), transform 0.8s var(--dsm-ease-smooth); }
.reveal[data-visible="true"] { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hud-grid-scan-line { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
