/* =========================================================================
   Ingenia AI Lab — Premium light corporate design system
   Tailwind handles layout/colour utilities; this file owns the
   typography, gradients, glass, and motion that make it feel bespoke.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Dark navy theme — electric blue + terminal green */
  --brand-blue: #2563eb;
  --brand-electric: #2563eb;
  --brand-cyan: #22d3ee;
  --brand-terminal: #10b981;
  --navy-950: #070b14;
  --navy-900: #0b1120;
  --navy-800: #151e32;
  --navy-700: #1e293b;
  --glow-blue: rgba(37, 99, 235, 0.5);
  --glow-blue-soft: rgba(37, 99, 235, 0.32);
  --ink: #0f172a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}

.font-display {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Selection + scrollbar ---------- */
::selection { background: rgba(37, 99, 235, 0.35); color: #dbeafe; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; border: 3px solid #f1f5f9; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(110deg, #0367e1 0%, #38bdf8 50%, #00298d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-cyan {
  background: linear-gradient(110deg, #22d3ee 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Glass navigation ---------- */
.glass-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
}

/* ---------- Hero mesh + grid backdrops ---------- */
.mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 15% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(45% 55% at 85% 5%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(50% 60% at 60% 100%, rgba(56, 189, 248, 0.16), transparent 60%);
  pointer-events: none;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
  pointer-events: none;
}
.dot-bg {
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Floating blobs ---------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 14s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -28px, 0) scale(1.06); }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hover lift + glow ---------- */
.hover-lift {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(37, 99, 235, 0.45);
  border-color: rgba(37, 99, 235, 0.5);
}

/* ---------- Gradient border card ---------- */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 1rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(37, 99, 235, 0.6), rgba(56, 189, 248, 0.4), rgba(16, 185, 129, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Premium buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 16px var(--glow-blue), 0 4px 14px var(--glow-blue-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(37, 99, 235, 0.75), 0 8px 22px rgba(37, 99, 235, 0.5); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-electric); box-shadow: 0 0 14px rgba(37, 99, 235, 0.25); }

/* ---------- Electric / terminal neon glow ---------- */
.glow-blue { box-shadow: 0 0 16px var(--glow-blue), 0 4px 14px var(--glow-blue-soft); }
.glow-terminal { box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), 0 4px 14px rgba(16, 185, 129, 0.3); }

/* ---------- Marquee logo strip ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Icon tile ---------- */
.icon-tile {
  background: linear-gradient(135deg, #e0f9ff, #e6f6ff);
  color: var(--brand-blue);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hover-lift:hover .icon-tile {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 0 18px var(--glow-blue);
}

/* ---------- Animated gradient pill / shimmer badge ---------- */
.shimmer {
  background: linear-gradient(110deg, #1e40af 35%, #60a5fa 50%, #1e40af 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.pulse-dot { position: relative; }
.pulse-dot::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 9999px;
  background: inherit;
  animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Tilt card sheen ---------- */
.sheen { position: relative; overflow: hidden; }
.sheen::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(6, 177, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.sheen:hover::before { opacity: 1; }

/* ---------- Underline link ---------- */
.link-arrow i, .link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover i, .link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Number ticker monospacing for stability ---------- */
.counter, .roi-out { font-variant-numeric: tabular-nums; }

/* ---------- Accordion ---------- */
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }

/* ---------- Nav mega-menu dropdown ---------- */
.nav-has-menu { position: relative; }
.nav-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
  z-index: 60;
}
.nav-has-menu:hover .nav-menu,
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-caret { transition: transform 0.25s var(--ease); }
.nav-has-menu:hover .nav-caret,
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* ---------- Workflow orchestrator lab ---------- */
.wf-tab { color: #94a3b8; }
.wf-tab.active {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #2a3a55;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.25);
}
.wf-step-icon { transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.wf-step-icon.wf-active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.6);
}
.wf-step-icon.wf-done {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
/* =========================================================================
   DARK NAVY THEME — applied site-wide via <body class="theme-dark">.
   Remaps the light utility classes the pages were built with onto deep navy
   surfaces with electric-blue + terminal-green accents, so no per-element
   edits are needed.
   ========================================================================= */
body.theme-dark { background-color: var(--navy-950); color: #cbd5e1; }

/* Surfaces */
.theme-dark .bg-white { background-color: var(--navy-800) !important; }
.theme-dark .bg-slate-50,
.theme-dark [class*="bg-slate-50/"],
.theme-dark .bg-slate-100,
.theme-dark [class*="bg-slate-100/"] { background-color: var(--navy-900) !important; }
.theme-dark .bg-slate-900 { background-color: var(--navy-900) !important; }
.theme-dark [class*="bg-white/"] { background-color: rgba(21, 30, 50, 0.7) !important; }

/* Text */
.theme-dark .text-slate-900 { color: #f1f5f9 !important; }
.theme-dark .text-slate-800 { color: #e2e8f0 !important; }
.theme-dark .text-slate-700 { color: #cbd5e1 !important; }
.theme-dark .text-slate-600 { color: #94a3b8 !important; }
.theme-dark .text-slate-500 { color: #6b7a90 !important; }
.theme-dark .text-slate-400 { color: #55617a !important; }

/* Borders */
.theme-dark .border-slate-200,
.theme-dark .border-slate-300 { border-color: var(--navy-700) !important; }
.theme-dark .border-slate-100,
.theme-dark [class*="border-slate-100/"],
.theme-dark [class*="border-slate-200/"],
.theme-dark [class*="border-white/"] { border-color: rgba(30, 41, 59, 0.6) !important; }

/* Glass nav */
.theme-dark .glass-nav { background: rgba(7, 11, 20, 0.72) !important; border-bottom-color: transparent; }
.theme-dark .glass-nav.scrolled {
  background: rgba(7, 11, 20, 0.9) !important;
  border-bottom-color: rgba(30, 41, 59, 0.8) !important;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}

/* Pastel accent chips → translucent on navy */
.theme-dark .bg-blue-50,
.theme-dark [class*="bg-blue-50/"],
.theme-dark .bg-violet-50 { background-color: rgba(37, 99, 235, 0.14) !important; }
.theme-dark .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.14) !important; }
.theme-dark .bg-cyan-50 { background-color: rgba(34, 211, 238, 0.14) !important; }
.theme-dark .bg-amber-50 { background-color: rgba(245, 158, 11, 0.14) !important; }
.theme-dark .border-blue-100 { border-color: rgba(37, 99, 235, 0.3) !important; }

/* Mega-menu panel + dropdown surfaces */
.theme-dark .nav-menu .bg-white { background-color: var(--navy-800) !important; }

/* Grid / dot backdrops — lighten so they read on navy */
.theme-dark .grid-bg {
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
}
.theme-dark .dot-bg { background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px); }

/* Components in dark */
.theme-dark .gradient-border { background: var(--navy-800); }
.theme-dark .icon-tile { background: rgba(37, 99, 235, 0.14); color: #60a5fa; }
.theme-dark .btn-ghost { color: #cbd5e1; background: rgba(21, 30, 50, 0.5); }
.theme-dark .btn-ghost:hover { background: rgba(21, 30, 50, 0.85); }

/* Dark scrollbar */
.theme-dark ::-webkit-scrollbar-track { background: var(--navy-900); }
.theme-dark ::-webkit-scrollbar-thumb { background: var(--navy-700); border: 3px solid var(--navy-900); }
.theme-dark ::-webkit-scrollbar-thumb:hover { background: #2a3a55; }

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