/* ═══════════════════════════════════════
   Brandigo Design System v7.0
   Manrope · Inter · Modern Enterprise
   ═══════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdcff;
  --blue-400: #5b97ff;
  --blue-500: #2f80ed;
  /* Primary Brand Blue */
  --blue-600: #1f63d8;
  --blue-700: #184bb5;
  --red-600: #dc2626;
  --green-600: #16a34a;
  --brand-ink: #0b1830;
  --brand-ink-soft: #23365d;

  /* Neutral Palette - Enterprise Slate */
  --navy-950: #020617;
  --navy-900: #09101f;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;

  --white: #ffffff;
  --brand-gradient: linear-gradient(135deg, #2f80ed 0%, #1f63d8 55%, #184bb5 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(47, 128, 237, 0.16) 0%, rgba(24, 75, 181, 0.08) 100%);
  --brand-surface: rgba(47, 128, 237, 0.08);
  --brand-surface-strong: rgba(47, 128, 237, 0.14);
  --brand-border: rgba(47, 128, 237, 0.18);
  --soft-gradient: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --font-heading: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, monospace;

  /* Spacing & Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --max-w: 1280px;

  /* Shadows - Layered for Depth + Premium Glow */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.1);
  --shadow-blue: 0 15px 30px -5px rgba(59, 125, 237, 0.3);
  
  /* Premium Shadow System */
  --shadow-glow: 0 0 40px rgba(59, 125, 237, 0.3);
  --shadow-glow-lg: 0 0 60px rgba(59, 125, 237, 0.4);
  --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  /* Animation */
  --timing: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--timing);
  --transition-base: 0.4s var(--timing);
  --transition-slow: 0.7s var(--timing);

  /* Visual grading for premium corporate look */
  --image-grade: saturate(0.94) contrast(1.05) brightness(0.98);
  --image-grade-hover: saturate(1) contrast(1.07) brightness(1);
}

/* ═══════════════════════════════════════
   BACKDROP-FILTER FALLBACK FOR OLDER BROWSERS
   Firefox < 103, Safari < 18 don't support backdrop-filter
   ═══════════════════════════════════════ */
@supports not (backdrop-filter: blur(10px)) {
  /* Header/Footer with dark backgrounds */
  .site-header::before,
  .site-header.scrolled,
  body.light-theme .site-header::before {
    background: rgba(2, 6, 23, 0.95);
  }
  
  /* Light theme header fallback */
  body.light-theme .site-header::before {
    background: rgba(255, 255, 255, 0.98);
  }
  
  /* Glass card fallback - use solid background instead of transparent */
  .card.glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 125, 237, 0.2);
  }
  
  /* Dark background glass cards */
  .card.glass.dark-bg,
  body.dark .card.glass {
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(59, 125, 237, 0.2);
  }
  
  /* Footer column fallback */
  .footer-col {
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(59, 125, 237, 0.1);
  }
  
  /* Gallery view button fallback */
  .gallery-view-btn {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.7;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* Preloader prevents flash of unstyled content */
body.preloader-active {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

[x-cloak] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

ul {
  list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 700;
}

p {
  color: var(--slate-600);
  font-size: clamp(1rem, 1vw, 1.075rem);
  line-height: 1.72;
}

.section-header p,
.hero-content p,
.case-content p,
.vertical-content p {
  color: #334155;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container {
  width: min(1400px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(1.6rem, 4vw, 3.2rem) 0;
  position: relative;
}

.section-alt {
  background: var(--slate-50);
}

.section-header {
  max-width: 700px;
  margin-bottom: clamp(2.4rem, 3.8vw, 2.8rem);
}

.section-header.center {
  margin: 0 auto clamp(2rem, 4vw, 3.2rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  padding: 4px 10px;
  background: var(--brand-gradient-soft);
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 30px rgba(47, 128, 237, 0.08);
}

/* ═══════════════════════════════════════
   SKIP TO MAIN CONTENT LINK
   ═══════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--navy-900);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 100000;
  transition: top 0.3s ease;
  border: 1px solid var(--light-border);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form status messages (contact / newsletter) */
.form-status { min-height: 1.5em; }
.form-status.error { color: var(--red-600); }
.form-status.ok { color: var(--green-600); }
.form-status a { color: var(--blue-600); text-decoration: underline; font-weight: 500; }
.form-status a:hover { color: var(--blue-700); }
.newsletter-success { color: var(--green-600); }
.newsletter-success a { color: var(--blue-600); text-decoration: underline; font-weight: 500; }
.form-status-display {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-container {
  padding: 0 2rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.newsletter-status-hidden {
  display: none;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

.newsletter-status-visible {
  display: block;
  padding: 10px;
  text-align: center;
  font-weight: 500;
}

.section-no-top {
  padding-top: 0;
}

.section-spacing-sm {
  padding-top: 48px;
}

.hero-standard {
  min-height: 0;
  padding: 150px 0 80px;
}

.eyebrow-icon-sm {
  width: 14px;
  height: 14px;
}

.muted-caption {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-top: 8px;
}

.content-top-md {
  margin-top: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-soft {
  background: rgba(131, 161, 238, 0.1);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-soft:hover {
  background: rgba(131, 161, 238, 0.2);
  color: #0f172a;
}

.marquee-caption {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.list-compact {
  margin-top: 16px;
}

.link-brand {
  color: var(--blue-500);
}

.copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-inline-sm {
  width: 14px;
  margin-right: 8px;
}

.icon-inline-md {
  width: 18px;
  height: 18px;
}

.hero-section-shell {
  padding-top: 150px;
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
}

.hero-shell-container {
  position: relative;
  z-index: 1;
}

.hero-copy-max {
  max-width: 700px;
}

.hero-stats-gap {
  margin-top: 4rem;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-600);
}

.hero-stat-label {
  color: var(--slate-500);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.print-hero-shell {
  background: var(--slate-50);
}

.print-hero-overlay {
  background: radial-gradient(ellipse at 20% 30%, rgba(59, 125, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
}

.rewards-hero-shell {
  background: linear-gradient(135deg, rgba(59, 125, 237, 0.08), rgba(147, 197, 253, 0.05), #fff);
}

.rewards-hero-overlay {
  background: radial-gradient(ellipse at 10% 20%, rgba(59, 125, 237, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 40%);
}

.rewards-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.rewards-hero-copy {
  max-width: 760px;
}

.rewards-hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 640px;
}

.rewards-hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.48) 36%, transparent 60%),
    linear-gradient(135deg, rgba(14, 30, 64, 0.1), rgba(59, 125, 237, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 245, 255, 0.78));
  border: 1px solid rgba(191, 220, 255, 0.92);
  box-shadow: 0 36px 80px -44px rgba(28, 71, 147, 0.38);
}

.rewards-hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  pointer-events: none;
}

.rewards-hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.4), transparent 24%);
  pointer-events: none;
}

.rewards-hero-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.4);
}

@media (max-width: 980px) {
  .rewards-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rewards-hero-visual {
    justify-self: stretch;
    max-width: 100%;
  }

  .rewards-hero-image-wrap {
    padding: 16px;
  }
}

.bfsi-stat-number {
  color: var(--blue-400);
}

.bfsi-stat-label {
  color: var(--slate-600);
}

/* ═══════════════════════════════════════
   ALPINE.JS DIALOG (blue overlay)
   ═══════════════════════════════════════ */
.alpine-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 99, 216, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.alpine-dialog-overlay-enter,
.alpine-dialog-overlay-leave {
  transition: opacity 0.2s var(--timing);
}

.alpine-dialog-overlay-enter-start,
.alpine-dialog-overlay-leave-end {
  opacity: 0;
}

.alpine-dialog-overlay-enter-end,
.alpine-dialog-overlay-leave-start {
  opacity: 1;
}

.alpine-dialog-panel-enter,
.alpine-dialog-panel-leave {
  transition: opacity 0.2s var(--timing), transform 0.2s var(--timing);
}

.alpine-dialog-panel-enter-start,
.alpine-dialog-panel-leave-end {
  opacity: 0;
  transform: scale(0.96);
}

.alpine-dialog-panel-enter-end,
.alpine-dialog-panel-leave-start {
  opacity: 1;
  transform: scale(1);
}

.alpine-dialog-panel {
  position: relative;
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(47, 128, 237, 0.1);
  border: 1px solid rgba(191, 219, 254, 0.6);
}

.alpine-dialog-panel-success {
  max-width: 34rem;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.alpine-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.alpine-dialog-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.alpine-dialog-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-600);
  flex-shrink: 0;
}

.alpine-dialog-badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-600);
}

.alpine-dialog-badge-error {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red-600);
}

