/* ===================================
   DueData Modern Professional Styles
   =================================== */

/* Custom Properties / CSS Variables */
:root {
  /* Primary Colors */
  --primary: #1e3a8a;
  --primary-dark: #172e6e;
  --primary-darker: #0f2152;
  --primary-light: #2563eb;
  --primary-lighter: #3b82f6;
  --primary-lightest: #dbeafe;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-8);
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-900);
  background: linear-gradient(to bottom, #ffffff, #fafbff 300px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
}

h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
}

h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
}

h4 {
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 500;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 500;
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

/* Container */
.container-modern {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Responsive container padding for larger screens */
@media (min-width: 1024px) {
  .container-modern {
    padding: 0 var(--space-12); /* 3rem on larger screens */
  }
}

@media (min-width: 1440px) {
  .container-modern {
    padding: 0 var(--space-16); /* 4rem on very large screens */
  }
}

/* Wrapper */
.wrapper {
  position: relative;
  width: 100%;
  background: transparent;
  overflow-x: hidden;
}

/* Visual connection element between header and content - hidden on mobile */
.wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 300px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(30, 58, 138, 0.1) 80px,
    rgba(30, 58, 138, 0.05) 200px,
    transparent 300px);
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .wrapper::before {
    display: none; /* Hide decorative line on mobile */
  }
}

/* Ensure no gap between header and first section */
main {
  margin: 0;
  padding: 0;
}

/* Header Styles */
.header-modern {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a subtle gradient overlay after header - adjusted for mobile */
.header-modern::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .header-modern::after {
    display: none; /* Remove gradient overlay on mobile for cleaner spacing */
  }
}

.header-modern.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(30, 58, 138, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  position: relative;
}

.header-logo img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-base);
}

.header-logo:hover img {
  transform: scale(1.05);
}

.header-nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav-buttons {
  display: flex;
  gap: var(--space-3);
}

/* Modern Button Styles */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-modern i {
  font-size: 1em;
  line-height: 1;
}

.btn-modern:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-modern:hover:before {
  width: 300px;
  height: 300px;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
  color: white;
}

.btn-outline-modern {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-modern:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

/* Main Hero Section - Company Introduction */
.hero-main {
  padding: calc(var(--space-20) + 80px) 0 var(--space-16) 0;
  margin-top: -80px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(240, 244, 255, 0.3) 100px,
      rgba(239, 246, 255, 0.5) 200px,
      white 300px);
  position: relative;
  overflow: hidden;
}

/* Network Background Canvas */
.network-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-main-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-main-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-main-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--gray-600);
  margin-bottom: var(--space-12);
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Value Props Grid */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.value-prop {
  text-align: center;
  padding: var(--space-6);
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.value-prop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.value-prop:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
  border-color: var(--primary-light);
}

.value-prop:hover::before {
  opacity: 1;
}

.value-prop-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--primary-lightest) 0%, #dbeafe 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.1);
  position: relative;
}

.value-prop-icon i {
  font-size: 28px;
  color: var(--primary);
  transition: color var(--transition-base);
  position: relative;
  z-index: 1;
}

.value-prop:hover .value-prop-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
}

.value-prop:hover .value-prop-icon i {
  color: white;
}

.value-prop h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.value-prop p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Hero Main Actions */
.hero-main-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Smooth scroll behavior */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero-modern {
  padding: var(--space-20) 0;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(249, 250, 251, 0.8) 100px, white 200px);
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(30, 58, 138, 0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Hero Section Variants */
.hero-accucite {
  background: linear-gradient(180deg,
    rgba(240, 244, 255, 0.3) 0%,
    rgba(239, 246, 255, 0.5) 80px,
    rgba(239, 246, 255, 0.8) 150px,
    white 300px,
    rgba(249, 250, 251, 0.5) 90%,
    transparent 100%);
}

/* First hero section gets special treatment to blend with header */
.hero-modern:first-of-type {
  padding-top: calc(var(--space-20) + 120px);
  margin-top: -80px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50px,
    rgba(249, 250, 251, 0.7) 100px,
    white 250px);
}

.hero-accucite::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.08) 0%, transparent 70%);
  top: 10%;
  right: 5%;
  border-radius: 50%;
  z-index: 0;
}

.hero-lienlynx {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 5%,
    white 10%,
    #eff6ff 50%,
    white 90%,
    rgba(249, 250, 251, 0.5) 95%,
    transparent 100%);
}

