@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* NexraPay Brand Guidelines */
  --primary-navy: #1E2B4D;
  --primary-green: #23B99A; /* Used as fallback or single color */
  --gradient-teal: linear-gradient(135deg, #23B99A, #0B6A75);
  --primary-navy-light: #2A3C6B;

  --primary-green-glow: rgba(35, 185, 154, 0.25);

  /* Backgrounds */
  --primary-white: #ffffff;
  --secondary-bg: #F8FAFC;

  --accent-green: rgba(30, 200, 165, 0.1);

  /* Modern Light Theme Palette */
  --bg-dark: #F8FAFC;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: #E2E8F0;

  --shadow-sm: 0 1px 3px rgba(15, 42, 68, 0.05);
  --shadow-lg: 0 4px 12px rgba(15, 42, 68, 0.05);

  /* Text Colors */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dark: #0F2A44;

  /* Status Colors */
  --success: #22C55E;
  --info: #2F80ED;
  --warning: #F59E0B;
  --danger: #FF1744;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 5rem;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-pill: 9999px;

  /* Font */
  --font-main: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: none;
  /* Removed glow for cleaner look */
  color: var(--secondary-green);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0 auto;
  justify-content: center;
}

.nav-links li a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--primary-green);
}

.mobile-auth-links {
  display: none;
}

.mobile-menu-top {
  display: none;
}

.header-auth {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Language Selector */
.lang-selector {
  position: relative;
  margin-right: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-family: var(--font-main);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.lang-btn i:first-child {
  font-size: 0.95rem;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 1001;
  padding: 6px 0;
  animation: dropdownFade 0.2s ease;
}

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

.lang-dropdown.show {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-option:hover {
  background: var(--accent-green);
  color: var(--primary-green);
}

.lang-option.active {
  color: var(--primary-green);
  font-weight: 600;
  background: rgba(0, 208, 108, 0.06);
}

/* Legal page styles */
.legal-page {
  padding: 6rem 0 4rem;
  min-height: 60vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

/* Hero Section - Redesigned */
/* Hero Section - Redesigned */
.hero {
  padding: 10rem 0 8rem;
  position: relative;
  background: #ffffff;
  text-align: center;
  overflow: hidden;
  /* Crucial for clipping shapes */
}

/* Animated Background Shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  animation-duration: 25s;
  opacity: 0.6;
}

.shape-2 {
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  animation-duration: 30s;
  animation-delay: 2s;
}

.shape-3 {
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  animation: rotate 60s infinite linear;
  opacity: 0.4;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.05);
  }
}

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

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

/* Subtle background mesh */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 208, 108, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
  /* Ensure above shapes */
}

.hero-title {
  font-size: 5rem;
  line-height: 1.05;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  color: #555;
  line-height: 1.6;
}

.hero-image-container {
  margin-top: var(--space-xxl);
  width: 100%;
  max-width: 1100px;
  position: relative;
}

/* Clean, flat, premium shadow */
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Crisp border */
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  /* transform removed for corporate theme */
  /* Simple lift */
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    /* transform removed */
  }

  /* Subtle float */
  100% {
    transform: translateY(0px);
  }
}

/* Bento Grid Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  grid-auto-rows: minmax(240px, auto);
}

.bento-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(0, 208, 108, 0.03) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 208, 108, 0.3);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-green);
  color: var(--primary-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  transition: transform 0.4s ease, background 0.4s ease;
}

.bento-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 208, 108, 0.2);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-4 {
  grid-column: span 4;
}

.row-span-2 {
  grid-row: span 2;
}

/* Zig-Zag Layout */
.zigzag-section {
  padding: var(--space-xxl) 0;
}

.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
  margin-bottom: var(--space-xxl);
}

.zigzag-row.reverse {
  direction: rtl;
}

.zigzag-row.reverse>* {
  direction: ltr;
}

.zigzag-content h3 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.zigzag-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  background: var(--primary-navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.2);
}

.btn:hover {
  /* transform removed for corporate theme */
  box-shadow: 0 6px 20px rgba(47, 128, 237, 0.3);
  text-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2F80ED;
  color: #2F80ED;
  box-shadow: none;
  border-radius: 8px;
}

.btn-outline:hover {
  border-color: #1EC8A5;
  color: #1EC8A5;
  background: rgba(30, 200, 165, 0.05);
}

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

