/* Neon "command centre" theme (29 Nov 2026). Our own design, inspired by dark AI healthcare dashboards: emerald + cyan light drawn in CSS,
   so it stays sharp on 4K screens and adds no image weight. Also the live pulse line and status chips in the home hero, for every theme. */

html[data-theme="neon"] {
  --navy: #eafff8; --navy-2: #0f3b3a; --deep: #02060c;
  --blue: #10d9a0; --link: #5ef2d0; --accent-rgb: 16,217,160; --accent-edge: #067a5b; --on-accent: #02140f;
  --blue-soft: #0b2a26; --teal: #22d3ee; --teal-soft: #0a2a33; --teal-ink: #8af0ff;
  --ink: #d9f3ee; --muted: #8fb3ad; --line: #133a3a; --bg: #03080f; --bg-alt: #061019; --surface: #07141c; --header-bg: rgba(3,8,15,.82);
  --hero-from: #03101a; --hero-to: #03080f; --hero-glow: rgba(16,217,160,.22); --field-border: #1f5b55;
  --intro-1: #061521; --intro-2: #040d16; --intro-3: #02060c;
  --note-bg: #10261d; --note-border: #1f5b44; --note-ink: #a7f3d0;
  --band-end: #066e66; --band-text: #d9f3ee; --band-muted: #a9d8cf; --footer-text: #8fb3ad; --cta-text: #ffffff; --cta-sub: #d9fff4; --cta-to: #0891b2;
  --on-light: #02140f;
  --glass-top: rgba(16,217,160,.10); --glass-bottom: rgba(34,211,238,.04); --glass-border: rgba(94,242,208,.28); --glass-edge: rgba(0,0,0,.6); --glass-ring: rgba(94,242,208,.16);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.45); --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.6);
  --neon: 0 0 6px rgba(16,217,160,.55), 0 0 22px rgba(34,211,238,.25);
  color-scheme: dark;
}

/* Background: soft light pools and a faint grid, like a control room screen */
html[data-theme="neon"] body.v2 {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(800px 520px at -10% 30%, rgba(16,217,160,.10), transparent 60%),
    linear-gradient(rgba(94,242,208,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(94,242,208,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
html[data-theme="neon"] .hero { background: transparent; }
html[data-theme="neon"] .v2 h1 {
  background: linear-gradient(92deg, #ffffff 0%, #b8fff0 45%, #10d9a0 70%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(16,217,160,.28));
}
html[data-theme="neon"] .v2 h2 { text-shadow: 0 0 22px rgba(16,217,160,.22); }
html[data-theme="neon"] .eyebrow { color: #5ef2d0; text-shadow: var(--neon); }
html[data-theme="neon"] header, html[data-theme="neon"] .site-header { box-shadow: 0 1px 0 rgba(94,242,208,.35), 0 8px 30px rgba(16,217,160,.08); }

/* Buttons and cards glow */
html[data-theme="neon"] .btn-primary, html[data-theme="neon"] .btn:not(.btn-light):not(.btn-ghost) { box-shadow: var(--neon), inset 0 1px 0 rgba(255,255,255,.25); }
html[data-theme="neon"] .btn-primary:hover, html[data-theme="neon"] .btn:not(.btn-light):not(.btn-ghost):hover { box-shadow: 0 0 10px rgba(16,217,160,.8), 0 0 36px rgba(34,211,238,.45); }
html[data-theme="neon"] .card, html[data-theme="neon"] .mod, html[data-theme="neon"] .stat, html[data-theme="neon"] .float-card {
  border-color: rgba(94,242,208,.22);
  box-shadow: 0 0 0 1px rgba(94,242,208,.06), 0 10px 30px rgba(0,0,0,.45);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
html[data-theme="neon"] .card:hover, html[data-theme="neon"] .mod:hover {
  border-color: rgba(94,242,208,.6);
  box-shadow: 0 0 0 1px rgba(94,242,208,.35), 0 0 26px rgba(16,217,160,.22), 0 14px 40px rgba(0,0,0,.5);
}
html[data-theme="neon"] .stat b { color: #5ef2d0; text-shadow: var(--neon); }
html[data-theme="neon"] .chip { border-color: rgba(94,242,208,.45); color: #a7fff0; box-shadow: 0 0 10px rgba(16,217,160,.18); }

/* Hero screen: neon frame, scanning light */
html[data-theme="neon"] .mock {
  border-color: rgba(94,242,208,.55);
  box-shadow: 0 0 0 1px rgba(94,242,208,.25), 0 0 40px rgba(16,217,160,.35), 0 0 120px rgba(34,211,238,.18), 0 30px 80px rgba(0,0,0,.6);
  position: relative;
}
html[data-theme="neon"] .mock::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(94,242,208,.12), transparent);
  animation: neon-scan 5.5s linear infinite;
}
@keyframes neon-scan { to { top: 100%; } }

/* Live pulse line and status chips under the hero screen (all themes; colours follow the theme) */
.hero-pulse { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.hero-pulse svg { flex: 1; height: 44px; width: 100%; overflow: visible; }
.hero-pulse path { fill: none; stroke: rgb(var(--accent-rgb)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 620; stroke-dashoffset: 620; animation: pulse-draw 3.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .7)); }
@keyframes pulse-draw { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -620; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.live-dot i { width: 9px; height: 9px; border-radius: 50%; background: #10d9a0; box-shadow: 0 0 0 0 rgba(16,217,160,.6); animation: live-ping 1.8s ease-out infinite; }
@keyframes live-ping { 70% { box-shadow: 0 0 0 9px rgba(16,217,160,0); } 100% { box-shadow: 0 0 0 0 rgba(16,217,160,0); } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-chips span { font-size: .78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-border, var(--line)); background: var(--surface); color: var(--ink); }
.float-card.c { right: 6%; bottom: -14px; animation-delay: -1.5s; }
html[data-theme="neon"] .hero-chips span { border-color: rgba(94,242,208,.4); box-shadow: 0 0 12px rgba(16,217,160,.15); background: rgba(7,20,28,.8); }
@media (max-width: 900px) { .float-card.c { right: 8px; } }
@media (max-width: 520px) { .hero-pulse svg { height: 34px; } }

@media (prefers-reduced-motion: reduce) {
  html[data-theme="neon"] .mock::after, .hero-pulse path, .live-dot i { animation: none; }
  .hero-pulse path { stroke-dashoffset: 0; }
}

/* Intro splash on the neon theme */
html[data-theme="neon"] .intro-tag { background: linear-gradient(90deg, #5ef2d0, #ffffff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="neon"] .intro-former { color: rgba(255,255,255,.75); }