/* ============================================================
   INSIGHT INTELLI — Main Stylesheet
   Rewritten: March 2026 · Mobile-first · Design Tokens
   ============================================================ */

/* ========== 1. DESIGN TOKENS ========== */

:root {
  /* Brand colors — refined warm signature with deeper extremes */
  --color-brand: #ff6a00;
  --color-brand-light: #ff8a2c;
  --color-brand-dark: #c44f00;
  --color-brand-deep: #7a2e00;
  --color-brand-alpha-10: rgba(255, 106, 0, 0.1);
  --color-brand-alpha-15: rgba(255, 106, 0, 0.15);
  --color-brand-alpha-20: rgba(255, 106, 0, 0.2);
  --color-brand-alpha-30: rgba(255, 106, 0, 0.3);
  --color-brand-alpha-50: rgba(255, 106, 0, 0.5);

  /* Accent (used sparingly for "AI" depth) */
  --color-accent: #5b6bf0;
  --color-accent-soft: rgba(91, 107, 240, 0.08);

  /* Neutral palette — cooler, more refined Tailwind-grade slate */
  --color-white: #ffffff;
  --color-black: #0a0e14;
  --color-ink: #0b1220;
  --color-gray-50: #f7f8fb;
  --color-gray-100: #eef1f6;
  --color-gray-200: #e2e6ee;
  --color-gray-300: #c8cfdb;
  --color-gray-400: #8a93a6;
  --color-gray-500: #5f6877;
  --color-gray-600: #434a59;
  --color-gray-700: #2d3340;
  --color-gray-800: #1a1f2b;
  --color-gray-900: #0e1320;

  /* Hero dark */
  --color-hero-bg: #0a0e14;
  --color-hero-mid: #14233f;

  /* Typography — premium humanist sans stack */
  --font-family:
    "Plus Jakarta Sans", "Manrope", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-display:
    "Plus Jakarta Sans", "Manrope", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  /* Type scale — tighter, more deliberate */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.1875rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3.5rem;
  --font-size-5xl: 4.5rem;

  /* Tracking */
  --tracking-tight: -0.02em;
  --tracking-tighter: -0.035em;
  --tracking-display: -0.04em;
  --tracking-wide: 0.08em;
  --tracking-eyebrow: 0.14em;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 88px;

  /* Borders & Radius — slightly softer */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  --border-light: 1px solid rgba(14, 19, 32, 0.06);
  --border-subtle: 1px solid rgba(14, 19, 32, 0.04);

  /* Shadow scale — layered, premium, low-saturation */
  --shadow-xs: 0 1px 2px rgba(14, 19, 32, 0.04);
  --shadow-sm: 0 2px 8px rgba(14, 19, 32, 0.04), 0 1px 2px rgba(14, 19, 32, 0.03);
  --shadow-md: 0 8px 24px rgba(14, 19, 32, 0.06), 0 2px 6px rgba(14, 19, 32, 0.04);
  --shadow-lg: 0 18px 48px rgba(14, 19, 32, 0.10), 0 4px 12px rgba(14, 19, 32, 0.05);
  --shadow-xl: 0 32px 80px rgba(14, 19, 32, 0.16), 0 8px 20px rgba(14, 19, 32, 0.06);
  --shadow-brand: 0 12px 28px rgba(255, 106, 0, 0.28), 0 4px 10px rgba(255, 106, 0, 0.18);
  --shadow-brand-lg: 0 20px 48px rgba(255, 106, 0, 0.32), 0 6px 14px rgba(255, 106, 0, 0.20);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-dark: rgba(10, 14, 20, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --glass-blur-strong: blur(32px);
  --glass-shadow: 0 10px 32px rgba(14, 19, 32, 0.08);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #ff6a00 0%, #ff8a2c 100%);
  --gradient-brand-deep: linear-gradient(135deg, #c44f00 0%, #ff6a00 100%);
  --gradient-dark: linear-gradient(160deg, #0a0e14 0%, #11192a 60%, #14233f 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Layout */
  --header-height: 0px;
}

/* ========== 2. RESET & BASE ========== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-gray-800);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "cv02";
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* Premium typography defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-gray-900);
}

h1 { font-weight: 800; letter-spacing: var(--tracking-display); }
h2 { font-weight: 800; letter-spacing: var(--tracking-tighter); }

p { color: var(--color-gray-600); }

a { color: inherit; }

::selection {
  background: var(--color-brand);
  color: var(--color-white);
}

/* Container refinements — slightly more breathing room on wide screens */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* ========== 3. ACCESSIBILITY ========== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 4. TOP INFO BAR ========== */

.top-bar {
  background-color: var(--color-ink);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.top-bar-right {
  display: flex;
  gap: 28px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s var(--ease-out);
}

.top-bar-link:hover {
  color: var(--color-white);
}

.top-bar-link i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
  transition: color 0.25s var(--ease-out);
}

.top-bar-link:hover i {
  color: rgba(255, 255, 255, 0.75);
}

/* ========== 5. HEADER & NAVBAR ========== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              padding 0.4s var(--ease-out);
}

/* Visible blur backdrop at rest; intensifies on scroll */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 0.4s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.header.scrolled::before {
  background: rgba(255, 255, 255, 0.94);
}

.header {
  border-bottom-color: rgba(14, 19, 32, 0.06);
}

.header.scrolled {
  border-bottom-color: rgba(14, 19, 32, 0.1);
  box-shadow: 0 4px 20px rgba(14, 19, 32, 0.04);
}

.modern-navbar {
  padding: 22px 0;
  transition: padding 0.35s var(--ease-out);
  position: relative;
}

.header.scrolled .modern-navbar {
  padding: 14px 0;
}

.modern-navbar > .container {
  position: relative;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  z-index: 2;
}

.navbar-brand img {
  max-height: 64px;
  transition: max-height 0.35s var(--ease-out);
  filter: none;
  display: block;
}

.header.scrolled .navbar-brand img {
  max-height: 52px;
}

/* ----- Centered pill nav container ----- */
.navbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 19, 32, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 6px rgba(14, 19, 32, 0.03);
  transition: background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}

.header.scrolled .navbar-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(14, 19, 32, 0.1);
}

.navbar-nav .nav-item {
  display: flex;
}

/* Nav link — pill chips inside the container */
.nav-link {
  font-weight: 500;
  color: var(--color-gray-600) !important;
  padding: 10px 22px !important;
  position: relative;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border-radius: 999px;
  line-height: 1.4;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gray-900) !important;
  background: rgba(14, 19, 32, 0.04);
}