.alpine-dialog-badge-info {
  background: rgba(47, 128, 237, 0.12);
  color: var(--blue-600);
}

.alpine-dialog-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
}

.alpine-dialog-subtitle {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--slate-500);
}

.alpine-dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.alpine-dialog-close:hover {
  background: var(--slate-100);
  color: var(--navy-800);
}

.alpine-dialog-body {
  padding: 1.5rem;
  color: var(--navy-800);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.alpine-dialog-body .alpine-dialog-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.alpine-dialog-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.alpine-dialog-actions .btn {
  text-decoration: none;
}

.alpine-dialog-actions .btn-primary,
.alpine-dialog-actions .btn-primary:visited {
  color: var(--white);
}

.alpine-dialog-actions .btn-secondary,
.alpine-dialog-actions .btn-secondary:visited {
  color: var(--brand-ink);
}

.alpine-dialog-body a {
  color: var(--blue-600);
  text-decoration: underline;
  font-weight: 500;
}

.alpine-dialog-body a:hover {
  color: var(--blue-700);
}

.alpine-dialog-success .alpine-dialog-title {
  color: var(--green-600);
}

.alpine-dialog-error .alpine-dialog-title {
  color: var(--red-600);
}

/* ═══════════════════════════════════════
   PAGE PRELOADER
   ═══════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--timing), visibility 0.6s var(--timing);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.preloader-logo img {
  width: 40%;
  height: 40%;
  object-fit: contain;
}

.preloader-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.1em;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 24px;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(59, 125, 237, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(59, 125, 237, 0.5));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.site-header {
  --header-height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 4rem;
  height: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Avoid transition: all — animating backdrop-filter causes scroll jank / flicker */
  transition:
    min-height 0.28s var(--timing),
    padding 0.28s var(--timing),
    box-shadow 0.28s var(--timing),
    border-color 0.28s var(--timing),
    background-color 0.28s var(--timing);
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 31, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.4s var(--timing);
}

.site-header.scrolled::before {
  opacity: 1;
}

.site-header .brand {
  color: var(--white);
}

.site-header.scrolled {
  --header-height: 70px;
  min-height: 70px;
  /* Glass lives on ::before only — second backdrop here caused compositor flicker while scrolling */
  background: transparent;
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.site-header.scrolled .brand {
  color: var(--white);
}

 .site-header.scrolled .site-nav a {
  color: var(--navy-900);
}

.site-header .site-nav a i,
.site-header .site-nav a svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  stroke-width: 1.8;
}

.site-header.scrolled .site-nav a i,
.site-header.scrolled .site-nav a svg {
  color: inherit;
  stroke: currentColor;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Homepage uses the same left-brand / right-nav layout */
.home-header .nav-wrap {
  display: flex;
  justify-content: space-between;
}

.home-header .brand {
  justify-self: auto;
}

.home-header .site-nav {
  justify-self: auto;
}

@media (max-width: 1024px) {
  .home-header .nav-wrap {
    display: flex;
    justify-content: space-between;
  }
  
  .home-header .brand {
    justify-self: flex-start;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1vw, 1rem);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.brand img {
  width: 80%;

  height: clamp(55px, 4vw, 54px);
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s var(--timing);
  filter: drop-shadow(0 0 0 transparent);
}

.brand:hover img {
  filter: drop-shadow(0 10px 24px rgba(47, 128, 237, 0.25));
  transform: translateY(-1px);
}

.brand-wordmark {
  min-width: 0;
  position: relative;
}

.brand-wordmark img {
  max-width: clamp(160px, 19vw, 250px);
}

.brand-mark-tm {
  font-size: 0.72rem;
  line-height: 1;
  color: #1e293b;
  transform: translate(-2px, -10px);
  font-weight: 700;
}

.ps-unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ps-unified-brand img {
  width: auto;
  height: clamp(38px, 2.8vw, 54px);
  max-width: clamp(190px, 22vw, 340px);
  object-fit: contain;
}

.ps-unified-brand .tm {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--slate-500);
  transform: translateY(-0.7rem);
}

.site-nav {
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.brand-print {
  gap: 0.85rem;
}

.brand-print img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.18);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.brand-title {
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--slate-400);
}

.preloader-logo img {
  width: auto;
  height: clamp(56px, 9vw, 86px);
  max-width: min(78vw, 360px);
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.1vw, 1.25rem);
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: color 0.3s var(--timing), background 0.3s var(--timing), transform 0.3s var(--timing);
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(47, 128, 237, 0.08);
  color: var(--blue-700);
}

/* Keep Client Portal as a button (white text) */
.site-nav a.btn-Client,
.site-nav a.btn-Client:hover,
.site-nav a.btn-Client:active,
.site-nav a.btn-Client:focus-visible {
  color: var(--white);
  background: linear-gradient(135deg, #2f80ed 0%, #2367df 55%, #184bb5 100%);
}

.site-nav a.btn-Client:hover {
  transform: translateY(-2px) scale(1.01);
}

.site-nav a.btn-Client.active {
  color: var(--white);
}

.site-nav a::before {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 14px;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s var(--timing);
}

.site-nav a:hover::before,
.site-nav a.active::before {
  width: calc(100% - 28px);
}

.site-nav > ul > li > a.btn::before {
  content: none;
}

.site-nav .btn-Client {
  min-height: 46px;
  margin-left: 0.35rem;
  box-shadow: 0 18px 34px -12px rgba(47, 128, 237, 0.62);
}

/* ── Dropdown Menu ── */
.site-nav .has-dropdown {
  position: relative;
}

.site-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav .dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
  transition: transform 0.3s var(--timing);
}

.site-nav .has-dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.site-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-100);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--timing), visibility 0.3s var(--timing);
  z-index: 1001;
}

.site-nav .has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Show dropdown when .open class is added by JavaScript (click toggle) */
.site-nav .dropdown-menu.open {
  opacity: 1;
  visibility: visible;
}

.site-nav .dropdown-menu li {
  margin: 0;
}

