/* ===================== AITHSENSE — shared design system ===================== */
:root {
      --brand-cyan: 34 211 238;
      --brand-azure: 59 130 246;
      --brand-violet: 139 92 246;
      --brand-magenta: 217 70 239;
    }
    * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
    html, body { background: #030610; color: #e6edf6; scroll-behavior: smooth; overflow-x: hidden; font-family: "Outfit", ui-sans-serif, system-ui; }
    ::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

    /* Brand gradient text */
    .text-gradient {
      background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 40%, #8b5cf6 70%, #d946ef 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent; color: transparent;
      animation: gradient-x 8s ease infinite;
    }
    @keyframes gradient-x { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

    /* Grid background */
    .bg-grid {
      background-image:
        linear-gradient(to right, rgba(56,189,248,0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56,189,248,0.07) 1px, transparent 1px);
      background-size: 56px 56px;
    }
    .bg-grid-fade {
      -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
      mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    }

    /* Glass panel */
    .glass-panel {
      background: linear-gradient(180deg, rgba(15,23,51,0.55) 0%, rgba(6,10,23,0.75) 100%);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(120,150,220,0.12);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 50px -20px rgba(0,0,0,0.65);
    }
    .glass-panel-hover { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
    .glass-panel-hover:hover {
      border-color: rgba(34,211,238,0.45);
      box-shadow: 0 0 40px -10px rgba(34,211,238,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    }

    /* Glow ring */
    .glow-ring { position: relative; }
    .glow-ring::before {
      content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(34,211,238,0.6), rgba(139,92,246,0.35), rgba(217,70,239,0.5));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      opacity: 0; transition: opacity .3s ease; pointer-events: none;
    }
    .glow-ring:hover::before { opacity: 1; }

    /* Scan line */
    .scanline {
      position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(180deg, transparent 0%, rgba(34,211,238,0.12) 50%, transparent 100%);
      height: 30%; animation: scan 5s linear infinite;
    }
    @keyframes scan { 0% { transform: translateY(-100%);} 100% { transform: translateY(400%);} }

    /* Marquee */
    @keyframes marquee-y { 0% { transform: translateY(0);} 100% { transform: translateY(-50%);} }
    .marquee-y { animation: marquee-y 30s linear infinite; }

    /* Dotted divider */
    .dot-divider { background-image: radial-gradient(rgba(120,150,220,0.3) 1px, transparent 1px); background-size: 8px 8px; }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: #060a17; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #22d3ee, #8b5cf6); border-radius: 8px; border: 2px solid #060a17; }
    ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #67e8f9, #a78bfa); }

    /* Conic spinner */
    .conic-spin {
      background: conic-gradient(from 0deg, transparent 0deg, rgba(34,211,238,0.7) 70deg, rgba(139,92,246,0.7) 140deg, rgba(217,70,239,0.7) 210deg, transparent 280deg);
    }

    /* Noise overlay */
    .noise::after {
      content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035; mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
    }

    /* Flowing line */
    .flowing-line { stroke-dasharray: 6 6; animation: flow 1.5s linear infinite; }
    @keyframes flow { to { stroke-dashoffset: -24; } }

    /* Scroll reveal */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.in-view { opacity: 1; transform: translateY(0); }
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1 !important; transform: none !important; }
      .text-gradient, .marquee-y, .scanline, .flowing-line, .animate-float, .animate-spin-slow, .animate-spin-reverse { animation: none !important; }
    }

    [data-lucide] { width: 1em; height: 1em; }
/* ============ Page-top ambient glow (reddish/violet like the brand pages) ============ */
.page-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.page-glow::before {
  content: ""; position: absolute; top: -10rem; left: 50%; transform: translateX(-50%);
  width: 70rem; height: 40rem; border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(217,70,239,0.16), transparent 60%);
}
.page-glow.danger::before { background: radial-gradient(ellipse at center, rgba(244,63,94,0.18), transparent 60%); }