/* Active = inverted filled pill (the signature element) */
.nav-link.active {
  color: var(--color-white) !important;
  font-weight: 600;
  background: var(--color-gray-900);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 12px rgba(14, 19, 32, 0.12);
}

.nav-link.active:hover,
.nav-link.active:focus-visible {
  color: var(--color-white) !important;
  background: var(--color-gray-900);
}

/* CTA — pill geometry to match the nav container */
.nav-cta {
  background: var(--color-gray-900);
  color: var(--color-white) !important;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid var(--color-gray-900);
  transition: background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.nav-cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.25s var(--ease-out);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white) !important;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.25);
}

.nav-cta:hover::after,
.nav-cta:focus-visible::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* ----- Toggler (mobile) — minimal stacked lines ----- */
.navbar-toggler {
  border: 1px solid rgba(14, 19, 32, 0.1);
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 19, 32, 0.18);
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.toggler-icon {
  width: 18px;
  height: 1.5px;
  background: var(--color-gray-900);
  display: block;
  margin: 0;
  transition: transform 0.3s var(--ease-out),
              opacity 0.2s var(--ease-out),
              width 0.3s var(--ease-out);
  position: relative;
  border-radius: 2px;
}

/* Distinctive staggered widths at rest */
.toggler-icon:nth-child(1) { width: 18px; }
.toggler-icon:nth-child(2) { width: 14px; align-self: flex-start; margin-left: 3px; }
.toggler-icon:nth-child(3) { width: 18px; }

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 18px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 18px;
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 6px 0;
  }

  /* Show solid header backdrop on mobile (no scroll trick) */
  .header::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
  }
  .header.scrolled::before {
    background: rgba(255, 255, 255, 0.98);
  }

  /* Align the mobile dropdown to the full-width header */
  .navbar-collapse {
    background: var(--color-white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px 20px 24px;
    box-shadow: 0 16px 32px rgba(14, 19, 32, 0.08);
    border-top: 1px solid rgba(14, 19, 32, 0.06);
    z-index: 999;
  }

  /* Reset the pill container on mobile — flatten back to a stacked list */
  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    margin-bottom: 12px;
    width: 100%;
  }

  .nav-link {
    padding: 14px 4px !important;
    border-bottom: 1px solid rgba(14, 19, 32, 0.06);
    text-align: left;
    font-size: 1rem;
    border-radius: 0;
  }

  /* Override the inverted-pill active state on mobile */
  .nav-link.active,
  .nav-link.active:hover,
  .nav-link.active:focus-visible {
    background: transparent;
    color: var(--color-brand) !important;
    box-shadow: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: transparent;
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Mobile CTA button full width */
  .d-lg-none .nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    margin-top: 8px;
  }

  .mobile-menu-header {
    display: none;
  }

  /* Prevent container overflow on mobile */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet Specific: 768px to 992px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .top-bar .container {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 20px;
    gap: 0;
  }

  .top-bar-right {
    display: flex;
    gap: 20px;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .top-bar {
    padding: 6px 0;
  }

  .top-bar-left {
    font-size: 0.6875rem;
    text-align: center;
  }

  .top-bar-right {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .modern-navbar {
    padding: 12px 0;
  }

  .navbar-brand img {
    max-height: 40px;
  }
}

/* ========== 6. HERO SECTION ========== */

.hero-section {
  position: relative;
  min-height: 100vh; /* fallback for older browsers */
  min-height: 100svh; /* modern: honors mobile browser UI, no overflow */
  display: flex;
  align-items: center;
  margin-top: 0;
  /* Top padding clears the fixed header (~121px); asymmetry keeps the
     content optically centered in the visible area below the navbar */
  padding: 150px 0 80px;
  background: var(--gradient-dark);
}

/* Background image slider — modern crossfade, no visible controls */
.hero-bg-slider,
.hero-bg-slider .carousel-inner,
.hero-bg-slider .carousel-item {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-bg-slider .carousel-item {
  transition: opacity 0.4s ease-in-out;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-slider .carousel-item.active .hero-bg-img {
  animation: heroBgZoom 3.5s ease-out forwards;
}

@keyframes heroBgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 106, 0, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(91, 107, 240, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, rgba(10, 14, 20, 0.9) 0%, rgba(17, 25, 42, 0.84) 55%, rgba(20, 35, 63, 0.9) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: clamp(1.05, 1.12vw, 1.16);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-brand {
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
  color: var(--color-white);
}

.btn-brand:hover::before { opacity: 1; }

.btn-outline-white {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* Hero responsive */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: 120px 0 64px;
  }

  .hero-title {
    line-height: 1.08;
    padding-bottom: 0.06em;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 104px 0 56px;
  }

  .hero-title {
    line-height: 1.06;
    padding-bottom: 0.05em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .hero-section .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    padding: 11px 24px;
    font-size: 0.875rem;
    justify-content: center;
  }
}

/* ========== 7. SECTION COMMON ========== */

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-md);
  padding: 6px 14px 6px 12px;
  background: var(--color-brand-alpha-10);
  border: 1px solid var(--color-brand-alpha-15);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-alpha-20);
}