.site-nav .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-nav .dropdown-menu a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.site-nav .dropdown-menu a i {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* ── Mobile Navigation Toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transition: all 0.3s var(--timing);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Responsive Navigation ── */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 12px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
    height: calc(100vh - 24px);
    background: var(--white);
    padding: 92px 18px 24px;
    transform: translateX(110%);
    transition: transform 0.4s var(--timing);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    border-radius: 28px;
    border: 1px solid rgba(191, 219, 254, 0.72);
    z-index: 1001;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s var(--timing), transform 0.3s var(--timing);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
  }

  .site-nav.open ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .site-nav ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--timing), transform 0.3s var(--timing);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding-bottom: 8px;
  }

  .site-nav.open ul li:nth-child(1) { transition-delay: 0.15s; }
  .site-nav.open ul li:nth-child(2) { transition-delay: 0.2s; }
  .site-nav.open ul li:nth-child(3) { transition-delay: 0.25s; }
  .site-nav.open ul li:nth-child(4) { transition-delay: 0.3s; }
  .site-nav.open ul li:nth-child(5) { transition-delay: 0.35s; }
  .site-nav.open ul li:nth-child(6) { transition-delay: 0.4s; }
  .site-nav.open ul li:nth-child(7) { transition-delay: 0.45s; }
  .site-nav.open ul li:nth-child(8) { transition-delay: 0.5s; }

  .site-nav.open ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > ul > li > a,
  .site-nav > ul > li > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--navy-800);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    width: 100%;
  }

  .site-nav > ul > li > .dropdown-toggle {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(255, 255, 255, 0.95));
    cursor: pointer;
  }

  .site-nav .has-dropdown:hover .dropdown-toggle::after {
    transform: none;
  }

  .site-nav .dropdown-toggle.active::after {
    transform: rotate(180deg);
  }

  .site-nav .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    margin: 8px 0 0;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--timing);
    border-radius: 18px;
  }

  .site-nav .dropdown-menu.open {
    max-height: 500px;
  }

  .site-nav .dropdown-menu a {
    padding: 12px 16px;
  }

  .site-nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* ═══════════════════════════════════════
   BUTTONS WITH MICRO-INTERACTIONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--timing);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shine sweep effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s var(--timing);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  position: relative;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #2f80ed, #1f63d8, #5b97ff, #2f80ed);
  background-size: 300% 300%;
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s var(--timing);
  animation: gradient-shift 3s ease infinite;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-lg);
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
  background: rgba(252, 249, 249, 0.92);
  color: var(--brand-ink);
  border: 1px solid rgba(191, 220, 255, 0.72);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.35);
  border-color: rgba(47, 128, 237, 0.32);
  color: var(--blue-700);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Ripple effect container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Client Portal Button - Brand Blue */
.btn-Client {
  background: linear-gradient(135deg, #2f80ed 0%, #2367df 55%, #184bb5 100%);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(47, 128, 237, 0.45);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(24, 75, 181, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.btn-Client::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #184bb5, #2f80ed, #5b97ff, #184bb5);
  background-size: 300% 300%;
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s var(--timing);
  animation: client-gradient-shift 3s ease infinite;
}

.btn-Client:hover::after {
  opacity: 1;
}

.btn-Client:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px -8px rgba(47, 128, 237, 0.55);
}

.btn-Client:active {
  transform: translateY(-1px) scale(1.01);
}

@keyframes client-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════
   HERO SECTION WITH STAGGERED ANIMATIONS
   Premium Split Layout
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 160px 4rem 100px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.16), transparent 42%),
    radial-gradient(circle at bottom left, rgba(24, 75, 181, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  position: relative;
  overflow: hidden;
}

#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  contain: strict;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 0 4rem;
  max-width: 1600px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.03;
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0 0 2.5rem;
  color: var(--slate-500);
  line-height: 1.75;
}

/* About hero split alignment */
.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
  align-items: center;
  gap: 48px;
}

.about-hero-content {
  min-width: 0;
}

.about-hero-media {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-hero-media img {
  width: 100%;
  height: clamp(340px, 46vw, 520px);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: var(--image-grade);
  transition: transform 0.4s ease;
}

.about-hero-media:hover img {
  transform: scale(1.03);
  filter: var(--image-grade-hover);
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stats .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Hero Visual - Right Side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  margin-bottom: 43 0px;
}

.hero-graphic {
  position: relative;
  width: 600px;
  height: 500px;
  animation: float 8s ease-in-out infinite;
}

.graphic-center {
  position: absolute;
  top: 30%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: 164px;
  height: 164px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 220, 255, 0.8);
  border-radius: 40px;
  display: flex;
  align-items: center;
  object-fit: contain;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18), 0 0 0 10px rgba(255, 255, 255, 0.22);
  z-index: 10;

}

.graphic-center img {
  max-width: 96px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.graphic-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-800);
  z-index: 5;
  white-space: nowrap;
  border: 1px solid rgba(191, 220, 255, 0.75);
}

.graphic-card i {
  color: var(--blue-600);
  width: 14px;
  height: 24px;
}

.graphic-card.card-1 {
  top: 16px;
  left: 138px;
  animation: floatCard1 6s ease-in-out infinite;
}

.graphic-card.card-2 {
  top: 50%;
  left: 400px;
  transform: translateY(-50%);
  animation: floatCard2 7s ease-in-out infinite;
}

.graphic-card.card-3 {
  bottom: 34px;
  left: 122px;
  animation: floatCard3 8s ease-in-out infinite;
}

.graphic-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--blue-200);
  opacity: 0.6;
}

.graphic-ring.ring-1 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 4s ease-in-out infinite;
}

.graphic-ring.ring-2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 4s ease-in-out infinite 0.5s;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(-50%) rotate(3deg); }
  50% { transform: translateY(calc(-50% - 12px)) rotate(-3deg); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* Staggered entrance animations */
.hero-content .eyebrow {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--timing) 0.2s forwards;
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--timing) 0.35s forwards;
}

.hero-content p {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--timing) 0.5s forwards;
}

.hero-content .hero-ctas {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--timing) 0.65s forwards;
}

.hero-content .hero-stats {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--timing) 0.8s forwards;
}

.hero-visual {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInLeft 1s var(--timing) 0.4s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    order: 1;
  }
  
  .hero-visual {
    order: 2;
    min-height: 450px;
  }
  
  .hero-graphic {
    width: 400px;
    height: 400px;
  }
  
  .graphic-ring.ring-1 {
    width: 300px;
    height: 300px;
  }
  
  .graphic-ring.ring-2 {
    width: 360px;
    height: 360px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }

  .about-hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 1.5rem 80px;
    min-height: auto;
  }
  
  .hero-container {
    padding: 0 1rem;
  }
  
  .hero-visual {
    min-height: 350px;
  }
  
  .hero-graphic {
    width: 300px;
    height: 300px;
  }
  
  .graphic-center {
    width: 100px;
    height: 100px;
  }
  
  .graphic-center img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  .graphic-ring.ring-1 {
    width: 220px;
    height: 220px;
  }
  
  .graphic-ring.ring-2 {
    width: 270px;
    height: 270px;
  }
  
  .graphic-card {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .hero-graphic {
    width: 280px;
    height: 280px;
  }
  
  .graphic-ring.ring-1 {
    width: 220px;
    height: 220px;
  }
  
  .graphic-ring.ring-2 {
    width: 270px;
    height: 270px;
  }
  
  .graphic-center {
    width: 90px;
    height: 90px;
  }
  
  .graphic-center img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* ═══════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   Lighthouse Score > 95
   ═══════════════════════════════════════ */

/* CSS Containment for better rendering performance */
.hero,
.section,
.vertical-card,
.card,
.site-footer{
  contain: layout style paint;
}

/* Header: layout/style only so dropdown can paint outside (no clip) */
.site-header {
  contain: layout style;
}

/* Reduce paint areas */
#three-canvas {
  contain: strict;
  will-change: opacity;
}

/* Optimize animations with will-change */
.hero-graphic,
.graphic-card,
.graphic-ring {
  will-change: transform;
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Image decode hint only — avoid content-visibility on all imgs (scroll flicker as visibility toggles). */
img {
  decoding: async;
}

/* Lazy load container */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-graphic,
  .graphic-card,
  .graphic-ring {
    animation: none !important;
  }
}

/* GPU acceleration for smooth animations */
.hero-graphic,
.graphic-card,
.graphic-ring,
.graphic-center {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* Elements with role="button" */
[role="button"]:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* Mobile navigation toggle */
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════
   BUTTON FOCUS STYLES
   ═══════════════════════════════════════ */
.btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  box-shadow: var(--shadow-glow-lg);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-color: var(--blue-300);
}

