/* SignalHunt — custom motion, glass, constellation helpers. Utilities come from Tailwind. */
:root {
  --ink: #050B14;
  --ink-2: #0b1522;
  --accent: #00A3FF;
  --accent-2: #007BFF;
  --deep: #1E40AF;
  --text: #FFFFFF;
  --mute: #94A3B8;
  --glass: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(0, 163, 255, 0.3);
  --card-border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 25px rgba(0, 163, 255, 0.45);
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

html, body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
}

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #00A3FF;
  color: #050B14;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Fixed constellation canvas */
#constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-shell { position: relative; z-index: 1; }

/* Floating translucent icons in the hero */
.float-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  color: #00A3FF;
  opacity: 0.16;
  filter: blur(0.2px);
  animation: floatY 9s ease-in-out infinite;
}
.float-icon svg { width: 100%; height: 100%; }
.fi-1 { top: 12%; left: 8%; animation-duration: 8s; animation-delay: -1s; }
.fi-2 { top: 22%; right: 14%; animation-duration: 11s; animation-delay: -3s; width: 48px; }
.fi-3 { top: 62%; left: 16%; animation-duration: 10s; animation-delay: -2s; width: 44px; }
.fi-4 { bottom: 14%; right: 22%; animation-duration: 12s; animation-delay: -5s; }
.fi-5 { top: 40%; left: 46%; animation-duration: 9.5s; animation-delay: -4s; width: 40px; opacity: 0.12; }
.fi-6 { top: 8%; right: 38%; animation-duration: 13s; animation-delay: -6s; width: 36px; }

@keyframes floatY {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6px, -18px, 0) rotate(6deg); }
}

/* Navbar */
.nav-blur {
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drop {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.drop-trigger:hover .nav-drop,
.drop-trigger:focus-within .nav-drop,
.drop-trigger.open .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-inner {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04);
  padding: 8px;
}
.nav-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.925rem;
  font-weight: 560;
}
.nav-drop a:hover, .nav-drop a:focus {
  background: rgba(0, 163, 255, 0.12);
  outline: none;
}
.nav-drop a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 2px;
}

/* CTAs */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.btn-glow {
  border: 1.5px solid #00A3FF;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 163, 255, 0.16), rgba(30, 64, 175, 0.18));
  box-shadow: 0 0 25px rgba(0, 163, 255, 0.45);
  padding: 0.95rem 1.85rem;
}
.btn-glow:hover, .btn-glow:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 32px rgba(0, 163, 255, 0.65);
  outline: none;
}
.btn-demo {
  border: 1.5px solid #00A3FF;
  color: #fff;
  background: #007BFF;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.35);
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}
.btn-demo:hover, .btn-demo:focus-visible {
  transform: scale(1.05);
  background: #00A3FF;
  color: #050B14;
  outline: none;
}

/* Hero type */
.eyebrow {
  color: #94A3B8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
}
.hero-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #fff;
}
.grad-auto {
  background: linear-gradient(105deg, #00A3FF 0%, #6EC9FF 42%, #007BFF 72%, #1E40AF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass notification card — exact spec */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 163, 255, 0.12);
  animation: cardSlideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
             cardLevitate 4.2s ease-in-out 0.9s infinite;
  will-change: transform, opacity;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translate3d(48px, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes cardLevitate {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s ease-out infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
  80% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Feature cards */
.feature-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(5, 11, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover {
  transform: translateY(-4px); /* -translate-y-1 (4px) */
  border-color: rgba(0, 163, 255, 0.28);
}
.feature-card.featured {
  border-top: 2px solid #00A3FF;
  box-shadow: 0 -6px 28px rgba(0, 163, 255, 0.45), 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Workflow waves */
.wave-wrap { position: relative; }
.wave-svg {
  width: 100%;
  height: 180px;
  overflow: visible;
}
.wave-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.75;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.95))
          drop-shadow(0 0 10px rgba(0,163,255,0.7));
}
.wave-node {
  fill: #050B14;
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9))
          drop-shadow(0 0 10px rgba(0,163,255,0.8));
}
.wave-particle {
  fill: #00A3FF;
  filter: drop-shadow(0 0 8px #00A3FF) drop-shadow(0 0 16px #fff);
}

.step-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(180deg, #00A3FF, #1E40AF);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 163, 255, 0.45);
}

/* Pricing */
.price-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(5, 11, 20, 0.96));
  border: 1px solid rgba(0, 163, 255, 0.32);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 163, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 0 40px rgba(0, 163, 255, 0.15);
}

input, select, textarea {
  background: rgba(5, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #00A3FF;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.2);
}
label { color: #94A3B8; font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }

/* Legal */
.legal-banner {
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid rgba(0, 163, 255, 0.35);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #fff;
}
.legal-prose { color: #cbd5e1; }
.legal-prose h2 {
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
}
.legal-prose h3 { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.legal-prose p, .legal-prose li { line-height: 1.7; margin-bottom: 0.75rem; }
.legal-prose a { color: #00A3FF; text-decoration: underline; text-underline-offset: 3px; }
.legal-prose ul { padding-left: 1.2rem; list-style: disc; }
.legal-prose ol { padding-left: 1.2rem; list-style: decimal; }
.legal-toc a { color: #94A3B8; }
.legal-toc a:hover { color: #00A3FF; }

/* Portal */
.demo-ribbon {
  background: linear-gradient(90deg, #1E40AF, #007BFF);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
}
.kpi {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.kpi-value {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.85rem;
  color: #fff;
  white-space: nowrap;
}
.badge-demo {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00A3FF;
  border: 1px solid rgba(0, 163, 255, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #94A3B8;
  font-weight: 600;
  font-size: 0.925rem;
}
.side-link:hover, .side-link:focus { color: #fff; background: rgba(0, 163, 255, 0.1); outline: none; }
.side-link.active {
  color: #fff;
  background: rgba(0, 163, 255, 0.16);
  border: 1px solid rgba(0, 163, 255, 0.3);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th {
  text-align: left;
  color: #94A3B8;
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
table.data td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #e2e8f0;
}
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
}
.tag-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.tag-blue { background: rgba(0, 163, 255, 0.15); color: #7dd3fc; }
.tag-mute { background: rgba(148, 163, 184, 0.12); color: #94A3B8; }
.tag-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Mobile nav */
.mobile-panel {
  display: none;
  background: rgba(5, 11, 20, 0.96);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-panel.open { display: block; }
.mobile-acc { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-acc-body { display: none; padding: 0 0 0.75rem 0.5rem; }
.mobile-acc.open .mobile-acc-body { display: block; }

@media (max-width: 767px) {
  .wave-svg { height: 220px; }
  .hero-title { font-size: 2.35rem; }
  .float-icon { opacity: 0.1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-icon,
  .glass-card,
  .pulse-dot,
  .wave-particle,
  .btn-glow,
  .btn-demo,
  .feature-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto;
  }
  .btn-glow:hover, .btn-demo:hover, .feature-card:hover {
    transform: none !important;
  }
}


/* Previously inline (removed so a strict CSP can omit 'unsafe-inline'). */
.glass-card.enter {
  animation: cardSlideIn 0.6s ease both;
}
.btn-home-glow {
  box-shadow: 0 0 25px rgba(0, 163, 255, 0.45);
}