.section-badge:hover {
  background: var(--color-brand-alpha-15);
  border-color: var(--color-brand-alpha-30);
}

/* ========== 8. VISION SECTION ========== */

.vision-section {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.vision-header-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.vision-header-content {
  max-width: 600px;
  text-align: left;
}

.vision-header-image {
  width: 100%;
}

.vision-header-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.vision-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-md);
}

.vision-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-gray-900);
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.vision-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.vision-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.vision-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--color-brand-alpha-10), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.vision-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand-alpha-15);
}

.vision-item:hover::before { opacity: 1; }

.vision-item-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -2px;
  transition: all var(--transition-base);
}

.vision-item:hover .vision-item-number {
  color: rgba(255, 109, 0, 0.25);
  transform: translateX(8px);
}

.vision-item-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.2;
  transition: all var(--transition-base);
}

.vision-item:hover .vision-item-title {
  color: var(--color-brand);
}

.vision-item-description {
  font-size: var(--font-size-base);
  color: var(--color-gray-500);
  line-height: 1.7;
  margin: 0;
}

.vision-tagline {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-gray-500);
  line-height: 1.8;
  max-width: 700px;
  margin: 0;
}

/* Vision responsive */
@media (min-width: 768px) {
  .vision-section {
    padding: var(--space-4xl) 0;
  }

  .vision-header-area {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .vision-header-content {
    flex: 0 0 auto;
  }

  .vision-header-image {
    flex: 1;
    min-width: 0;
  }

  .vision-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .vision-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .vision-section {
    padding: var(--space-5xl) 0;
  }

  .vision-content-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .vision-title {
    font-size: var(--font-size-4xl);
  }

  .vision-item-number {
    font-size: 3.5rem;
  }
}

/* ========== 9. SERVICES PREVIEW SECTION ========== */

.services-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(
    180deg,
    var(--color-gray-50) 0%,
    var(--color-white) 100%
  );
  position: relative;
  overflow: hidden;
}