.btn-Client:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  box-shadow: 0 0 24px rgba(47, 128, 237, 0.38);
}

/* ═══════════════════════════════════════
   LINK FOCUS STYLES
   ═══════════════════════════════════════ */
a:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* Navigation links */
.site-nav a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.site-nav .dropdown-menu a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Footer links */
.footer-links a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 4px;
  color: var(--blue-400);
}

.footer-links a:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer social links */
.footer-social a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  background: var(--blue-600);
}

/* Team social links */
.team-social a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════
   FORM INPUT FOCUS STYLES
   ═══════════════════════════════════════ */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 1px;
  border-color: var(--blue-500);
}

/* Checkbox and radio focus styles */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* Newsletter input */
.footer-newsletter input:focus-visible {
  outline: none;
}

/* ═══════════════════════════════════════
   SKIP LINK FOCUS STYLES
   ═══════════════════════════════════════ */
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  background: var(--white);
  color: var(--navy-900);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-lg);
  z-index: 999999;
}

/* Smooth scroll optimization */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Critical CSS inline */
.site-header {
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

/* Print styles */
@media print {
  .hero-graphic,
  #three-canvas,
  .preloader,
  .back-to-top {
    display: none !important;
  }
  
  .hero {
    padding: 2rem 0;
  }
}
.vertical-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08); /* remove 1px line shadow */
  margin-bottom: 2.6rem;
  border: none;
  transition: all 0.5s var(--timing);
}

.vertical-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.26), 0 22px 44px rgba(47, 128, 237, 0.18);
  border-color: var(--blue-200);
}

.vertical-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc; /* light bg so image achi lage */
}

.vertical-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: var(--image-grade);
}

.vertical-card:hover .vertical-image::after {
  opacity: 1;
}

.vertical-image img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; */
  filter: var(--image-grade);
  transition: transform 0.8s var(--timing);
}

.vertical-card:hover .vertical-image img {
  transform: scale(1.04);
  filter: var(--image-grade-hover);
}

.vertical-content {
  padding: clamp(1rem, 1.2vw, 1.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem; /* ya even 0.1rem */
}

.vertical-content p {
   margin-bottom: 0.30rem; /* ya 0.2rem */

}

.vertical-content .btn {
  align-self: flex-start;
}

.vertical-card .footer-links {
  margin-top: 1rem;
  margin-bottom: 1.18rem;
  gap: 10px;
}

.vertical-card .footer-links li {
  line-height: 1.45;
}

.vertical-card .btn {
  margin-top: 0.25rem;
}

.vertical-card-home-print {
  background:
    linear-gradient(90deg, rgba(247, 250, 255, 0.98) 0%, rgba(255, 255, 255, 1) 56%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.035), rgba(15, 23, 42, 0.015));
  border: 1px solid rgba(191, 220, 255, 0.95);
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  box-shadow: 0 0 0 1px rgba(191, 220, 255, 0.45), 0 22px 48px rgba(15, 23, 42, 0.08);
}

.vertical-image-home-print {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  aspect-ratio: 1.34 / 1;
  background:
    linear-gradient(135deg, rgba(10, 24, 49, 0.1), rgba(47, 128, 237, 0.04)),
    linear-gradient(180deg, #edf4ff, #f8fbff);
  border-right: 1px solid rgba(191, 220, 255, 0.72);
}

.vertical-image-home-print::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(90deg, rgba(10, 24, 49, 0.05), transparent 34%);
  pointer-events: none;
}

.vertical-image-home-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
}

.vertical-card-home-print .vertical-content {
  padding: clamp(1.5rem, 2.2vw, 2rem);
  gap: 0.8rem;
  max-width: 580px;
}

.vertical-card-home-print h3 {
  /* max-width: 10.5ch; */
  font-size: clamp(1.8rem, 2.45vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.vertical-card-home-print .vertical-content > p:first-of-type {
  max-width: 50ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.64;
  color: var(--slate-500);
}

.vertical-print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.2rem;
}

.vertical-print-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 128, 237, 0.1), rgba(47, 128, 237, 0.05));
  border: 1px solid rgba(47, 128, 237, 0.14);
  color: var(--blue-700);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.vertical-print-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.15rem;
  margin: 0.2rem 0 0;
  padding-bottom: 0.15rem;
}

.vertical-print-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--slate-600);
  font-weight: 450;
  line-height: 1.4;
  font-size: 0.85rem;
}

.vertical-print-list li i,
.vertical-print-list li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--blue-500);
  margin-top: 0.22rem;
}

.vertical-print-note {
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.55;
}

.vertical-print-cta {
  margin-top: 0.25rem;
  min-width: 228px;
  box-shadow: 0 14px 28px -22px rgba(15, 23, 42, 0.38);
}

.vertical-card-rewards {
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.98) 0%, rgba(255, 255, 255, 1) 54%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.05), rgba(15, 23, 42, 0.02));
  border-color: rgba(191, 220, 255, 0.9);
}

.vertical-image-rewards {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 37, 74, 0.88), rgba(34, 63, 118, 0.42)),
    linear-gradient(180deg, #f3f7fc, #e9f0fb);
}

.vertical-image-rewards::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 24%);
  z-index: 1;
  pointer-events: none;
}

.vertical-image-rewards img {
  position: relative;
  z-index: 0;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.03) brightness(0.98);
}

.eyebrow-rewards {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.1), rgba(15, 23, 42, 0.04));
  border-color: rgba(47, 128, 237, 0.14);
  color: var(--blue-600);
}

.vertical-rewards-copy {
  max-width: 36ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.vertical-rewards-list {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  gap: 0.95rem;
}

.vertical-rewards-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.5;
}

.vertical-rewards-list li i,
.vertical-rewards-list li svg {
  width: 16px;
  height: 16px;
  color: var(--blue-500);
  flex-shrink: 0;
}

.vertical-rewards-cta {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(191, 220, 255, 0.9);
  color: var(--navy-900);
  box-shadow: 0 10px 22px -16px rgba(15, 23, 42, 0.28);
}

.vertical-rewards-cta:hover {
  border-color: rgba(47, 128, 237, 0.34);
  box-shadow: 0 18px 36px -20px rgba(47, 128, 237, 0.28);
}

.vertical-card.reverse {
  direction: rtl;
}

.vertical-card.reverse .vertical-content {
  direction: ltr;
}

.full-image {
  width: 100%;
  height: 100%;
  min-height: 400px; /* adjust as needed */
  overflow: hidden;
}

.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* FULL fill karega */
  object-position: center;
  display: block;
}

@media (max-width: 980px) {
  .vertical-card-home-print {
    grid-template-columns: 1fr;
  }

  .vertical-image-home-print {
    min-height: 250px;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(191, 220, 255, 0.72);
  }

  .vertical-card-home-print h3,
  .vertical-card-home-print .vertical-content > p:first-of-type {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .vertical-print-list {
    grid-template-columns: 1fr;
  }

  .vertical-image-home-print {
    min-height: 210px;
    aspect-ratio: 1.45 / 1;
  }

  .vertical-print-meta {
    gap: 8px;
  }

  .vertical-card-home-print .vertical-content {
    padding: 1.25rem;
  }

  .vertical-card-home-print h3 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }
}

.vertical-card-mission {
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.98) 0%, rgba(255, 255, 255, 1) 55%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.04), rgba(15, 23, 42, 0.02));
  border-color: rgba(191, 220, 255, 0.92);
}

.vertical-image-mission {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 17, 33, 0.16), rgba(47, 128, 237, 0.08)),
    linear-gradient(180deg, #edf4ff, #f8fbff);
}

