:root {
  --bg-color: #FFFFFF;
  --surface-color: #EDF4FB;
  --primary-color: #2563EB;
  --text-color: #0F172A;
  --text-secondary-color: #475569;
  --border-color: #DCE6F2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
}

.product-card {
  border: 1.5px solid #B2C8E3 !important;
}

/* ──────────────────────────────────────────
   Enterprise Navigation System
   ────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(37, 99, 235, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
  height: 64px;
  overflow: visible;
}

.site-nav.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(37, 99, 235, 0.08);
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.nav-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Desktop menu container */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
  height: 100%;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

/* Nav items (top-level links & dropdown triggers) */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  height: 100%;
  white-space: nowrap;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

/* Chevron icon inside dropdown triggers */
.nav-item .nav-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-chevron {
  opacity: 1;
}

/* Dropdown group (wrapper for trigger + panel) */
.nav-dropdown-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.nav-dropdown-group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-group:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown links */
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary-color);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover {
  background: var(--surface-color);
  color: var(--primary-color);
}

/* Coming soon badge */
.nav-coming-soon {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary-color);
  background: var(--surface-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--bg-color);
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  margin-left: 16px;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ─── Mobile ─── */

.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #ffffff;
}

.nav-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
  .nav-mobile-toggle {
    display: none;
  }
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2460e6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px 32px;
  z-index: 9998;
}

.nav-mobile-panel.open {
  display: block;
  animation: navSlideDown 0.25s ease-out;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile direct links */
.nav-mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: #ffffff;
}

/* Mobile accordion section */
.nav-mobile-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-section:first-child {
  border-top: none;
}

.nav-mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.nav-mobile-section-header:hover {
  color: #ffffff;
}

.nav-mobile-section-header .mobile-chevron {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  transition: transform 0.25s ease;
}

.nav-mobile-section-header.expanded .mobile-chevron {
  transform: rotate(180deg);
}

.nav-mobile-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-mobile-section-body.open {
  max-height: 300px;
}

.nav-mobile-section-body a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Outfit', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-mobile-section-body a:hover {
  color: #ffffff;
}

.nav-mobile-section-body .coming-soon-mobile {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Mobile CTA */
.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 16px;
  background: var(--bg-color);
  color: var(--primary-color);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.nav-mobile-cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

.nav-mobile-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* ──────────────────────────────────────────
   Toast system (unchanged)
   ────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 8px;
  animation: slideIn 0.3s ease-out;
  font-family: 'Outfit', sans-serif;
}

.toast-success {
  background: #065f46;
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.toast-error {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
}

.inline-logo-image {
  display: block;
  height: 100%;
  width: auto;
}

.inline-icon-image {
  display: block;
  width: 100%;
  height: 100%;
}

/* ──────────────────────────────────────────
   Footer styling (Navbar Color Alignment)
   ────────────────────────────────────────── */
footer {
  background: rgba(37, 99, 235, 0.92) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

footer h4 {
  color: #ffffff !important;
}

footer p,
footer span,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.75) !important;
}

footer a:hover {
  color: #ffffff !important;
}

footer .border-t {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

footer .gradient-text {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* Footer Social Icons Overrides */
footer a.footer-social-link {
  color: #475569 !important;
  background-color: #ffffff !important;
  border-color: #dce7f3 !important;
}

footer a.footer-social-link svg {
  fill: #475569 !important;
}

footer a.footer-social-link:hover {
  color: #2563eb !important;
  border-color: #2563eb !important;
  background-color: #f0f6ff !important;
}

footer a.footer-social-link:hover svg {
  fill: #2563eb !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ══════════════════════════════════════════ */

/* ─── Extra Small Screens (phones ≤ 480px) ─── */
@media (max-width: 480px) {

  /* Tighter global spacing */
  .max-w-7xl,
  .max-w-6xl,
  .max-w-4xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero headline scaling */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 1.125rem !important;
  }

  /* Card padding tightened */
  .card-hover {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  /* Product cards tighter */
  .product-card {
    padding: 20px !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .product-card h3 {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Footer bottom bar stacks vertically */
  footer .border-t.pt-8 {
    flex-direction: column !important;
    text-align: center;
    gap: 8px !important;
  }

  /* Toast - don't overflow viewport */
  .toast-container {
    right: 12px !important;
    left: 12px !important;
    top: 72px !important;
  }

  .toast {
    padding: 10px 14px !important;
    font-size: 0.8125rem !important;
  }

  /* Nav brand text smaller */
  .nav-brand-text {
    font-size: 0.9375rem;
  }

  /* Nav CTA button hide text overflow */
  .nav-cta {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Mobile panel spacing */
  .nav-mobile-panel {
    padding: 12px 16px 24px;
  }
}

/* ─── Small Screens (phones ≤ 640px) ─── */
@media (max-width: 640px) {

  /* Hero section min height adjustment */
  section[id="home"] {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }

  /* Background blobs: reduce size to prevent horizontal scroll */
  .absolute.w-96 {
    width: 200px !important;
    height: 200px !important;
  }

  .absolute.w-80 {
    width: 160px !important;
    height: 160px !important;
  }

  /* Reduce section vertical spacing */
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Hero specific: keep some top padding for nav */
  section:first-of-type,
  section[id="home"],
  section[id="about"],
  section[id="partners"],
  section[id="contact"],
  section[id="creditgenai"] {
    padding-top: 80px !important;
  }

  /* Double circle icons: smaller on mobile */
  .relative.w-24.h-24 {
    width: 64px !important;
    height: 64px !important;
  }

  .relative.w-24.h-24 .w-16.h-16 {
    width: 44px !important;
    height: 44px !important;
  }

  .relative.w-24.h-24 .w-16.h-16 svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Mission/Vision cards: text alignment */
  .flex.sm\\:flex-row {
    flex-direction: column !important;
  }
}

/* ─── Medium Screens (tablets ≤ 768px) ─── */
@media (max-width: 768px) {

  /* Hide absolutely positioned large decorative elements that may cause overflow */
  .absolute.w-\\[600px\\] {
    width: 300px !important;
    height: 300px !important;
  }

  /* Footer grid: 2 columns on tablets */
  footer .grid.lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Reduce gap in grids */
  .grid.gap-16 {
    gap: 32px !important;
  }

  .grid.gap-8 {
    gap: 24px !important;
  }
}

/* ─── Touch device improvements ─── */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets */
  .nav-item {
    padding: 12px 16px;
    min-height: 44px;
  }

  .nav-mobile-link {
    padding: 14px 0;
    min-height: 44px;
  }

  .nav-mobile-section-header {
    padding: 14px 0;
    min-height: 44px;
  }

  /* Disable hover transform that doesn't work well on touch */
  .card-hover:hover {
    transform: none;
  }

  /* Make buttons easier to tap */
  button,
  a.inline-flex {
    min-height: 44px;
  }

  /* Ensure inputs are comfortable to use */
  input,
  textarea,
  select {
    font-size: 16px !important;
    /* Prevents iOS zoom on focus */
    min-height: 44px;
  }
}

/* ─── Landscape phone orientation ─── */
@media (max-height: 500px) and (orientation: landscape) {
  .site-nav {
    height: 48px;
  }

  .nav-mobile-panel {
    top: 48px;
  }

  section[id="home"] {
    min-height: auto !important;
    padding-top: 56px !important;
  }
}

/* ─── Print styles ─── */
@media print {

  .site-nav,
  .nav-mobile-toggle,
  .toast-container {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}