.services-section .container {
  position: relative;
  z-index: 2;
}

.services-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.services-header-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.services-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-brand);
}

.services-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-gray-900);
  margin: 0;
  letter-spacing: -0.5px;
}

.services-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

/* Service row */
.service-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-white);
  padding: 20px 24px;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.service-card:hover {
  background: var(--color-gray-50);
}

.service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-brand-alpha-10);
  color: var(--color-brand);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--color-brand);
  color: var(--color-white);
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.3;
  flex: 0 0 auto;
  width: 180px;
}

.service-card-text {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Services CTA */
.services-cta {
  text-align: center;
}

.services-cta .btn-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    var(--color-brand-light) 100%
  );
  color: var(--color-white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.services-cta .btn-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 109, 0, 0.35);
  color: var(--color-white);
}

.services-cta .btn-brand i {
  transition: transform var(--transition-fast);
}

.services-cta .btn-brand:hover i {
  transform: translateX(4px);
}

/* Services responsive */
@media (max-width: 575.98px) {
  .service-card {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .service-card-title {
    width: auto;
  }

  .service-card-text {
    flex-basis: 100%;
    padding-left: 58px;
  }
}

@media (min-width: 768px) {
  .services-section {
    padding: var(--space-4xl) 0;
  }

  .services-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .services-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .services-section {
    padding: var(--space-5xl) 0;
  }

  .services-title {
    font-size: var(--font-size-4xl);
  }
}

/* ========== 12. FOOTER ========== */

.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 56px 0 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 800px;
  height: 600px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255, 106, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(91, 107, 240, 0.10) 0%, transparent 50%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding: 64px 0 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 72px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 44px;
  }
}