.vertical-image-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 17, 33, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
}

.vertical-image-mission img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.04);
  transform: scale(1.015);
}

.vertical-content-mission {
  padding: clamp(1rem, 2vw, 2rem);
}

.eyebrow-mission {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.08), rgba(15, 23, 42, 0.04));
  border-color: rgba(47, 128, 237, 0.14);
}

.mission-copy {
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

.mission-copy-strong {
  color: var(--navy-800);
  font-weight: 500;
}

.vertical-card-capacity {
  background:
    linear-gradient(90deg, rgba(243, 247, 252, 0.98) 0%, rgba(255, 255, 255, 1) 54%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.05), rgba(15, 23, 42, 0.025));
  border-color: rgba(191, 220, 255, 0.88);
}

.vertical-image-capacity {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 24, 49, 0.3), rgba(47, 128, 237, 0.08)),
    linear-gradient(180deg, #eff5fd, #f9fbff);
}

.vertical-image-capacity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(90deg, rgba(10, 24, 49, 0.14), transparent 34%);
  pointer-events: none;
}

.vertical-image-capacity::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}


.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* image crop + fit */
  object-position: center; /* focus area */
  display: block;
}

.vertical-image-capacity img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.08) brightness(0.98);
  transform: scale(1.04);
}

.vertical-content-capacity {
  padding: clamp(1.8rem, 3vw, 3rem);
  max-width: 54ch;
  width: min(100%, 520px);
}

.eyebrow-capacity {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.09), rgba(15, 23, 42, 0.04));
  border-color: rgba(47, 128, 237, 0.14);
}

.capacity-copy {
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.capacity-list {
  margin-top: 1.5rem;
  margin-bottom: 0;
  gap: 0.95rem;
}

.capacity-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2px;
  color: var(--slate-600);
  line-height: 1.55;
}

.vertical-card-bfsi-services {
  background:
    linear-gradient(90deg, rgba(244, 248, 252, 0.98) 0%, rgba(255, 255, 255, 1) 54%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.045), rgba(15, 23, 42, 0.025));
  border-color: rgba(191, 220, 255, 0.88);
}

.vertical-image-bfsi-services {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 24, 49, 0.24), rgba(47, 128, 237, 0.08)),
    linear-gradient(180deg, #eef4fc, #f9fbff);
}

.vertical-image-bfsi-services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 26%),
    linear-gradient(90deg, rgba(10, 24, 49, 0.1), transparent 34%);
  pointer-events: none;
}

.vertical-image-bfsi-services::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

.vertical-image-bfsi-services img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.05) brightness(0.99);
  transform: scale(1.03);
}

.vertical-content-bfsi-services {
  padding: clamp(1.8rem, 3vw, 3rem);
}

.eyebrow-bfsi-services {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.09), rgba(15, 23, 42, 0.04));
  border-color: rgba(47, 128, 237, 0.14);
}

.bfsi-services-copy {
  max-width: 38ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.bfsi-services-list {
  margin-top: 1.5rem;
  margin-bottom: 0;
  gap: 0.95rem;
}

.bfsi-services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   CARDS GRID WITH GLASSMORPHISM
   ═══════════════════════════════════════ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* Base card style */
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(100, 116, 139, 0.3);
  transition: all 0.5s var(--timing);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.2), 0 16px 38px rgba(15, 23, 42, 0.11);
}

.card img,
.case-card img {
  display: block;
  max-width: 100%;
  height: auto;
}

.card.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.35), 0 24px 52px rgba(30, 64, 175, 0.22);
  border-color: var(--brand-border);
}

/* Glassmorphism cards */
.card.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card.glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 125, 237, 0.3);
  box-shadow: var(--shadow-glow);
}

/* Glow effect on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--timing);
}

/* BFSI hero alignment */
.bfsi-hero-section {
  padding-top: 150px;
  background: var(--slate-50);
  color: var(--navy-900);
  overflow: hidden;
  position: relative;
}

.bfsi-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59, 125, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.bfsi-hero-container {
  position: relative;
  z-index: 1;
}

.bfsi-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: center;
}

.bfsi-hero-eyebrow {
  background: rgba(59, 125, 237, 0.08);
  color: var(--blue-700);
  border-color: rgba(59, 125, 237, 0.18);
}

.bfsi-hero-title {
  color: var(--navy-900);
}

.bfsi-hero-copy {
  color: var(--slate-600);
  max-width: 700px;
}

.bfsi-hero-actions {
  margin-top: 2rem;
}

.bfsi-hero-secondary {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(2, 6, 23, 0.1);
  color: var(--navy-900);
}

.bfsi-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 38vw, 460px);
  max-height: min(560px, 58vh);
  padding: clamp(16px, 3.5vw, 36px);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, #f8fafc 0%, #e8eef5 45%, #dce4ee 100%);
  border: 1px solid rgba(100, 116, 139, 0.18);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.12), 0 22px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.bfsi-hero-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(480px, 52vh);
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  filter: var(--image-grade) drop-shadow(0 18px 36px rgba(15, 23, 42, 0.18));
  box-shadow: none;
}

.bfsi-hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

