/* Design System & Global Styles */
:root {
  /* Branding Colors */
  --primary-color: #092f75;
  /* Exact Metallic Blue from reference */
  --primary-dark: #051b44;
  --primary-light: #e6eff8;
  --secondary-color: #051b44;
  /* Dark Blue for secondary elements */
  --accent-color: #ffd700;
  /* Gold accent for metallic contrast */
  --button-color: #2e8b57;
  /* Customizable Button Color (Nature Green default) */
  --text-dark: #092f75;
  /* Matching header color to primary blue */
  --text-body: #0f2545;
  /* Deep Blue for body text */
  --text-light: #475569;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-accent: #f1f5f9;

  /* Typography */
  --font-main: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

p {
  margin-bottom: var(--spacing-sm);
}

.eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Gold accent underline beneath centered section headings, for visual rhythm */
.text-center h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 1.1rem auto 0;
  background: var(--accent-color);
  border-radius: 2px;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-lg) 0;
}

.bg-light {
  background-color: var(--bg-light);
  padding-top: var(--spacing-lg);
}

.bg-accent {
  background-color: var(--primary-light);
  padding-top: var(--spacing-lg);
}

.text-center {
  text-align: center;
}

.text-center > * {
  margin-left: auto;
  margin-right: auto;
}

.text-left {
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 6px;
  /* Pillow shape for modern feel */
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(9, 47, 117, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(9, 47, 117, 0.35);
}

.btn-secondary {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

/* Header & Nav */
header {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: none;
  padding: 2rem 0 0.2rem 0;
  /* Increased top padding to give space above nav links */
}

.nav-container {
  display: flex;
  justify-content: flex-end; /* Put links on the right side (original place) */
  align-items: center;
  position: relative;
  height: auto;
  min-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
  -webkit-text-stroke: 0.5px var(--primary-color);
}

/* Ensure the logo is visible (white) on pages with a dark hero, same as nav links */
.hero-split ~ * header .logo,
body:has(.hero-split) .logo {
  color: white;
}

body:has(.hero-split) .logo span {
  color: var(--accent-color);
  -webkit-text-stroke: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  z-index: 1001;
  /* Ensure nav links stay above all other elements */
}

.nav-links a {
  font-weight: 600;
  /* Bolder */
  color: white; /* Header is always blue now */
  font-size: 1.15rem;
  /* Increased from 0.95rem */
}

/* Ensure links are white on pages with dark heroes like upi-payments.html */
.hero-split ~ * header .nav-links a,
.bg-primary header .nav-links a,
body:has(.hero-split) .nav-links a {
  color: white;
}

body:has(.hero-split) .nav-links a.btn,
.nav-links a.btn {
  color: white;
}

/* Ensure hamburger button is white on dark hero-split pages */
body:has(.hero-split) .mobile-menu-btn {
  color: white;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* Contact Button in Nav */
.nav-links .btn {
  background-color: var(--button-color);
  /* Uses variable */
  color: white;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Generic shadow color to work with any button color */
}

.nav-links .btn:hover {
  filter: brightness(0.9);
  /* Auto-darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 0 0 60px 0;
  background-color: #f1f5f9;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f8 45%, #e0e7f1 100%);
  color: var(--text-body);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  opacity: 0.85;
}

.hero-sub {
  padding: 110px 0 60px 0;
}

.hero-sub h1 {
  margin-bottom: 0.5rem; /* ~1 line space below title */
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.hero-logo {
  width: 1000px;
  max-width: 100%;
  height: auto;
  transition: all 0.3s ease;
  transform: scale(1.15);
  /* Increase logo size in both mobile and desktop views */
}

.hero-logo-box {
  margin-top: -2rem;
  /* Reduce this negative number to add space, increase negative number to suck logo higher up */
}

.hero-info-box {
  width: 100%;
  max-width: none;
  margin-top: -13.5rem;
  /* ~1-2 line gap below logo */
}

.motto-text {
  font-size: 1.5rem;
  /* Reduced hero section text size */
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
  margin: 0 auto -2.5rem auto;
  /* Added space below the text */
}

.desktop-only {
  display: block;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  animation: rotate 60s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-shadow: none;
}

.hero p {
  opacity: 0.9;
  text-shadow: none;
  color: var(--text-body);
  max-width: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Card Grid Styles */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Process flow — a simple row of icon nodes with generous whitespace
   instead of connecting lines (which got visually noisy at most widths). */
.flow-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 1rem;
  margin: 2.5rem auto 0;
  max-width: 900px;
}

.flow-step {
  flex: 1 1 150px;
  max-width: 200px;
  text-align: center;
}

.flow-step .icon-wrapper {
  margin: 0 auto 0.85rem;
}

.flow-step h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.flow-step.is-alert .icon-wrapper {
  background: linear-gradient(145deg, #fdecea 0%, #ffffff 100%);
  color: #c0392b;
}

.flow-step.is-alert h4 {
  color: #c0392b;
}

.flow-step.is-success .icon-wrapper {
  background: linear-gradient(145deg, #e8f6ee 0%, #ffffff 100%);
  color: #1e8449;
}

.flow-step.is-success h4 {
  color: #1e8449;
}

/* Outcome banner — one compact row stating both branch outcomes, instead
   of two full-width boxes. */
.outcome-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 780px;
  margin: 2.25rem auto 3rem;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.outcome-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.outcome-item p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-body);
}

.outcome-item.success { color: #1e8449; }
.outcome-item.alert { color: #c0392b; }

.outcome-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 560px) {
  .outcome-divider { display: none; }
}

/* Compact icon-left feature list — for short point-style content where
   full padded cards leave too much empty space. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.5rem 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(9, 47, 117, 0.08);
  transition: transform 0.25s ease;
}

.feature-item:hover {
  transform: translateX(4px);
}

.feature-item .icon-wrapper {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.5rem !important;
  margin-bottom: 0 !important;
}

.feature-item-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.feature-item-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card.interactive-card:hover::before {
  opacity: 1;
}

.card.interactive-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(40, 90, 157, 0.1);
}

.icon-wrapper {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-light) 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(9, 47, 117, 0.06);
  filter: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .icon-wrapper {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(9, 47, 117, 0.06), 0 8px 16px rgba(9, 47, 117, 0.12);
}

.card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-color);
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(40, 90, 157, 0.2);
  transition: border-color 0.3s;
}

.card:hover .card-link {
  border-bottom-color: var(--primary-color);
}

/* Feature Lists */
.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 800;
}

/* Highlight Box */
.highlight-box {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-color);
  background-image: linear-gradient(to bottom right, #fff, #f8faff);
}

.highlight-box h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.belief-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #0a1120 100%);
  color: white;
  padding: var(--spacing-lg) 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--accent-color);
}

footer h3 {
  color: white;
  margin-bottom: 0.5rem;
}

footer p {
  color: #94a3b8;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

footer a {
  color: white;
  opacity: 0.8;
  font-weight: 500;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contact Box */
.contact-box {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

/* Video Styling */
.video-section {
  background-color: var(--text-dark);
  /* Dark background for cinematic feel */
  color: white;
}

.video-section h2,
.video-section p {
  color: white;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: black;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Split Hero Layout */
.hero-split {
  padding: 110px 0 2.5rem; /* Reduced space: ~1-2 line breaks below header */
  background: var(--primary-color);
  background: linear-gradient(135deg, #092f75 0%, #051b44 100%);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Adjusted ratio for better balance */
  gap: 5rem;
  align-items: center;
}

.hero-split-content {
  text-align: left;
  z-index: 2;
}

.hero-split-content h1 {
  color: white;
  font-size: 4rem; /* Slightly larger for impact */
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-split-content .lead {
  color: rgba(255, 255, 255, 0.85); /* Slightly softer white */
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-split-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  background: transparent; /* Changed from black to transparent */
  justify-self: center; /* Center in grid column if smaller */
}

.hero-split-video:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-split-video video {
  max-width: 100%; /* Only scale down if too big, never scale up/zoom */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Mobile Responsiveness for Split Hero */
@media (max-width: 992px) {
  .hero-split {
    padding: calc(2rem + 60px) 0 3rem;
  }

  .hero-split .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-split-content {
    text-align: center;
    order: 1;
  }

  /* Scale heading down so it doesn't overflow on tablet/mobile */
  .hero-split-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  /* Scale lead text down slightly */
  .hero-split-content .lead {
    font-size: 1.2rem;
  }

  /* Centre the CTA button row */
  .hero-split-content div[style*="flex"] {
    justify-content: center;
  }

  .hero-split-video {
    order: 2;
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-split-video:hover {
    transform: none;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
  }

  .section {
    padding: 1.75rem 0;
    /* Reduced section padding on mobile to tighten vertical gaps */
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 105px;
    /* Adjusted due to header top padding */
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 0 2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.28s ease;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding: 2rem;
    pointer-events: auto;
  }

  /* On mobile, nav dropdown has white bg — override the hero-split white text rule */
  body:has(.hero-split) .nav-links a {
    color: var(--text-dark);
  }

  /* Keep the Contact Us button text white (it has a colored background) */
  body:has(.hero-split) .nav-links a.btn {
    color: white;
  }

  .mobile-menu-btn {
    display: block;
    transform: translateY(-1.6rem);
    /* Move hamburger menu up slightly on mobile */
  }

  h1 {
    font-size: 2.5rem;
  }

  /* Must override .hero-split-content h1 { font-size: 4rem } explicitly */
  .hero-split-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    right: -100%;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .motto-text {
    font-size: 0.7rem;
    /* Reduced text size for mobile */
    margin: 0 auto -2.5rem auto;
    /* Significantly reduced space below on mobile */
  }

  .desktop-only {
    display: none;
  }

  .hero-logo {
    transform: scale(1.25);
    /* Slightly higher scale on mobile to maximize size */
  }

  .hero-info-box {
    margin-top: -4rem;
    /* Reduce space between logo and text on mobile (~1-2 line gap) */
  }

  .hero-sub {
    padding: 50px 0 30px 0; /* Brings About title ~1 line underneath the header */
  }
}

/* --- Robotics Page Refinements --- */

/* Compact Section Spacing */
.section-compact {
  padding: 3rem 0 1rem;
}

/* Process Timeline (Deployment Model) */
.process-wrapper {
  position: relative;
  padding: 3rem 0;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: 0;
  border-radius: 4px;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.step-number {
  width: 80px;
  height: 80px;
  background: white;
  border: 3px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline-step:hover .step-number {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Staggered Animation */
.timeline-step:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-step:nth-child(2) {
  animation-delay: 0.3s;
}

.timeline-step:nth-child(3) {
  animation-delay: 0.5s;
}

.timeline-step:nth-child(4) {
  animation-delay: 0.7s;
}

.timeline-step:nth-child(5) {
  animation-delay: 0.9s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    gap: 2rem;
  }

  .timeline-line {
    width: 4px;
    height: 100%;
    left: 40px;
    top: 0;
    transform: translateX(-50%);
  }

  .timeline-step {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    width: 100%;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* --- Deployment Model Redesign (Creative) --- */
.deployment-section {
  padding: 4rem 0;
  overflow: hidden;
}

.deployment-wrapper {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

/* Connecting Line */
.deployment-connector {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--bg-light-accent, #e2e8f0);
  z-index: 0;
  overflow: hidden;
}

.deployment-connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-100%);
}

.deployment-wrapper.visible .deployment-connector::after {
  animation: lineProgress 2s ease-out forwards;
}

@keyframes lineProgress {
  to {
    transform: translateX(0);
  }
}

/* Steps Container */
.deployment-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Individual Step */
.deployment-step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  opacity: 0;
}

.deployment-wrapper.visible .deployment-step {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.step-icon-wrapper {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.step-icon-wrapper svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  transition: transform 0.3s ease;
}

.deployment-step:hover .step-icon-wrapper {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: var(--primary-color);
  border-color: white;
}

.deployment-step:hover .step-icon-wrapper svg {
  fill: white;
  transform: scale(1.1);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Stagger Animations */
.deployment-step:nth-child(1) {
  animation-delay: 0.2s;
}

.deployment-step:nth-child(2) {
  animation-delay: 0.5s;
}

.deployment-step:nth-child(3) {
  animation-delay: 0.8s;
}

.deployment-step:nth-child(4) {
  animation-delay: 1.1s;
}

.deployment-step:nth-child(5) {
  animation-delay: 1.4s;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

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

/* Responsive */
@media (max-width: 900px) {
  .deployment-steps {
    flex-direction: column;
    gap: 3rem;
  }

  .deployment-connector {
    width: 4px;
    height: 100%;
    left: 50px;
    top: 0;
    transform: translateX(-50%);
  }

  .deployment-connector::after {
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
  }

  .deployment-wrapper.visible .deployment-connector::after {
    animation: lineProgressVertical 2s ease-out forwards;
  }

  @keyframes lineProgressVertical {
    to {
      transform: translateY(0);
    }
  }

  .deployment-step {
    display: flex;
    text-align: left;
    gap: 1.5rem;
    align-items: center;
  }

  .step-icon-wrapper {
    margin: 0;
    flex-shrink: 0;
  }
}

/* --- FIX FOR INVISIBLE CARDS --- */
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Extended delays for more items */
.stagger-children.visible > *:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.visible > *:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.visible > *:nth-child(6) {
  transition-delay: 0.6s;
}

/* --- CCTV Industries Section --- */
.industries-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.industry-card {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  min-width: 280px;
  flex: 1 1 300px;
  /* Responsive flex basis */
  max-width: 400px;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 47, 117, 0.1);
}

.industry-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.industry-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.industry-text {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Card Container */
.team-member {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
}

/* Inner wrapper that does the rotating */
.team-member-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* When active/flipped */
.team-member.flipped .team-member-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Front & Back Sides */
.member-front,
.member-back {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.team-member:hover .member-front,
.team-member:hover .member-back {
  box-shadow: var(--shadow-md);
}

/* Front Side is relative to define parent height */
.member-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

/* Back Side is absolute to overlap front side */
.member-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  z-index: 1;
  background: var(--bg-white);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.member-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.back-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.back-role {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.back-divider {
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.back-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.back-tap-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  margin-top: auto;
}

.team-member:hover .back-tap-hint {
  opacity: 1;
}

/* Scrollable container for backside descriptions */
.member-back-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
  scrollbar-width: none;
}

.member-back-scroll::-webkit-scrollbar {
  display: none;
}

/* Profile Description Section */
.profile-desc-section {
  margin-top: 1rem;
  text-align: center;
}

.profile-desc-title {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.profile-desc-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
  font-weight: 400;
  margin-bottom: 0;
  text-align: center;
}

.profile-desc-text.empty-desc {
  min-height: 100px;
  display: block;
}

.member-image {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  background-color: var(--bg-accent);
  overflow: hidden;
}

.member-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-image span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-light);
}

.member-info {
  padding: 1.5rem 1rem;
}

.member-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* --- Contact Page Styles --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.text-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.map-container iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2000;
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notification-success {
  border-left: 5px solid #10b981;
}

.notification-error {
  border-left: 5px solid #ef4444;
}

.notification-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-content {
  font-weight: 600;
  color: var(--text-dark);
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Founder Profile Page Enhancements --- */
.founder-profile-section {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-xl) !important;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    position: relative;
}

.founder-profile-section .container {
    max-width: 1200px;
}

.founder-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(9, 47, 117, 0.1), transparent);
}

.founder-profile-section .grid-2 {
    gap: 6rem;
    align-items: flex-start;
}

.founder-bio {
    max-width: 65ch;
}

.founder-profile-section h2 {
    font-size: 2.5rem; /* Consistent with site-wide h2 */
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.founder-profile-section .role {
    margin-bottom: 2.5rem !important;
    font-size: 1rem;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--primary-light);
    display: inline-block;
    padding-bottom: 0.75rem;
    font-weight: 700 !important;
}

.founder-profile-section p {
    line-height: 1.8; /* Consistent but slightly improved for readability */
    margin-bottom: 1.75rem; /* Consistent with global p margin-bottom */
    font-size: 1.05rem; /* Consistent with site-wide p */
    color: var(--text-body);
}

.founder-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.founder-image-wrapper {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.founder-sidebar .highlight-box,
.founder-sidebar .mission-box {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    border-left: 6px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.02);
    border-left: 6px solid var(--primary-color);
    text-align: left;
    margin-top: 0;
}

.founder-sidebar .highlight-box:hover,
.founder-sidebar .mission-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.founder-sidebar .mission-box strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.founder-sidebar .mission-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 500;
}

.founder-profile-section .feature-list li {
    font-size: 1.05rem !important; /* Consistent with site-wide p */
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive adjustments for founder section */
@media (max-width: 992px) {
    .founder-profile-section {
        padding-top: var(--spacing-lg) !important;
        padding-bottom: var(--spacing-lg) !important;
    }

    .founder-profile-section .grid-2 {
        gap: 3rem;
    }
    
    .founder-sidebar {
        position: relative;
        top: 0;
    }
    
    .founder-profile-section h2 {
        font-size: 2.25rem;
    }
    
    .founder-sidebar .highlight-box,
    .founder-sidebar .mission-box {
        padding: 2rem;
    }
    
    .founder-sidebar .highlight-box:hover,
    .founder-sidebar .mission-box:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .founder-profile-section .role {
        margin-bottom: 2rem !important;
    }
    
    .founder-profile-section p {
        font-size: 1rem;
    }
    
    .founder-image-wrapper {
        height: 250px;
    }
}

/* Timeline (How It Works) — moved here so it can be reused from the
   homepage as well as the standalone how-it-works.html page. */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  opacity: 0.2;
  border-radius: 4px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item.right::after { left: -10px; }

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-step {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.timeline-final {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
  .timeline-item.left::after, .timeline-item.right::after { left: 21px; }
  .timeline-item.right { left: 0%; }
}

/* Business model tier cards — moved here so it can be reused from the
   homepage as well as the standalone business-models.html page. */
.tier-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
}

.tier-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.tier-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  min-height: 50px;
}

.tier-features {
  flex-grow: 1;
}

.tier-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-features li {
  padding: 10px 0;
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: bold;
  font-size: 1.2rem;
}

.tier-btn {
  margin-top: 2rem;
  width: 100%;
}


/* How It Works — grouped-phases accordion (replaces the 12-step zigzag
   timeline with 4 collapsible phases). */
.phase-accordion {
  max-width: 800px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.phase-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.phase-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phase-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.phase-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.phase-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.phase-chevron {
  flex-shrink: 0;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.phase-item.open .phase-chevron {
  transform: rotate(180deg);
}

.phase-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
}

.phase-item.open .phase-body {
  max-height: 900px;
  padding: 0 1.5rem 1.25rem;
}

.phase-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.phase-step:first-child {
  border-top: none;
}

.phase-step-num {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
  opacity: 0.6;
  padding-top: 0.15rem;
}

.phase-step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.phase-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Revenue split mini-flow — clearer version of the "100% -> split" box
   used inside the Revenue Share tier card. */
.split-flow {
  margin-top: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.split-flow-total {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.split-flow-arrow {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.split-flow-outcomes {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.split-chip {
  flex: 1;
  background: white;
  border: 1px solid rgba(9, 47, 117, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
}

.split-chip strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 0.15rem;
}

.split-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0.75rem 0 0;
}

/* Payment partner badges */
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.payment-badge {
  background: white;
  border: 1px solid rgba(9, 47, 117, 0.12);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 88px;
  padding: 0.75rem;
}

.payment-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Custom Payment Flow Styles */
.flow-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  background: white;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-5px);
}

.flow-step::after {
  content: '➔';
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 1.5rem;
  opacity: 0.5;
  z-index: 2;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.4;
}

.flow-step .icon-wrapper {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.flow-step.is-success {
  border-color: #2ecc71;
  background-color: #f0fdf4;
}

.flow-step.is-success .icon-wrapper {
  color: #2ecc71;
}

.flow-step.is-success h4 {
  color: #2ecc71;
}

@media screen and (max-width: 992px) {
  .flow-track {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-step::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -1.8rem;
    transform: translateX(50%);
  }
}

/* Split Flow (Revenue Model) Styles */
.split-flow {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.split-flow-total {
  background: var(--primary-color);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(9, 47, 117, 0.3);
}

.split-flow-arrow {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.split-flow-outcomes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.split-chip {
  flex: 1;
  background: var(--bg-light);
  border: 2px solid var(--primary-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.split-chip strong {
  display: block;
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.split-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
  font-style: italic;
}

/* Payment Badges */
.payment-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.payment-badge {
  display: inline-block;
}

.payment-badge img {
  height: 40px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.payment-badge:hover img {
  filter: grayscale(0%) opacity(1);
}


/* Infographic Global wrapper */
.info-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  font-family: var(--font-main);
  max-width: 1200px;
  margin: 0 auto;
}

.info-header {
  text-align: center;
  margin-bottom: 2rem;
}
.info-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.info-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Flow Row 1 */
.info-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2rem;
  position: relative;
}

/* Individual Card */
.info-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  border: 2px solid #ccc; /* default */
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}
.info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.info-card p {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.info-card-graphic {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.info-card-graphic img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
}
.info-card-graphic .icon-svg {
  width: 80px;
  height: 80px;
}

/* Colors for Borders */
.border-blue { border-color: #2196F3; }
.border-blue h4 { color: #2196F3; }

.border-green { border-color: #4CAF50; }
.border-green h4 { color: #4CAF50; }

.border-purple { border-color: #9C27B0; }
.border-purple h4 { color: #9C27B0; }

.border-teal { border-color: #009688; }
.border-teal h4 { color: #009688; }

/* Connecting Arrows */
.info-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2196F3;
  font-size: 1.5rem;
  font-weight: bold;
}
.arrow-purple { color: #9C27B0; }

/* Dotted Line Feedback Loop */
.info-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 3rem;
  position: relative;
}
.info-feedback-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  border-top: 2px dashed #999;
  z-index: 1;
}
.info-feedback-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.info-feedback-box h5 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.info-feedback-box p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-light);
}
.feedback-end {
  position: absolute;
  left: 10%;
  top: -20px;
  height: 20px;
  border-left: 2px dashed #999;
}
.feedback-end::before {
  content: "▲";
  position: absolute;
  top: -15px;
  left: -7px;
  color: #999;
  font-size: 0.8rem;
}
.feedback-start {
  position: absolute;
  right: 10%;
  top: -20px;
  height: 20px;
  border-right: 2px dashed #999;
}

/* Revenue Split Box */
.revenue-box {
  border: 2px solid #2196F3;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}
.revenue-title {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 1rem;
  color: #2196F3;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
}
.revenue-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rev-card {
  flex: 1;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem 1rem;
}
.rev-card h5 {
  color: #2196F3;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.rev-card p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0;
  margin-top: 1rem;
}
.rev-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2196F3;
}
.rev-amount.green { color: #4CAF50; }
.rev-amount.teal { color: #009688; }

.rev-border-green { border-color: #4CAF50; }
.rev-border-green h5 { color: #4CAF50; }

.rev-border-teal { border-color: #009688; }
.rev-border-teal h5 { color: #009688; }

/* Benefits Banner */
.benefits-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.benefits-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f57f17;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit-icon {
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #2196F3;
}
.benefit-item div {
  font-size: 0.8rem;
  color: var(--text-dark);
}
.benefit-item div strong {
  display: block;
  color: var(--primary-color);
}

@media screen and (max-width: 992px) {
  .info-row { flex-direction: column; }
  .info-arrow { transform: rotate(90deg); margin: 10px 0; }
  .info-feedback { display: none; }
  .revenue-flow { flex-direction: column; }
  .benefits-banner { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* Premium Aesthetic Overhaul */

/* Solid Header */
header {
  background: var(--primary-color) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  position: fixed !important; /* Make it sticky and visible */
  padding: 1rem 0 !important;
}

body:has(.hero-split) header,
.bg-primary header {
  background: var(--primary-color) !important;
  border-bottom: none !important;
}

body {
  padding-top: 80px; /* offset fixed header */
}

/* Premium Shadows & Hover Effects for Cards */
.card, .tier-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}

.card:hover, .tier-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 20px 40px rgba(9, 47, 117, 0.12) !important;
}

/* Featured Tier Card Styling */
.tier-card.featured {
  position: relative;
  border: 2px solid var(--primary-color);
  background: linear-gradient(145deg, #ffffff, #f8faff);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(9, 47, 117, 0.15) !important;
}

.tier-card.featured:hover {
  transform: scale(1.05) translateY(-8px) !important;
}

.featured-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color, #f59e0b);
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.tier-card.featured .tier-header {
  background: var(--primary-color);
  color: white;
  margin: -2rem -2rem 2rem -2rem;
  padding: 2.5rem 2rem;
  border-radius: 10px 10px 0 0;
}
.tier-card.featured .tier-title,
.tier-card.featured .tier-desc {
  color: white;
}

/* Smooth Buttons */
.btn {
  transition: all 0.3s ease !important;
  border-radius: 50px !important; /* Pill shape */
}

.btn:active {
  transform: scale(0.96) !important;
}