/* Mobile footer text alignment */
@media (max-width: 575.98px) {
  .footer-brand-text {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-copyright-wrapper {
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* Column Styles */
.footer-logo img {
  max-height: 50px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand-text {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 22px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-brand);
  transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--color-brand);
  transform: none; /* Reset old translate */
}

.footer-links a:hover::after,
.footer-links a.active::after {
  width: 100%;
}

/* Static Style overrides for "Our Expertise" Links */
.footer-links.expertise-links a::after {
  display: none !important;
}

.footer-links.expertise-links a.active {
  color: rgba(255, 255, 255, 0.6) !important;
}

.footer-links.expertise-links a:hover {
  color: var(--color-brand) !important;
}

/* Contact Info */
.footer-contact-item {
  display: flex;
  gap: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--color-brand);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--color-brand);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
  color: var(--color-white);
}

/* Newsletter */
.footer-newsletter {
  margin-top: 28px;
}

.newsletter-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-white);
}

.newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.newsletter-form:focus-within {
  border-color: var(--color-brand-alpha-50);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 10px 14px;
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
  background: var(--gradient-brand);
  color: var(--color-white);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form button:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-brand);
}

/* Footer Bottom */
.footer-bottom {
  padding: 0;
  text-align: left; /* Desktop */
}

.footer-separator {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0)
  );
  margin-bottom: 22px;
}

.footer-copyright-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-copyright-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 25px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ========== 13. SCROLL TO TOP ========== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: linear-gradient(
    135deg,
    var(--color-brand),
    var(--color-brand-light)
  );
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px var(--color-brand-alpha-30);
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 109, 0, 0.4);
}

@media (max-width: 480px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
  }
}

/* ========== 14. ANIMATIONS ========== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes fadeInUpScroll {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animation class */
.scroll-animate {
  animation: fadeInUpScroll 0.8s ease-out forwards;
}

/* Ripple effect for buttons */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== 15. PREMIUM SECTION TITLES ========== */

.vision-title,
.services-title,
.mission-title,
.values-title {
  letter-spacing: var(--tracking-tighter);
}

/* Subtle, refined eyebrow labels across the site */
.vision-badge,
.services-badge,
.mission-badge,
.values-badge {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vision-badge::before,
.services-badge::before,
.mission-badge::before,
.values-badge::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-brand);
}

/* Universal scroll-reveal classes used by IntersectionObserver */
.vision-item,
.service-card,
.mission-pillar,
.value-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
              box-shadow var(--transition-base), border-color var(--transition-base);
}

.vision-item.scroll-animate,
.service-card.scroll-animate,
.mission-pillar.scroll-animate,
.value-card.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.vision-item:nth-child(1).scroll-animate,
.service-card:nth-child(1).scroll-animate,
.mission-pillar:nth-child(1).scroll-animate,
.value-card:nth-child(1).scroll-animate { transition-delay: 0s; }
.vision-item:nth-child(2).scroll-animate,
.service-card:nth-child(2).scroll-animate,
.mission-pillar:nth-child(2).scroll-animate,
.value-card:nth-child(2).scroll-animate { transition-delay: 0.08s; }
.vision-item:nth-child(3).scroll-animate,
.service-card:nth-child(3).scroll-animate,
.mission-pillar:nth-child(3).scroll-animate,
.value-card:nth-child(3).scroll-animate { transition-delay: 0.16s; }
.vision-item:nth-child(4).scroll-animate,
.service-card:nth-child(4).scroll-animate,
.value-card:nth-child(4).scroll-animate { transition-delay: 0.24s; }

/* Subtle background grid utility for premium dark sections */
.bg-grid-soft {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Premium link arrow utility */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.arrow-link::after {
  content: "→";
  transition: transform var(--transition-fast);
  display: inline-block;
}

.arrow-link:hover {
  color: var(--color-brand-dark);
  gap: 12px;
}

/* Reduce-motion: keep reveals visible */
@media (prefers-reduced-motion: reduce) {
  .vision-item,
  .service-card,
  .mission-pillar,
  .value-card {
    opacity: 1;
    transform: none;
  }
}