@media (max-width: 1024px) {
  .bfsi-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .bfsi-hero-media {
    order: -1;
    max-height: none;
    min-height: clamp(260px, 52vw, 400px);
  }

  .bfsi-hero-media img {
    max-height: min(420px, 48vh);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card:hover::before {
  transform: scaleX(1);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: var(--brand-gradient-soft);
  color: var(--blue-500);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: all 0.3s var(--timing);
}

/* Ensure Lucide icons inside icon-box are clearly visible */
.icon-box svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.card:hover .icon-box {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 60px 80px;
  background: linear-gradient(180deg, #eef5ff 0%, #dde8fb 100%);
  border-radius: var(--radius-xl);
  color: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 125, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-700);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════ */
.marquee-container {
  padding: 60px 0;
  background: var(--white);
  /* -top: 1pborderx solid var(--slate-100); */
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-logo {
  width: 168px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(191, 220, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.marquee-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(180deg, #eef5ff 0%, #dde8fb 100%);
  padding: clamp(3rem, 8vw, 6rem);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 125, 237, 0.18), transparent 60%);
}

.cta-banner h2 {
  color: var(--navy-900);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-cta-title {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #38bdf8 0%, #1d4ed8 48%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner p {
  color: var(--slate-600);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-banner > div {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.18), transparent 32%),
    linear-gradient(180deg, #eef5ff 0%, #dde8fb 100%);
  color: var(--navy-800);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2f80ed, #84b8ff, #2f80ed, transparent);
  background-size: 200% 100%;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0 28px;
}

.footer-col {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.3s var(--timing);
}

.footer-col:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 125, 237, 0.2);
  transform: translateY(-5px);
}

.footer-brand {
  background: transparent;
  border: none;
  padding: 0;
}

.footer-brand:hover {
  transform: none;
  background: transparent;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-wordmark img {
  max-width: clamp(108px, 10vw, 160px);
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.98rem;
  line-height: 1.7;
}

.compact-footer {
  padding-top: 3.75rem;
}

.compact-footer .compact-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(191, 220, 255, 0.16);
}

.compact-footer .compact-footer-copy {
  max-width: 42rem;
}

.compact-footer .compact-footer-copy p {
  color: var(--slate-400);
  font-size: 0.98rem;
}

.print-brand-page .site-header::before,
.print-brand-page .site-header.scrolled {
  background: rgba(8, 17, 33, 0.9);
}

/* Print Store header: logo + TM — TM was clipped by flex-shrink / overflow on .site-header */
body.print-brand-page .site-header {
  overflow: visible;
}

.print-brand-page .nav-wrap > .print-header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
  max-width: none;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.print-brand-page .print-header-wordmark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.print-brand-page .print-header-wordmark > img {
  width: 180px;
  max-width: 180px;
  height: auto;
  display: block;
}

.print-brand-page .print-header-tm {
  position: absolute;
  left: calc(100% + 3px);
  top: 50%;
  transform: translateY(-58%);
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #0f172a;
  white-space: nowrap;
  pointer-events: none;
  /* Readable on light glass; if header bar is dark, flip via rule below */
}

body.light-theme.print-brand-page .site-header .print-header-tm {
  color: #0f172a;
}

.print-brand-page .brand-eyebrow {
  color: rgba(191, 220, 255, 0.74);
}

.print-brand-page .brand-title {
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links li {
  display: block;
  align-items: center;
  margin-top: 6px;
  /* padding-right: 12px; */
}

.footer-links li > i,
.footer-links li > svg,
.footer-links li svg {
  flex: 0 0 auto;
}

/* Lucide injects SVGs; global svg {display:block} would stack icon above text */
.footer-links li svg,
.nfc-check-list li svg {
  display: inline-block;
  margin-right: 8px;
}

.nfc-check-list li {
  display: flex;
  align-items: flex-start;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--timing);
  color: var(--blue-500);
  font-size: 0.8rem;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-500);
  transition: width 0.3s var(--timing);
}

.footer-links a:hover {
  color: var(--blue-500);
  padding-left: 15px;
}

.footer-links a.active {
  color: var(--blue-500);
  font-weight: 700;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-links a:hover::after {
  width: 100%;
}

.ai-search-wrap {
  max-width: 980px;
}

.ai-search-box {
  margin: 8px 0 22px;
}

.ai-search-box input {
  width: 100%;
  border: 1px solid rgba(47, 90, 255, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  color: #12213e;
  background: #f8faff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-search-box input:focus {
  border-color: #2f5aff;
  box-shadow: 0 0 0 4px rgba(47, 90, 255, 0.12);
}

.ai-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-result-card {
  display: block;
  border: 1px solid rgba(19, 35, 68, 0.14);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 90, 255, 0.45);
  box-shadow: 0 10px 30px rgba(18, 33, 62, 0.08);
}

.ai-result-card h3 {
  margin: 0 0 8px;
  color: #12213e;
  font-size: 1.05rem;
}

.ai-result-card p {
  margin: 0;
  color: #4b5c73;
  line-height: 1.55;
}

.ai-search-empty {
  margin: 0;
  color: #4b5c73;
}

.solution-ctas {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .ai-search-results {
    grid-template-columns: 1fr;
  }
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-400);
  transition: all 0.3s var(--timing);
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-social a i {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-social a:hover {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(59, 125, 237, 0.4);
  transform: translateY(-3px);
}

.footer-newsletter {
  margin-top: 1.5rem;
}

.footer-newsletter form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 9999px;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.footer-newsletter input::placeholder {
  color: var(--slate-500);
}

.footer-newsletter input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 125, 237, 0.2);
}

.footer-newsletter input.newsletter-input-error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.footer-newsletter .newsletter-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--red-600);
}

.footer-newsletter .newsletter-submit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 9999px;
  border: none;
  background: var(--brand-gradient);
  color: var(--white);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.footer-newsletter .newsletter-submit-btn:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.footer-newsletter .newsletter-submit-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.footer-newsletter .newsletter-submit-btn i,
.footer-newsletter .newsletter-submit-btn svg.newsletter-send-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Hide spinner until Alpine shows it (pages without Alpine never show it) */
.footer-newsletter .newsletter-submit-btn > .newsletter-spinner {
  display: none;
}

body.light-theme .footer-social a.footer-social-x {
  color: #0f172a;
}

body.light-theme .footer-social a.footer-social-x:hover {
  color: #fff;
}

.footer-newsletter .newsletter-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: newsletter-spin 0.7s linear infinite;
}

@keyframes newsletter-spin {
  to { transform: rotate(360deg); }
}

.footer-newsletter .newsletter-status {
  margin-top: 8px;
  font-size: 0.9rem;
  min-height: 1.25em;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--timing);
}

.footer-contact p:hover {
  color: var(--blue-400);
}

.footer-contact p i {
  color: var(--blue-500);
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--timing);
  box-shadow: var(--shadow-blue);
  z-index: 998;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-lg);
}

/* ═══════════════════════════════════════
   ENHANCED SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--timing), transform 0.75s var(--timing);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Stagger children animations */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--timing);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Different easing for variety */
.reveal.ease-out {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--timing);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════
   STICKY CTA BUTTONS
   ═══════════════════════════════════════ */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.sticky-cta .btn {
  min-width: 180px;
  padding: 14px 24px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
}

.sticky-cta .btn-call {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--slate-200);
}