/* ============ Nav dropdown ============ */
.nav-item { position: relative; }
.nav-item > .nav-trigger { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-caret { transition: transform .25s ease; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; padding: 0.5rem; border-radius: 1rem;
  background: linear-gradient(180deg, rgba(15,23,51,0.92), rgba(6,10,23,0.96));
  border: 1px solid rgba(120,150,220,0.16);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(10px);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem;
  font-size: 0.85rem; color: #cbd5e1; transition: background .2s ease, color .2s ease; text-transform: none; letter-spacing: 0;
}
.nav-dropdown a:hover { background: rgba(34,211,238,0.08); color: #fff; }
.nav-dropdown a .ico { color: #22d3ee; display: inline-flex; }

/* ============ Pink / POC button ============ */
.btn-poc {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.55rem 1.1rem; font-weight: 600;
  color: #fff; overflow: hidden; transition: transform .3s ease;
  white-space: nowrap;
}
.btn-poc:hover { transform: scale(1.03); }
.btn-poc > .bg { position: absolute; inset: 0; background: linear-gradient(90deg, #d946ef, #a855f7); }
.btn-poc > .glow { position: absolute; inset: -3px; z-index: -1; border-radius: 9999px; background: linear-gradient(90deg,#d946ef,#a855f7); opacity:.5; filter: blur(16px); transition: opacity .3s ease; }
.btn-poc:hover > .glow { opacity: .85; }
.btn-poc > span.label { position: relative; z-index: 1; }

.btn-cyan {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.8rem 1.6rem; font-weight: 700; color: #03121a; overflow: hidden; transition: transform .3s ease;
}
.btn-cyan:hover { transform: scale(1.03); }
.btn-cyan > .bg { position: absolute; inset: 0; background: linear-gradient(90deg,#22d3ee,#06b6d4); }
.btn-cyan > .glow { position: absolute; inset: -4px; z-index: -1; border-radius: 9999px; background: #22d3ee; opacity:.45; filter: blur(20px); transition: opacity .3s ease; }
.btn-cyan:hover > .glow { opacity: .8; }
.btn-cyan > span.label { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.8rem 1.6rem; font-weight: 600; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.02);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.btn-outline:hover { border-color: rgba(34,211,238,0.6); color: #fff; background: rgba(34,211,238,0.05); }

/* ============ "Help" card teal glow (industry pages) ============ */
.card-help {
  border-color: rgba(34,211,238,0.35) !important;
  box-shadow: 0 0 50px -16px rgba(34,211,238,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(8,38,46,0.55) 0%, rgba(6,10,23,0.8) 100%);
}

/* ============ Form fields ============ */
.field-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.field {
  width: 100%; margin-top: 0.5rem; border-radius: 0.7rem; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1);
  color: #e6edf6; font-size: 0.95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #64748b; }
.field:focus { outline: none; border-color: rgba(34,211,238,0.6); box-shadow: 0 0 0 3px rgba(34,211,238,0.12); }
select.field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; }
textarea.field { resize: vertical; min-height: 120px; }

/* ============ How-it-works stepper ============ */
.stepper-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(180deg,#22d3ee,#8b5cf6,#d946ef); opacity: .5; }
.step-node {
  position: relative; z-index: 1; display: grid; place-items: center; height: 48px; width: 48px; border-radius: 9999px;
  border: 1px solid rgba(34,211,238,0.35); background: rgba(6,10,23,0.9);
  box-shadow: 0 0 24px -6px rgba(34,211,238,0.5);
}
.mock-tile { position: relative; aspect-ratio: 16/10; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08); display: grid; place-items: center; overflow: hidden; }
.mock-tile .badge { display: grid; place-items: center; height: 64px; width: 64px; border-radius: 9999px; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.12); font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.12em; color: #cbd5e1; text-align: center; line-height: 1.3; }
.mock-cyan   { background: linear-gradient(135deg, rgba(8,47,73,0.9), rgba(49,16,82,0.85)); }
.mock-amber  { background: linear-gradient(135deg, rgba(69,52,8,0.9), rgba(49,16,82,0.85)); }
.mock-rose   { background: linear-gradient(135deg, rgba(76,12,30,0.9), rgba(20,16,60,0.85)); }
.mock-blue   { background: linear-gradient(135deg, rgba(8,30,73,0.9), rgba(49,16,82,0.85)); }
.mock-green  { background: linear-gradient(135deg, rgba(6,55,42,0.9), rgba(49,16,82,0.85)); }

/* ============ Misc ============ */
.bullet-list li { position: relative; padding-left: 1.25rem; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: 0.6rem; height: 5px; width: 5px; border-radius: 9999px; background: #22d3ee; }
.eyebrow-pink { color: #d946ef; }

/* ============ Logo (Aperture A) ============ */
.logo-svg {
  display: block;
  transition: filter 0.35s ease, transform 0.35s ease;
}
a:hover .logo-svg,
.logo-svg:hover {
  filter: drop-shadow(0 0 14px rgba(34,211,238,0.35)) drop-shadow(0 0 22px rgba(139,92,246,0.18));
  transform: translateZ(0) scale(1.015);
}
.btn-incident {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  border-radius: 9999px; padding: 0.55rem 1.1rem; font-weight: 600;
  color: #fda4af; /* signal-danger lighter for readability on dark bg */
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.08);
  white-space: nowrap;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-incident:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.85);
  transform: scale(1.02);
}
.btn-incident > .pulse-dot { position: relative; display: inline-flex; width: 8px; height: 8px; }
.btn-incident > .pulse-dot > .ping {
  position: absolute; inset: 0; border-radius: 9999px; background: #f43f5e; opacity: 0.7;
  animation: btnIncidentPing 1.6s ease-out infinite;
}
.btn-incident > .pulse-dot > .core {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: #f43f5e;
}
@keyframes btnIncidentPing {
  0%   { transform: scale(1);   opacity: 0.7; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
.btn-incident > .label { position: relative; z-index: 1; }