.hero-lienlynx::before {
  background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(59, 130, 246, 0.15)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)" /></svg>');
  opacity: 1;
}

.hero-lienlynx::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  z-index: 0;
}

.hero-corpmate {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(249, 250, 251, 0.5) 5%,
    var(--gray-50) 10%,
    white 50%,
    #eff6ff 90%,
    rgba(239, 246, 255, 0.5) 95%,
    transparent 100%);
}

.hero-corpmate::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 200px solid rgba(30, 58, 138, 0.04);
  top: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: 0 var(--space-4); /* Add horizontal padding for better spacing */
}

.hero-tagline {
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  margin-top: var(--space-2);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-3);
}

.hero-tagline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}

.hero-text .highlight {
  color: var(--primary);
  font-size: var(--text-4xl);
  display: block;
  margin-bottom: var(--space-4);
}

.hero-text p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Product Logos */
.hero-product-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 var(--space-2) 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: all var(--transition-slow);
  position: relative;
}

.hero-product-logo:hover {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 12px 20px rgba(30, 58, 138, 0.2));
}

.footer-product-logo {
  height: 28px;
  width: 140px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-1);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.footer-link:hover .footer-product-logo {
  transform: scale(1.05);
}

/* Service Cards */
.services-section {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
}

.services-section h2 {
  position: relative;
  display: inline-block;
}

.services-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.service-card {
  background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  border: 2px solid var(--gray-200);
  border-left: 4px solid var(--primary-light);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  transition: height var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
  border-color: var(--primary-light);
  background: linear-gradient(135deg, white 0%, #eff6ff 100%);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--primary-lightest) 0%, #dbeafe 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.1);
  position: relative;
}

.service-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-icon img {
  width: 40px;
  height: 40px;
  filter: none;
  transition: filter var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-icon i {
  font-size: 40px;
  color: var(--primary);
  transition: color var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon img {
  filter: brightness(0) invert(1);
}

.service-card:hover .service-icon i {
  color: white;
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.service-description {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Contact Section */
.contact-modern {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #eff6ff 0%, white 50%, var(--gray-50) 100%);
  position: relative;
}

.contact-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-title {
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}

.contact-subtitle {
  color: var(--gray-600);
  font-size: var(--text-lg);
  margin-top: var(--space-6);
}

.contact-phone {
  color: var(--primary);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-4);
}

.contact-phone i {
  margin-right: var(--space-2);
}

.contact-phone a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phone a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.form-modern {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--primary-light), var(--primary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
}

.form-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.form-group {
  position: relative;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-900);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
              0 4px 12px rgba(30, 58, 138, 0.1);
  transform: translateY(-1px);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer-modern {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--gray-700);
  padding: var(--space-20) 0 var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 54px;
  margin-bottom: var(--space-6);
  filter: none;
  transition: transform var(--transition-base);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-description {
  color: var(--gray-600);
  margin-bottom: var(--space-6);
  line-height: 1.8;
  font-size: var(--text-base);
}

.footer-section h5 {
  color: var(--gray-900);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-section h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Special alignment for product logos in footer */
.footer-product-link {
  padding: var(--space-2) 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: var(--space-2);
}

.footer-product-link div {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.footer-product-link small {
  white-space: nowrap;
  color: var(--gray-600);
  padding-left: 0;
}

.footer-link {
  color: var(--gray-600);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  min-height: 40px;
}

.footer-link small {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color var(--transition-base);
  display: block;
}

.footer-link div {
  flex: 1;
  display: flex;
  align-items: center;
}

.footer-link::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
  color: var(--primary);
}

.footer-link:hover {
  color: var(--gray-800);
  padding-left: var(--space-3);
  text-decoration: none;
}

.footer-link:hover small {
  color: var(--gray-600);
}

.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
  left: 0;
}

.footer-link .brand-font {
  color: #1e3a8a;
  font-weight: 700;
  font-size: calc(var(--text-base) * 1.1);
  display: block;
  letter-spacing: 0.5px;
}

.footer-link:hover .brand-font {
  color: var(--primary-dark);
}

.footer-contact a {
  color: var(--primary);
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-base);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.footer-contact a i {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--space-12);
  text-align: center;
  background: transparent;
  padding-bottom: var(--space-2);
}

.footer-copyright {
  color: var(--gray-500);
  font-size: calc(var(--text-sm) * 0.9);
  margin: 0;
  opacity: 0.8;
}

.footer-copyright a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
}

.footer-copyright a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-2);
  transition: transform var(--transition-base);
}

