/* ============================================================
   INNOVEGIC — Design System
   Premium enterprise SaaS styling layered on top of TailwindCSS
   Palette: primary #0F4C81 | secondary #00B4D8 | accent #34D399
            dark #0F172A   | light #F8FAFC     | brand pink #E94560
   ============================================================ */

:root {
  --primary: #0F4C81;
  --secondary: #00B4D8;
  --accent: #34D399;
  --dark: #0F172A;
  --light: #F8FAFC;
  --pink: #E94560;
  --grad-brand: linear-gradient(135deg, #0F4C81 0%, #00B4D8 100%);
  --grad-hero: linear-gradient(135deg, #0F4C81 0%, #0891b2 55%, #34D399 130%);
  --shadow-soft: 0 10px 40px -12px rgba(15, 76, 129, 0.18);
  --shadow-lift: 0 24px 60px -16px rgba(15, 23, 42, 0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: #334155;
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  color: var(--dark);
}

::selection { background: rgba(0, 180, 216, 0.25); }

/* ---------- Typography helpers ---------- */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text-warm {
  background: linear-gradient(120deg, #00B4D8, #34D399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(15, 76, 129, 0.07);
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--grad-brand);
}
.eyebrow--dark {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
  border-color: rgba(125, 211, 252, 0.25);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.9rem;
  padding: 0.85rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 180, 216, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(0, 180, 216, 0.6); color: #fff; }
.btn-outline {
  border: 1.5px solid rgba(15, 76, 129, 0.35);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.45);
}
.btn-light:hover { transform: translateY(-2px); color: var(--secondary); }
.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:hover { transform: translateY(-2px); color: #fff; }

/* ---------- Header / Navigation ---------- */
#header { transition: transform 0.3s ease; }
.nav-shell {
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
#header.scrolled .nav-shell {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.15);
}
.nav-link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  padding: 0.5rem 0.15rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 1rem;
  box-shadow: var(--shadow-lift);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 60;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}
.dropdown-menu a:hover { background: rgba(0, 180, 216, 0.08); color: var(--primary); }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}
#mobile-menu.open { max-height: 640px; overflow-y: auto; }
#mobile-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #475569;
  border-left: 3px solid transparent;
}
#mobile-menu a.active, #mobile-menu a:hover {
  color: var(--primary);
  border-left-color: var(--secondary);
  background: rgba(0, 180, 216, 0.06);
}

/* ---------- Glassmorphism & cards ---------- */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card {
  background-color: #fff; /* color only — lets Tailwind bg-gradient-* utilities layer on top */
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0, 180, 216, 0.35);
}
.card-top-accent { position: relative; overflow: hidden; }
.card-top-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-top-accent:hover::before { transform: scaleX(1); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.35rem;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 22px -8px rgba(0, 180, 216, 0.55);
  transition: transform 0.35s ease;
}
.card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.2);
  padding: 0.4rem;
  transition: transform 0.35s ease;
}
.logo-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card:hover .logo-badge { transform: scale(1.08) rotate(-4deg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.chip i { color: var(--accent); font-size: 0.7rem; }

/* ---------- Sections ---------- */
.section-pad { padding: 6rem 0; }
@media (max-width: 768px) { .section-pad { padding: 4rem 0; } }

.section-dark {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(0, 180, 216, 0.16), transparent),
    radial-gradient(ellipse 50% 45% at 85% 100%, rgba(52, 211, 153, 0.1), transparent),
    var(--dark);
  color: #cbd5e1;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 11rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 15% 10%, rgba(0, 180, 216, 0.2), transparent),
    radial-gradient(ellipse 45% 55% at 90% 15%, rgba(52, 211, 153, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 60% 100%, rgba(233, 69, 96, 0.08), transparent),
    var(--dark);
}
@media (max-width: 768px) { .page-hero { padding: 8.5rem 0 4rem; } }
.page-hero h1, .page-hero h2, .page-hero h3 { color: #fff; }
.page-hero p { color: #cbd5e1; }

/* Grid pattern overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Floating decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  animation: blob-float 12s ease-in-out infinite;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -30px) scale(1.06); }
  66% { transform: translate(-18px, 20px) scale(0.96); }
}

.float-slow { animation: floaty 7s ease-in-out infinite; }
.float-slower { animation: floaty 10s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ---------- Stats counters ---------- */
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
}
.timeline-item { position: relative; padding-left: 3.25rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.55rem; top: 0.35rem;
  width: 1rem; height: 1rem;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--secondary);
  box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.15);
}

/* ---------- AI orbit graphic ---------- */
.ai-orbit {
  position: relative;
  width: min(420px, 85vw);
  aspect-ratio: 1;
  margin-inline: auto;
}
.ai-orbit .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.35);
  animation: spin 40s linear infinite;
}
.ai-orbit .ring--mid { inset: 14%; animation-duration: 30s; animation-direction: reverse; border-color: rgba(52, 211, 153, 0.35); }
.ai-orbit .ring--inner { inset: 28%; animation-duration: 22s; border-color: rgba(233, 69, 96, 0.3); }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-orbit .core {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  box-shadow: 0 0 60px rgba(0, 180, 216, 0.55), 0 0 120px rgba(0, 180, 216, 0.25);
  animation: pulse-glow 3.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 50px rgba(0, 180, 216, 0.45), 0 0 100px rgba(0, 180, 216, 0.2); }
  50% { box-shadow: 0 0 80px rgba(0, 180, 216, 0.7), 0 0 150px rgba(0, 180, 216, 0.35); }
}
.ai-orbit .node {
  position: absolute;
  width: 3rem; height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Forms ---------- */
.form-input {
  width: 100%;
  border: 1.5px solid rgba(15, 76, 129, 0.15);
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.14);
}
.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.45rem;
}

/* ---------- FAQ / accordion ---------- */
details.faq {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
details.faq[open] { box-shadow: var(--shadow-soft); border-color: rgba(0, 180, 216, 0.3); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "\2b";
  font-size: 1.2rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 1.4rem 1.25rem; color: #64748b; font-size: 0.95rem; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: #7dd3fc; padding-left: 4px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}
.social-btn:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); }

/* ---------- Utilities ---------- */
.img-tint {
  filter: saturate(0.9);
  border-radius: 1.25rem;
}
#back-to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 40;
  width: 2.9rem; height: 2.9rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 25px -8px rgba(0, 180, 216, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

#whatsapp-fab {
  position: fixed;
  right: 1.4rem; bottom: 5rem;
  z-index: 40;
  width: 2.9rem; height: 2.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  background: #25D366;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s ease;
}
#whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  z-index: 70;
  bottom: 1.4rem;
  left: 1.4rem;
  width: min(380px, calc(100vw - 2.8rem));
}
#cookie-banner .cookie-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
  animation: cookie-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Case study image hover */
.case-img-wrap { overflow: hidden; border-radius: 1.25rem 1.25rem 0 0; }
.case-img-wrap img { transition: transform 0.6s ease; width: 100%; height: 230px; object-fit: cover; }
.card:hover .case-img-wrap img { transform: scale(1.06); }

/* Table of tech badges */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