/* Trusted By Section */
.trusted-by {
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #ffffff;
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.logos-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

.partner-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #bbb;
  transition: all 0.3s ease;
  user-select: none;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-logo:hover {
  color: var(--primary-navy);
  transform: scale(1.05);
}

/* Features Section Polish */
.features {
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 208, 108, 0.02) 0%, transparent 70%);
  /* Subtle bloom */
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.section-subtitle {
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 600px;
  color: #666;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  background: #ffffff;
  border-color: var(--primary-green);
  /* transform removed for corporate theme */
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-green);
  color: var(--primary-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  color: var(--text-main);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

/* Services */
.services {
  padding: var(--space-xxl) 0;
  background: var(--secondary-black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  /* transform removed for corporate theme */
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--space-lg);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* Dashboard Styles Overrides */
.dashboard-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-sidebar {
  background-color: #ffffff;
  /* White sidebar */
  border-right: 1px solid var(--border-color);
}

.sidebar-nav li a {
  color: var(--text-muted);
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
  background: rgba(0, 208, 108, 0.08);
  /* Light green tint */
  color: var(--primary-green);
  border-right: 3px solid var(--primary-green);
  border-left: none;
}

.dashboard-main {
  background-color: var(--secondary-black);
  /* This is now light gray via variable */
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  color: var(--text-main);
}

.stat-title {
  color: var(--text-muted);
}

.chart-card,
.transactions-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.chart-header,
.section-header {
  border-bottom: 1px solid var(--border-color);
}

.transactions-table th {
  background-color: var(--secondary-black);
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.transactions-table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.date-picker {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.date-picker span {
  color: var(--text-main);
}

/* Forms */
.contact-form {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-label {
  color: var(--text-main);
}

.form-control {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: var(--text-main);
  padding: 12px;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 208, 108, 0.2);
  outline: none;
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: var(--space-xxl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.footer-column p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-left: 5px;
  /* Subtle hover movement */
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-icon:hover {
  background-color: var(--primary-green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 208, 108, 0.3);
  border-color: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
  padding: var(--space-xxl) 0;
  background-color: #f9f9f9;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  /* transform removed for corporate theme */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-green);
}

.testimonial-text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: rgba(0, 208, 108, 0.1);
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-green);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.author-info p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* Hide slider dots since we are using grid */
.slider-dots {
  display: none;
}

/* CTA Section - Redesigned */
.cta {
  padding: var(--space-xxl) 0;
  text-align: center;
}

.cta .container {
  background: #111;
  padding: 5rem 2rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-title {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-description {
  color: #aaa;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    gap: var(--space-md);
  }

  .hero-title {
    font-size: 3rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-4,
  .row-span-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .zigzag-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .zigzag-row.reverse {
    direction: ltr;
    /* Reset for mobile stacking */
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 1.25rem 1.1rem 1.2rem;
    gap: 0;
    z-index: 999;
    box-shadow: -10px 0 36px rgba(0, 0, 0, 0.18);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.35rem 0 0.9rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
  }

  .mobile-menu-close {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-links li a {
    display: block;
    padding: 0.95rem 0.1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a:hover {
    color: var(--primary-green);
  }

  .mobile-auth-links {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: none !important;
  }

  .mobile-auth-links a {
    border-bottom: none !important;
  }

  .header-auth {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 6rem 0 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .logos-track {
    gap: 2.5rem;
  }

  .partner-logo {
    font-size: 1.2rem;
  }

  .features, .services, .cta, .trusted-by, .testimonials, .zigzag-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .legal-page {
    padding: 4rem 0 2rem;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Corporate Hero Styling */
.corporate-hero {
    background-color: var(--primary-navy) !important;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    color: var(--primary-white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.corporate-hero .hero-title {
    color: var(--primary-white) !important;
}
.corporate-hero .hero-subtitle {
    color: #cbd5e1 !important;
}
.corporate-hero .btn-outline {
    border-color: rgba(255,255,255,0.4) !important;
    color: white !important;
}
.corporate-hero .btn-outline:hover {
    background: white !important;
    color: var(--primary-navy) !important;
}


/* Update header for corporate theme */
.header {
    background-color: var(--primary-navy) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.nav-links a, .logo {
    color: #e2e8f0 !important;
}
.nav-links a:hover {
    color: white !important;
}
.mobile-menu-btn i {
    color: white !important;
}

/* Split Hero Layout */
.corporate-hero.hero-split {
    text-align: left !important;
}
.corporate-hero.hero-split .hero-content {
    flex-direction: column;
    gap: 3rem;
}
.corporate-hero.hero-split .hero-text {
    flex: 1;
    max-width: 600px;
}
.corporate-hero.hero-split .hero-subtitle {
    margin: 0 0 2rem 0 !important;
}
.corporate-hero.hero-split .cta-buttons {
    justify-content: flex-start;
}
.corporate-hero.hero-split .hero-image {
    flex: 1;
    width: 100%;
}
@media (min-width: 992px) {
    .corporate-hero.hero-split .hero-content {
        flex-direction: row;
        align-items: center;
    }
}


/* Corporate Layouts */
.corporate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.corporate-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.corporate-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}
.corp-icon {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    background: #f8fafc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.corp-icon-small {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-right: 1rem;
    margin-top: 0.2rem;
}
.corp-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}
.corp-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.service-list {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
}


/* Fix logo visibility on dark header */
.header .logo img {
    filter: brightness(0) invert(1);
}