.mobile-menu-toggle.active {
  transform: rotate(90deg);
}

/* Mobile Menu Dropdown */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-200);
    z-index: 999;
  }

  .header-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  .header-nav .nav-buttons {
    flex-direction: column;
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
  }

  .header-nav .nav-buttons .btn-modern {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Main hero section on tablets */
  .hero-main {
    padding: calc(var(--space-20) + 60px) 0 var(--space-12) 0;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 500px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* Reorder hero sections on mobile: logo, tagline, description, image, button (same as desktop) */
  .hero-mobile-reorder {
    display: grid;
    grid-template-areas:
      "logo"
      "tagline"
      "description"
      "image"
      "button";
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-mobile-reorder .hero-text {
    display: contents; /* This allows child elements to participate in parent grid */
  }

  /* Grid area assignments */
  .hero-mobile-reorder .hero-product-logo {
    grid-area: logo;
    margin-bottom: var(--space-2);
  }

  .hero-mobile-reorder .hero-tagline {
    grid-area: tagline;
    margin-bottom: var(--space-2);
  }

  .hero-mobile-reorder .hero-description {
    grid-area: description;
    margin-bottom: var(--space-3);
  }

  .hero-mobile-reorder .hero-image {
    grid-area: image;
    max-width: 500px;
    margin: var(--space-4) auto;
    padding: 0;
  }

  .hero-mobile-reorder .hero-button {
    grid-area: button;
    margin-top: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
  }

  .hero-mobile-reorder .hero-button .btn-modern {
    display: inline-flex;
  }

  /* Fix hero section spacing on mobile */
  .hero-modern {
    padding: var(--space-16) 0;
    margin-top: 0; /* Remove negative margin on mobile */
  }

  /* First hero section needs proper spacing below header */
  .hero-modern:first-of-type {
    padding-top: calc(var(--space-20) + var(--space-8)); /* Add extra space for sticky header */
    margin-top: 0; /* Remove negative margin */
  }

  /* Subsequent hero sections get consistent spacing */
  .hero-modern:not(:first-of-type) {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }

  /* Main hero section on mobile */
  .hero-main {
    padding: calc(var(--space-16) + 60px) 0 var(--space-10) 0;
    margin-top: -60px;
  }

  .hero-main-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
  }

  .hero-main-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }

  .value-props-grid {
    gap: var(--space-4);
  }

  .value-prop {
    padding: var(--space-5);
  }

  .value-prop h3 {
    font-size: var(--text-base);
  }

  .hero-main-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-main-actions .btn-modern {
    width: 100%;
    max-width: 300px;
  }

  /* Fix logo SVG sizing on mobile */
  .header-logo img {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Better spacing for mobile grid */
  .hero-mobile-reorder {
    gap: var(--space-4);
    padding: 0 var(--space-2);
  }

  /* Ensure hero images scale properly on mobile */
  .hero-mobile-reorder .hero-image {
    max-width: 100%;
    padding: 0;
    margin: var(--space-3) auto;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }

  /* Adjust text sizes for mobile */
  .hero-tagline {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }

  .hero-product-name {
    font-size: var(--text-3xl);
  }

  .hero-product-logo {
    max-width: 240px;
  }

  .hero-description {
    font-size: var(--text-base);
    line-height: 1.7;
    padding: 0;
  }

  /* Consistent hero spacing on mobile */
  .hero-modern {
    padding: var(--space-16) 0;
    margin-top: 0;
  }

  .hero-modern:first-of-type {
    padding-top: calc(var(--space-16) + var(--space-12)); /* Space for header + buffer */
  }

  .hero-modern:not(:first-of-type) {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-section {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-section:last-child {
    border-bottom: none;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-3) var(--space-4);
  }
  
  .header-logo img {
    height: 40px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-modern {
    padding: var(--space-6);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom Font for Product Names and Logo */
@font-face {
  font-family: 'Ubuntu Sans Mono';
  src: url('/fonts/UbuntuSansMono-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-feature-settings: normal;
}

@font-face {
  font-family: 'DueDataBrand';
  src: url('/fonts/UbuntuSansMono-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.brand-font {
  font-family: 'DueDataBrand', var(--font-mono);
  color: var(--primary);
  font-weight: 600;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Animation - Only visible in modal */
.modal .success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.modal .success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--success);
}

.modal.show .success-checkmark .check-icon::after {
  content: '';
  width: 25px;
  height: 40px;
  position: absolute;
  left: 28px;
  top: 8px;
  border: 4px solid var(--success);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: checkmark 0.8s ease;
}

@keyframes checkmark {
  0% {
    height: 0;
    width: 0;
    opacity: 0;
  }
  20% {
    height: 0;
    width: 25px;
    opacity: 1;
  }
  40% {
    height: 40px;
    width: 25px;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
  /* Main hero on small phones */
  .hero-main {
    padding: calc(var(--space-12) + 50px) 0 var(--space-8) 0;
    margin-top: -50px;
  }

  .hero-main-title {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }

  .hero-main-subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
  }

  .value-prop {
    padding: var(--space-4);
  }

  .value-prop-icon {
    width: 50px;
    height: 50px;
  }

  .value-prop-icon i {
    font-size: 24px;
  }

  .value-prop h3 {
    font-size: var(--text-base);
  }

  .value-prop p {
    font-size: var(--text-xs);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  /* Even smaller logo on very small screens */
  .header-logo img {
    height: 36px;
    max-width: 150px;
  }

  /* Adjust hero sections for small screens */
  .hero-modern {
    padding: var(--space-12) 0;
    margin-top: 0;
  }

  .hero-modern:first-of-type {
    padding-top: calc(var(--space-12) + var(--space-10)); /* Reduced but still enough space */
  }

  .hero-modern:not(:first-of-type) {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  /* Tighter gap between elements on small screens */
  .hero-mobile-reorder {
    gap: var(--space-3);
    padding: 0 var(--space-2);
  }

  /* Adjust text sizes */
  .hero-tagline {
    font-size: var(--text-xl);
    line-height: 1.3;
  }

  .hero-product-name {
    font-size: var(--text-2xl);
  }

  .hero-product-logo {
    max-width: 200px;
  }

  .hero-description {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  /* Ensure images don't get cut off */
  .hero-mobile-reorder .hero-image {
    padding: 0;
    width: 100%;
    overflow: visible;
    margin: var(--space-2) auto;
  }

  .hero-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Stack service cards on very small screens */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Smaller buttons on mobile */
  .btn-modern {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
}

/* Ultra-narrow screens (foldable phones like Samsung Flip 6) */
@media (max-width: 360px) {
  .container-modern {
    padding: 0 var(--space-2);
  }

  /* Consistent hero spacing on ultra-narrow screens */
  .hero-modern {
    padding: var(--space-10) 0;
    margin-top: 0;
  }

  .hero-modern:first-of-type {
    padding-top: calc(var(--space-10) + var(--space-8));
  }

  .hero-modern:not(:first-of-type) {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  /* Tighter spacing for ultra-narrow screens */
  .hero-mobile-reorder {
    gap: var(--space-2);
    padding: 0 var(--space-1);
  }

  /* Prevent hero images from being cut off */
  .hero-mobile-reorder .hero-image {
    padding: 0;
    width: 100%;
    overflow: visible;
    margin: var(--space-2) auto;
  }

  .hero-image img {
    width: calc(100vw - var(--space-6));
    max-width: none;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* Adjust text sizing for narrow screens */
  .hero-tagline {
    font-size: var(--text-lg);
    word-wrap: break-word;
    line-height: 1.3;
  }

  .hero-product-name {
    font-size: var(--text-xl);
  }

  .hero-product-logo {
    max-width: 180px;
  }

  .hero-description {
    font-size: var(--text-xs);
    line-height: 1.5;
  }

  /* Ensure header logo is visible */
  .header-logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }
}

/* SVG Logo Font Fix for Mobile Devices */
.header-logo svg text,
.footer-logo svg text {
  font-family: 'Ubuntu Sans Mono', 'Courier New', 'Courier', monospace !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force SVG to use embedded fonts on mobile */
@media (max-width: 768px) {
  .header-logo img,
  .footer-logo {
    /* Force re-render of SVG */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
  
  /* Alternative: Use PNG fallback on mobile if SVG fonts fail */
  .header-logo img[src$=".svg"] {
    /* This ensures the SVG maintains its aspect ratio */
    width: auto;
    height: 100%;
    max-height: 40px;
  }
}

/* Utility classes replacing inline style attributes (blocked by the nonce-based
   CSP: style-src nonces do not cover style="" attributes) */
.btn-coming-soon {
  opacity: 0.6;
}

.error-page-icon {
  font-size: 4rem;
}