.sticky-cta .btn-call:hover {
  background: var(--slate-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.sticky-cta .btn-quote {
  background: var(--brand-gradient);
  color: var(--white);
}

.sticky-cta .btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

@media (max-width: 640px) {
  .sticky-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
    flex-direction: row;
  }

  .sticky-cta .btn {
    flex: 1;
    min-width: auto;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* Prevent fixed CTA overlap on tablet/mobile content blocks */
@media (max-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .vertical-card {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .about-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-hero-media img {
    height: clamp(260px, 72vw, 400px);
  }

  .brand-wordmark img {
    max-width: 168px;
    height: 40px;
  }

  .ps-unified-brand img {
    height: 34px;
    max-width: 185px;
  }

  .ps-unified-brand .tm {
    font-size: 0.7rem;
    transform: translateY(-0.55rem);
  }

  .brand-print img {
    width: 44px;
    height: 44px;
  }

  .brand-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .brand-title {
    font-size: 1rem;
  }

  .nav-wrap {
    gap: 0.9rem;
  }

  .site-nav {
    top: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    padding: 88px 16px 22px;
    border-radius: 24px;
  }

  .site-nav ul {
    gap: 6px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .site-nav > ul > li > a,
  .site-nav > ul > li > .dropdown-toggle {
    font-size: 0.98rem;
    padding: 13px 14px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compact-footer .compact-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container {
    padding: 0 1.25rem;
  }

  .footer-legal-links {
    gap: 14px;
  }

  .hero-standard {
    padding: 126px 0 48px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */
body.light-theme {
  --light-bg: #f8fafc;
  --light-bg-secondary: #ffffff;
  --light-text: #1e293b;
  --light-text-muted: #64748b;
  --light-border: #e2e8f0;
  --light-card-bg: rgba(255, 255, 255, 0.8);
  
  background: var(--light-bg);
  color: var(--light-text);
}

body.light-theme .site-header::before {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(191, 220, 255, 0.9);
}

body.light-theme .site-header .brand {
  color: var(--navy-900);
}

body.light-theme .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .site-nav a {
  color: var(--brand-ink);
}

body.light-theme .site-nav a:hover,
body.light-theme .site-nav a.active {
  color: var(--blue-600);
}

body.light-theme .site-nav a.btn-Client,
body.light-theme .site-nav a.btn-Client:hover,
body.light-theme .site-nav a.btn-Client:active,
body.light-theme .site-nav a.btn-Client:focus-visible {
  color: var(--white);
}

body.light-theme .site-nav ul {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(191, 219, 254, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

body.light-theme .btn-Client {
  box-shadow: 0 18px 36px -12px rgba(47, 128, 237, 0.65);
  border-color: rgba(24, 75, 181, 0.42);
}

body.light-theme .brand-eyebrow {
  color: rgba(35, 54, 93, 0.72);
}

body.light-theme .brand-title {
  color: var(--brand-ink);
}

body.light-theme .brand-subtitle {
  color: var(--slate-500);
}

body.light-theme .site-nav .dropdown-menu {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body.light-theme .site-nav .dropdown-menu a:hover {
  background: rgba(47, 128, 237, 0.08);
}

body.light-theme .nav-toggle {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(191, 219, 254, 0.95);
}

/* ═══════════════════════════════════════
   LEGAL / POLICY PAGES (Scoped)
   ═══════════════════════════════════════ */
.legal-container {
  max-width: 980px;
}

.legal-hero {
  min-height: auto;
  padding: 150px 0 54px;
}

.legal-title {
  margin-bottom: 10px;
}

.legal-meta {
  color: var(--slate-500);
  font-weight: 600;
}

.legal-body {
  padding-top: 0;
  padding-bottom: 96px;
}

.legal-card {
  padding: clamp(1.2rem, 2.4vw, 2.1rem);
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.legal-page .prose {
  color: var(--navy-800);
  line-height: 1.85;
  font-size: 1.02rem;
}

.legal-page .prose p {
  margin: 0 0 1rem;
}

.legal-page .prose h3 {
  margin: 1.75rem 0 0.7rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.legal-page .prose a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 700;
}

.legal-page .prose a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 126px 0 34px;
  }
  
  .legal-body {
    padding-bottom: 72px;
  }
}

/* Developers page */
.developers-hero {
  min-height: 0;
  padding: 150px 0 80px;
}

.developers-eyebrow-icon {
  width: 14px;
  height: 14px;
}

.developers-badge-wrap {
  margin-top: 24px;
}

.developers-beta-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--blue-100);
}

.developers-content {
  padding-top: 48px;
}

.developers-card-detail {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-top: 8px;
}

.developers-cta {
  margin-top: 64px;
}

.developers-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.developers-cta-icon {
  width: 18px;
  height: 18px;
}

.developers-docs-btn {
  background: rgba(131, 161, 238, 0.1);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.developers-docs-btn:hover {
  background: rgba(131, 161, 238, 0.2);
  color: #0f172a;
}

@media (max-width: 768px) {
  .developers-hero {
    padding: 126px 0 48px;
  }

  .developers-content {
    padding-top: 20px;
  }

  .developers-cta {
    margin-top: 40px;
  }

  .developers-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .developers-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 16px;
  }

  .vertical-content {
    padding: 1.2rem;
  }

  .case-content {
    padding: 14px;
  }

  .case-stats {
    gap: 10px;
  }
}

body.light-theme .hero {
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.08), transparent 40%),
    radial-gradient(circle at bottom left, rgba(24, 75, 181, 0.05), transparent 40%);
}

body.light-theme .section-alt {
  background: var(--white);
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4 {
  color: var(--navy-900);
}

body.light-theme p {
  color: #475569;
}

body.light-theme .card {
  background: var(--light-card-bg);
  border-color: var(--light-border);
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.2), 0 16px 38px rgba(15, 23, 42, 0.11);
}

body.light-theme .card.glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body.light-theme .vertical-card {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .icon-box {
  background: var(--blue-50);
}

body.light-theme .eyebrow {
  background: var(--blue-50);
  border-color: var(--blue-100);
}

body.light-theme .btn-secondary {
  background: var(--white);
  color: var(--navy-800);
  border: 1px solid var(--light-border);
}

body.light-theme .btn-secondary:hover {
  border-color: var(--blue-200);
}

body.light-theme .footer-col {
  background: rgba(2, 6, 23, 0.03);
  border-color: var(--light-border);
}

body.light-theme .footer-col:hover {
  background: rgba(2, 6, 23, 0.06);
}

body.light-theme .footer-links a:hover {
  color: var(--blue-600);
}

body.light-theme .footer-social a {
  background: rgba(2, 6, 23, 0.05);
  border-color: var(--light-border);
  color: var(--slate-600);
}

body.light-theme .footer-social a:hover {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
}

body.light-theme .marquee-container {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .nav-toggle span {
  background: var(--blue-600);
}

body.light-theme .mobile-menu-bg {
  background: var(--white);
}

/* Light Theme Footer Override */
body.light-theme .site-footer {
  background: linear-gradient(180deg, #eef5ff 0%, #dde8fb 100%);
  color: var(--navy-800);
}

body.light-theme .site-footer .brand {
  color: var(--navy-900);
}

body.light-theme .site-footer p,
body.light-theme .site-footer a {
  color: var(--slate-600);
}

body.light-theme .site-footer h4 {
  color: var(--navy-900);
}

/* ═══════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════ */
.gallery-section {
  background: var(--white);
  position: relative;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-filter {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: transparent;
  color: var(--slate-600);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--timing);
}

.gallery-filter:hover {
  border-color: var(--blue-300);
  color: var(--white);
}

.gallery-filter.active {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--timing);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--timing);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.4s var(--timing);
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

.gallery-overlay p {
  color: var(--slate-300);
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--timing) 0.1s;
}

.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

.gallery-view-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--timing);
}

.gallery-item:hover .gallery-view-btn {
  opacity: 1;
  transform: scale(1);
}

.gallery-view-btn:hover {
  background: var(--blue-500);
}

/* Gallery Category Tag */
.gallery-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(59, 125, 237, 0.9);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gallery Light Theme */
body.light-theme .gallery-section {
  background: #f8fafc; 
}

body.light-theme .gallery-filter {
  border: 1px solid #e2e8f0; 
  color: #475569; 
  background: #ffffff;
  transition: all 0.3s ease;
}

body.light-theme .gallery-filter:hover {
  border-color: #3b82f6; 
  color: #1d4ed8; 
  background: #eff6ff; 
}

body.light-theme .gallery-item .gallery-overlay {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.3) 50%, transparent 100%);
}

body.light-theme .gallery-category {
  background: var(--blue-500);
}

/* Gallery Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .gallery-filter {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════
   TEAM SECTION
   ═══════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--slate-100);
  transition: all 0.4s var(--timing);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-100);
}

.team-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  object-fit: contain;
  border: 3px solid var(--blue-100);
  transition: all 0.3s var(--timing);
}

.team-card:hover .team-image {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px rgba(59, 125, 237, 0.3);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}

.team-card .role {
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  color: var(--slate-500);
  transition: all 0.3s var(--timing);
}

.team-social a:hover {
  background: var(--brand-gradient);
  color: var(--white);
  transform: translateY(-3px);
}

/* Team Light Theme */
body.light-theme .team-card {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .team-social a {
  background: var(--light-bg);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   VALUES / MISSION SECTION
   ═══════════════════════════════════════ */
.values-section {
  position: relative;
  overflow: hidden;
}

.values-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  z-index: 0;
}

.values-section .container {
  position: relative;
  z-index: 1;
}

.values-section h2,
.values-section h3 {
  color: var(--white);
}

.values-section p {
  color: var(--slate-300);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-item {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--timing);
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 125, 237, 0.3);
  transform: translateY(-5px);
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 125, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--blue-400);
  transition: all 0.3s var(--timing);
}

.value-item:hover .value-icon {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 0 30px rgba(59, 125, 237, 0.4);
}

.value-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.value-item p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Light theme values override */
body.light-theme .values-bg {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
}

body.light-theme .value-item {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   TIMELINE SECTION
   ═══════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--slate-200);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  position: relative;
  margin-bottom: 48px;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--blue-100);
  z-index: 1;
}

.timeline-content {
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--slate-100);
  max-width: 400px;
  transition: all 0.3s var(--timing);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.timeline-year {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

body.light-theme .timeline::before {
  background: var(--light-border);
}

body.light-theme .timeline-dot {
  box-shadow: 0 0 0 4px var(--blue-50);
}

body.light-theme .timeline-content {
  background: var(--white);
  border-color: var(--light-border);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-dot {
    left: 20px;
  }
}

/* ═══════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: all 0.3s var(--timing);
}

.faq-item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question h3 {
  font-size: 1.05rem;
  color: var(--navy-800);
  font-weight: 600;
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--timing);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--brand-gradient);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--timing);
}

.faq-answer-content {
  padding: 0 32px 24px;
  color: var(--slate-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

body.light-theme .faq-item {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .faq-question h3 {
  color: var(--navy-900);
}

/* ═══════════════════════════════════════
   MAP SECTION
   ═══════════════════════════════════════ */
.map-section {
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.map-container {
  height: 450px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate-500);
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.95) 0%, rgba(203, 213, 225, 0.95) 100%);
  transition: opacity 0.25s var(--timing);
}

.map-placeholder i {
  width: 64px;
  height: 64px;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.map-container.has-map .map-placeholder {
  opacity: 0;
  pointer-events: none;
}

.map-info {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 350px;
  z-index: 2;
}

.map-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.map-info p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

body.light-theme .map-section {
  background: var(--light-bg);
}

/* ═══════════════════════════════════════
   CASE STUDY CARDS
   ═══════════════════════════════════════ */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-100);
  transition: all 0.4s var(--timing);
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.24), 0 16px 36px rgba(15, 23, 42, 0.12);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.34), 0 24px 46px rgba(30, 64, 175, 0.22);
  border-color: var(--blue-100);
}

.case-image {
  height: 300px;
  object-fit: cover;
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--image-grade);
  transition: transform 0.6s var(--timing);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
  filter: var(--image-grade-hover);
}

.case-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--brand-gradient);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.case-content {
  padding: 22px;
}

.case-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy-900);
}

.case-content p {
  font-size: 0.9rem;
  color: var(--slate-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.case-stats {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.case-stat {
  text-align: center;
}

.case-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-600);
}

.case-stat-label {
  font-size: 0.65rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.light-theme .case-card {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .case-stats {
  border-color: var(--light-border);
}

@media (max-width: 1024px) {
  .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   FEATURES COMPARISON TABLE
   ═══════════════════════════════════════ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
}

.comparison-table th {
  background: var(--blue-50);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table th:first-child {
  background: #dbeafe;
}

.comparison-table td {
  color: var(--slate-600);
  font-size: 0.9rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--blue-50);
}

.comparison-check {
  color: var(--blue-500);
  font-weight: 700;
}

.comparison-x {
  color: var(--slate-300);
}

body.light-theme .comparison-table {
  background: var(--white);
  border-color: var(--light-border);
}

body.light-theme .comparison-table th,
body.light-theme .comparison-table td {
  border-color: var(--light-border);
}

/* Audit normalization helpers */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.hero-split-content {
  min-width: 0;
}

.hero-split-media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(191, 220, 255, 0.72);
}

.hero-split-media img {
  width: 100%;
  height: clamp(320px, 42vw, 480px);
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--timing), filter 0.4s var(--timing);
}

.hero-split-media:hover img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #edf4ff, #f8fbff);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.page-media-frame img,
.page-media-img {
  width: 100%;
  height: clamp(280px, 34vw, 450px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-media-img-top {
  object-position: top;
}

.list-muted {
  margin-top: 1.5rem;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.list-muted li,
.list-check-accent li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
}

.list-muted i,
.list-muted svg,
.list-check-accent i,
.list-check-accent svg {
  width: 14px;
  height: 14px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.list-check-accent {
  margin-top: 1.5rem;
  color: var(--slate-600);
}

.list-check-accent i,
.list-check-accent svg {
  color: var(--blue-500);
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  height: 100%;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--slate-200);
}

.pricing-card-featured {
  border-color: var(--blue-500);
  background: linear-gradient(135deg, rgba(59, 125, 237, 0.05), transparent);
}

.pricing-card-head {
  margin-bottom: 1rem;
}

.pricing-card-head h3 {
  font-size: 1.5rem;
}

.pricing-card-head p {
  color: var(--slate-500);
}

.pricing-card-price {
  margin: 1.5rem 0;
}

.pricing-card-price strong {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-900);
}

.pricing-card .footer-links {
  color: var(--slate-600);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.faq-static-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-static-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.faq-static-item:last-child {
  border-bottom: 0;
}

.faq-static-item h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.faq-static-item i,
.faq-static-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
  flex-shrink: 0;
}

.faq-static-item p {
  color: var(--slate-600);
  margin-left: 1.75rem;
}

.team-grid-section {
  margin-top: 30px;
}

.gallery-item-copy h3,
.gallery-item-copy p {
  color: inherit;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 24px 20px;
  }

  .hero-split-media img,
  .page-media-frame img,
  .page-media-img {
    height: 260px;
  }
}

/* ═══════════════════════════════════════
   SERVICE DETAIL SECTIONS
   ═══════════════════════════════════════ */
.service-detail {
  padding: 100px 0;
}

.service-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.service-header h1 {
  margin-bottom: 20px;
}

.service-header p {
  font-size: 1.15rem;
  color: var(--slate-500);
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.nfc-highlight {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.nfc-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nfc-highlight-media {
  display: grid;
  gap: 18px;
}

.nfc-highlight-media > img {
  width: 100%;
  
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.nfc-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nfc-chip-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.nfc-check-list {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.nfc-check-list-compact {
  color: var(--slate-500);
}

.nfc-check-list i {
  width: 14px;
  margin-right: 8px;
}

/* Lucide replaces <i> with <svg>, so apply sizing too */
.nfc-check-list svg {
  width: 14px;
  height: 14px;
}

.nfc-check-list-accent i {
  color: var(--blue-500);
}

.nfc-highlight-content h3 {
  margin-bottom: 1rem;
}

.nfc-highlight-content p {
  margin-bottom: 1rem;
}

.nfc-page-hero {
  padding-top: 150px;
  background: var(--slate-50);
  position: relative;
  overflow: hidden;
}

.nfc-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(47, 128, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(24, 75, 181, 0.08) 0%, transparent 45%);
}

.nfc-page-hero .container {
  position: relative;
  z-index: 1;
}

.nfc-page-copy {
  max-width: 840px;
}

.nfc-page-copy p {
  max-width: 760px;
}

.nfc-page-actions {
  margin-top: 2rem;
}

.nfc-page-grid {
  margin-top: 3rem;
  grid-template-columns: 1.25fr 1fr;
}

.nfc-section-list {
  margin-top: 1.5rem;
  color: var(--slate-500);
}

.nav-wrap-wide {
  padding: 0 4rem;
}

.btn-client-inline {
  padding: 10px 20px;
}

.service-feature {
  display: flex;
  gap: 20px;
}

.service-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--timing);
}

.service-feature-icon svg,
.service-feature-icon i[data-lucide]
 {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
  color: currentColor;
  display: inline-block;
}

.service-feature:hover .service-feature-icon {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.service-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-feature p {
  font-size: 0.9rem;
  color: var(--slate-500);
}

body.light-theme .service-feature-icon {
  background: var(--blue-50);
}

@media (max-width: 768px) {
  .nav-wrap-wide {
    padding: 0 1.25rem;
  }

  .nfc-highlight {
    grid-template-columns: 1fr;
  }

  .nfc-highlight-media > img {
    min-height: 280px;
  }

  .nfc-chip-grid {
    grid-template-columns: 1fr;
  }

  .nfc-chip-grid img {
    height: 220px;
  }

  .nfc-page-grid {
    grid-template-columns: 1fr;
  }

  .service-features {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   CLIENT LOGOS MARQUEE
   ═══════════════════════════════════════ */
.client-logos {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  overflow: hidden;
}

.client-logos h3 {
  text-align: center;
  font-size: 1rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.client-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.client-track img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s var(--timing);
}

.client-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

body.light-theme .client-logos {
  background: var(--light-bg);
  border-color: var(--light-border);
}
