
/* ============================================================
MOBILE-FIRST RESPONSIVE DESIGN FOUNDATION
============================================================ */

/* CSS Variables for Mobile-First Responsive Design */
:root {
  /* Navbar Height System */
  --navbar-height: 80px; /* Default fallback height */
  
  /* Legacy spacing variables for compatibility */
  --s1: 6px; --s2: 12px; --s3: 18px; --s4: 24px;
  --s5: 32px; --s6: 40px; --s8: 48px; --s10: 64px;
  --s12: 80px; --s16: 96px; --s20: 120px; --s24: 160px;
  
  /* Mobile-First Spacing Scale */
  --space-xs: clamp(0.25rem, 1vw, 0.5rem);    /* 4px - 8px */
  --space-sm: clamp(0.5rem, 2vw, 1rem);       /* 8px - 16px */
  --space-md: clamp(1rem, 3vw, 1.5rem);       /* 16px - 24px */
  --space-lg: clamp(1.5rem, 4vw, 2.5rem);     /* 24px - 40px */
  --space-xl: clamp(2rem, 5vw, 3rem);         /* 32px - 48px */
  --space-2xl: clamp(2.5rem, 6vw, 4rem);      /* 40px - 64px */
  --space-3xl: clamp(3rem, 8vw, 5rem);        /* 48px - 80px */
  --space-4xl: clamp(4rem, 10vw, 6rem);       /* 64px - 96px */
  
  /* Responsive Font Sizes */
  --text-xs: clamp(0.75rem, 2vw, 0.875rem);   /* 12px - 14px */
  --text-sm: clamp(0.875rem, 2.5vw, 1rem);    /* 14px - 16px */
  --text-base: clamp(1rem, 3vw, 1.125rem);    /* 16px - 18px */
  --text-lg: clamp(1.125rem, 3.5vw, 1.25rem); /* 18px - 20px */
  --text-xl: clamp(1.25rem, 4vw, 1.5rem);     /* 20px - 24px */
  --text-2xl: clamp(1.5rem, 5vw, 2rem);       /* 24px - 32px */
  --text-3xl: clamp(1.875rem, 6vw, 2.5rem);   /* 30px - 40px */
  --text-4xl: clamp(2.25rem, 7vw, 3rem);      /* 36px - 48px */
  --text-5xl: clamp(2.5rem, 8vw, 4rem);       /* 40px - 64px */
  --text-6xl: clamp(3rem, 10vw, 5rem);        /* 48px - 80px */
  
  /* Container Widths with consistent padding */
  --container-sm: 100%;
  --container-md: 100%;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Consistent Container Padding System - Fixed for mobile overflow */
  --container-padding-mobile: 1rem; /* Fixed 16px padding */
  --container-padding-tablet: clamp(1.5rem, 4vw, 2rem);
  --container-padding-desktop: clamp(2rem, 5vw, 2.5rem);
  
  /* Colors */
  --violet-600: #6C4DFF;
  --violet-700: #5B3FE6;
  --violet-400: #A78BFA;
  --violet-300: #C4B5FD;
  --ink-800: #1F2937;
  --ink-700: #374151;
  --ink-600: #4B5563;
  --ink-400: #9CA3AF;
  --ink-300: #D1D5DB;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --surface: #F9FAFB;
  
  /* Mobile-First Breakpoints */
  --mobile-sm: 320px;
  --mobile-md: 375px;
  --mobile-lg: 425px;
  --tablet: 768px;
  --laptop: 1024px;
  --desktop: 1440px;
}

/* ============================================================
MOBILE-FIRST BASE STYLES
============================================================ */

/* Base Responsive Styles - Mobile First */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%; /* Ensure no element exceeds container width */
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal overflow */
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: var(--text-base);
  padding-top: var(--navbar-height); /* Use dynamic navbar height */
}

/* Mobile-First Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile-First Container System */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding-mobile);
  overflow-x: hidden; /* Prevent container overflow */
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Force container constraints on mobile */
@media (max-width: 767px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.75rem !important;
    box-sizing: border-box !important;
  }
  
  .container > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mobile-First Section Spacing */
.section {
  padding: var(--space-3xl) 0; /* Consistent with section elements */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevent section overflow */
  box-sizing: border-box;
}

/* Mobile-First Unified Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile: All grids are single column by default */
.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-2-gap,
.grid-3-gap { 
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Force grid constraints on mobile */
@media (max-width: 767px) {
  .grid,
  .grid-1,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-gap,
  .grid-3-gap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .grid > *,
  .grid-1 > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .grid-2-gap > *,
  .grid-3-gap > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Mobile-First Flex System */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Mobile-First Text Alignment */
.text-center {
  text-align: center;
}

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

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

/* Mobile-First Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
  font-weight: 600;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Force width constraints on mobile for problematic elements */
@media (max-width: 767px) {
  .text-h2,
  .text-body-lg,
  .animate-on-scroll {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
MOBILE-FIRST RESPONSIVE BREAKPOINTS
============================================================ */

/* Small Mobile: 375px and up */
@media (min-width: 375px) {
  .container {
    padding: 0 1rem; /* Fixed 16px padding to prevent overflow */
  }
}

/* Large Mobile: 425px and up */
@media (min-width: 425px) {
  .container {
    padding: 0 var(--container-padding-mobile);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* Tablet: 768px and up */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding: 0 var(--container-padding-tablet);
  }
  
  .section {
    padding: var(--space-4xl) 0; /* Consistent section spacing for tablet */
  }
  
  /* Unified Grid adjustments for tablet */
  .grid-2,
  .grid-2-gap { 
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .grid-3,
  .grid-3-gap { 
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .grid-4 { 
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

/* Small Laptop: 1024px and up */
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
    padding: 0 var(--container-padding-desktop);
  }
  
  /* Unified Grid adjustments for laptop */
  .grid-3,
  .grid-3-gap { 
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  
  .grid-4 { 
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* Desktop: 1280px and up */
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
  
  .grid-4 { 
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
MOBILE-FIRST RESPONSIVE NAVIGATION SYSTEM
============================================================ */

/* Navigation Base Styles - Mobile First */
.nav {
  position: fixed !important; /* Ensure navbar stays fixed - CRITICAL for preservation test */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  transition: all 0.3s ease;
  height: var(--navbar-height); /* Use dynamic navbar height */
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding-mobile);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--ink-800);
  z-index: 1001;
}

.nav-logo-img {
  height: clamp(32px, 8vw, 40px);
  width: auto;
  max-width: clamp(100px, 25vw, 140px);
  object-fit: contain;
}

/* Mobile Navigation - Default State */
.nav-links {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-4xl) var(--space-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-links.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 500;
  font-size: var(--text-xl);
  padding: var(--space-md);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--violet-600);
  background: rgba(108, 77, 255, 0.05);
  transform: translateY(-2px);
}

/* Mobile CTA Button - Hidden by default */
.nav-cta {
  display: none;
}

.nav-cta-mobile {
  display: none;
  width: 100%;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.nav-cta-mobile.active {
  display: block;
}

/* Mobile Hamburger Menu */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-hamburger:hover,
.nav-hamburger:focus {
  background-color: rgba(108, 77, 255, 0.05);
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--ink-800);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown Menu - Mobile First */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-dropdown-icon {
  transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  list-style: none;
  margin: var(--space-md) 0 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: var(--space-md);
  color: var(--ink-700);
  text-decoration: none;
  font-size: var(--text-base);
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: var(--space-xs);
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: var(--violet-600);
  color: white;
}

/* Tablet Navigation: 768px and up */
@media (min-width: 768px) {
  .nav-inner {
    padding: 0 var(--container-padding-tablet);
  }
  
  .nav-hamburger {
    display: none;
  }
  
  .nav-links {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: var(--text-base);
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-cta {
    display: block;
  }
  
  .nav-cta-mobile {
    display: none;
  }
  
  /* Dropdown positioning for desktop */
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin-top: var(--space-sm);
  }
}

/* Desktop Navigation: 1024px and up */
@media (min-width: 1024px) {
  .nav-inner {
    max-width: var(--container-lg);
    padding: 0 var(--container-padding-desktop);
  }
  
  .nav-links {
    gap: var(--space-xl);
  }
}

/* Navigation CTA Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  gap: var(--space-sm);
  white-space: nowrap;
}

.btn-primary {
  background: var(--violet-600);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--violet-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.3);
}

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

/* Body scroll lock when mobile menu is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ============================================================
MOBILE-FIRST HERO SECTION
============================================================ */

/* Hero Section - Mobile First */
.hero {
  padding: var(--space-3xl) 0; /* Consistent section spacing */
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; /* Prevent hero overflow */
  width: 100%;
  max-width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero-headline {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--ink-800);
}

.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: var(--space-xl);
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--space-lg);
}

.hero-visual-card {
  width: 100%;
  max-width: 400px;
}

/* Hero Stats - Mobile First */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-stat-val {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--violet-600);
  text-align: center;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--ink-600);
  text-align: center;
  margin-top: var(--space-xs);
}

.hero-stat-divider {
  display: none;
}

/* Awards Ticker - Mobile Responsive */
.awards-ticker {
  margin-top: var(--space-xl);
  overflow: visible;
  background: rgba(108, 77, 255, 0.05);
  border-radius: 8px;
  padding: var(--space-md);
}

.ticker-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: var(--space-lg);
}

.ticker-item {
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--ink-700);
  font-weight: 500;
}

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

/* Tablet Hero: 768px and up */
@media (min-width: 768px) {
  .hero {
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    text-align: left;
  }
  
  .hero-headline {
    font-size: var(--text-5xl);
  }
  
  .hero-sub {
    font-size: var(--text-xl);
  }
  
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .hero-actions .btn {
    width: auto;
    min-width: 160px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  .hero-stat-divider {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 auto;
  }
  
  .hero-visual {
    margin-top: 0;
  }
}

/* Desktop Hero: 1024px and up */
@media (min-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero-headline {
    font-size: var(--text-6xl);
  }
}

/* ============================================================
MOBILE-FIRST CARD AND LAYOUT COMPONENTS
============================================================ */

/* Cards - Mobile First */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
  height: auto;
  width: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--ink-800);
  line-height: 1.3;
}

.card-description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-600);
}

/* Team Cards - Mobile First */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  height: auto;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.team-card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: visible;
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--ink-800);
}

.team-designation {
  font-size: var(--text-sm);
  color: var(--violet-600);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.team-bio {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink-600);
  margin-bottom: var(--space-md);
}

.team-specialization {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.team-tag {
  background: rgba(108, 77, 255, 0.1);
  color: var(--violet-600);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Product Cards - Mobile First */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: visible;
  transition: all 0.3s ease;
  height: auto;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.product-image {
  width: 100%;
  order: 1;
}

.product-content {
  width: 100%;
  order: 2;
  padding: var(--space-lg);
}

.product-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--ink-800);
}

.product-description {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: var(--space-lg);
}

.product-img-item {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: visible;
  border-radius: 8px;
  background: var(--surface);
}

.product-img-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Impact Cards - Mobile First */
.impact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  height: auto;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.impact-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  display: block;
}

.impact-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--ink-800);
}

/* Section Headers - Mobile First */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--ink-800);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--ink-600);
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.6;
}

/* Button System - Mobile First */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  gap: var(--space-sm);
  white-space: nowrap;
  text-align: center;
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-primary {
  background: var(--violet-600);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--violet-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--violet-600);
  border: 2px solid var(--violet-600);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--violet-600);
  color: white;
  transform: translateY(-1px);
}

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

/* Tablet Layout: 768px and up */
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  
  .product-image {
    order: 0;
  }
  
  .product-content {
    order: 0;
    padding: 0;
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
  
  .section-subtitle {
    font-size: var(--text-xl);
    max-width: 600px;
  }
}

/* Desktop Layout: 1024px and up */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card,
  .team-card,
  .product-card,
  .impact-card {
    padding: var(--space-xl);
  }
  
  .team-card-image {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
MOBILE-FIRST CONTACT AND FOOTER SECTIONS
============================================================ */

/* Contact Form - Mobile First */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  width: 100%;
}

.contact-info-card,
.contact-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: var(--space-xs);
  font-size: var(--text-base);
}

.contact-info-value {
  color: var(--ink-600);
  text-decoration: none;
  font-size: var(--text-base);
  line-height: 1.5;
}

.contact-info-value:hover {
  color: var(--violet-600);
}

/* Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-weight: 600;
  color: var(--ink-800);
  font-size: var(--text-base);
}

.required {
  color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: inherit;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--violet-600);
  color: white;
  border: none;
  padding: var(--space-lg);
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 56px;
}

.btn-submit:hover,
.btn-submit:focus {
  background: var(--violet-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.3);
}

/* Social Icons */
.social-icons-container {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(108, 77, 255, 0.1);
  color: var(--violet-600);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--violet-600);
  color: white;
  transform: translateY(-2px);
}

/* Footer - Mobile First - Minimal spacing to not interfere with section spacing */
.footer {
  background: var(--ink-800);
  color: white;
  padding: var(--space-sm) 0 !important; /* Minimal padding to reduce interference with section spacing */
  margin: 0 !important; /* Remove any margins */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: white;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-brand-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
  font-size: var(--text-xs);
  margin-bottom: var(--space-sm);
}

.footer-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-social {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-lg);
  transition: color 0.2s ease;
}

.footer-social:hover {
  color: white;
}

/* Tablet Contact & Footer: 768px and up */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop Contact & Footer: 1024px and up */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: var(--space-2xl);
  }
}

/* GLOBAL IMAGE RESPONSIVENESS (SAFE FOR ALL DEVICES) */
img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

/* ============================================================
MOBILE-ONLY RESPONSIVE FIXES (DESKTOP PRESERVED)
============================================================ */

/* CRITICAL: Mobile-only fixes - Desktop design remains unchanged */

/* 1. NAVBAR OVERLAP FIX - MOBILE ONLY */
@media (max-width: 768px) {
  body {
    padding-top: 70px !important; /* Fix navbar overlap on mobile */
  }
}

/* 2. MOBILE LAYOUT FIXES - VERTICAL STACKING */
@media (max-width: 768px) {
  .row, 
  .flex-container,
  .hero-content,
  .product-layout,
  .contact-grid {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  /* Force all grid layouts to single column on mobile */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-gap,
  .grid-3-gap,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* 3. CARD RESPONSIVENESS - MOBILE ONLY */
@media (max-width: 768px) {
  .cards,
  .team-grid,
  .impact-cards,
  .product-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .card,
  .team-card,
  .impact-card,
  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* 4. TABLET VIEW - 2 COLUMN LAYOUT */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards,
  .team-grid,
  .impact-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 5. MOBILE OVERFLOW PREVENTION */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }
  
  html {
    overflow-x: hidden !important;
  }
  
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 6. BUTTON ALIGNMENT FIX - MOBILE ONLY */
@media (max-width: 768px) {
  .button, 
  .cta,
  .btn,
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
}

/* 7. SECTION VISIBILITY AND SPACING - MOBILE ONLY */
@media (max-width: 768px) {
  section {
    padding: 40px 16px !important; /* Consistent mobile section padding */
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .section {
    padding: 40px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .container {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Fix footer spacing that causes large gap */
  .footer {
    padding: 24px 0 !important;
    margin: 0 !important;
  }
  
  /* Ensure consistent section margins */
  section + section {
    margin-top: 24px !important;
  }
  
  /* Target specific elements that might have large spacing */
  .page-section,
  .hero + section,
  section:last-of-type {
    margin-bottom: 24px !important;
  }
}

/* 8. TEXT AND CONTENT FIXES - MOBILE ONLY */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  
  .section-title,
  .text-h2 {
    font-size: clamp(24px, 6vw, 32px) !important;
    text-align: center !important;
  }
  
  .hero-sub,
  .section-subtitle {
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }
  
  p {
    line-height: 1.6 !important;
    word-wrap: break-word !important;
  }
}

/* 9. HERO SECTION MOBILE FIXES */
@media (max-width: 768px) {
  .hero {
    padding: 90px 16px 50px 16px !important;
    text-align: center !important;
  }
  
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }
  
  .hero-visual {
    order: 2 !important;
    margin-top: 24px !important;
  }
}

/* 10. NAVIGATION MOBILE IMPROVEMENTS */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 16px !important;
  }
  
  .nav-hamburger {
    display: flex !important;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .nav-links.active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999 !important;
  }
}

/* 11. SPECIFIC ELEMENT MOBILE FIXES */
@media (max-width: 768px) {
  /* Fix wide elements that cause horizontal scroll */
  .animate-on-scroll,
  .text-h2,
  .text-body-lg {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Product layout mobile fixes */
  .product-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .product-image,
  .product-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Team grid mobile fixes */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Contact form mobile fixes */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  /* Footer mobile fixes */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
}

/* 12. MOBILE TYPOGRAPHY IMPROVEMENTS */
@media (max-width: 768px) {
  /* Ensure text doesn't overflow */
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Mobile-specific font sizes */
  .hero-headline {
    font-size: clamp(24px, 7vw, 32px) !important;
  }
  
  .section-title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  
  .card-title,
  .team-name {
    font-size: 18px !important;
  }
}

/* ============================================================
MOBILE-FIRST UTILITY CLASSES AND FINAL OPTIMIZATIONS
============================================================ */

/* Responsive Utility Classes */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

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

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

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-6 { margin-bottom: var(--space-2xl); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-6 { margin-top: var(--space-2xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

/* Responsive Text Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.text-h2 { font-size: var(--text-3xl); font-weight: 700; }
.text-h3 { font-size: var(--text-2xl); font-weight: 600; }

/* Color Utilities */
.text-muted { color: var(--ink-600); }
.text-dark { color: var(--ink-800); }
.text-white { color: white; }

/* Background Colors */
.bg-white { background: white; }
.bg-violet-light { background: rgba(108, 77, 255, 0.1); }
.bg-violet-light-2 { background: rgba(108, 77, 255, 0.05); }
.bg-green-light { background: rgba(16, 185, 129, 0.1); }
.bg-orange-light { background: rgba(251, 146, 60, 0.1); }
.bg-purple-light { background: rgba(147, 51, 234, 0.1); }

/* Responsive Grid Utilities */
.grid-2-gap { 
  display: grid; 
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.grid-3-gap { 
  display: grid; 
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Max Width Utilities */
.max-w-400 { max-width: 400px; margin: 0 auto; }
.max-w-560 { max-width: 560px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.max-w-700 { max-width: 700px; margin: 0 auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Screen Reader Only */
.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;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

/* Loading States */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error Handling */
.error-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: 8px;
  color: var(--ink-400);
  font-size: var(--text-sm);
  text-align: center;
}

/* Image Container */
.image-container {
  position: relative;
  overflow: visible;
  background: var(--surface);
  border-radius: 8px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Page Section */
.page-section {
  padding: var(--space-3xl) 0;
  width: 100%;
}

.page-section.active {
  display: block;
}

/* Tablet Utilities: 768px and up */
@media (min-width: 768px) {
  .grid-2-gap { 
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .grid-3-gap { 
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .text-h2 { font-size: var(--text-4xl); }
  .text-h3 { font-size: var(--text-3xl); }
}

/* Desktop Utilities: 1024px and up */
@media (min-width: 1024px) {
  .grid-3-gap { 
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .nav-hamburger {
    min-height: 48px;
    min-width: 48px;
  }
  
  .social-icon-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .nav-hamburger {
    border: 2px solid currentColor;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .hamburger-line,
  .nav-link,
  .btn,
  .card {
    transition: none;
  }
  
  .loading-placeholder {
    animation: none;
  }
}

/* Print Styles */
@media print {
  .nav,
  .nav-hamburger,
  .scroll-progress,
  .animate-on-scroll {
    display: none !important;
  }
  
  .hero {
    padding-top: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* Fallback for No-JS */
.no-js .nav-hamburger {
  display: none;
}

.no-js .nav-links {
  display: flex !important;
}

@media (max-width: 767px) {
  .no-js .nav-links {
    flex-direction: column;
    position: static;
    background: var(--surface);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    border-radius: 8px;
  }
}

/* Critical Layout Shift Prevention */
img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img.loaded,
img:not([data-src]),
img[src]:not([data-src]) {
  opacity: 1 !important;
}

/* Specific Mobile Fixes */
@media (max-width: 425px) {
  .container {
    padding: 0 0.75rem; /* 12px padding for very small screens */
  }
  
  .hero-actions .btn {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-logo-img {
    height: 32px;
    max-width: 100px;
  }
}

/* Ensure no horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  max-width: 100%;
}

/* Fix any remaining layout issues */
.hero-content > div:first-child {
  width: 100%;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
}

/* Ensure all sections are visible with consistent spacing */
section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: var(--space-3xl) 0; /* Consistent section spacing - increased for better spacing */
  margin-top: var(--space-lg) !important; /* Force consistent margin between all sections */
  margin-bottom: 0 !important; /* Remove bottom margins to avoid double spacing */
}

/* Additional section spacing standardization */
.section {
  padding: var(--space-3xl) 0; /* Match section elements */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-top: var(--space-lg) !important; /* Force consistent margin between all sections */
  margin-bottom: 0 !important; /* Remove bottom margins to avoid double spacing */
}

/* Fix nested section spacing - prevent nested sections from having their own spacing */
section section {
  padding: 0; /* Remove padding from nested sections */
  margin: 0; /* Remove margin from nested sections */
}

/* Ensure consistent spacing between top-level sections only */
section:not(section section) + section:not(section section) {
  margin-top: var(--space-lg) !important; /* Consistent spacing between top-level sections */
}

/* First section (hero) should not have top margin */
section:first-of-type {
  margin-top: 0 !important;
}

/* ============================================================
LAYOUT SHIFT PREVENTION (CLS FIX)
============================================================ */

/* Ensure images have proper aspect ratios to prevent layout shifts */
img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Fix image loading states */
img[data-src] {
  opacity: 0;
}

img.loaded,
img:not([data-src]),
img[src]:not([data-src]) {
  opacity: 1 !important;
}

/* Hide loading placeholders for images with src but no data-src */
.image-container:has(img[src]:not([data-src])) .loading-placeholder {
  display: none !important;
}

/* Fallback for browsers without :has() support */
.loading-placeholder {
  display: none;
}

.image-container img[data-src] + .loading-placeholder {
  display: block;
}

/* Specific fixes for layout shift prevention */
.nav-logo-img {
  display: inline-block;
  width: 140px;
  height: 40px;
  object-fit: contain;
  opacity: 1 !important;
}

.team-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f8f9fa;
}

/* Specific positioning for Saumyashree Swain's image to show more of the person */
img[alt="Saumyashree Swain"].team-avatar {
  object-position: center 20%;
}

.product-img-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f8f9fa;
}

.achievement-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f8f9fa;
}

/* Prevent layout shifts during loading */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

/* Performance monitoring styles */
.core-web-vitals-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  z-index: 10000;
  display: none; /* Hidden by default, can be enabled via console */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.core-web-vitals-indicator.visible {
  display: block;
}

.cwv-metric {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
  min-width: 120px;
}

.cwv-value.good { color: #0cce6b; }
.cwv-value.needs-improvement { color: #ffa400; }
.cwv-value.poor { color: #ff4e42; }

/* Performance grade indicator */
.performance-grade {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  font-size: 12px;
  margin-left: 8px;
}

.performance-grade.A { background: #0cce6b; color: white; }
.performance-grade.B { background: #7ed321; color: white; }
.performance-grade.C { background: #ffa400; color: white; }
.performance-grade.D { background: #ff6b35; color: white; }
.performance-grade.F { background: #ff4e42; color: white; }

/* ============================================================
SCROLL PROGRESS INDICATOR
============================================================ */

/* ============================================================
PERFORMANCE OPTIMIZATIONS - LAZY LOADING & ANIMATIONS
============================================================ */

/* ============================================================
IMAGE LOADING PLACEHOLDERS AND SKELETON STATES
============================================================ */

/* ============================================================
RESPONSIVE IMAGE OPTIMIZATION SYSTEM
============================================================ */

/* Responsive image container with aspect ratio preservation */
.responsive-image-container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
}

/* Aspect ratio containers */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3 / 2;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1) {
  .aspect-ratio-16-9::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 9/16 * 100% */
  }
  
  .aspect-ratio-4-3::before {
    content: '';
    display: block;
    padding-top: 75%; /* 3/4 * 100% */
  }
  
  .aspect-ratio-1-1::before {
    content: '';
    display: block;
    padding-top: 100%;
  }
  
  .aspect-ratio-3-2::before {
    content: '';
    display: block;
    padding-top: 66.67%; /* 2/3 * 100% */
  }
}

/* Responsive image sizing */
.responsive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
}

.responsive-img.contain {
  object-fit: contain;
}

.responsive-img.fill {
  object-fit: fill;
}

/* Image sizing for different viewports */
.img-mobile-full {
  width: 100%;
}

.img-tablet-half {
  width: 100%;
}

.img-desktop-third {
  width: 100%;
}

/* Responsive image grid */
.image-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* Team avatar responsive sizing */
.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  aspect-ratio: 1;
  transition: transform 0.3s ease;
}

/* Product image responsive sizing */
.product-img-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Logo responsive sizing */
.nav-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.loader-logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Hero visual images */
.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Achievement images */
.achievement-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* Modern image format support */
.modern-image-container {
  position: relative;
  overflow: hidden;
}

/* WebP support detection */
.webp .modern-image-container img[data-src-webp] {
  content: attr(data-src-webp);
}

.no-webp .modern-image-container img[data-src-webp] {
  content: attr(data-src);
}

/* AVIF support detection */
.avif .modern-image-container img[data-src-avif] {
  content: attr(data-src-avif);
}

.no-avif .modern-image-container img[data-src-avif] {
  content: attr(data-src);
}

/* Progressive image enhancement */
.progressive-image {
  position: relative;
  overflow: hidden;
}

.progressive-image img {
  transition: opacity 0.3s ease;
}

.progressive-image.loading img {
  opacity: 0.7;
  filter: blur(2px);
}

.progressive-image.loaded img {
  opacity: 1;
  filter: none;
}

/* Picture element styling */
picture {
  display: block;
  width: 100%;
}

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

/* Responsive picture containers */
.picture-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.picture-container.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.picture-container.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.picture-container.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* Error handling for unsupported formats */
.format-error {
  background: #f5f5f5;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: #666;
  font-size: 14px;
}

.format-error::after {
  content: '🖼️ Image format not supported';
}

/* Image container with placeholder */
.image-container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 8px;
}

.image-container::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.image-container img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.image-container img.loaded ~ ::before,
.image-container img.loaded + ::before,
.image-container img:not([data-src]) + ::before {
  display: none;
}

/* Skeleton loading for cards */
.skeleton-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #f0f0f0;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.long {
  width: 100%;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  margin-bottom: 16px;
}

/* Loading states for specific components */
.team-card.loading {
  pointer-events: none;
}

.team-card.loading .team-avatar {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.team-card.loading .team-name,
.team-card.loading .team-designation,
.team-card.loading .team-bio {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  color: transparent;
  border-radius: 4px;
}

/* Product card loading states */
.product-card.loading .product-img-item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  min-height: 200px;
  border-radius: 8px;
}

/* Achievement card loading */
.achievement-card.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  min-height: 200px;
}

/* Loading spinner for individual elements */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--violet-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner.small {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
}

.loading-spinner.large {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* Content loading states */
.content-loading {
  position: relative;
  overflow: hidden;
}

.content-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.content-loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--violet-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
}

/* Lazy loading images with better placeholders */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  min-height: 100px; /* Prevent layout shift */
}

img.lazy-loading {
  opacity: 0.5;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

img.loaded {
  opacity: 1;
  background: none;
  animation: none;
}

img.lazy-error {
  opacity: 0.6;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100px;
}

img.lazy-error::after {
  content: '🖼️ Image failed to load';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #666;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Loading shimmer animation */
@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  img.lazy,
  img.lazy-loading,
  .skeleton-line,
  .skeleton-avatar,
  .team-card.loading .team-avatar,
  .team-card.loading .team-name,
  .team-card.loading .team-designation,
  .team-card.loading .team-bio,
  .product-card.loading .product-img-item,
  .achievement-card.loading,
  .loading-spinner,
  .image-container::before {
    animation: none;
    background: #f0f0f0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  img.lazy-error {
    border-color: currentColor;
  }
  
  img.lazy-error::after {
    color: currentColor;
    background: Canvas;
    border: 1px solid currentColor;
  }
  
  .skeleton-line,
  .skeleton-avatar,
  .loading-spinner {
    background: currentColor;
    opacity: 0.3;
  }
}

/* ============================================================
LOADING SCREEN REMOVED - DIRECT PAGE ACCESS
============================================================ */

/* Loading screen styles removed for direct page access */

.hero-orb,
.hero-data-pill,
.ticker-track {
  will-change: transform;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-orb {
    animation: none;
  }
  
  .ticker-track {
    animation: none;
  }
}

/* Optimize font loading */
.fonts-loaded body {
  font-family: var(--font-body);
}

/* Optimize animations for better performance */
.hero-orb,
.hero-data-pill,
.ticker-track {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* GPU acceleration for smooth animations */
.nav,
.hero-visual-card,
.team-card,
.card {
  transform: translateZ(0);
}

/* Optimize images for different screen densities */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-logo-img {
    -webkit-image-rendering: -webkit-optimize-contrast;
    -webkit-image-rendering: crisp-edges;
    -moz-image-rendering: crisp-edges;
    -ms-image-rendering: -ms-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Optimize scrolling performance */
.hero,
.section {
  contain: layout style paint;
}

/* Reduce repaints and reflows */
.animate-on-scroll {
  contain: layout;
}

/* Optimize hover effects for touch devices */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .team-card:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Accessibility preferences panel */
.accessibility-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--violet-600);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(108, 77, 255, 0.3);
  transition: all 0.3s ease;
}

.accessibility-toggle:hover {
  background: var(--violet-700);
  transform: scale(1.1);
}

.accessibility-toggle:focus {
  outline: 3px solid var(--violet-300);
  outline-offset: 2px;
}

.accessibility-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: white;
  border-left: 1px solid #e5e7eb;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.accessibility-panel.visible {
  transform: translateX(0);
}

.accessibility-panel[aria-hidden="true"] {
  visibility: hidden;
}

.accessibility-panel[aria-hidden="false"] {
  visibility: visible;
}

.accessibility-panel-content {
  padding: 24px;
}

.accessibility-panel-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink-800);
}

.accessibility-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.accessibility-control {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.accessibility-control:hover {
  background: #f9fafb;
}

.accessibility-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--violet-600);
}

.accessibility-control span {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}

.accessibility-panel-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.accessibility-panel-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .accessibility-panel {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
  }
  
  .accessibility-toggle {
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* High contrast mode for accessibility panel */
@media (prefers-contrast: high) {
  .accessibility-panel {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }
  
  .accessibility-toggle {
    background: CanvasText;
    color: Canvas;
    border: 2px solid Canvas;
  }
  
  .accessibility-control:hover {
    background: Highlight;
    color: HighlightText;
  }
}

/* Reduced motion for accessibility panel */
@media (prefers-reduced-motion: reduce) {
  .accessibility-panel,
  .accessibility-toggle {
    transition: none;
  }
  
  .accessibility-toggle:hover {
    transform: none;
  }
}

/* ============================================================
TYPEWRITER STORY EFFECT
============================================================ */

.typewriter-story-card {
  position: relative;
  background: linear-gradient(135deg, #FAFBFF 0%, #F0F4FF 100%);
  border: 1px solid rgba(108, 77, 255, 0.1);
  box-shadow: 0 8px 32px rgba(108, 77, 255, 0.08);
  min-height: 200px;
  transition: all 0.3s ease;
}

.typewriter-story-card:hover {
  box-shadow: 0 12px 48px rgba(108, 77, 255, 0.12);
  transform: translateY(-2px);
}

.typewriter-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-700);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
  margin-bottom: var(--s5);
  display: block;
  width: 100%;
}

.typewriter-text p {
  margin-bottom: var(--s5);
  line-height: 1.8;
}

/* Ensure proper paragraph spacing */
.typewriter-text {
  line-height: 1.8;
}

.typewriter-text::first-line {
  margin-top: 0;
}

/* Special styling for key moments in the story */
.typewriter-text {
  position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .typewriter-text {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .typewriter-story-card {
    min-height: 150px;
    padding: var(--s6) !important;
  }
}

@media (max-width: 480px) {
  .typewriter-text {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Ensure text is always visible and readable */
.typewriter-story-card .typewriter-text {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* ============================================================
ACCESSIBILITY PREFERENCES SUPPORT
============================================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary: CanvasText;
    --bg: Canvas;
    --surface: Canvas;
    --ink-800: CanvasText;
    --ink-700: CanvasText;
    --ink-600: CanvasText;
    --ink-400: CanvasText;
    --border: CanvasText;
  }
  
  body {
    background: Canvas;
    color: CanvasText;
  }
  
  .nav {
    background: Canvas;
    border-bottom: 2px solid CanvasText;
  }
  
  .btn {
    background: CanvasText;
    color: Canvas;
    border: 2px solid CanvasText;
  }
  
  .btn:hover,
  .btn:focus {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }
  
  .card {
    background: Canvas;
    border: 2px solid CanvasText;
    color: CanvasText;
  }
  
  .hero-visual-card,
  .team-card,
  .product-card {
    background: Canvas;
    border: 2px solid CanvasText;
  }
  
  .section-label {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }
  
  .text-gradient-purple,
  .text-gradient-violet,
  .text-gradient-mixed {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: CanvasText;
  }
  
  .hero-orb,
  .floating-stats,
  .hero-data-pill {
    display: none;
  }
  
  img {
    filter: contrast(2) brightness(1.2);
  }
  
  .nav-dropdown-menu {
    background: Canvas;
    border: 2px solid CanvasText;
  }
  
  .nav-dropdown-item:hover {
    background: Highlight;
    color: HighlightText;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-orb {
    animation: none;
    opacity: 0.3;
  }
  
  .ticker-track {
    animation: ticker-smooth 80s linear infinite reverse !important;
  }
  
  .awards-ticker {
    overflow-x: auto;
  }
  
  .awards-ticker .ticker-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
  }
  
  .loading-spinner,
  .spinner-ring {
    animation: none;
  }
  
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .card:hover,
  .team-card:hover,
  .btn:hover {
    transform: none;
  }
  
  .nav-links {
    transition: none;
  }
  
  .hero-data-pill {
    animation: none;
  }
  
  .floating-stats .stat-card {
    animation: none;
  }
  
  /* Provide alternative interaction feedback */
  .btn:hover,
  .card:hover,
  .team-card:hover {
    box-shadow: 0 0 0 3px var(--violet-600);
  }
  
  .nav-link:hover {
    background: rgba(108, 77, 255, 0.1);
    border-radius: 4px;
  }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
  .hero-orb,
  .hero-data-pill,
  .floating-stats {
    display: none;
  }
  
  .btn {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
  }
  
  .btn:hover,
  .btn:focus {
    background: Highlight;
    color: HighlightText;
  }
  
  .card,
  .team-card {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }
  
  .nav {
    background: Canvas;
    border-bottom: 1px solid CanvasText;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background: Highlight;
    color: HighlightText;
  }
}

/* Prefers color scheme support */
@media (prefers-color-scheme: dark) {
  .no-dark-mode-override:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --surface: #1e293b;
    --surface-soft: #334155;
    --ink-800: #f1f5f9;
    --ink-700: #e2e8f0;
    --ink-600: #cbd5e1;
    --ink-400: #94a3b8;
    --ink-300: #64748b;
    --border: #334155;
    --border-soft: #475569;
  }
  
  .no-dark-mode-override body {
    background: var(--bg);
    color: var(--ink-800);
  }
  
  .no-dark-mode-override .nav {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: var(--border);
  }
  
  .no-dark-mode-override .card {
    background: var(--surface);
    border-color: var(--border);
  }
}

/* Font size preferences */
@media (prefers-font-size: large) {
  :root {
    font-size: 18px;
  }
  
  .text-sm {
    font-size: 15px;
  }
  
  .text-xs {
    font-size: 13px;
  }
}

/* Transparency preferences */
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  
  .nav-links {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  
  .card-glass,
  .card-dark-glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  
  .modal-backdrop {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Data usage preferences */
@media (prefers-reduced-data: reduce) {
  .hero-orb,
  .floating-stats,
  .awards-ticker {
    display: none;
  }
  
  .animate-on-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .loading-spinner {
    display: none;
  }
  
  /* Note: Lazy loading is controlled via HTML loading attribute, not CSS */
}

/* Focus preferences */
.focus-visible-only *:focus:not(.focus-visible) {
  outline: none;
}

.focus-visible-only .focus-visible {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
}

/* Touch target size adjustments */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
    padding: 16px 24px;
  }
  
  .nav-link {
    min-height: 48px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
  }
  
  .nav-hamburger {
    min-width: 48px;
    min-height: 48px;
  }
  
  .team-card,
  .card {
    min-height: 48px;
  }
}

/* Hover capability detection */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .team-card:hover,
  .nav-link:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }
  
  /* Use focus states instead of hover */
  .btn:focus,
  .card:focus,
  .team-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
}

/* Print styles for accessibility */
@media print {
  .nav,
  .hero-orb,
  .floating-stats,
  .awards-ticker,
  .skip-navigation {
    display: none;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .hero-content {
    page-break-inside: avoid;
  }
  
  .card,
  .team-card {
    page-break-inside: avoid;
    border: 1px solid black;
    background: white;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* ============================================================
ACCESSIBILITY AND KEYBOARD NAVIGATION STYLES
============================================================ */

/* Skip navigation links */
.skip-navigation {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10001;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--violet-600);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10001;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced focus indicators */
.keyboard-focused,
*:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast focus indicators */
@media (prefers-contrast: high) {
  .keyboard-focused,
  *:focus {
    outline: 3px solid currentColor;
    outline-offset: 3px;
  }
}

/* Focus indicators for specific elements */
.nav-link:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(108, 77, 255, 0.2);
}

.card:focus,
.team-card:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Screen reader only content */
.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;
}

/* Live region for announcements */
#live-region {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Enhanced touch targets */
.enhanced-touch-target {
  position: relative;
}

.enhanced-touch-target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  z-index: -1;
}

/* Keyboard navigation indicators */
.nav-links[data-keyboard-navigation="true"] .nav-link {
  position: relative;
}

.nav-links[data-keyboard-navigation="true"] .nav-link:focus::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--violet-600);
  border-radius: 1px;
}

/* Dropdown keyboard navigation */
.nav-dropdown.keyboard-active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item:focus {
  background: var(--purple-50);
  color: var(--primary);
  outline: none;
}

/* Grid navigation indicators */
.grid-navigation-active .card,
.grid-navigation-active .team-card {
  transition: all 0.2s ease;
}

.grid-navigation-active .card:focus,
.grid-navigation-active .team-card:focus {
  transform: scale(1.02);
  z-index: 10;
}

/* Mobile menu keyboard navigation */
.nav-open .nav-links {
  outline: 2px solid var(--violet-600);
  outline-offset: -2px;
}

.nav-open .nav-link:focus {
  background: rgba(108, 77, 255, 0.1);
  outline: none;
  border-radius: 4px;
}

/* Keyboard shortcut indicators */
.keyboard-shortcut-hint {
  font-size: 11px;
  color: var(--ink-400);
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:focus .keyboard-shortcut-hint,
.btn:focus .keyboard-shortcut-hint {
  opacity: 1;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .skip-link {
    background: CanvasText;
    color: Canvas;
    border: 2px solid Canvas;
  }
  
  .nav-dropdown-item:focus {
    background: Highlight;
    color: HighlightText;
  }
  
  .card:focus,
  .team-card:focus {
    border: 3px solid currentColor;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card:focus,
  .team-card:focus,
  .enhanced-touch-target,
  .grid-navigation-active .card:focus,
  .grid-navigation-active .team-card:focus {
    transform: none;
    transition: none;
  }
  
  .skip-link {
    transition: none;
  }
}

/* Focus management for interactive elements */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:disabled:focus,
input:disabled:focus,
select:disabled:focus,
textarea:disabled:focus {
  outline: 2px solid var(--ink-300);
}

/* Accessible form elements */
input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:invalid:focus {
  outline-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

input:valid {
  border-color: #10b981;
}

input:valid:focus {
  outline-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Accessible error messages */
.error-message[role="alert"] {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 8px;
}

.success-message[role="status"] {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 8px;
}

/* Accessible tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
}

[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 4px;
}

/* Accessible modal focus management */
.modal[aria-hidden="false"] {
  display: block;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.modal-content:focus {
  outline: none;
}

/* Accessible navigation landmarks */
nav[role="navigation"] {
  position: relative;
}

main[role="main"] {
  position: relative;
}

/* Accessible headings hierarchy */
h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 100px; /* Account for fixed header */
}

/* Accessible link styling */
a:not(.btn):not(.nav-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:not(.btn):not(.nav-link):hover {
  text-decoration-thickness: 2px;
}

a:not(.btn):not(.nav-link):focus {
  text-decoration-thickness: 2px;
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
}

/* Accessible table styling */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

th {
  background: #f9fafb;
  font-weight: 600;
}

th:focus,
td:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: -2px;
}

/* Mobile accessibility improvements */
@media (max-width: 767px) {
  .enhanced-touch-target {
    min-width: 48px;
    min-height: 48px;
  }
  
  .skip-link:focus {
    top: 10px;
    left: 10px;
    right: 10px;
    text-align: center;
  }
  
  .nav-link {
    padding: 16px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ============================================================
ERROR RECOVERY AND GRACEFUL DEGRADATION STYLES
============================================================ */

/* Offline indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.offline-indicator.visible {
  transform: translateY(0);
}

.offline-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offline-icon {
  font-size: 16px;
}

/* Error message */
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  max-width: 400px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.error-message.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.error-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.error-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.error-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.error-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #991b1b;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}

.error-close:hover {
  color: #7f1d1d;
}

/* Image placeholder */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  min-height: 120px;
  color: #6b7280;
  font-size: 14px;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.placeholder-icon {
  font-size: 32px;
  opacity: 0.6;
}

.placeholder-text {
  font-weight: 500;
}

/* Image error state */
.image-error {
  opacity: 0.6;
  filter: grayscale(100%);
}

/* Offline mode adjustments */
.offline-mode {
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-premium: none;
}

.offline-mode .btn {
  box-shadow: none !important;
}

.offline-mode .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.offline-mode .nav {
  box-shadow: none !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Pause animations when offline */
.pause-animations * {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Fallback styles for failed CSS */
.css-fallback {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.css-fallback .nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 16px 24px !important;
}

.css-fallback .nav-links {
  display: flex !important;
  gap: 24px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.css-fallback .btn {
  background: #6366f1 !important;
  color: white !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.css-fallback .card {
  border: 1px solid #e5e7eb !important;
  padding: 24px !important;
  border-radius: 8px !important;
  background: white !important;
  margin-bottom: 24px !important;
}

.css-fallback .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.css-fallback .section {
  padding: 60px 0 !important;
}

/* Network status indicator */
.network-status {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.network-status.visible {
  opacity: 1;
  visibility: visible;
}

.network-status.online {
  background: rgba(16, 185, 129, 0.9);
}

.network-status.offline {
  background: rgba(239, 68, 68, 0.9);
}

/* Retry button */
.retry-button {
  background: var(--violet-600);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s ease;
}

.retry-button:hover {
  background: var(--violet-700);
}

/* Loading states for degraded performance */
.degraded-performance .loading-spinner {
  display: none;
}

.degraded-performance .animate-on-scroll {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* High contrast mode support for errors */
@media (prefers-contrast: high) {
  .error-message {
    background: Canvas;
    color: CanvasText;
    border-color: currentColor;
  }
  
  .offline-indicator {
    background: CanvasText;
    color: Canvas;
  }
  
  .image-placeholder {
    border-color: currentColor;
    background: Canvas;
    color: CanvasText;
  }
}

/* Reduced motion support for error states */
@media (prefers-reduced-motion: reduce) {
  .error-message,
  .offline-indicator,
  .network-status {
    transition: none;
  }
  
  .error-message.visible {
    transform: none;
  }
  
  .offline-indicator.visible {
    transform: none;
  }
}

/* Mobile adjustments for error UI */
@media (max-width: 767px) {
  .error-message {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .offline-indicator {
    padding: 8px;
    font-size: 13px;
  }
  
  .network-status {
    bottom: 10px;
    left: 10px;
  }
}

/* ============================================================
CONTENT REFLOW OPTIMIZATION SYSTEM
============================================================ */

/* Reflow optimization base styles */
.reflow-optimized {
  contain: layout style paint;
  will-change: auto;
}

.reflow-active .reflow-optimized {
  will-change: transform, opacity;
}

/* Prevent layout thrashing during reflow */
.reflow-active .hero-orb,
.reflow-active .ticker-track,
.reflow-active .loading-spinner {
  animation-play-state: paused;
}

/* Scrolling optimizations */
.scrolling .animate-on-scroll {
  will-change: auto;
}

/* Navigation reflow optimizations */
.nav-condensed {
  gap: 16px !important;
}

.nav-condensed .nav-link {
  font-size: 13px;
  padding: 12px 8px;
}

/* Hero layout variations */
.hero-stacked {
  flex-direction: column;
  text-align: center;
}

.hero-stacked .hero-content {
  margin-bottom: 32px;
}

.hero-stacked .hero-visual {
  max-width: 400px;
  margin: 0 auto;
}

.hero-tablet {
  gap: 32px;
}

.hero-tablet .hero-content {
  flex: 1.2;
}

.hero-tablet .hero-visual {
  flex: 0.8;
}

/* Grid reflow optimizations */
.grid-reflow-1 {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.grid-reflow-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.grid-reflow-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.grid-reflow-4 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

/* Card reflow optimizations */
.card-reflow-narrow {
  padding: 16px;
}

.card-reflow-narrow .card-title,
.card-reflow-narrow .team-name {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-reflow-narrow .card-description,
.card-reflow-narrow .team-bio {
  font-size: 14px;
  line-height: 1.4;
}

/* Container reflow optimizations */
.container-reflow-mobile {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.container-reflow-tablet {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.container-reflow-desktop {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Button reflow optimizations */
.btn-reflow-compact {
  font-size: 14px;
  padding: 12px 16px;
  min-width: 44px;
  min-height: 44px;
}

.btn-reflow-stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

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

/* Text reflow optimizations */
.text-reflow-responsive {
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.5;
}

.heading-reflow-responsive {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.3;
}

.display-reflow-responsive {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.1;
}

/* Interactive element reflow preservation */
.interactive-reflow-preserved {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Form element reflow optimizations */
.form-reflow-optimized input,
.form-reflow-optimized textarea,
.form-reflow-optimized select {
  min-height: 44px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-reflow-optimized .form-group {
  margin-bottom: 16px;
  overflow: visible;
}

/* Navigation reflow states */
@media (max-width: 1199px) {
  .nav-reflow-tablet .nav-links {
    gap: 20px;
  }
  
  .nav-reflow-tablet .nav-link {
    font-size: 14px;
    padding: 12px 10px;
  }
}

@media (max-width: 767px) {
  .nav-reflow-mobile .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 99;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-open .nav-reflow-mobile .nav-links {
    display: flex;
  }
  
  .nav-reflow-mobile .nav-hamburger {
    display: flex;
  }
}

/* Content overflow handling during reflow */
.content-overflow-auto {
  overflow: auto;
}

.content-overflow-hidden {
  overflow: hidden;
}

.content-overflow-visible {
  overflow: visible;
}

/* Performance optimizations during reflow */
.reflow-performance-mode * {
  will-change: auto !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.reflow-performance-mode .hero-orb,
.reflow-performance-mode .floating-stats,
.reflow-performance-mode .awards-ticker {
  display: none;
}

/* Layout containment for better reflow performance */
.layout-contained {
  contain: layout;
}

.style-contained {
  contain: style;
}

.paint-contained {
  contain: paint;
}

.size-contained {
  contain: size;
}

.strict-contained {
  contain: strict;
}

/* Reflow-safe animations */
.reflow-safe-animation {
  animation-fill-mode: both;
  animation-play-state: running;
}

.reflow-active .reflow-safe-animation {
  animation-play-state: paused;
}

/* Flexible layouts that adapt during reflow */
.flex-reflow-adaptive {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.flex-reflow-adaptive > * {
  flex: 1 1 280px;
  min-width: 0;
}

@media (max-width: 767px) {
  .flex-reflow-adaptive {
    flex-direction: column;
  }
  
  .flex-reflow-adaptive > * {
    flex: none;
  }
}

/* Grid layouts that adapt during reflow */
.grid-reflow-adaptive {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 767px) {
  .grid-reflow-adaptive {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Image reflow optimizations */
.image-reflow-optimized {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: attr(width) / attr(height);
}

@supports not (aspect-ratio: 1) {
  .image-reflow-optimized {
    height: auto;
  }
}

/* Text content reflow optimizations */
.text-content-reflow {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.text-content-reflow.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-content-reflow.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-content-reflow.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive spacing during reflow */
.spacing-reflow-mobile {
  padding: 16px;
  margin: 8px 0;
}

.spacing-reflow-tablet {
  padding: 20px;
  margin: 12px 0;
}

.spacing-reflow-desktop {
  padding: 24px;
  margin: 16px 0;
}

/* Production styles - cleaned up */

/* High contrast mode reflow optimizations */
@media (prefers-contrast: high) {
  .reflow-high-contrast {
    border: 2px solid currentColor;
    background: Canvas;
    color: CanvasText;
  }
}

/* Reduced motion reflow optimizations */
@media (prefers-reduced-motion: reduce) {
  .reflow-reduced-motion * {
    animation: none !important;
    transition: none !important;
  }
}

/* Print reflow optimizations */
@media print {
  .reflow-print-optimized {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .reflow-print-hidden {
    display: none !important;
  }
}

/* ============================================================
SPECIFIC COMPONENT UTILITY CLASSES
============================================================ */

/* Credential grid styling */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.credential-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Section spacing utilities */
.section-mb-16 { margin-bottom: var(--space-4xl) !important; }
.section-mb-20 { margin-bottom: var(--space-4xl) !important; }
.section-mt-16 { margin-top: var(--space-4xl) !important; }
.section-mt-20 { margin-top: var(--space-4xl) !important; }

/* Container spacing utilities */
.container-sections {
  margin-top: var(--space-4xl);
}

/* Card sections styling */
.card-sections {
  padding: var(--s10);
}

.text-body-sections {
  margin-bottom: var(--s5);
  line-height: 1.8;
}

/* Grid utilities */
.grid-3-gap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s6);
}

/* Impact grid styling */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s6);
}

.impact-card {
  padding: var(--s6);
  text-align: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.impact-icon {
  font-size: 32px;
  margin-bottom: var(--s3);
}

.impact-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--s2);
  color: var(--ink-800);
}

.impact-description {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 2px;
}

/* Footer styling utilities */
.footer-brand-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--s4);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  margin-right: 8px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--s4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--s8);
}

.footer-bottom-left {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-social:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact info styling */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 14px;
  color: var(--ink-800);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-value:hover {
  color: var(--violet-600);
}

/* Social icons container */
.social-icons-container {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(108, 77, 255, 0.1);
  color: var(--violet-600);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--violet-600);
  color: white;
  transform: translateY(-2px);
}

/* Partner logos styling */
.partner-logos-container {
  margin-top: var(--s12);
}

.partner-logos-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: var(--s2);
}

.partner-logos-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s6);
  flex-wrap: wrap;
}

.partner-badge {
  background: rgba(108, 77, 255, 0.1);
  color: var(--violet-600);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(108, 77, 255, 0.2);
}

/* CTA section styling */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s8);
  margin-top: var(--s12);
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: var(--s8);
  text-align: center;
  transition: all 0.3s ease;
}

.cta-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.cta-card-icon {
  font-size: 48px;
  margin-bottom: var(--s4);
}

.cta-card-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--s3);
}

.cta-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--s6);
}

/* Investor strip */
.investor-strip {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.investor-strip p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.investor-strip span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--s4);
    text-align: center;
  }
  
  .cta-cards {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  
  .partner-logos-wrapper {
    gap: var(--s4);
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
    gap: var(--s2);
  }
  
  .social-icons-container {
    justify-content: center;
  }
}

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Margin utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.mt-1 { margin-top: var(--s2) !important; }
.mt-2 { margin-top: var(--s4) !important; }
.mt-3 { margin-top: var(--s6) !important; }
.mt-4 { margin-top: var(--s8) !important; }
.mt-5 { margin-top: var(--s10) !important; }
.mt-6 { margin-top: var(--s12) !important; }

.mb-1 { margin-bottom: var(--s2) !important; }
.mb-2 { margin-bottom: var(--s4) !important; }
.mb-3 { margin-bottom: var(--s6) !important; }
.mb-4 { margin-bottom: var(--s8) !important; }
.mb-5 { margin-bottom: var(--s10) !important; }
.mb-6 { margin-bottom: var(--s12) !important; }

/* Padding utilities */
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.p-1 { padding: var(--s2) !important; }
.p-2 { padding: var(--s4) !important; }
.p-3 { padding: var(--s6) !important; }
.p-4 { padding: var(--s8) !important; }
.p-5 { padding: var(--s10) !important; }

.pt-1 { padding-top: var(--s2) !important; }
.pt-2 { padding-top: var(--s4) !important; }
.pt-3 { padding-top: var(--s6) !important; }
.pt-4 { padding-top: var(--s8) !important; }
.pt-5 { padding-top: var(--s10) !important; }

.pb-1 { padding-bottom: var(--s2) !important; }
.pb-2 { padding-bottom: var(--s4) !important; }
.pb-3 { padding-bottom: var(--s6) !important; }
.pb-4 { padding-bottom: var(--s8) !important; }
.pb-5 { padding-bottom: var(--s10) !important; }

/* Text alignment utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Font weight utilities */
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Font size utilities */
.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-13 { font-size: 13px !important; }
.fs-14 { font-size: 14px !important; }
.fs-15 { font-size: 15px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-24 { font-size: 24px !important; }
.fs-32 { font-size: 32px !important; }

/* Line height utilities */
.lh-1 { line-height: 1 !important; }
.lh-12 { line-height: 1.2 !important; }
.lh-13 { line-height: 1.3 !important; }
.lh-15 { line-height: 1.5 !important; }
.lh-16 { line-height: 1.6 !important; }
.lh-17 { line-height: 1.7 !important; }
.lh-18 { line-height: 1.8 !important; }

/* Color utilities */
.text-white { color: #ffffff !important; }
.text-muted { color: var(--ink-400) !important; }
.text-dark { color: var(--ink-800) !important; }

/* Background utilities */
.bg-transparent { background: transparent !important; }
.bg-white { background: #ffffff !important; }

/* Border utilities */
.border-0 { border: none !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }

/* Position utilities */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

/* Width utilities */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Height utilities */
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Flex utilities */
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }

/* Gap utilities */
.gap-1 { gap: var(--s2) !important; }
.gap-2 { gap: var(--s4) !important; }
.gap-3 { gap: var(--s6) !important; }
.gap-4 { gap: var(--s8) !important; }
.gap-5 { gap: var(--s10) !important; }

/* Max width utilities */
.max-w-400 { max-width: 400px !important; }
.max-w-500 { max-width: 500px !important; }
.max-w-600 { max-width: 600px !important; }
.max-w-700 { max-width: 700px !important; }
.max-w-800 { max-width: 800px !important; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-visible { overflow: visible !important; }

/* Filter utilities */
.filter-brightness-0 { filter: brightness(0) !important; }
.filter-invert-1 { filter: invert(1) !important; }

/* Additional background utilities */
.bg-violet-light { background: rgba(108, 77, 255, 0.1) !important; }
.bg-violet-light-2 { background: rgba(139, 92, 246, 0.1) !important; }
.bg-green-light { background: rgba(52, 211, 153, 0.1) !important; }

/* Additional text color utilities */
.text-violet-600 { color: var(--violet-600) !important; }
.text-green-600 { color: #059669 !important; }

/* Additional spacing utilities */
.mb-6 { margin-bottom: var(--s12) !important; }
.gap-2 { gap: var(--s4) !important; }
.mt-4 { margin-top: var(--s8) !important; }
.pt-3 { padding-top: var(--s6) !important; }
.mb-2 { margin-bottom: var(--s4) !important; }

/* Border utilities */
.border-top { border-top: 1px solid rgba(0,0,0,0.06) !important; }

/* Font size utilities - additional */
.fs-13 { font-size: 13px !important; }
.fs-12 { font-size: 12px !important; }

/* Text color utilities - additional */
.text-white-35 { color: rgba(255,255,255,0.35) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

/* Text decoration utilities */
.text-decoration-none { text-decoration: none !important; }

/* Position utilities */
.z-1 { z-index: 1 !important; }

/* Text color utilities - additional */
.text-white-70 { color: rgba(255,255,255,0.7) !important; }

/* Max width utilities - additional */
.max-w-560 { max-width: 560px !important; }

/* Line height utilities - additional */
.lh-175 { line-height: 1.75 !important; }

/* Margin utilities - additional */
.mt-6 { margin-top: var(--s12) !important; }

/* Gap utilities - additional */
.gap-4 { gap: 32px !important; }

/* Margin utilities - additional */
.mb-3 { margin-bottom: 12px !important; }

/* Max width utilities - additional */
.max-w-400 { max-width: 400px !important; }

/* Product section background utilities */
.bg-diacue-gradient { 
  background: linear-gradient(135deg, #F7F9FF 0%, #EEF2FF 100%) !important; 
  padding: var(--s24) 0 !important;
}

.bg-gibud-gradient { 
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%) !important; 
  padding: var(--s24) 0 !important;
}

.bg-growgut-gradient { 
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%) !important; 
  padding: var(--s24) 0 !important;
}

.bg-tech-gradient {
  background: linear-gradient(135deg, #6C4DFF, #A78BFA) !important;
  color: white !important;
}

/* Additional gradient text utilities */
.text-teal-gradient {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Footer badge utilities */
.footer-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-500);
}

.footer-badge-dot-violet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-400);
}

.footer-badge-violet {
  margin-left: 8px;
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.2);
  color: var(--violet-400);
}

/* Margin utilities - additional */
.mt-1 { margin-top: 2px !important; }
.mt-3 { margin-top: var(--s6) !important; }
.mb-8 { margin-bottom: var(--s16) !important; }

/* Browser compatibility fixes */
.image-rendering-crisp {
  -webkit-image-rendering: -webkit-optimize-contrast;
  -webkit-image-rendering: crisp-edges;
  -moz-image-rendering: crisp-edges;
  -ms-image-rendering: -ms-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.overflow-scrolling-touch {
  overflow: auto;
}

/* ============================================================
CONTENT PRESERVATION AND LAYOUT STABILITY SYSTEM
============================================================ */

/* Layout stability and content preservation */
.layout-stable {
  contain: layout style paint;
}

/* Prevent layout shifts during loading */
.prevent-layout-shift {
  min-height: 1px; /* Prevent collapse */
}

/* Text overflow prevention */
.text-overflow-safe {
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Multi-line text clamping */
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navigation preservation */
.nav-preserved {
  min-height: 80px;
}

.nav-links-preserved {
  min-width: 0; /* Allow flex items to shrink */
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-link-preserved {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

/* Navigation overflow handling */
.nav-more {
  position: relative;
}

.nav-more .nav-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 180px;
}

/* Content container preservation */
.content-preserved {
  min-height: 100px;
  overflow: hidden;
}

.content-preserved.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

/* Image aspect ratio preservation */
.image-preserved {
  position: relative;
  overflow: hidden;
}

.image-preserved img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Aspect ratio containers with fallbacks */
.aspect-ratio-preserved {
  position: relative;
  width: 100%;
}

.aspect-ratio-preserved::before {
  content: '';
  display: block;
  width: 100%;
}

.aspect-ratio-16-9::before {
  padding-top: 56.25%; /* 9/16 * 100% */
}

.aspect-ratio-4-3::before {
  padding-top: 75%; /* 3/4 * 100% */
}

.aspect-ratio-1-1::before {
  padding-top: 100%;
}

.aspect-ratio-3-2::before {
  padding-top: 66.67%; /* 2/3 * 100% */
}

.aspect-ratio-preserved > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Modern aspect-ratio support */
@supports (aspect-ratio: 1) {
  .aspect-ratio-preserved::before {
    display: none;
  }
  
  .aspect-ratio-preserved > * {
    position: static;
  }
  
  .aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
  }
  
  .aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
  }
  
  .aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
  }
  
  .aspect-ratio-3-2 {
    aspect-ratio: 3 / 2;
  }
}

/* Font loading stability */
.font-loading-stable {
  font-display: swap;
}

/* Prevent font loading layout shifts */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fonts-loaded body {
  font-family: var(--font-body);
}

/* Responsive text scaling preservation */
.text-responsive {
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.6;
}

.heading-responsive {
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.2;
}

.display-responsive {
  font-size: clamp(32px, 8vw, 72px);
  line-height: 1.1;
}

/* Container query fallbacks for content preservation */
.container-preserved {
  container-type: inline-size;
  min-width: 0;
}

/* Breakpoint-specific content preservation */
@media (max-width: 767px) {
  /* Mobile content preservation */
  .mobile-preserved {
    padding: 16px;
    margin: 8px 0;
  }
  
  .mobile-text-preserved {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .mobile-heading-preserved {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  
  /* Ensure navigation items are accessible */
  .nav-links {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  
  .nav-link {
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
  }
  
  /* Prevent horizontal scrolling */
  .mobile-no-scroll {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Tablet content preservation */
  .tablet-preserved {
    padding: 20px;
    margin: 12px 0;
  }
  
  .tablet-text-preserved {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .tablet-heading-preserved {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 20px;
  }
}

@media (min-width: 1200px) {
  /* Desktop content preservation */
  .desktop-preserved {
    padding: 24px;
    margin: 16px 0;
  }
  
  .desktop-text-preserved {
    font-size: 16px;
    line-height: 1.7;
  }
  
  .desktop-heading-preserved {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
  }
}

/* Overflow handling for preserved content */
.overflow-preserved {
  overflow: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar; /* IE/Edge fallback */
}

/* Interactive element preservation */
.interactive-preserved {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

/* Card content preservation */
.card-content-preserved {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.card-content-preserved > * {
  flex-shrink: 0;
}

.card-content-preserved .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Team card preservation */
.team-card-preserved {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.team-card-preserved .team-avatar {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

.team-card-preserved .team-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* Button text preservation */
.btn-text-preserved {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

@media (max-width: 767px) {
  .btn-text-preserved {
    white-space: normal;
    max-width: none;
    text-align: center;
    line-height: 1.3;
  }
}

/* Grid layout preservation */
.grid-preserved {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 767px) {
  .grid-preserved {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Flex layout preservation */
.flex-preserved {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.flex-preserved > * {
  flex: 1 1 280px;
  min-width: 0;
}

@media (max-width: 767px) {
  .flex-preserved {
    flex-direction: column;
    gap: 12px;
  }
  
  .flex-preserved > * {
    flex: none;
  }
}

/* Content reflow optimization */
.reflow-optimized {
  will-change: auto;
  contain: layout;
}

.reflow-optimized.animating {
  will-change: transform, opacity;
}

/* Prevent content jumping during animations */
.animation-stable {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Loading state preservation */
.loading-state-preserved {
  min-height: 100px;
  position: relative;
}

.loading-state-preserved::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: inherit;
}

.loading-state-preserved.loaded::before {
  display: none;
}

/* Error state preservation */
.error-state-preserved {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  text-align: center;
  padding: 20px;
}

/* Accessibility preservation */
.a11y-preserved {
  outline-offset: 2px;
}

.a11y-preserved:focus {
  outline: 2px solid var(--violet-600);
}

/* High contrast preservation */
@media (prefers-contrast: high) {
  .contrast-preserved {
    border: 2px solid currentColor !important;
    background: Canvas !important;
    color: CanvasText !important;
  }
}

/* Reduced motion preservation */
@media (prefers-reduced-motion: reduce) {
  .motion-preserved * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print preservation */
@media print {
  .print-preserved {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  
  .print-hidden {
    display: none !important;
  }
  
  .print-visible {
    display: block !important;
  }
}

/* ============================================================
TOUCH-FRIENDLY INTERACTIONS AND MOBILE OPTIMIZATIONS
============================================================ */

/* Touch device detection and optimizations */
.touch-device {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.no-touch {
  /* Enable text selection on non-touch devices */
  -webkit-user-select: text;
  user-select: text;
}

/* Enhanced touch targets */
.enhanced-touch-target {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Touch feedback states */
.touch-active {
  transform: scale(0.95);
  opacity: 0.8;
  transition: all 0.1s ease;
}

.btn.touch-active {
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card.touch-active,
.team-card.touch-active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Touch ripple effect */
.touch-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(108, 77, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Improved touch targets for navigation */
.touch-device .nav-link {
  padding: 16px 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.touch-device .nav-link:active {
  background-color: rgba(108, 77, 255, 0.1);
}

/* Enhanced mobile hamburger menu */
.touch-device .nav-hamburger {
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.touch-device .nav-hamburger:active {
  background-color: rgba(108, 77, 255, 0.1);
}

/* Touch-optimized buttons */
.touch-device .btn {
  min-height: 48px;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 12px;
}

.touch-device .btn-lg {
  min-height: 56px;
  padding: 18px 32px;
  font-size: 18px;
}

.touch-device .btn:active {
  transform: scale(0.95);
}

/* Touch-optimized form elements */
.touch-device input,
.touch-device textarea,
.touch-device select {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px; /* Prevents zoom on iOS */
  border-radius: 8px;
}

.touch-device input:focus,
.touch-device textarea:focus,
.touch-device select:focus {
  outline: 3px solid rgba(108, 77, 255, 0.3);
  outline-offset: 2px;
}

/* Touch-optimized cards */
.touch-device .card,
.touch-device .team-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.touch-device .card:active,
.touch-device .team-card:active {
  transform: scale(0.98);
}

/* Swipe indicators */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: rgba(108, 77, 255, 0.3);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swipe-indicator.left {
  left: 10px;
}

.swipe-indicator.right {
  right: 10px;
}

.swipe-active .swipe-indicator {
  opacity: 1;
}

/* Touch-optimized dropdown menus */
.touch-device .nav-dropdown-menu {
  min-width: 200px;
  padding: 8px 0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.touch-device .nav-dropdown-item {
  padding: 16px 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.touch-device .nav-dropdown-item:active {
  background-color: rgba(108, 77, 255, 0.1);
}

/* Touch-optimized social icons */
.touch-device .social-icon-btn {
  min-width: 48px;
  min-height: 48px;
  padding: 12px;
  border-radius: 12px;
}

.touch-device .footer-social {
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
  border-radius: 8px;
}

/* Prevent text selection on interactive elements */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .card,
.touch-device .team-card {
  -webkit-user-select: none;
  user-select: none;
}

/* Touch-optimized scrolling */
.touch-device {
  scroll-behavior: smooth;
}

/* Improve touch scrolling performance */
.touch-device .nav-links,
.touch-device .achievements-gallery,
.touch-device .modal-content {
  overflow: auto;
}

/* Touch-optimized modal interactions */
.touch-device .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
}

/* Pull-to-refresh indicator (if implemented) */
.pull-to-refresh {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(108, 77, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.pull-to-refresh.active {
  opacity: 1;
  top: 20px;
}

/* Touch gesture hints */
.touch-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.touch-hint.visible {
  opacity: 1;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .team-card:hover,
  .nav-link:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
  
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Use focus states instead */
  .btn:focus,
  .card:focus,
  .team-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
}

/* Touch-specific animations */
@media (hover: none) {
  .animate-on-scroll {
    animation-duration: 0.6s !important;
  }
  
  .hero-orb {
    animation-duration: 4s !important;
  }
  
  .ticker-track {
    animation-duration: 40s !important;
  }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 500px) {
  .touch-device .nav {
    height: 60px;
  }
  
  .touch-device .nav-inner {
    height: 60px;
  }
  
  .touch-device .hero {
    padding-top: 80px;
  }
  
  .touch-device .section {
    padding: 40px 0;
  }
}

/* High DPI touch screens */
@media (-webkit-min-device-pixel-ratio: 2) and (hover: none) {
  .touch-device .btn {
    border-width: 0.5px;
  }
  
  .touch-device .card {
    border-width: 0.5px;
  }
}

/* Touch accessibility improvements */
.touch-device [role="button"],
.touch-device [tabindex="0"] {
  min-width: 44px;
  min-height: 44px;
}

/* Touch-optimized focus indicators */
.touch-device *:focus {
  outline: 3px solid rgba(108, 77, 255, 0.5);
  outline-offset: 2px;
}

/* Reduce motion for touch devices if preferred */
@media (prefers-reduced-motion: reduce) and (hover: none) {
  .touch-device * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .touch-device .touch-ripple {
    display: none;
  }
}

/* ============================================================
CSS-ONLY FALLBACK FUNCTIONALITY
============================================================ */

/* No-JS fallback styles */
.no-js .animate-on-scroll {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.no-js .nav-links {
  display: flex !important;
  position: static !important;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  flex-direction: row !important;
  padding: 0 !important;
  gap: 28px !important;
  border: none !important;
  box-shadow: none !important;
}

.no-js .nav-hamburger {
  display: none !important;
}

.no-js .nav-cta {
  display: flex !important;
}

.no-js .nav-cta-mobile {
  display: none !important;
}

/* CSS-only responsive navigation */
.no-js .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* CSS-only image loading */
.no-js img[data-src] {
  content: attr(data-src);
}

.no-js img.lazy {
  opacity: 1;
  background: none;
  animation: none;
}

/* CSS-only mobile navigation fallback */
@media (max-width: 767px) {
  .no-js .nav-links {
    display: none !important;
  }
  
  .no-js .nav-hamburger {
    display: block !important;
    position: relative;
  }
  
  .no-js .nav-hamburger::after {
    content: 'Menu';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--ink-600);
    white-space: nowrap;
    margin-top: 4px;
  }
  
  /* CSS-only mobile menu toggle using checkbox hack */
  .no-js .mobile-menu-toggle {
    display: none;
  }
  
  .no-js .mobile-menu-toggle:checked ~ .nav-links {
    display: flex !important;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--s8) var(--s6);
    gap: var(--s4);
    z-index: 99;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .no-js .mobile-menu-label {
    display: block;
    cursor: pointer;
  }
}

/* CSS-only animations and transitions */
.no-js .hero-orb {
  animation: none;
  opacity: 0.6;
}

.no-js .ticker-track {
  animation: none;
  transform: none;
}

.no-js .loading-spinner {
  display: none;
}

/* CSS-only form validation */
.no-js input:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.no-js input:valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* CSS-only accordion/dropdown functionality */
.no-js .accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.no-js .accordion-toggle {
  display: none;
}

.no-js .accordion-toggle:checked ~ .accordion-content {
  max-height: 1000px;
  padding: 16px;
  opacity: 1;
}

.no-js .accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: all 0.3s ease;
}

.no-js .accordion-header {
  padding: 16px;
  cursor: pointer;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.no-js .accordion-header:hover {
  background: #f3f4f6;
}

/* CSS-only tab functionality */
.no-js .tab-input {
  display: none;
}

.no-js .tab-input:checked ~ .tab-content {
  display: block;
}

.no-js .tab-content {
  display: none;
}

.no-js .tab-label {
  display: inline-block;
  padding: 12px 24px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  cursor: pointer;
  margin-right: -1px;
}

.no-js .tab-input:checked ~ .tab-label {
  background: #ffffff;
  border-bottom-color: #ffffff;
  position: relative;
  z-index: 1;
}

/* CSS-only modal functionality */
.no-js .modal-toggle {
  display: none;
}

.no-js .modal-toggle:checked ~ .modal-overlay {
  opacity: 1;
  visibility: visible;
}

.no-js .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.no-js .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

/* CSS-only tooltip functionality */
.no-js .tooltip {
  position: relative;
  cursor: help;
}

.no-js .tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
}

.no-js .tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 4px;
}

/* Ensure critical content is always visible */
.no-js .hero,
.no-js .nav,
.no-js section,
.no-js .container {
  opacity: 1 !important;
  visibility: visible !important;
}

/* CSS-only smooth scrolling */
.no-js {
  scroll-behavior: smooth;
}

/* CSS-only focus management */
.no-js a:focus,
.no-js button:focus,
.no-js input:focus,
.no-js textarea:focus,
.no-js select:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
}

/* CSS-only skip links */
.no-js .skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--violet-600);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.no-js .skip-link:focus {
  top: 6px;
}

/* ============================================================
DESIGN SYSTEM — TOKENS & VARIABLES (PREMIUM WHITE HEALTHCARE)
============================================================ */
:root {
/* Core Palette - PREMIUM PURPLE + WHITE MEDICAL */
--purple-50:  #F7F9FF;
--purple-100: #F3F4FF;
--purple-200: #E9EAFF;
--purple-300: #D8B4FE;
--purple-400: #A78BFA;
--purple-500: #8B5CF6;
--purple-600: #6C4DFF;
--purple-700: #5A3FD9;
--purple-800: #4C34B3;

--violet-50:  #F5F7FF;
--violet-100: #EEF1F6;
--violet-200: #E3E7F1;
--violet-300: #C4B5FD;
--violet-400: #A78BFA;
--violet-500: #8B5CF6;
--violet-600: #6C4DFF;
--violet-700: #5A3FD9;

--lavender-50:  #F7F9FF;
--lavender-100: #F3F4FF;
--lavender-200: #E9EAFF;

--white:     #FFFFFF;
--off-white: #FEFEFE;
--medical-bg: #F7F9FF;
--medical-soft: #F5F7FF;

/* Typography - Medical Authority */
--ink-900: #1A1F2E;
--ink-800: #2A3142;
--ink-700: #3A4556;
--ink-500: #5A6473;
--ink-400: #6B7685;
--ink-300: #8A94A6;
--ink-200: #B0B8C8;
--ink-100: #D5DBE8;

/* Semantic - PREMIUM HEALTHCARE */
--primary:     #6C4DFF;
--primary-dark:#5A3FD9;
--primary-light:#8B5CF6;
--accent:      #A78BFA;
--accent-soft: #E9EAFF;

--bg:          #FFFFFF;
--bg-soft:     #F7F9FF;
--bg-dark:     #0c0f1a;

--surface:     #FFFFFF;
--surface-soft:#FEFEFE;
--surface-dark:#131929;

--border:      #EEF1F6;
--border-soft: #F3F5F9;
--border-dark: rgba(196,181,253,0.12);

/* Typography */
--font-display: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono:    'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

/* Spacing Scale - PREMIUM STARTUP SPACING */
--s1:  6px;  --s2: 12px;  --s3: 18px;  --s4: 24px;
--s5:  32px; --s6: 40px;  --s8: 48px;  --s10: 64px;
--s12: 80px; --s16: 96px; --s20: 120px; --s24: 160px;

/* Radius - Medical Softness */
--r-sm: 8px;  --r-md: 14px; --r-lg: 20px;
--r-xl: 28px; --r-2xl: 40px; --r-full: 9999px;

/* Shadows - PREMIUM MEDICAL */
--shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
--shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
--shadow-lg: 0 10px 30px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
--shadow-premium: 0 10px 40px rgba(108,77,255,0.08), 0 4px 16px rgba(0,0,0,0.04);
--shadow-glow-purple: 0 0 30px rgba(108,77,255,0.15), 0 0 60px rgba(108,77,255,0.08);

/* Transitions */
--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
font-family: var(--font-body);
background: var(--bg);
color: var(--ink-800);
line-height: 1.6;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
/* Ensure body is always visible */
opacity: 1 !important;
visibility: visible !important;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Critical: Ensure main content is always visible */
.hero, .nav, section {
opacity: 1 !important;
visibility: visible !important;
}

/* ============================================================
LAYOUT UTILITIES - PREMIUM STARTUP SPACING
============================================================ */
.container {
width: 100%; 
max-width: 1200px;
margin-left: auto; 
margin-right: auto; 
padding-left: 24px; 
padding-right: 24px;
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 760px; }
.section { 
padding-top: 80px; 
padding-bottom: 80px; 
}
.section--lg { padding: 160px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s10); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s8); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s2); } .gap-3 { gap: var(--s3); } .gap-4 { gap: var(--s4); }
.gap-5 { gap: var(--s5); } .gap-6 { gap: var(--s6); } .gap-8 { gap: var(--s8); }

/* ============================================================
TYPOGRAPHY
============================================================ */
.text-display {
font-family: var(--font-display);
font-size: clamp(44px, 7vw, 88px);
line-height: 1.05;
letter-spacing: -0.02em;
font-weight: 400;
}
.text-h1 {
font-family: var(--font-body);
font-size: clamp(36px, 5vw, 64px);
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.02em;
}
.text-h2 {
font-family: var(--font-body);
font-size: clamp(28px, 3.5vw, 44px);
font-weight: 700;
line-height: 1.15;
letter-spacing: -0.015em;
}
.text-h3 {
font-size: clamp(20px, 2vw, 28px);
font-weight: 600;
line-height: 1.25;
}
.text-body-lg { font-size: 18px; line-height: 1.7; }
.text-body { font-size: 15px; line-height: 1.7; }
.text-sm { font-size: 13px; line-height: 1.6; }
.text-xs { font-size: 11px; line-height: 1.5; letter-spacing: 0.05em; }
.text-mono { font-family: var(--font-mono); font-size: 13px; }
.text-center { text-align: center; }
.text-gradient-purple {
background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.text-gradient-violet {
background: linear-gradient(135deg, var(--violet-500), var(--violet-400));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.text-gradient-mixed {
background: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-400) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.text-muted { color: var(--ink-400); }
.text-white { color: white; }

/* ============================================================
SECTION LABELS - PREMIUM MEDICAL TAGS
============================================================ */
.section-label {
display: inline-flex; align-items: center; gap: var(--s2);
font-size: 11px; font-weight: 600;
letter-spacing: 0.12em; text-transform: uppercase;
padding: 6px 16px;
border-radius: var(--r-full);
margin-bottom: var(--s5);
}
.section-label--blue {
background: #F3F4FF;
border: 1px solid #E9EAFF;
color: #4C4FD9;
box-shadow: 0 2px 8px rgba(108,77,255,0.06);
}
.section-label--violet {
background: #F3F4FF;
border: 1px solid #E9EAFF;
color: #5A3FD9;
box-shadow: 0 2px 8px rgba(90,63,217,0.06);
}
.section-label--white {
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
color: rgba(255,255,255,0.9);
}
.section-label .dot {
width: 5px; height: 5px;
border-radius: 50%;
background: currentColor;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%,100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
BUTTONS - PREMIUM MEDICAL CTA
============================================================ */
.btn {
display: inline-flex; align-items: center; gap: var(--s4);
font-family: var(--font-body);
font-weight: 600; font-size: 14px;
padding: 16px 32px;
border-radius: var(--r-full);
transition: all 0.3s var(--ease);
white-space: nowrap;
position: relative; overflow: hidden;
margin: var(--s2);
}
.btn::before {
content: ''; position: absolute; inset: 0;
opacity: 0; transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white;
box-shadow: 0 4px 16px rgba(108,77,255,0.25), 0 2px 8px rgba(0,0,0,0.04);
}
.btn-primary::before { background: rgba(255,255,255,0.15); }
.btn-primary:hover { 
transform: translateY(-2px); 
box-shadow: 0 8px 28px rgba(108,77,255,0.35), 0 4px 12px rgba(0,0,0,0.06); 
}
.btn-accent {
background: linear-gradient(135deg, #8B5CF6, #A78BFA);
color: white;
box-shadow: 0 4px 16px rgba(139,92,246,0.25), 0 2px 8px rgba(0,0,0,0.04);
}
.btn-accent:hover { 
transform: translateY(-2px); 
box-shadow: 0 8px 28px rgba(139,92,246,0.35), 0 4px 12px rgba(0,0,0,0.06); 
}
.btn-outline {
border: 1.5px solid #EEF1F6;
background: #FFFFFF;
color: var(--ink-700);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-outline:hover { 
border-color: #6C4DFF; 
color: #6C4DFF; 
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(108,77,255,0.12);
}
.btn-outline-white {
border: 1.5px solid rgba(255,255,255,0.3);
background: rgba(255,255,255,0.08);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
color: white;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.btn-lg { font-size: 16px; padding: 16px 36px; }
.btn-disabled {
opacity: 0.6;
cursor: not-allowed;
pointer-events: none;
}
.btn-disabled:hover {
transform: none;
box-shadow: 0 4px 16px rgba(108,77,255,0.25), 0 2px 8px rgba(0,0,0,0.04);
}
.btn-icon {
width: 20px; height: 20px;
display: flex; align-items: center; justify-content: center;
border-radius: 50%;
background: rgba(255,255,255,0.2);
}

/* ============================================================
CARDS - PREMIUM WHITE MEDICAL
============================================================ */
.card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-xl);
padding: var(--s12);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: all 0.3s var(--ease);
margin-bottom: var(--s8);
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
border-color: #E9EAFF;
}
.card-glass {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-xl);
box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.02);
}
.card-dark {
background: var(--surface-dark);
border: 1px solid rgba(255,255,255,0.06);
border-radius: var(--r-xl);
}
.card-dark-glass {
background: rgba(19,25,41,0.8);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border: 1px solid rgba(196,181,253,0.1);
border-radius: var(--r-xl);
}

/* ============================================================
NAV
============================================================ */
.nav {
position: fixed; top: 0; left: 0; right: 0;
z-index: 100;
transition: all 0.3s var(--ease);
}
.nav.scrolled {
background: rgba(255,255,255,0.88);
-webkit-backdrop-filter: blur(20px) saturate(1.8);
backdrop-filter: blur(20px) saturate(1.8);
border-bottom: 1px solid rgba(0,0,0,0.06);
box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
max-width: 1200px; 
margin: 0 auto;
padding: 0 24px;
display: flex; 
align-items: center; 
justify-content: space-between;
height: 80px;
position: relative;
}
.nav-logo {
display: flex; align-items: center; gap: var(--s3);
font-weight: 700; font-size: 20px;
color: var(--ink-900);
}
.nav-logo-img {
height: 40px;
width: auto;
display: block;
transition: transform 0.3s var(--ease);
}
.nav-logo:hover .nav-logo-img {
transform: scale(1.05);
}
.nav-logo-mark {
width: 36px; height: 36px;
border-radius: 10px;
background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
display: flex; align-items: center; justify-content: center;
font-weight: 800; font-size: 15px; color: white;
box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.nav-links {
display: flex; 
align-items: center; 
gap: 28px;
list-style: none;
}
.nav-links a {
font-size: 14px; font-weight: 500;
color: var(--ink-500);
transition: color 0.2s;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute; bottom: -4px; left: 0; right: 0;
height: 2px; border-radius: 1px;
background: var(--violet-600);
transform: scaleX(0); transform-origin: left;
transition: transform 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }

/* ============================================================
ENHANCED NAVIGATION - DROPDOWN & MOBILE
============================================================ */

/* ============================================================
ENHANCED HAMBURGER MENU - ACCESSIBILITY & ANIMATIONS
============================================================ */

/* Hamburger Menu (Mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  position: relative;
  width: 44px;
  height: 44px;
}

.nav-hamburger:hover {
  background: rgba(108,77,255,0.08);
}

.nav-hamburger:focus {
  outline: 2px solid var(--violet-600);
  outline-offset: 2px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--ink-700);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
  position: relative;
}

/* Hamburger animation states */
.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced hover effects */
.nav-hamburger:hover .hamburger-line {
  background: var(--violet-600);
}

.nav-hamburger.active:hover .hamburger-line {
  background: var(--violet-700);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .hamburger-line {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hamburger-line {
    background: currentColor;
  }
  
  .nav-hamburger:focus {
    outline: 3px solid currentColor;
  }
}

/* Navigation Links */
.nav-link {
display: flex;
align-items: center;
gap: 4px;
padding: 8px 0;
}

/* Dropdown Styles */
.nav-dropdown {
position: relative;
}
.nav-dropdown-toggle {
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
}
.nav-dropdown-icon {
transition: transform 0.3s var(--ease);
}
.nav-dropdown.active .nav-dropdown-icon {
transform: rotate(180deg);
}
.nav-dropdown-menu {
position: absolute;
top: calc(100% + 12px);
left: 50%;
transform: translateX(-50%);
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-md);
box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
min-width: 180px;
padding: var(--s2) 0;
list-style: none;
opacity: 0;
visibility: hidden;
transform: translateX(-50%) translateY(-8px);
transition: all 0.3s var(--ease);
z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
display: block;
padding: 10px 20px;
font-size: 14px;
font-weight: 500;
color: var(--ink-600);
transition: all 0.2s var(--ease);
cursor: pointer;
}
.nav-dropdown-item:hover {
background: var(--purple-50);
color: var(--primary);
}
.nav-dropdown-item::after {
display: none;
}

/* Active Link Highlighting */
.nav-link.active {
color: var(--primary);
font-weight: 600;
}
.nav-link.active::after {
transform: scaleX(1);
}

/* Mobile CTA (hidden on desktop) */
.nav-cta-mobile {
display: none;
}

/* ============================================================
VIEWPORT DETECTION CLASSES - JAVASCRIPT INTEGRATION
============================================================ */

/* Helper classes for JavaScript integration */
.is-mobile .desktop-only,
.is-tablet .desktop-only {
  display: none !important;
}

.is-desktop .mobile-only,
.is-tablet .mobile-only {
  display: none !important;
}

.is-desktop .tablet-only,
.is-mobile .tablet-only {
  display: none !important;
}

/* Touch device optimizations */
.touch-device .btn:hover,
.touch-device .card:hover,
.touch-device .team-card:hover {
  transform: none;
  box-shadow: inherit;
}

.touch-device .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
}

/* Orientation change smoothing */
.orientation-changing {
  transition: all 0.3s ease;
}

/* Layout shift prevention during viewport changes */
.viewport-transitioning {
  overflow-x: hidden;
}

.viewport-transitioning * {
  transition: all 0.2s ease;
}

/* ============================================================
RESPONSIVE BREAKPOINT SYSTEM - MOBILE-FIRST APPROACH
============================================================ */

/* 
BREAKPOINT SYSTEM:
- Mobile: 0px - 767px (default styles)
- Tablet: 768px - 1199px
- Desktop: 1200px+

Mobile-first approach: Base styles are for mobile, then enhanced for larger screens
*/

/* ============================================================
BASE STYLES (MOBILE FIRST - 0px to 767px)
============================================================ */

/* Mobile-first container */
.container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Mobile-first grid layouts */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}

/* Mobile-first hero layout */
.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  text-align: center;
  padding: 20px 16px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--s5) 16px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero-stat-divider {
  display: none;
}

/* Mobile-first navigation */
.nav-links {
  display: none;
}

.nav-hamburger {
  display: flex;
}

.nav-cta {
  display: none;
}

/* Mobile-first sections */
.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section--lg {
  padding: 80px 0;
}

/* ============================================================
MOBILE BREAKPOINT - 0px to 640px
============================================================ */
@media (max-width: 640px) {
  /* Mobile container */
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile typography scaling */
  .hero-headline {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.2;
  }

  .text-h2 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.3;
  }

  .text-h3 {
    font-size: clamp(20px, 5vw, 24px) !important;
  }

  /* Mobile grid layouts - all single column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: var(--s6);
  }

  /* Mobile hero layout */
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: var(--s6);
    text-align: center;
    padding: 20px 16px;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--s6);
  }

  .hero-stats {
    flex-direction: column !important;
    gap: 20px;
    padding: var(--s6) 16px;
  }

  .hero-stat-divider {
    display: none;
  }

  /* Mobile navigation */
  .nav {
    padding: 12px 16px;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-open .nav-links {
    display: flex !important;
  }

  .nav-hamburger {
    display: flex !important;
    z-index: 1001;
  }

  /* Mobile sections */
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Mobile buttons - ensure 44px touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-lg {
    min-height: 48px;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Mobile hero actions */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

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

  /* Mobile DiaCue product section - bento grid fix */
  .diacue-product-images {
    flex-direction: column !important;
    gap: 16px;
  }

  .product-img-item {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Mobile GI-BUD phone mockup */
  .gibud-promo-container {
    max-width: 280px !important;
    margin: 0 auto var(--s6);
  }

  .gibud-main-layout {
    grid-template-columns: 1fr !important;
    gap: var(--s8);
  }

  .gibud-phone-section {
    order: -1;
  }

  /* Mobile team cards */
  .team-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--s6);
  }

  /* Mobile achievements gallery */
  .achievements-gallery {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Mobile stats ticker - prevent horizontal scroll */
  .awards-ticker {
    overflow-x: auto;
    -ms-overflow-style: none;
  }

  .awards-ticker::-webkit-scrollbar {
    display: none;
  }

  .ticker-track {
    animation-duration: 30s;
  }

  /* Mobile contact form */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s6);
  }

  /* Mobile floating elements - scale down */
  .hero-data-pill {
    font-size: 11px;
    padding: 6px 12px;
    transform: scale(0.8);
  }

  .hero-orb {
    transform: scale(0.7);
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  .hero,
  .section {
    overflow-x: hidden;
  }

  /* Mobile-specific animations - reduce for performance */
  .animate-on-scroll {
    animation-duration: 0.4s;
  }

  /* Reduce or disable heavy animations on mobile */
  .hero-orb {
    animation-duration: 8s; /* Slower animation */
  }

  .ticker-track {
    animation-duration: 30s; /* Slower ticker */
  }

  /* Disable parallax on mobile for better performance */
  .hero-content > div:first-child,
  .floating-orb {
    transform: none !important;
  }

  /* Reduce motion for better mobile performance */
  @media (prefers-reduced-motion: no-preference) {
    .hero-data-pill {
      animation-duration: 4s;
    }
  }

  /* Mobile GrowGut gallery */
  .growgut-gallery {
    grid-template-columns: 1fr !important;
    gap: var(--s4);
  }

  .gallery-item-mini {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ============================================================
TABLET BREAKPOINT - 641px to 968px
============================================================ */
@media (min-width: 641px) and (max-width: 968px) {
  /* Tablet container */
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Tablet grid layouts */
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--s8);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
  }

  /* Tablet hero layout */
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--s8);
    text-align: center;
    padding: 30px 20px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: var(--s6) 20px;
  }

  /* Tablet navigation - still mobile menu */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Tablet sections */
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  /* Tablet DiaCue bento grid */
  .diacue-product-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .product-img-item {
    flex: 0 1 300px;
  }

  /* Tablet GI-BUD layout */
  .gibud-main-layout {
    grid-template-columns: 1fr;
    gap: var(--s10);
  }

  .gibud-promo-container {
    max-width: 320px;
    margin: 0 auto var(--s8);
  }

  /* Tablet achievements */
  .achievements-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Tablet GrowGut gallery */
  .growgut-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
  }
}

/* ============================================================
DESKTOP BREAKPOINT - 969px and above
============================================================ */
@media (min-width: 969px) {
  /* Desktop navigation - show full menu */
  .nav-links {
    display: flex !important;
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex-direction: row;
    padding: 0;
    gap: 32px;
    z-index: auto;
    border: none;
    box-shadow: none;
  }

  .nav-hamburger {
    display: none !important;
  }

  /* Desktop hero layout */
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--s12);
    text-align: left;
    align-items: center;
  }

  .hero-visual {
    order: 2;
  }

  /* Desktop DiaCue bento grid */
  .diacue-product-images {
    flex-direction: row;
    gap: 24px;
  }

  /* Desktop GI-BUD layout */
  .gibud-main-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--s12);
    align-items: center;
  }

  .gibud-phone-section {
    order: 1;
  }

  /* Desktop achievements */
  .achievements-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* Desktop GrowGut gallery */
  .growgut-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s8);
  }
}

/* ============================================================
TABLET BREAKPOINT - 768px to 1199px (Legacy - keeping for compatibility)
============================================================ */
@media (min-width: 768px) {
  /* Tablet container */
  .container {
    max-width: 1024px;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Tablet grid layouts */
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--s10);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s8);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s6);
  }

  /* Tablet hero layout */
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--s8);
    text-align: center;
    padding: 30px 24px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: var(--s6) 24px;
  }

  .hero-stat-divider {
    display: none;
  }

  /* Tablet navigation - still mobile menu */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Tablet sections */
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section--lg {
    padding: 120px 0;
  }

  /* Tablet-specific layouts */
  .impact-numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s5);
  }

  /* Responsive image sizing for tablet */
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .img-tablet-half {
    width: 50%;
  }

  .nav-logo-img {
    height: 36px;
    max-width: 130px;
  }

  .loader-logo-img {
    height: 52px;
    max-width: 150px;
  }

  .team-avatar {
    width: 80px;
    height: 80px;
  }

  .achievement-img {
    height: 240px;
  }

  /* Product images for tablet */
  .product-img-item {
    max-width: 300px;
    margin: 0 auto;
  }

  .product-img-item img {
    max-height: 250px;
    object-fit: contain;
  }

  .award-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s5);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s8);
  }
}

/* ============================================================
DESKTOP BREAKPOINT - 1200px and above
============================================================ */
@media (min-width: 1200px) {
  /* Desktop container */
  .container {
    max-width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* Desktop grid layouts */
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--s16);
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s10);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s8);
  }

  /* Desktop hero layout */
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    text-align: left;
    padding: 40px 40px 20px 40px;
  }

  .hero-content > div:first-child {
    max-width: 650px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 60px;
    justify-content: center;
    padding: var(--s8) 40px;
  }

  .hero-stat-divider {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
  }

  /* Desktop navigation */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: var(--s3);
  }

  /* Desktop sections */
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section--lg {
    padding: 160px 0;
  }

  /* Desktop-specific layouts */
  .impact-numbers {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }

  /* Responsive image sizing for desktop */
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .img-desktop-third {
    width: 33.333%;
  }

  .nav-logo-img {
    height: 40px;
    max-width: 140px;
  }

  .loader-logo-img {
    height: 60px;
    max-width: 160px;
  }

  .team-avatar {
    width: 100px;
    height: 100px;
  }

  .achievement-img {
    height: 280px;
  }

  /* Product images for desktop */
  .product-img-item {
    max-width: 400px;
  }

  .product-img-item img {
    max-height: 300px;
    object-fit: contain;
  }

  /* Hero visual images */
  .hero-visual img {
    max-width: 500px;
    height: auto;
  }

  .award-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s12);
  }

  .tech-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }

  .product-hero {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s16);
    align-items: center;
  }

  .impact-chart-section {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s8);
    align-items: start;
  }

  .cta-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
  }

  .dashboard-body {
    grid-template-columns: 200px 1fr 1fr;
    gap: 0;
  }
}

/* ============================================================
LARGE DESKTOP BREAKPOINT - 1400px and above
============================================================ */
@media (min-width: 1400px) {
  .container--wide {
    max-width: 1400px;
  }

  .hero-content {
    padding: 60px 60px 40px 60px;
  }

  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* ============================================================
MOBILE-SPECIFIC OPTIMIZATIONS
============================================================ */

/* Mobile typography adjustments */
@media (max-width: 767px) {
  .text-display {
    font-size: clamp(32px, 8vw, 48px);
  }

  .text-h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .text-h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .text-h3 {
    font-size: clamp(18px, 4vw, 24px);
  }

  /* Mobile hero optimizations */
  .hero {
    padding: 80px 0 40px 0;
  }

  .hero-headline {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.1;
    text-align: center;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: var(--s6);
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .hero-stat-val {
    font-size: 24px;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  /* Mobile button optimizations */
  .btn {
    padding: 14px 24px;
    font-size: 14px;
    margin: 0;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: 15px;
  }

  /* Mobile card optimizations */
  .card {
    padding: var(--s6);
    margin-bottom: var(--s6);
  }

  .mission-card {
    padding: var(--s6) var(--s8);
  }

  /* Mobile visual elements */
  .hero-visual-card {
    padding: var(--s5);
    max-width: 320px;
    margin: 0 auto;
  }

  .dna-container {
    height: 280px;
  }

  .hero-data-pill {
    font-size: 11px;
    padding: 6px 12px;
    display: none; /* Hide on mobile for better performance */
  }

  .hero-orb {
    display: none; /* Hide decorative elements on mobile */
  }

  /* Mobile credential grid */
  .credential-grid {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .credential-item {
    padding: var(--s3) var(--s4);
  }

  /* Mobile awards ticker */
  .ticker-item {
    font-size: 12px;
  }

  /* Mobile feature badges */
  .feature-badges {
    justify-content: center;
  }

  .feature-badge {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Mobile team cards */
  .team-card {
    padding: var(--s6);
  }

  .team-card-image {
    width: 120px;
    height: 120px;
  }

  .team-name {
    font-size: 16px;
  }

  .team-bio {
    font-size: 13px;
  }

  /* Mobile product sections */
  .product-mockup {
    padding: var(--s6);
  }

  .kit-box {
    width: 140px;
    height: 180px;
  }

  .kit-name {
    font-size: 24px;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

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

  /* Ensure text doesn't overflow */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Improve touch targets for mobile */
  .btn,
  .nav-link,
  .nav-dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Mobile readability improvements */
  .text-body,
  .text-body-lg {
    line-height: 1.8;
  }
}

/* ============================================================
MOBILE NAVIGATION SYSTEM - RESPONSIVE BREAKPOINTS
============================================================ */

/* ============================================================
ENHANCED MOBILE NAVIGATION STYLES
============================================================ */

/* Body state when mobile nav is open */
.nav-open {
  overflow: hidden;
}

/* Enhanced mobile navigation menu */
@media (max-width: 1199px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s6);
    border-bottom: 1px solid #EEF1F6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99;
    order: 4;
    transform: translateY(-20px);
  }

  .nav-links.active {
    max-height: calc(100vh - 80px);
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #F3F5F9;
    animation: slideInFromLeft 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 0;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: rgba(108,77,255,0.08);
    color: var(--violet-600);
    padding-left: 12px;
  }

  .nav-link:focus {
    outline: 2px solid var(--violet-600);
    outline-offset: 2px;
  }

  /* Enhanced dropdown styles */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--violet-600);
    margin-left: 16px;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(108,77,255,0.05), rgba(139,92,246,0.05));
    border-radius: var(--r-md);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    transform: none;
  }

  .nav-dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: block;
    margin: 4px 0;
  }

  .nav-dropdown-item:hover,
  .nav-dropdown-item:focus {
    background: rgba(108,77,255,0.1);
    color: var(--violet-600);
    transform: translateX(4px);
  }

  .nav-dropdown-item:focus {
    outline: 2px solid var(--violet-600);
    outline-offset: 2px;
  }

  /* Mobile CTA button */
  .nav-cta-mobile {
    display: block;
    margin-top: var(--s5);
    padding-top: var(--s5);
    border-top: 1px solid #EEF1F6;
    order: 5;
    animation: slideInFromBottom 0.4s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
  }

  .nav-links.active .nav-cta-mobile {
    opacity: 1;
    transform: translateY(0);
  }

  .btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
  }
}

/* Animation keyframes */
@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-links li,
  .nav-dropdown-menu,
  .nav-cta-mobile {
    animation: none;
    transition: opacity 0.2s ease;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .nav-links {
    border: 2px solid currentColor;
  }
  
  .nav-link:focus,
  .nav-dropdown-item:focus {
    outline: 3px solid currentColor;
  }
}

/* Tablet navigation adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav-inner {
    height: 80px;
    padding: 0 24px;
  }

  .nav-logo-img {
    height: 40px;
  }

  .nav-links {
    top: 80px;
    padding: var(--s6);
  }

  .nav-cta .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Mobile navigation adjustments */
@media (max-width: 767px) {
  .nav-inner {
    height: 70px;
    padding: 0 16px;
  }

  .nav-logo-img {
    height: 32px;
  }

  .nav-links {
    top: 70px;
    padding: var(--s5);
  }

  .nav-cta .btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}

/* ============================================================
HERO SECTION - PREMIUM WHITE MEDICAL - FIXED LAYOUT
============================================================ */
.hero {
background: linear-gradient(165deg,
#FFFFFF 0%,
#F7F9FF 40%,
#F5F7FF 70%,
#FFFFFF 100%);
position: relative;
overflow: hidden;
padding: 100px 0 60px 0;
}

@media (max-width: 768px) {
.hero {
padding: 90px 0 50px 0;
}
}

@media (max-width: 480px) {
.hero {
padding: 80px 0 40px 0;
}
}

/* Animated background grid - Subtle Medical */
.hero-grid {
position: absolute; inset: 0;
background-image:
linear-gradient(rgba(108,77,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(108,77,255,0.02) 1px, transparent 1px);
background-size: 60px 60px;
-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Orbs - SOFT PREMIUM GLOW */
.hero-orb {
position: absolute;
border-radius: 50%;
filter: blur(100px);
animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(108,77,255,0.08) 0%, transparent 70%);
top: -100px; right: -100px;
animation-delay: 0s;
}
.hero-orb-2 {
width: 400px; height: 400px;
background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
bottom: 0px; left: -80px;
animation-delay: 3s;
}
.hero-orb-3 {
width: 350px; height: 350px;
background: radial-gradient(circle, rgba(167,139,250,0.05) 0%, transparent 70%);
top: 50%; left: 40%;
animation-delay: 5s;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(20px, -20px) scale(1.05); }
66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-content {
position: relative; z-index: 2;
max-width: 1200px; 
margin-left: auto;
margin-right: auto;
padding-left: 40px;
padding-right: 40px;
padding-top: 20px;
padding-bottom: 20px;
display: grid; 
grid-template-columns: 1fr 1fr;
align-items: center; 
gap: 60px;
}

.hero-content > div:first-child {
max-width: 650px;
}

.hero-tag {
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 18px;
background: #F3F4FF;
border: 1px solid #E9EAFF;
border-radius: var(--r-full);
font-size: 12px; font-weight: 600;
letter-spacing: 0.08em; text-transform: uppercase;
color: #4C4FD9;
margin-bottom: var(--s6);
animation: fadeInUp 0.6s var(--ease) 0.2s both;
box-shadow: 0 2px 8px rgba(108,77,255,0.06);
}

.hero-headline {
font-family: var(--font-display);
font-size: clamp(48px, 6.5vw, 92px);
line-height: 1.0;
letter-spacing: -0.02em;
margin-bottom: var(--s6);
animation: fadeInUp 0.7s var(--ease) 0.35s both;
color: var(--ink-900);
}

.hero-headline em {
font-style: italic;
background: linear-gradient(135deg, #6C4DFF 0%, #A78BFA 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-sub {
font-size: 18px; color: var(--ink-500);
max-width: 650px; 
line-height: 1.75;
margin-bottom: var(--s8);
animation: fadeInUp 0.7s var(--ease) 0.5s both;
}

.hero-actions {
display: flex; 
align-items: center; 
gap: 20px;
margin-top: 30px;
flex-wrap: wrap;
animation: fadeInUp 0.7s var(--ease) 0.65s both;
}

.hero-stats {
display: flex; 
justify-content: center;
align-items: center; 
gap: 60px;
margin-top: 60px;
margin-bottom: 60px;
padding: var(--s8) 40px var(--s8);
border-top: 1px solid rgba(0,0,0,0.06);
animation: fadeInUp 0.7s var(--ease) 0.8s both;
width: 100%;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}

.hero-stat-val {
font-size: 32px; font-weight: 700;
line-height: 1;
background: linear-gradient(135deg, var(--violet-700), var(--violet-500));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-stat-label { font-size: 12px; color: var(--ink-400); margin-top: 4px; }

.hero-stat-divider {
width: 1px; height: 40px;
background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

/* Hero Visual - PREMIUM WHITE CARD */
.hero-visual {
position: relative;
animation: fadeInRight 0.8s var(--ease) 0.4s both;
}

.hero-visual-card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: 28px;
padding: var(--s8);
box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
transition: all 0.3s var(--ease);
overflow: visible;
}

.hero-visual-card:hover {
box-shadow: 0 20px 60px rgba(108,77,255,0.08), 0 8px 24px rgba(0,0,0,0.04);
transform: translateY(-4px);
}

/* DNA helix animation */
.dna-container {
position: relative; height: 340px;
display: flex; align-items: center; justify-content: center;
overflow: visible;
}

.dna-helix {
position: relative; width: 120px; height: 300px;
}

.dna-strand {
position: absolute; width: 100%;
display: flex; flex-direction: column;
gap: 0;
}

.dna-rung {
position: relative; height: 20px;
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 8px;
}

.dna-rung::before {
content: '';
position: absolute; left: 50%; top: 50%;
transform: translate(-50%, -50%);
width: 60%; height: 2px;
background: linear-gradient(90deg, rgba(124,58,237,0.3), rgba(167,139,250,0.3));
}

.dna-node {
width: 14px; height: 14px;
border-radius: 50%;
transition: transform 1s ease;
}

.dna-node-l {
background: var(--violet-500);
box-shadow: 0 0 10px rgba(124,58,237,0.5);
animation: dnaWave 3s ease-in-out infinite;
}

.dna-node-r {
background: var(--violet-400);
box-shadow: 0 0 10px rgba(167,139,250,0.5);
animation: dnaWave 3s ease-in-out infinite reverse;
}

/* Floating data pills */
.hero-data-pill {
position: absolute;
background: rgba(255,255,255,0.95);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 2px solid rgba(108,77,255,0.3);
border-radius: var(--r-full);
padding: 8px 16px;
font-size: 12px; font-weight: 600;
box-shadow: 0 8px 32px rgba(108,77,255,0.15);
white-space: nowrap;
display: flex; align-items: center; gap: 8px;
animation: floatPill 4s ease-in-out infinite;
z-index: 10;
}

.hero-data-pill-dot {
width: 8px; height: 8px; border-radius: 50%;
}

.pill-1 { top: 40px; right: 40px; animation-delay: 0s; color: var(--violet-700); }
.pill-1 .hero-data-pill-dot { background: var(--violet-500); }
.pill-2 { top: 140px; left: 40px; animation-delay: 1.5s; color: var(--violet-600); }
.pill-2 .hero-data-pill-dot { background: var(--violet-400); }
.pill-3 { bottom: 100px; right: 60px; animation-delay: 3s; color: #059669; }
.pill-3 .hero-data-pill-dot { background: #34d399; }

@keyframes floatPill {
0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
50% { transform: translateY(-12px) scale(1.05); opacity: 0.9; }
}

@keyframes fadeInUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
from { opacity: 0; transform: translateX(32px); }
to { opacity: 1; transform: translateX(0); }
}

/* Awards ticker */
.awards-ticker {
background: rgba(255,255,255,0.6);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border-top: 1px solid rgba(0,0,0,0.05);
border-bottom: 1px solid rgba(0,0,0,0.05);
padding: var(--s4) 0;
margin-top: 40px;
overflow: hidden;
position: relative; z-index: 2;
}

.ticker-track {
display: flex; align-items: center;
gap: var(--s10);
animation: ticker 30s linear infinite;
white-space: nowrap;
}

.ticker-item {
display: flex; align-items: center; gap: var(--s3);
font-size: 13px; font-weight: 600; color: var(--ink-500);
}

.ticker-item svg { color: var(--violet-600); }

@keyframes ticker {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}

/* ============================================================
ABOUT SECTION - CLEAN WHITE
============================================================ */
.about {
background: #FFFFFF;
padding: var(--s24) 0;
position: relative; overflow: hidden;
}

.about::before {
content: '';
position: absolute; top: 0; left: 0; right: 0; height: 1px;
background: linear-gradient(90deg, transparent, #E9EAFF, #D8B4FE, transparent);
}

.mission-card {
background: #F7F9FF;
border: 1px solid #EEF1F6;
border-radius: var(--r-2xl);
padding: var(--s12) var(--s16);
position: relative; overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.mission-card::after {
content: '"';
position: absolute; right: var(--s8); top: -20px;
font-size: 200px; font-family: var(--font-display);
color: rgba(108,77,255,0.04);
line-height: 1; pointer-events: none;
}

.credential-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s4);
margin-top: var(--s8);
}

.credential-item {
display: flex; align-items: flex-start; gap: var(--s3);
padding: var(--s4) var(--s5);
background: white;
border: 1px solid rgba(0,0,0,0.06);
border-radius: var(--r-md);
font-size: 13px;
}

.credential-icon {
width: 28px; height: 28px;
border-radius: var(--r-sm);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; font-size: 14px;
}

/* ============================================================
GROWGUT PRODUCT GALLERY
============================================================ */
.growgut-gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s6);
max-width: 900px;
margin: 0 auto;
}

.growgut-gallery-item {
position: relative;
border-radius: var(--r-xl);
overflow: hidden;
background: #FFFFFF;
border: 1px solid #EEF1F6;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: all 0.4s var(--ease);
aspect-ratio: 1;
}

.growgut-gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s var(--ease);
}

.growgut-gallery-item:hover {
transform: translateY(-6px);
box-shadow: 0 12px 32px rgba(108,77,255,0.12), 0 4px 16px rgba(0,0,0,0.06);
border-color: #E9EAFF;
}

.growgut-gallery-item:hover img {
transform: scale(1.08);
}

/* Responsive Grid */
@media (max-width: 968px) {
.growgut-gallery {
grid-template-columns: repeat(2, 1fr);
gap: var(--s5);
}
}

@media (max-width: 640px) {
.growgut-gallery {
grid-template-columns: 1fr;
gap: var(--s5);
}
}

/* ============================================================
PRODUCT — DIACUE - PREMIUM WHITE
============================================================ */
.diacue-section {
background: #F7F9FF;
padding: var(--s24) 0;
position: relative; overflow: hidden;
}

.product-hero {
display: grid; grid-template-columns: 1fr 1.1fr;
gap: var(--s16); align-items: center;
}

.product-visual {
position: relative;
}

.product-mockup {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-2xl);
padding: var(--s10);
aspect-ratio: 1;
display: flex; align-items: center; justify-content: center;
position: relative;
box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
transition: all 0.3s var(--ease);
}

.product-mockup:hover {
box-shadow: 0 20px 60px rgba(108,77,255,0.08), 0 8px 24px rgba(0,0,0,0.04);
transform: translateY(-4px);
}

/* Diagnostic kit visual - PREMIUM WHITE */
.kit-box {
width: 180px; height: 220px;
background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FF 100%);
border-radius: 16px;
border: 2px solid #EEF1F6;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
box-shadow: 0 10px 30px rgba(108,77,255,0.08), 0 4px 12px rgba(0,0,0,0.03);
position: relative;
animation: kitFloat 5s ease-in-out infinite;
}

@keyframes kitFloat {
0%,100% { transform: translateY(0) rotate(-2deg); }
50% { transform: translateY(-12px) rotate(1deg); }
}

.kit-label {
font-size: 11px; font-weight: 700;
letter-spacing: 0.15em; text-transform: uppercase;
color: #5A3FD9; margin-bottom: 8px;
}

.kit-name {
font-size: 28px; font-weight: 800;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}

.kit-badge {
position: absolute; bottom: -12px; right: -12px;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white; border-radius: var(--r-full);
padding: 6px 14px; font-size: 11px; font-weight: 700;
letter-spacing: 0.05em;
box-shadow: 0 4px 16px rgba(108,77,255,0.3);
}

/* Steps - PREMIUM MEDICAL */
.steps-list { list-style: none; }

.step-item {
display: flex; gap: var(--s5);
padding: var(--s5) 0;
border-bottom: 1px solid #EEF1F6;
animation: fadeInUp 0.5s var(--ease) both;
}

.step-item:last-child { border-bottom: none; }

.step-num {
width: 36px; height: 36px; border-radius: var(--r-full);
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white; font-weight: 700; font-size: 14px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(108,77,255,0.2);
}

.step-content { flex: 1; }
.step-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--ink-900); }
.step-desc { font-size: 13px; color: var(--ink-500); }

/* Feature badges - PREMIUM MEDICAL TAGS */
.feature-badges {
display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6);
}

.feature-badge {
display: flex; align-items: center; gap: var(--s2);
padding: 8px 16px;
background: #F3F4FF;
border: 1px solid #E9EAFF;
border-radius: var(--r-full);
font-size: 12px; font-weight: 600;
color: #4C4FD9;
box-shadow: 0 2px 8px rgba(108,77,255,0.06);
transition: all 0.3s var(--ease);
}

.feature-badge:hover {
background: #FFFFFF;
box-shadow: 0 4px 12px rgba(108,77,255,0.12);
transform: translateY(-2px);
}

/* ============================================================
GIBUD AI SECTION
============================================================ */
.gibud-section {
background: var(--ink-900);
padding: var(--s24) 0;
position: relative; overflow: hidden;
}

/* Dark mesh - PURPLE TONED */
.gibud-section::before {
content: '';
position: absolute; inset: 0;
background-image:
radial-gradient(ellipse 70% 50% at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 60% at 80% 20%, rgba(167,139,250,0.1) 0%, transparent 60%),
linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
background-size: auto, auto, 50px 50px, 50px 50px;
}

/* App mockup */
.app-mockup-outer {
position: relative; display: flex; justify-content: center;
}

.app-phone {
width: 280px;
background: var(--ink-800);
border: 2px solid rgba(255,255,255,0.08);
border-radius: 40px;
padding: 16px;
position: relative;
box-shadow:
0 40px 80px rgba(0,0,0,0.5),
0 0 0 1px rgba(255,255,255,0.04),
0 0 80px rgba(124,58,237,0.15);
animation: phoneBob 6s ease-in-out infinite;
}

@keyframes phoneBob {
0%,100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}

.app-phone-notch {
width: 80px; height: 24px;
background: var(--ink-900);
border-radius: var(--r-full);
margin: 0 auto var(--s3);
}

.app-screen {
background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
border-radius: 28px;
padding: var(--s5);
min-height: 480px;
}

.app-header-bar {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: var(--s4);
}

.app-logo-sm {
font-size: 14px; font-weight: 700;
background: linear-gradient(135deg, var(--violet-400), var(--violet-300));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}

.app-status-dot {
width: 8px; height: 8px; border-radius: 50%;
background: #34d399;
box-shadow: 0 0 8px rgba(52,211,153,0.5);
}

.app-score-ring {
width: 120px; height: 120px;
border-radius: 50%;
background: conic-gradient(var(--violet-500) 0%,
var(--violet-400) 75%,
rgba(255,255,255,0.05) 75%);
display: flex; align-items: center; justify-content: center;
margin: var(--s5) auto;
position: relative;
}

.app-score-ring::before {
content: '';
position: absolute; inset: 8px;
border-radius: 50%;
background: linear-gradient(160deg, #1e1b4b, #0f172a);
}

.app-score-val {
position: relative; z-index: 1;
text-align: center;
}

.app-score-num {
font-size: 32px; font-weight: 800; color: white; line-height: 1;
}

.app-score-label {
font-size: 9px; color: rgba(255,255,255,0.5);
letter-spacing: 0.1em; text-transform: uppercase;
}

.app-metrics {
display: grid; grid-template-columns: 1fr 1fr;
gap: var(--s2); margin-bottom: var(--s4);
}

.app-metric {
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 12px; padding: var(--s3);
}

.app-metric-val {
font-size: 15px; font-weight: 700;
background: linear-gradient(135deg, var(--violet-400), var(--violet-300));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.2;
}

.app-metric-key {
font-size: 9px; color: rgba(255,255,255,0.4);
text-transform: uppercase; letter-spacing: 0.08em;
margin-top: 2px;
}

.app-chart-mini {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 12px; padding: var(--s3);
}

.app-chart-bars {
display: flex; align-items: flex-end;
gap: 3px; height: 40px; margin-top: var(--s2);
}

.app-chart-bar {
flex: 1; border-radius: 2px;
background: linear-gradient(to top, var(--violet-600), var(--violet-400));
opacity: 0.7;
animation: barGrow 2s ease-in-out infinite alternate;
}

@keyframes barGrow {
from { opacity: 0.5; }
to { opacity: 0.9; }
}

/* Floating feature cards */
.app-float-card {
position: absolute;
background: rgba(255,255,255,0.07);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px;
padding: 12px 16px;
font-size: 12px; color: rgba(255,255,255,0.9);
box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.app-float-card-icon { font-size: 18px; margin-bottom: 4px; }
.app-float-card-title { font-weight: 600; font-size: 12px; }
.app-float-card-sub { font-size: 10px; color: rgba(255,255,255,0.5); }

.fcard-1 { left: -80px; top: 60px; animation: floatPill 4s ease-in-out infinite; }
.fcard-2 { right: -70px; top: 160px; animation: floatPill 4s ease-in-out infinite 2s; }
.fcard-3 { left: -60px; bottom: 100px; animation: floatPill 4s ease-in-out infinite 1s; }

/* AI features list */
.ai-features { list-style: none; }

.ai-feature-item {
display: flex; gap: var(--s4);
padding: var(--s5);
border-radius: var(--r-lg);
border: 1px solid rgba(255,255,255,0.05);
background: rgba(255,255,255,0.02);
margin-bottom: var(--s3);
transition: all 0.25s var(--ease);
}

.ai-feature-item:hover {
background: rgba(255,255,255,0.05);
border-color: rgba(124,58,237,0.2);
transform: translateX(4px);
}

.ai-feature-icon {
width: 44px; height: 44px; border-radius: var(--r-md);
display: flex; align-items: center; justify-content: center;
font-size: 20px; flex-shrink: 0;
}

.ai-feature-icon--blue { background: rgba(124,58,237,0.15); }
.ai-feature-icon--violet { background: rgba(139,92,246,0.15); }
.ai-feature-icon--green { background: rgba(52,211,153,0.15); }
.ai-feature-icon--orange { background: rgba(251,146,60,0.15); }

.ai-feature-title { font-weight: 600; color: white; font-size: 15px; margin-bottom: 4px; }
.ai-feature-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ============================================================
TECHNOLOGY SECTION - CLEAN WHITE
============================================================ */
.tech-section {
background: #FFFFFF;
padding: var(--s24) 0;
}

.tech-pillars {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: var(--s6); margin-top: var(--s12);
}

.tech-pillar {
border-radius: var(--r-xl); padding: var(--s8);
position: relative; overflow: hidden;
cursor: default;
transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tech-pillar:hover { 
transform: translateY(-6px);
box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tech-pillar--blue {
background: #F7F9FF;
border: 1px solid #EEF1F6;
}

.tech-pillar--violet {
background: #F7F9FF;
border: 1px solid #EEF1F6;
}

.tech-pillar--teal {
background: #F0FDFA;
border: 1px solid #CCFBF1;
}

.tech-pillar--teal {
background: linear-gradient(145deg, rgba(20,184,166,0.06), rgba(20,184,166,0.02));
border: 1px solid rgba(20,184,166,0.15);
}

.tech-pillar-icon {
font-size: 40px; margin-bottom: var(--s5);
display: block;
}

.tech-pillar-title {
font-size: 20px; font-weight: 700; margin-bottom: var(--s3);
}

.tech-pillar-desc { font-size: 14px; color: var(--ink-400); line-height: 1.7; }

/* Tech stack chips */
.tech-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

.tech-tag {
padding: 4px 10px; border-radius: var(--r-full);
font-size: 11px; font-weight: 600;
background: rgba(0,0,0,0.04); color: var(--ink-500);
}

/* ============================================================
IMPACT / DATA VIZ SECTION - PREMIUM WHITE
============================================================ */
.impact-section {
background: linear-gradient(160deg,
#FFFFFF 0%, #F7F9FF 50%, #F5F7FF 100%);
padding: var(--s24) 0;
}

.impact-numbers {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: var(--s6);
}

.impact-number-card {
text-align: center;
padding: var(--s8) var(--s5);
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-xl);
position: relative; overflow: hidden;
box-shadow: 0 4px 16px rgba(0,0,0,0.03);
transition: all 0.3s var(--ease);
}

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

.impact-number-card::before {
content: '';
position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
}

.impact-number-card:nth-child(1)::before { background: linear-gradient(90deg, #6C4DFF, #8B5CF6); }
.impact-number-card:nth-child(2)::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.impact-number-card:nth-child(3)::before { background: linear-gradient(90deg, #34d399, #10b981); }
.impact-number-card:nth-child(4)::before { background: linear-gradient(90deg, #fb923c, #f97316); }

.impact-num {
font-family: var(--font-body);
font-size: 52px; font-weight: 800;
line-height: 1;
margin-bottom: 6px;
}

.impact-card-label { font-size: 13px; color: var(--ink-400); line-height: 1.5; }

/* Chart viz */
.impact-chart-section {
display: grid; grid-template-columns: 1.2fr 1fr;
gap: var(--s8); margin-top: var(--s12);
align-items: start;
}

/* Bar chart */
.viz-card {
background: white;
border: 1px solid rgba(0,0,0,0.06);
border-radius: var(--r-xl); padding: var(--s8);
box-shadow: var(--shadow-sm);
}

.viz-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.viz-subtitle { font-size: 12px; color: var(--ink-400); margin-bottom: var(--s6); }

.bar-chart { display: flex; flex-direction: column; gap: var(--s4); }

.bar-row { display: flex; align-items: center; gap: var(--s4); }

.bar-label { width: 80px; font-size: 11px; color: var(--ink-400); text-align: right; flex-shrink: 0; }

.bar-track {
flex: 1; height: 10px;
background: rgba(0,0,0,0.04); border-radius: var(--r-full);
overflow: hidden;
}

.bar-fill {
height: 100%; border-radius: var(--r-full);
animation: barFill 1.5s var(--ease) both;
}

@keyframes barFill {
from { width: 0 !important; }
to { width: var(--width) !important; }
}

.bar-fill--sky { background: linear-gradient(90deg, var(--violet-500), var(--violet-600)); }
.bar-fill--violet { background: linear-gradient(90deg, var(--violet-400), var(--violet-500)); }
.bar-fill--green { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-fill--orange { background: linear-gradient(90deg, #fb923c, #f97316); }

.bar-pct { width: 32px; font-size: 11px; font-weight: 600; color: var(--ink-700); }

/* Donut */
.donut-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto var(--s5); }

.donut-svg { transform: rotate(-90deg); }

.donut-center {
position: absolute; inset: 0;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
}

.donut-val { font-size: 26px; font-weight: 800; line-height: 1; }
.donut-sub { font-size: 9px; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.08em; }

.donut-legend { display: flex; flex-direction: column; gap: var(--s3); }

.legend-row {
display: flex; align-items: center; gap: var(--s3);
font-size: 12px;
}

.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
RESEARCH SECTION
============================================================ */
.research-section {
background: white;
padding: var(--s24) 0;
}

.award-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }

.award-card {
border-radius: var(--r-xl); padding: var(--s6);
border: 1px solid rgba(0,0,0,0.07);
background: white;
text-align: center;
position: relative; overflow: hidden;
transition: all 0.3s var(--ease);
}

.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.award-card::before {
content: '';
position: absolute; top: 0; left: 0; right: 0; height: 3px;
}

.award-card:nth-child(1)::before { background: linear-gradient(90deg, var(--violet-500), var(--violet-600)); }
.award-card:nth-child(2)::before { background: linear-gradient(90deg, var(--violet-400), var(--violet-500)); }
.award-card:nth-child(3)::before { background: linear-gradient(90deg, #34d399, #10b981); }
.award-card:nth-child(4)::before { background: linear-gradient(90deg, #fb923c, #f97316); }
.award-card:nth-child(5)::before { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.award-card:nth-child(6)::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

.award-emoji { font-size: 36px; margin-bottom: var(--s4); }

.award-org { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-700); margin-bottom: 4px; }

.award-title { font-size: 16px; font-weight: 700; color: var(--ink-800); margin-bottom: var(--s2); }

.award-desc { font-size: 12px; color: var(--ink-400); line-height: 1.6; }

/* Publications */
.pub-list { display: flex; flex-direction: column; gap: var(--s4); }

.pub-item {
display: flex; gap: var(--s5);
padding: var(--s5) var(--s6);
border: 1px solid rgba(0,0,0,0.06);
border-radius: var(--r-lg);
background: rgba(124,58,237,0.02);
transition: all 0.25s var(--ease);
}

.pub-item:hover { border-color: rgba(124,58,237,0.2); background: rgba(124,58,237,0.04); }

.pub-num {
font-family: var(--font-mono);
font-size: 11px; color: var(--violet-600);
font-weight: 500; padding-top: 2px;
flex-shrink: 0;
}

.pub-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }

.pub-journal { font-size: 12px; color: var(--ink-400); font-style: italic; }

/* ============================================================
AI DASHBOARD PREVIEW
============================================================ */
.dashboard-section {
background: linear-gradient(160deg, #0c0f1a 0%, #111827 100%);
padding: var(--s24) 0;
position: relative; overflow: hidden;
}

.dashboard-section::before {
content: '';
position: absolute; inset: 0;
background:
radial-gradient(ellipse 60% 40% at 30% 60%, rgba(124,58,237,0.08) 0%, transparent 60%),
radial-gradient(ellipse 50% 50% at 70% 30%, rgba(167,139,250,0.08) 0%, transparent 60%),
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: auto,auto,50px 50px,50px 50px;
}

.dashboard-ui {
background: rgba(255,255,255,0.03);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border: 1px solid rgba(255,255,255,0.07);
border-radius: var(--r-2xl);
overflow: hidden;
box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.dashboard-topbar {
background: rgba(255,255,255,0.03);
border-bottom: 1px solid rgba(255,255,255,0.05);
padding: var(--s4) var(--s6);
display: flex; align-items: center; justify-content: space-between;
}

.dashboard-topbar-title {
font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8);
display: flex; align-items: center; gap: var(--s3);
}

.dash-live-badge {
display: flex; align-items: center; gap: var(--s2);
padding: 3px 10px; border-radius: var(--r-full);
background: rgba(52,211,153,0.15);
border: 1px solid rgba(52,211,153,0.3);
font-size: 10px; font-weight: 600; color: #34d399;
letter-spacing: 0.05em;
}

.dashboard-body {
display: grid; grid-template-columns: 200px 1fr 1fr;
gap: 0; min-height: 360px;
}

.dash-sidebar {
background: rgba(255,255,255,0.02);
border-right: 1px solid rgba(255,255,255,0.05);
padding: var(--s5);
}

.dash-nav-item {
display: flex; align-items: center; gap: var(--s3);
padding: var(--s3) var(--s4); border-radius: var(--r-md);
font-size: 12px; color: rgba(255,255,255,0.4);
margin-bottom: var(--s2); cursor: pointer;
transition: all 0.2s;
}

.dash-nav-item.active {
background: rgba(124,58,237,0.12);
color: var(--violet-400);
border: 1px solid rgba(124,58,237,0.2);
}

.dash-nav-item:hover:not(.active) { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); }

.dash-nav-icon { font-size: 14px; }

.dash-main { padding: var(--s6); border-right: 1px solid rgba(255,255,255,0.05); }

.dash-right { padding: var(--s6); }

/* Mini metric cards in dashboard */
.dash-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s5); }

.dash-metric-card {
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.07);
border-radius: var(--r-md); padding: var(--s4);
}

.dash-metric-val {
font-size: 22px; font-weight: 700;
background: linear-gradient(135deg, var(--violet-400), var(--violet-300));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
}

.dash-metric-key { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.dash-metric-delta { font-size: 10px; color: #34d399; margin-top: 2px; }

/* Sparkline */
.sparkline-container {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: var(--r-md); padding: var(--s4);
margin-bottom: var(--s4);
}

.spark-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: var(--s3); text-transform: uppercase; letter-spacing: 0.08em; }

.sparkline-svg { width: 100%; height: 50px; }

/* Patient list */
.patient-list { display: flex; flex-direction: column; gap: var(--s2); }

.patient-row {
display: flex; align-items: center; gap: var(--s3);
padding: var(--s3) var(--s4);
border-radius: var(--r-md);
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.04);
cursor: pointer; transition: all 0.2s;
}

.patient-row:hover { background: rgba(255,255,255,0.06); }

.patient-avatar {
width: 28px; height: 28px; border-radius: 50%;
background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}

.patient-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8); }

.patient-age { font-size: 10px; color: rgba(255,255,255,0.3); }

.patient-status {
margin-left: auto; padding: 2px 8px;
border-radius: var(--r-full); font-size: 9px; font-weight: 600;
letter-spacing: 0.05em; text-transform: uppercase;
}

.status-good { background: rgba(52,211,153,0.15); color: #34d399; }
.status-alert { background: rgba(251,146,60,0.15); color: #fb923c; }
.status-watch { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* Heatmap */
.heatmap-grid {
display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
margin-top: var(--s3);
}

.heatmap-cell {
aspect-ratio: 1;
border-radius: 3px;
}

/* ============================================================
CTA SECTION
============================================================ */
.cta-section {
background: linear-gradient(135deg,
var(--violet-600) 0%,
var(--violet-500) 100%);
padding: var(--s24) 0;
position: relative; overflow: hidden;
text-align: center;
}

.cta-section::before {
content: '';
position: absolute; inset: 0;
background:
radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
radial-gradient(ellipse 40% 60% at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
background-size: auto,auto,40px 40px,40px 40px;
}

.cta-cards {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: var(--s5); margin-top: var(--s12);
text-align: left;
}

.cta-card {
background: rgba(255,255,255,0.1);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.2);
border-radius: var(--r-xl); padding: var(--s8);
transition: all 0.3s var(--ease);
}

.cta-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }

.cta-card-icon { font-size: 36px; margin-bottom: var(--s4); }

.cta-card-title { font-size: 20px; font-weight: 700; color: white; margin-bottom: var(--s3); }

.cta-card-desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: var(--s6); }

/* ============================================================
FOOTER
============================================================ */
.footer {
background: var(--ink-900);
padding: var(--space-sm) 0 !important; /* Minimal padding to reduce interference with section spacing */
margin: 0 !important; /* Remove any margins */
position: relative; overflow: hidden;
}

.footer::before {
content: '';
position: absolute; top: 0; left: 0; right: 0; height: 1px;
background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), rgba(167,139,250,0.3), transparent);
}

.footer-grid {
display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
gap: var(--s12);
}

.footer-brand-desc {
font-size: 14px; color: rgba(255,255,255,0.4);
line-height: 1.7; margin-top: var(--s4); max-width: 280px;
}

.footer-badge {
display: inline-flex; align-items: center; gap: var(--s2);
padding: 4px 10px; border-radius: var(--r-full);
background: rgba(124,58,237,0.1);
border: 1px solid rgba(124,58,237,0.2);
font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
color: var(--violet-400); margin-top: var(--s4);
}

.footer-col-title {
font-size: 11px; font-weight: 700;
letter-spacing: 0.12em; text-transform: uppercase;
color: rgba(255,255,255,0.5); margin-bottom: var(--s5);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--s3); }

.footer-links a {
font-size: 14px; color: rgba(255,255,255,0.4);
transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
border-top: 1px solid rgba(255,255,255,0.05);
margin-top: var(--s12); padding-top: var(--s6);
display: flex; align-items: center; justify-content: space-between;
flex-wrap: wrap; gap: var(--s4);
}

@media (max-width: 768px) {
.footer-bottom {
flex-direction: column;
text-align: center;
gap: var(--s5);
}

.footer-bottom-left {
order: 2;
}

.footer-socials {
order: 1;
}
}

.footer-bottom-left { font-size: 13px; color: rgba(255,255,255,0.25); }

.footer-socials { 
display: flex; 
gap: var(--s4); 
align-items: center;
justify-content: center;
}

@media (max-width: 768px) {
.footer-socials {
gap: var(--s3);
}
}

.footer-social {
width: 36px; height: 36px; border-radius: var(--r-sm);
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
display: flex; align-items: center; justify-content: center;
font-size: 14px; transition: all 0.2s; color: rgba(255,255,255,0.4);
}

.footer-social:hover { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); color: var(--violet-400); }

/* Investor badge */
.investor-strip {
background: rgba(255,255,255,0.03);
border-top: 1px solid rgba(255,255,255,0.05);
padding: var(--s4) 0;
text-align: center;
}

.investor-strip p { font-size: 12px; color: rgba(255,255,255,0.2); }
.investor-strip span { color: rgba(255,255,255,0.4); font-weight: 600; }

/* ============================================================
APPROXIMATE CONTENT INDICATOR (≈ SYMBOL)
============================================================ */
.approx-indicator {
position: relative;
}

.approx-indicator::after {
content: '≈';
position: absolute;
top: 0;
right: -24px;
font-size: 14px;
font-weight: 400;
color: var(--ink-300);
opacity: 0.4;
font-family: var(--font-body);
}

/* For section titles with approximate data */
.section-approx {
position: relative;
display: inline-block;
}

.section-approx::after {
content: '≈';
position: absolute;
top: -8px;
right: -20px;
font-size: 12px;
font-weight: 400;
color: var(--violet-400);
opacity: 0.5;
}

/* ============================================================
TEAM SECTION - PREMIUM MEDICAL CARDS WITH LINKEDIN
============================================================ */
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--s6);
max-width: 100%;
align-items: stretch;
}

@media (min-width: 1200px) {
.team-grid {
grid-template-columns: repeat(4, 1fr);
}
}

@media (min-width: 768px) and (max-width: 1199px) {
.team-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 767px) {
.team-grid {
grid-template-columns: 1fr;
}
}

.team-card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-xl);
padding: var(--s8);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: var(--s5);
position: relative;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: all 0.3s var(--ease);
min-height: 400px;
justify-content: space-between;
}

.team-card:hover {
transform: translateY(-4px);
box-shadow: 0 10px 30px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
border-color: #E9EAFF;
}

.team-card-image {
width: 140px;
height: 140px;
flex-shrink: 0;
margin-bottom: var(--s3);
position: relative;
background: #FFFFFF;
border-radius: 50%;
padding: 4px;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 4px solid #EEF1F6;
box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 0 2px #FFFFFF;
transition: all 0.3s var(--ease);
background: #FFFFFF;
}

.team-card:hover .team-avatar {
border-color: var(--violet-400);
box-shadow: 0 6px 20px rgba(108,77,255,0.2), 0 0 0 3px #FFFFFF;
transform: scale(1.05);
}

.team-card-content {
display: flex;
flex-direction: column;
gap: var(--s2);
flex: 1;
justify-content: center;
}

.team-name {
font-size: 18px;
font-weight: 700;
color: var(--ink-900);
line-height: 1.2;
margin: 0;
}

.team-designation {
font-size: 13px;
font-weight: 600;
color: var(--violet-600);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: var(--s2);
}

.team-bio {
font-size: 14px;
color: var(--ink-500);
line-height: 1.6;
margin: 0;
}

.team-specialization {
display: flex;
flex-wrap: wrap;
gap: var(--s2);
margin-top: var(--s3);
}

.team-tag {
padding: 4px 10px;
border-radius: var(--r-full);
font-size: 11px;
font-weight: 600;
background: rgba(124,58,237,0.08);
color: var(--violet-700);
border: 1px solid rgba(124,58,237,0.15);
}

.team-linkedin {
width: 44px;
height: 44px;
border-radius: var(--r-md);
background: #FFFFFF;
border: 1.5px solid #EEF1F6;
display: flex;
align-items: center;
justify-content: center;
color: var(--violet-600);
transition: all 0.3s var(--ease);
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
flex-shrink: 0;
margin-top: auto;
}

.team-linkedin:hover {
background: var(--violet-600);
border-color: var(--violet-600);
color: white;
transform: translateY(-2px) scale(1.1);
box-shadow: 0 4px 12px rgba(108,77,255,0.25);
}

.team-linkedin svg {
width: 22px;
height: 22px;
}

/* ============================================================
ADVISOR LIST
============================================================ */
.advisor-list {
display: flex;
flex-direction: column;
gap: var(--s4);
}

.advisor-item {
display: flex;
align-items: center;
gap: var(--s4);
padding: var(--s4);
background: rgba(124,58,237,0.02);
border-radius: var(--r-md);
border: 1px solid rgba(124,58,237,0.08);
}

.advisor-icon {
font-size: 32px;
flex-shrink: 0;
}

.advisor-name {
font-size: 15px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: 2px;
}

.advisor-role {
font-size: 13px;
color: var(--ink-500);
}

/* ============================================================
RESEARCH HIGHLIGHTS
============================================================ */
.research-highlights {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--s5);
}

.research-stat {
text-align: center;
padding: var(--s5);
background: rgba(124,58,237,0.03);
border-radius: var(--r-md);
border: 1px solid rgba(124,58,237,0.08);
}

.research-number {
font-size: 36px;
font-weight: 800;
background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
margin-bottom: var(--s2);
}

.research-label {
font-size: 12px;
color: var(--ink-500);
font-weight: 600;
}

/* ============================================================
PARTNER BADGES
============================================================ */
.partner-logos {
display: flex;
flex-wrap: wrap;
gap: var(--s3);
}

.partner-badge {
padding: var(--s3) var(--s5);
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-md);
font-size: 13px;
font-weight: 600;
color: var(--ink-700);
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ============================================================
TECH STACK GRID
============================================================ */
.tech-stack-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--s4);
}

.tech-stack-item {
text-align: center;
padding: var(--s5);
background: rgba(124,58,237,0.02);
border-radius: var(--r-md);
border: 1px solid rgba(124,58,237,0.08);
}

.tech-icon {
font-size: 32px;
margin-bottom: var(--s3);
}

.tech-name {
font-size: 14px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: var(--s2);
}

.tech-desc {
font-size: 12px;
color: var(--ink-500);
}

/* ============================================================
IMPACT PILLARS
============================================================ */
.impact-pillars {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--s5);
}

.impact-pillar-item {
text-align: center;
padding: var(--s6);
background: rgba(124,58,237,0.02);
border-radius: var(--r-lg);
border: 1px solid rgba(124,58,237,0.08);
}

.impact-pillar-icon {
font-size: 40px;
margin-bottom: var(--s4);
}

.impact-pillar-title {
font-size: 16px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s2);
}

.impact-pillar-text {
font-size: 13px;
color: var(--ink-500);
line-height: 1.6;
}

/* ============================================================
RECOGNITION GRID
============================================================ */
.recognition-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--s4);
}

.recognition-item {
text-align: center;
padding: var(--s5);
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-md);
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.recognition-badge {
font-size: 32px;
margin-bottom: var(--s3);
}

.recognition-title {
font-size: 14px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s2);
}

.recognition-subtitle {
font-size: 12px;
color: var(--ink-500);
}

/* ============================================================
ROADMAP TIMELINE
============================================================ */
.roadmap-timeline {
display: flex;
flex-direction: column;
gap: var(--s5);
}

.roadmap-item {
display: grid;
grid-template-columns: 80px 1fr;
gap: var(--s5);
padding: var(--s5);
background: rgba(124,58,237,0.02);
border-radius: var(--r-md);
border-left: 3px solid var(--violet-600);
}

.roadmap-year {
font-size: 24px;
font-weight: 800;
color: var(--violet-600);
line-height: 1;
}

.roadmap-milestone {
font-size: 16px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s2);
}

.roadmap-desc {
font-size: 13px;
color: var(--ink-500);
line-height: 1.6;
}

/* ============================================================
RESPONSIVE - TEAM & NEW SECTIONS
============================================================ */
@media (max-width: 968px) {
.research-highlights {
grid-template-columns: repeat(2, 1fr);
}

.tech-stack-grid {
grid-template-columns: repeat(2, 1fr);
}

.impact-pillars {
grid-template-columns: 1fr;
}

.recognition-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 640px) {
.team-card {
grid-template-columns: 1fr;
text-align: center;
}

.team-card-image {
margin: 0 auto;
}

.research-highlights {
grid-template-columns: 1fr;
}

.tech-stack-grid {
grid-template-columns: 1fr;
}

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

.roadmap-item {
grid-template-columns: 1fr;
text-align: center;
}
}

/* ============================================================
ANIMATIONS - FIXED AND CONSOLIDATED
============================================================ */
.animate-on-scroll {
opacity: 1; /* Changed from 0 to ensure content is always visible */
transform: translateY(0); /* Changed to ensure content is visible */
transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.visible,
.animate-on-scroll.in-view,
.animate-on-scroll.child-visible {
opacity: 1; 
transform: translateY(0);
}

/* Fallback: Show content if JavaScript fails or is disabled */
.no-js .animate-on-scroll,
noscript .animate-on-scroll {
opacity: 1 !important;
transform: translateY(0) !important;
}

/* Critical: Ensure page is never completely blank */
html, body {
min-height: 100vh;
}

/* Force visibility of critical elements */
.hero, .nav, main, section, .container {
display: block !important;
visibility: visible !important;
}

/* Ensure animations don't prevent content from showing */
@media (prefers-reduced-motion: reduce) {
.animate-on-scroll {
opacity: 1 !important;
transform: none !important;
transition: none !important;
}
}

.animate-delay-2 {
transition-delay: 0.2s;
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
.hero-content { 
  grid-template-columns: 1fr; 
  gap: var(--s12); 
  text-align: center;
  padding: 40px 40px 20px 40px;
}
.hero-content > div:first-child {
  max-width: none;
}
.hero-visual { display: none; }
.hero-actions {
  justify-content: center;
}
.hero-stats {
  justify-content: center;
  padding: var(--s8) 40px var(--s8);
  margin-bottom: 60px;
}
.grid-2 { grid-template-columns: 1fr; gap: var(--s10); }
.product-hero { grid-template-columns: 1fr; }
.product-visual { display: none; }
.tech-pillars { grid-template-columns: 1fr; }
.impact-numbers { grid-template-columns: repeat(2, 1fr); }
.award-cards { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1fr 1fr; }
.dashboard-body { grid-template-columns: 1fr; }
.dash-sidebar { display: none; }
.cta-cards { grid-template-columns: 1fr; }
.impact-chart-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
.container { padding-left: 20px; padding-right: 20px; }
.nav-links, .nav-cta .btn:not(.btn-primary) { display: none; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section--lg { padding-top: 80px; padding-bottom: 80px; }
.hero-content { 
  padding: 30px 20px 20px 20px; 
  gap: var(--s12); 
  text-align: center;
}
.hero-actions {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-actions .btn {
  width: 100%;
  max-width: 280px;
}
.hero-stats { 
  flex-wrap: wrap; 
  gap: var(--s6);
  justify-content: center;
  padding: var(--s8) 20px var(--s8);
  margin-bottom: 40px;
}
.impact-numbers { grid-template-columns: repeat(2, 1fr); }
.award-cards { grid-template-columns: 1fr; }
.grid-2 { gap: var(--s12); }
.grid-3 { grid-template-columns: 1fr; gap: var(--s8); }
.footer-grid { grid-template-columns: 1fr; }
.gibud-content { grid-template-columns: 1fr !important; }
.app-mockup-outer { display: none; }
.card { padding: var(--s8); margin-bottom: var(--s6); }
.btn { padding: 14px 24px; margin: var(--s1); }
.dashboard-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
.impact-numbers { grid-template-columns: 1fr 1fr; }
.hero-headline { font-size: 44px; }
.hero-content {
  padding: 20px 16px 16px 16px;
}
.hero-stats {
  gap: var(--s4);
  padding: var(--s6) 16px var(--s6);
  margin-bottom: 30px;
}
.hero-stat-divider {
  display: none;
}
}

/* ============================================================
MISC UTILITIES
============================================================ */
.divider-line {
width: 60px; height: 3px;
border-radius: 2px;
background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
margin: var(--s5) 0;
}

.divider-line--center { margin-left: auto; margin-right: auto; }

.mt-2{margin-top:var(--s2)} .mt-3{margin-top:var(--s3)} .mt-4{margin-top:var(--s4)}
.mt-5{margin-top:var(--s5)} .mt-6{margin-top:var(--s6)} .mt-8{margin-top:var(--s8)}
.mt-10{margin-top:var(--s10)} .mt-12{margin-top:var(--s12)}
.mb-3{margin-bottom:var(--s3)} .mb-4{margin-bottom:var(--s4)} .mb-5{margin-bottom:var(--s5)}
.mb-6{margin-bottom:var(--s6)} .mb-8{margin-bottom:var(--s8)} .mb-12{margin-bottom:var(--s12)}
.w-full{width:100%} .relative{position:relative} .z-1{z-index:1}


/* ============================================================
ADDITIONAL UTILITY CLASSES FOR INLINE STYLE REMOVAL
============================================================ */

/* Navigation button sizing */
.btn-nav-sm {
padding: 10px 20px;
font-size: 13px;
}

/* Hero stat unit */
.hero-stat-unit {
font-size: 20px;
font-weight: 500;
}

/* Hero dashboard mockup */
.hero-dashboard-mockup {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.hero-score-card {
background: linear-gradient(145deg, #fff, #faf5ff);
border-radius: 24px;
padding: 28px 32px;
box-shadow: 0 12px 40px rgba(124,58,237,0.15), 0 4px 12px rgba(0,0,0,0.04);
border: 1px solid rgba(124,58,237,0.12);
text-align: center;
min-width: 200px;
}

.hero-score-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--violet-700);
margin-bottom: 8px;
}

.hero-score-number {
font-size: 64px;
font-weight: 800;
line-height: 1;
background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-score-status {
font-size: 13px;
color: var(--ink-400);
margin-top: 4px;
}

.hero-mini-chart {
margin-top: 20px;
display: flex;
align-items: flex-end;
gap: 5px;
height: 40px;
justify-content: center;
}

.hero-chart-bar {
width: 12px;
background: linear-gradient(var(--violet-500), var(--violet-600));
border-radius: 3px;
animation: barGrow 2s ease-in-out infinite alternate;
}

.hero-chart-bar-1 { height: 30%; opacity: 0.6; animation-delay: 0s; }
.hero-chart-bar-2 { height: 55%; opacity: 0.7; animation-delay: 0.3s; }
.hero-chart-bar-3 { height: 70%; opacity: 0.8; animation-delay: 0.6s; background: linear-gradient(var(--violet-500), var(--violet-400)); }
.hero-chart-bar-4 { height: 90%; animation-delay: 0.9s; background: linear-gradient(var(--violet-400), var(--violet-300)); }
.hero-chart-bar-5 { height: 75%; opacity: 0.85; animation-delay: 1.2s; background: linear-gradient(var(--violet-500), var(--violet-400)); }
.hero-chart-bar-6 { height: 60%; opacity: 0.7; animation-delay: 1.5s; }
.hero-chart-bar-7 { height: 85%; opacity: 0.9; animation-delay: 1.8s; background: linear-gradient(var(--violet-400), var(--violet-300)); }

.hero-chart-label {
font-size: 10px;
color: var(--ink-300);
margin-top: 6px;
}

.hero-info-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 12px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid rgba(0,0,0,0.06);
}

.hero-info-item {
text-align: center;
}

.hero-info-icon {
font-size: 18px;
font-weight: 700;
color: var(--violet-700);
}

.hero-info-icon-ai {
color: var(--violet-600);
}

.hero-info-icon-protect {
color: #059669;
}

.hero-info-label {
font-size: 11px;
color: var(--ink-400);
margin-top: 2px;
}

/* Flex utilities */
.flex-wrap { flex-wrap: wrap; }


/* ============================================================
RESPONSIVE GRID FOR IMPACT CARDS
============================================================ */
@media (max-width: 968px) {
.grid-3 {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 640px) {
.grid-3 {
grid-template-columns: 1fr;
}
}


/* ============================================================
CONTACT FORM SECTION - MODERN & PROFESSIONAL
============================================================ */
.contact-form-section {
position: relative;
overflow: hidden;
}

.contact-grid {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: var(--s12);
align-items: start;
}

/* Contact Info Card */
.contact-info-card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-2xl);
padding: var(--s10);
box-shadow: 0 4px 16px rgba(0,0,0,0.04);
height: 100%;
}

.contact-info-list {
display: flex;
flex-direction: column;
gap: var(--s6);
}

.contact-info-item {
display: flex;
gap: var(--s4);
align-items: flex-start;
}

.contact-info-icon {
width: 44px;
height: 44px;
border-radius: var(--r-md);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all 0.3s var(--ease);
}

.contact-info-item:hover .contact-info-icon {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108,77,255,0.15);
}

.contact-info-label {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-400);
margin-bottom: 4px;
}

.contact-info-value {
font-size: 15px;
font-weight: 500;
color: var(--ink-700);
text-decoration: none;
transition: color 0.2s;
}

.contact-info-value:hover {
color: var(--violet-600);
}

/* Social Icon Buttons */
.social-icon-btn {
width: 40px;
height: 40px;
border-radius: var(--r-md);
background: #F7F9FF;
border: 1px solid #EEF1F6;
display: flex;
align-items: center;
justify-content: center;
color: var(--violet-600);
transition: all 0.3s var(--ease);
text-decoration: none;
flex-shrink: 0;
}

.social-icon-btn:hover {
background: var(--violet-600);
color: white;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108,77,255,0.2);
}

/* Social Icons Container */
.social-icons-container {
display: flex;
gap: 16px;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
}

@media (max-width: 480px) {
.social-icons-container {
justify-content: center;
gap: 12px;
}
}

/* Contact Form Card */
.contact-form-card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-2xl);
padding: var(--s10);
box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.contact-form {
display: flex;
flex-direction: column;
gap: var(--s5);
}

/* Form Groups */
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}

.form-label {
font-size: 14px;
font-weight: 600;
color: var(--ink-700);
display: flex;
align-items: center;
gap: 4px;
}

.required {
color: #EF4444;
font-weight: 700;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: 14px 16px;
font-size: 15px;
font-family: var(--font-body);
color: var(--ink-800);
background: #FAFBFC;
border: 1.5px solid #E5E7EB;
border-radius: var(--r-md);
transition: all 0.3s var(--ease);
outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
background: #FFFFFF;
border-color: var(--violet-600);
box-shadow: 0 0 0 3px rgba(108,77,255,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
color: var(--ink-300);
}

.form-select {
cursor: pointer;
-webkit-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
padding-right: 44px;
}

.form-textarea {
resize: vertical;
min-height: 120px;
line-height: 1.6;
}

/* Form Error */
.form-error {
font-size: 13px;
color: #EF4444;
display: none;
margin-top: -4px;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
border-color: #EF4444;
background: #FEF2F2;
}

.form-group.error .form-error {
display: block;
}

/* Submit Button */
.btn-submit {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 16px 32px;
font-size: 16px;
font-weight: 600;
font-family: var(--font-body);
color: white;
background: linear-gradient(135deg, #6C4DFF 0%, #8B5CF6 100%);
border: none;
border-radius: var(--r-full);
cursor: pointer;
transition: all 0.3s var(--ease);
box-shadow: 0 4px 16px rgba(108,77,255,0.25);
position: relative;
overflow: hidden;
}

.btn-submit::before {
content: '';
position: absolute;
inset: 0;
background: rgba(255,255,255,0.15);
opacity: 0;
transition: opacity 0.3s;
}

.btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(108,77,255,0.35);
}

.btn-submit:hover::before {
opacity: 1;
}

.btn-submit:active {
transform: translateY(0);
}

.btn-submit:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}

.btn-submit-text {
transition: opacity 0.3s;
}

.btn-submit-icon {
transition: transform 0.3s var(--ease);
}

.btn-submit:hover .btn-submit-icon {
transform: translateX(4px) translateY(-4px);
}

/* Loading State */
.btn-submit.loading .btn-submit-text,
.btn-submit.loading .btn-submit-icon {
opacity: 0;
}

.btn-submit-loader {
display: none;
width: 20px;
height: 20px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.6s linear infinite;
position: absolute;
}

.btn-submit.loading .btn-submit-loader {
display: block;
}

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

/* Success Message */
.form-success {
display: none;
align-items: flex-start;
gap: var(--s4);
padding: var(--s5);
background: #F0FDF4;
border: 1px solid #86EFAC;
border-radius: var(--r-md);
margin-top: var(--s4);
animation: slideIn 0.4s var(--ease);
}

.form-success.show {
display: flex;
}

.form-success svg {
color: #16A34A;
flex-shrink: 0;
margin-top: 2px;
}

.form-success-title {
font-size: 15px;
font-weight: 600;
color: #166534;
margin-bottom: 4px;
}

.form-success-text {
font-size: 14px;
color: #15803D;
line-height: 1.5;
}

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

/* ============================================================
RESPONSIVE - CONTACT FORM
============================================================ */
@media (max-width: 968px) {
.contact-grid {
grid-template-columns: 1fr;
gap: var(--s8);
}

.contact-info-card {
order: 2;
}

.contact-form-card {
order: 1;
}
}

@media (max-width: 640px) {
.contact-info-card,
.contact-form-card {
padding: var(--s6);
border-radius: var(--r-xl);
}

.form-input,
.form-select,
.form-textarea {
padding: 12px 14px;
font-size: 14px;
}

.btn-submit {
padding: 14px 28px;
font-size: 15px;
}

.contact-info-icon {
width: 40px;
height: 40px;
}

.social-icon-btn {
width: 36px;
height: 36px;
}
}


/* ============================================================
ENHANCED CONTACT FORM STYLES - USER PROVIDED IMPROVEMENTS
============================================================ */

/* Enhanced Contact Form Container Styles */
.contact-container {
  background: white;
  padding: 40px;
  width: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.contact-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--ink-800);
}

/* Enhanced Form Group Styles */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-700);
}

/* Enhanced Input Styles */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  font-family: var(--font-body);
  background: #fafbfc;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
  border-color: #7c5cff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.contact-form textarea {
  height: 120px;
  resize: none;
  line-height: 1.6;
}

/* Enhanced Button Styles */
.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  color: white;
  background: linear-gradient(90deg, #6a5af9, #8a63ff);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(106, 90, 249, 0.3);
}

.contact-form button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(106, 90, 249, 0.4);
}

.contact-form button:active {
  transform: translateY(0);
}

/* Enhanced Required Field Indicator */
.contact-form .required {
  color: red;
  font-weight: 700;
}

/* Enhanced Select Dropdown */
.contact-form select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* Enhanced Placeholder Styles */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Enhanced Error States */
.contact-form .form-group.error input,
.contact-form .form-group.error select,
.contact-form .form-group.error textarea {
  border-color: #ef4444;
  background: #fef2f2;
}

/* Enhanced Success States */
.contact-form .form-group.success input,
.contact-form .form-group.success select,
.contact-form .form-group.success textarea {
  border-color: #10b981;
  background: #f0fdf4;
}

/* Mobile Responsive Enhancements */
@media (max-width: 640px) {
  .contact-container {
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    margin: 0 16px;
  }
  
  .contact-form input, 
  .contact-form select, 
  .contact-form textarea {
    padding: 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .contact-form button {
    padding: 16px;
    font-size: 16px;
  }
}

/* ============================================================
PREMIUM UI ENHANCEMENTS - MICRO-INTERACTIONS & ANIMATIONS
============================================================ */

/* Smooth Performance Base */
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

html {
scroll-behavior: smooth;
}

/* Will-change for performance on animated elements */
.animate-on-scroll,
.team-card,
.contact-form-card,
.btn,
.card {
will-change: transform, opacity;
}

/* ============================================================
ENHANCED CARD HOVER EFFECTS - PREMIUM ELEVATION
============================================================ */

/* Team Cards - Premium Lift */
.team-card {
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
}

.team-card::before {
content: '';
position: absolute;
inset: -2px;
border-radius: var(--r-2xl);
background: linear-gradient(135deg, rgba(108,77,255,0.1), rgba(139,92,246,0.1));
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}

.team-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 60px rgba(108,77,255,0.15), 0 8px 24px rgba(0,0,0,0.08);
}

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

/* Generic Card Enhancement */
.card {
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
transform: translateY(-6px);
box-shadow: 0 16px 48px rgba(108,77,255,0.12), 0 6px 20px rgba(0,0,0,0.06);
}

/* ============================================================
BUTTON ENHANCEMENTS - RIPPLE & GLOW EFFECTS
============================================================ */

/* Button Ripple Effect */
.btn,
.btn-submit {
position: relative;
overflow: hidden;
}

.btn::after,
.btn-submit::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255,255,255,0.4);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}

.btn:active::after,
.btn-submit:active::after {
width: 300px;
height: 300px;
}

/* CTA Button Glow */
.btn-primary,
.btn-submit {
box-shadow: 0 4px 16px rgba(108,77,255,0.25), 0 0 0 0 rgba(108,77,255,0.4);
animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
0%, 100% {
box-shadow: 0 4px 16px rgba(108,77,255,0.25), 0 0 0 0 rgba(108,77,255,0.4);
}
50% {
box-shadow: 0 8px 28px rgba(108,77,255,0.35), 0 0 20px 4px rgba(108,77,255,0.2);
}
}

.btn-primary:hover,
.btn-submit:hover {
animation: none;
box-shadow: 0 12px 36px rgba(108,77,255,0.4), 0 0 30px 6px rgba(108,77,255,0.25);
}

/* ============================================================
ENHANCED INPUT FIELDS - FLOATING LABELS & FOCUS GLOW
============================================================ */

/* Input Focus Glow */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
box-shadow: 0 0 0 4px rgba(108,77,255,0.12), 0 4px 12px rgba(108,77,255,0.08);
transform: translateY(-2px);
}

/* Floating Label Animation */
.form-group {
position: relative;
}

.form-label {
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
transform: translateY(-8px);
font-size: 12px;
color: var(--violet-600);
}

/* ============================================================
SCROLL ANIMATIONS - FADE UP & STAGGER
============================================================ */

/* Base Animation States */
.animate-on-scroll {
opacity: 1;
transform: translateY(0);
transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}

/* Staggered Animation Delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* Slide In From Left */
.slide-in-left {
opacity: 0;
transform: translateX(-40px);
transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-left.visible {
opacity: 1;
transform: translateX(0);
}

/* Slide In From Right */
.slide-in-right {
opacity: 0;
transform: translateX(40px);
transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-right.visible {
opacity: 1;
transform: translateX(0);
}

/* Scale In Animation */
.scale-in {
opacity: 0;
transform: scale(0.9);
transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
opacity: 1;
transform: scale(1);
}

/* ============================================================
HERO SECTION PREMIUM ENHANCEMENTS
============================================================ */

/* Animated Gradient Background */
.hero {
background: linear-gradient(165deg,
#FFFFFF 0%,
#F7F9FF 20%,
#F5F7FF 40%,
#EEF1FF 60%,
#F5F7FF 80%,
#FFFFFF 100%);
background-size: 200% 200%;
animation: gradient-shift 15s ease infinite;
padding: 100px 0 60px 0;
}

@media (max-width: 768px) {
.hero {
padding: 90px 0 50px 0;
}
}

@media (max-width: 480px) {
.hero {
padding: 80px 0 40px 0;
}
}

@keyframes gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}

/* Enhanced Floating Orbs */
.hero-orb {
animation: float-smooth 12s ease-in-out infinite;
}

.hero-orb-1 {
animation-delay: 0s;
animation-duration: 10s;
}

.hero-orb-2 {
animation-delay: 3s;
animation-duration: 14s;
}

.hero-orb-3 {
animation-delay: 6s;
animation-duration: 12s;
}

@keyframes float-smooth {
0%, 100% {
transform: translate(0, 0) scale(1);
opacity: 0.6;
}
25% {
transform: translate(30px, -30px) scale(1.1);
opacity: 0.8;
}
50% {
transform: translate(-20px, 20px) scale(0.95);
opacity: 0.7;
}
75% {
transform: translate(25px, 15px) scale(1.05);
opacity: 0.75;
}
}

/* Hero Content Parallax */
.hero-content > div:first-child {
transition: transform 0.3s ease-out;
max-width: 650px;
}

/* CTA Button Enhanced Glow */
.hero-actions .btn-primary {
position: relative;
}

.hero-actions .btn-primary::before {
content: '';
position: absolute;
inset: -4px;
border-radius: var(--r-full);
background: linear-gradient(135deg, rgba(108,77,255,0.4), rgba(139,92,246,0.4));
filter: blur(12px);
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}

.hero-actions .btn-primary:hover::before {
opacity: 1;
animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
0%, 100% { opacity: 0.6; transform: scale(1); }
50% { opacity: 1; transform: scale(1.05); }
}

/* Stats Ticker Smooth Animation */
.awards-ticker {
-webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
animation: ticker-smooth 40s linear infinite reverse !important;
}

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

.ticker-item {
transition: transform 0.3s ease, color 0.3s ease;
}

.ticker-item:hover {
transform: scale(1.05);
color: var(--violet-600);
}

/* ============================================================
PRODUCT CARDS PREMIUM ENHANCEMENT
============================================================ */

/* Product Card Hover Lift */
.product-mockup,
.kit-box,
.app-phone {
transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-mockup:hover {
transform: translateY(-12px) scale(1.03);
box-shadow: 0 30px 80px rgba(108,77,255,0.15), 0 12px 32px rgba(0,0,0,0.08);
}

/* Product Card Glow Border */
.product-mockup::after {
content: '';
position: absolute;
inset: -2px;
border-radius: var(--r-2xl);
background: linear-gradient(135deg, 
rgba(108,77,255,0.3), 
rgba(139,92,246,0.3), 
rgba(167,139,250,0.3));
opacity: 0;
transition: opacity 0.5s ease;
z-index: -1;
filter: blur(8px);
}

.product-mockup:hover::after {
opacity: 1;
animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}

/* Image Zoom on Hover */
.product-mockup img,
.kit-box,
.app-phone {
transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-mockup:hover img,
.product-mockup:hover .kit-box,
.product-mockup:hover .app-phone {
transform: scale(1.05);
}

/* Feature Badge Hover */
.feature-badge {
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-badge:hover {
transform: translateY(-4px) scale(1.05);
background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
color: white;
box-shadow: 0 8px 20px rgba(108,77,255,0.25);
}

/* ============================================================
NAVIGATION ENHANCEMENTS
============================================================ */

/* Smooth Header Blur on Scroll */
.nav.scrolled {
background: rgba(255,255,255,0.92);
-webkit-backdrop-filter: blur(24px) saturate(1.8);
backdrop-filter: blur(24px) saturate(1.8);
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Active Link Underline Animation */
.nav-links a {
position: relative;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: -6px;
left: 0;
width: 0;
height: 3px;
background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
border-radius: 2px;
transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Dropdown Fade Animation */
.nav-dropdown-menu {
animation: dropdown-fade 0.3s ease;
}

@keyframes dropdown-fade {
from {
opacity: 0;
transform: translateX(-50%) translateY(-12px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}

/* Mobile Menu Slide */
.nav-links.active {
animation: slide-down 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-down {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}


/* ============================================================
CONTACT FORM FLOATING LABELS & ENHANCED INTERACTIONS
============================================================ */

/* Floating label animation */
.form-group {
position: relative;
}

.form-label {
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label,
.form-select:focus + .form-label,
.form-select:not([value=""]) + .form-label {
transform: translateY(-24px) scale(0.85);
color: var(--violet-600);
font-weight: 600;
}

/* Enhanced input glow on focus */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
border-color: var(--violet-500);
box-shadow: 0 0 0 4px rgba(108,77,255,0.1), 0 8px 24px rgba(108,77,255,0.12);
transform: translateY(-2px);
}

/* Input validation success state */
.form-group.success .form-input,
.form-group.success .form-textarea,
.form-group.success .form-select {
border-color: #10B981;
background: rgba(16,185,129,0.02);
}

.form-group.success .form-label {
color: #10B981;
}

/* Animated validation checkmark */
.form-group.success::after {
content: '✓';
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%) scale(0);
color: #10B981;
font-weight: 700;
font-size: 18px;
animation: checkmark-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkmark-pop {
to {
transform: translateY(-50%) scale(1);
}
}

/* Submit button loading spinner */
.submit-btn.loading::after {
content: '';
position: absolute;
width: 18px;
height: 18px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spinner-rotate 0.6s linear infinite;
}

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

/* Success message slide-in animation */
.success-message {
animation: slide-in-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-in-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ============================================================
TRUST BADGES & CLINICAL VALIDATION INDICATORS
============================================================ */

/* Trust badge base styles */
.trust-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: rgba(108,77,255,0.08);
border: 1px solid rgba(108,77,255,0.15);
border-radius: 20px;
font-size: 12px;
font-weight: 600;
color: var(--violet-700);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
cursor: default;
}

.trust-badge:hover {
background: rgba(108,77,255,0.12);
border-color: var(--violet-400);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(108,77,255,0.15);
}

.trust-badge-icon {
font-size: 14px;
}

/* Clinical validation badge */
.badge-clinical {
background: rgba(16,185,129,0.08);
border-color: rgba(16,185,129,0.2);
color: #059669;
}

.badge-clinical:hover {
background: rgba(16,185,129,0.12);
border-color: #10B981;
}

/* AI-powered badge */
.badge-ai {
background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(167,139,250,0.1));
border-color: rgba(139,92,246,0.25);
color: var(--violet-600);
}

.badge-ai:hover {
background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(167,139,250,0.15));
border-color: var(--violet-500);
}

/* Research-backed badge */
.badge-research {
background: rgba(59,130,246,0.08);
border-color: rgba(59,130,246,0.2);
color: #2563EB;
}

.badge-research:hover {
background: rgba(59,130,246,0.12);
border-color: #3B82F6;
}

/* Badge pulse animation */
.trust-badge.pulse {
animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba(108,77,255,0.4);
}
50% {
box-shadow: 0 0 0 8px rgba(108,77,255,0);
}
}

/* ============================================================
TOOLTIP MICRO-INTERACTIONS
============================================================ */

/* Tooltip container */
.tooltip-wrapper {
position: relative;
display: inline-block;
}

/* Tooltip content */
.tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(-4px);
padding: 8px 12px;
background: var(--ink-900);
color: white;
font-size: 12px;
font-weight: 500;
border-radius: 8px;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
z-index: 1000;
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Tooltip arrow */
.tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: var(--ink-900);
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip {
opacity: 1;
transform: translateX(-50%) translateY(0);
}

/* ============================================================
LINK UNDERLINE MICRO-INTERACTIONS
============================================================ */

/* Animated link underline */
.link-animated {
position: relative;
text-decoration: none;
color: var(--violet-600);
font-weight: 600;
transition: color 0.3s ease;
}

.link-animated::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-animated:hover {
color: var(--violet-700);
}

.link-animated:hover::after {
width: 100%;
}

/* ============================================================
BUTTON RIPPLE EFFECT
============================================================ */

/* Ripple container */
.btn {
position: relative;
overflow: hidden;
}

/* Ripple animation */
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255,255,255,0.5);
transform: translate(-50%, -50%);
transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
width: 300px;
height: 300px;
}

/* ============================================================
ICON ANIMATIONS
============================================================ */

/* Rotating icon on hover */
.icon-rotate {
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-rotate:hover {
transform: rotate(15deg);
}

/* Bouncing icon */
.icon-bounce {
animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}

/* Pulsing icon */
.icon-pulse {
animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.8;
}
}

/* ============================================================
PERFORMANCE OPTIMIZATIONS
============================================================ */

/* GPU acceleration for animations */
.animate-on-scroll,
.product-mockup,
.team-card,
.btn,
.nav-links a {
will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}

/* ============================================================
STAGGERED CARD APPEARANCE
============================================================ */

.team-card,
.product-mockup,
.ai-feature-item {
animation: fade-in-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
animation-delay: var(--stagger-delay, 0s);
}

@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ============================================================
SMOOTH TRANSITIONS FOR ALL INTERACTIVE ELEMENTS
============================================================ */

a, button, input, select, textarea {
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Focus visible for accessibility */
*:focus-visible {
outline: 3px solid var(--violet-400);
outline-offset: 2px;
border-radius: 4px;
}



/* ============================================================
ENHANCED PRODUCTS SECTION - PREMIUM DESIGN
============================================================ */

/* Product Section Layout */
.product-section {
position: relative;
overflow: hidden;
}

.product-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s16);
align-items: center;
max-width: 1200px;
margin: 0 auto;
}

.product-layout--reverse {
grid-template-columns: 1fr 1fr;
}

.product-layout--reverse .product-image {
order: 2;
}

.product-layout--reverse .product-content {
order: 1;
}

/* Product Image Container */
.product-image {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

.product-card {
background: #FFFFFF;
border: 1px solid #EEF1F6;
border-radius: var(--r-2xl);
padding: var(--s10);
box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
transition: all 0.3s var(--ease);
position: relative;
}

.product-card:hover {
box-shadow: 0 20px 60px rgba(108,77,255,0.08), 0 8px 24px rgba(0,0,0,0.04);
transform: translateY(-4px);
}

/* DiaCue Enhanced Styles */
.diacue-enhanced .product-card {
background: linear-gradient(145deg, #FFFFFF 0%, #FEFEFE 100%);
border: 1px solid #E0E7FF;
box-shadow: 0 20px 60px rgba(108,77,255,0.08), 0 8px 24px rgba(0,0,0,0.04);
padding: var(--s12);
position: relative;
overflow: visible;
}

.diacue-hero {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--s8);
position: relative;
}

.kit-display {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}

.kit-box-enhanced {
width: 200px;
height: 240px;
background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFF 100%);
border-radius: 20px;
border: 2px solid #E0E7FF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 15px 40px rgba(108,77,255,0.12), 0 6px 16px rgba(0,0,0,0.04);
position: relative;
animation: kitFloat 6s ease-in-out infinite;
}

.kit-label {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
color: #5A3FD9;
margin-bottom: 8px;
}

.kit-name {
font-size: 32px;
font-weight: 800;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 4px;
}

.kit-subtitle {
font-size: 12px;
color: var(--ink-400);
margin-bottom: 16px;
}

.kit-gradient-line {
width: 80px;
height: 4px;
background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
border-radius: 2px;
}

.kit-badge-enhanced {
position: absolute;
bottom: -16px;
right: -16px;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white;
border-radius: var(--r-full);
padding: 8px 18px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.05em;
box-shadow: 0 6px 20px rgba(108,77,255,0.35);
animation: pulse 2s infinite;
}

.diacue-product-images {
display: flex;
gap: var(--s6);
margin-top: var(--s6);
}

.product-img-item {
position: relative;
background: white;
border-radius: var(--r-lg);
padding: var(--s4);
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: all 0.3s var(--ease);
}

.product-img-item:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(108,77,255,0.15);
}

.product-img-item img {
width: 80px;
height: 80px;
object-fit: contain;
}

.img-label {
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
background: var(--violet-600);
color: white;
font-size: 10px;
font-weight: 600;
padding: 2px 8px;
border-radius: var(--r-full);
white-space: nowrap;
}

/* Floating Stats */
.floating-stats {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}

.stat-card {
position: absolute;
background: rgba(255,255,255,0.95);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid rgba(108,77,255,0.1);
border-radius: 12px;
padding: 12px 16px;
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
animation: floatStat 4s ease-in-out infinite;
}

.stat-1 {
top: 20px;
left: -20px;
animation-delay: 0s;
}

.stat-2 {
bottom: 40px;
left: -30px;
animation-delay: 1.5s;
}

.stat-3 {
top: 50%;
right: -40px;
transform: translateY(-50%);
animation-delay: 3s;
}

.stat-label {
font-size: 10px;
color: var(--ink-400);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 2px;
}

.stat-value {
font-size: 20px;
font-weight: 800;
color: var(--violet-700);
line-height: 1;
}

@keyframes floatStat {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}

@keyframes kitFloat {
0%, 100% { 
transform: translateY(0px) rotate(-1deg); 
box-shadow: 0 15px 40px rgba(108,77,255,0.12), 0 6px 16px rgba(0,0,0,0.04);
}
50% { 
transform: translateY(-12px) rotate(1deg); 
box-shadow: 0 25px 60px rgba(108,77,255,0.18), 0 10px 24px rgba(0,0,0,0.06);
}
}

/* Enhanced Product Content */
.product-description.enhanced {
font-size: 17px;
line-height: 1.8;
color: var(--ink-600);
margin-bottom: var(--s8);
}

.trust-badges {
display: flex;
gap: var(--s3);
flex-wrap: wrap;
margin-bottom: var(--s8);
}

.trust-badge {
display: flex;
align-items: center;
gap: var(--s2);
padding: 8px 16px;
border-radius: var(--r-full);
font-size: 12px;
font-weight: 600;
transition: all 0.3s var(--ease);
}

.trust-badge.clinical {
background: #F0FDF4;
border: 1px solid #BBF7D0;
color: #15803D;
}

.trust-badge.research {
background: #EFF6FF;
border: 1px solid #BFDBFE;
color: #1D4ED8;
}

.trust-badge.field {
background: #FEF3C7;
border: 1px solid #FDE68A;
color: #92400E;
}

.trust-badge:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-icon {
font-size: 14px;
}

/* Enhanced Features */
.feature-list.enhanced li {
display: flex;
align-items: center;
gap: var(--s3);
font-size: 15px;
color: var(--ink-700);
line-height: 1.7;
margin-bottom: var(--s3);
padding: var(--s3);
background: rgba(108,77,255,0.02);
border-radius: var(--r-md);
border-left: 3px solid var(--violet-500);
transition: all 0.3s var(--ease);
}

.feature-list.enhanced li:hover {
background: rgba(108,77,255,0.05);
transform: translateX(4px);
}

.feature-icon {
font-size: 18px;
}

/* How It Works Steps */
.how-it-works {
margin-top: var(--s10);
}

.how-it-works h4 {
font-size: 16px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s6);
text-transform: uppercase;
letter-spacing: 0.05em;
}

.steps-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s4);
}

.step-card {
display: flex;
align-items: center;
gap: var(--s4);
padding: var(--s4);
background: white;
border: 1px solid #E0E7FF;
border-radius: var(--r-lg);
transition: all 0.3s var(--ease);
}

.step-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(108,77,255,0.1);
border-color: var(--violet-400);
}

.step-number {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white;
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.step-info h5 {
font-size: 14px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: 2px;
}

.step-info p {
font-size: 12px;
color: var(--ink-500);
margin: 0;
}
/* ============================================================
ENHANCED DIACUE SECTION STYLES
============================================================ */

.diacue-enhanced .product-card {
background: linear-gradient(145deg, #FFFFFF 0%, #FEFEFE 100%);
border: 1px solid #E0E7FF;
box-shadow: 0 20px 60px rgba(108,77,255,0.08), 0 8px 24px rgba(0,0,0,0.04);
padding: var(--s12);
position: relative;
overflow: visible;
}

.diacue-hero {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--s8);
position: relative;
}

.kit-display {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}

.kit-box-enhanced {
width: 200px;
height: 240px;
background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFF 100%);
border-radius: 20px;
border: 2px solid #E0E7FF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 15px 40px rgba(108,77,255,0.12), 0 6px 16px rgba(0,0,0,0.04);
position: relative;
animation: kitFloat 6s ease-in-out infinite;
}

.kit-label {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
color: #5A3FD9;
margin-bottom: 8px;
}

.kit-name {
font-size: 32px;
font-weight: 800;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 4px;
}

.kit-subtitle {
font-size: 12px;
color: var(--ink-400);
margin-bottom: 16px;
}

.kit-gradient-line {
width: 80px;
height: 4px;
background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
border-radius: 2px;
}

.kit-badge-enhanced {
position: absolute;
bottom: -16px;
right: -16px;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white;
border-radius: var(--r-full);
padding: 8px 18px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.05em;
box-shadow: 0 6px 20px rgba(108,77,255,0.35);
animation: pulse 2s infinite;
}

.diacue-product-images {
display: flex;
gap: var(--s6);
margin-top: var(--s6);
}

.product-img-item {
position: relative;
background: white;
border-radius: var(--r-lg);
padding: var(--s4);
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: all 0.3s var(--ease);
}

.product-img-item:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(108,77,255,0.15);
}

.product-img-item img {
width: 80px;
height: 80px;
object-fit: contain;
}

.img-label {
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
background: var(--violet-600);
color: white;
font-size: 10px;
font-weight: 600;
padding: 2px 8px;
border-radius: var(--r-full);
white-space: nowrap;
}
/* Floating Stats */
.floating-stats {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}

.stat-card {
position: absolute;
background: rgba(255,255,255,0.95);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid rgba(108,77,255,0.1);
border-radius: 12px;
padding: 12px 16px;
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
animation: floatStat 4s ease-in-out infinite;
}

.stat-1 {
top: 20px;
left: -20px;
animation-delay: 0s;
}

.stat-2 {
bottom: 40px;
left: -30px;
animation-delay: 1.5s;
}

.stat-3 {
top: 50%;
right: -40px;
transform: translateY(-50%);
animation-delay: 3s;
}

.stat-label {
font-size: 10px;
color: var(--ink-400);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 2px;
}

.stat-value {
font-size: 20px;
font-weight: 800;
color: var(--violet-700);
line-height: 1;
}

@keyframes floatStat {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}

/* Enhanced Product Content */
.product-description.enhanced {
font-size: 17px;
line-height: 1.8;
color: var(--ink-600);
margin-bottom: var(--s8);
}

.trust-badges {
display: flex;
gap: var(--s3);
flex-wrap: wrap;
margin-bottom: var(--s8);
}

.trust-badge {
display: flex;
align-items: center;
gap: var(--s2);
padding: 8px 16px;
border-radius: var(--r-full);
font-size: 12px;
font-weight: 600;
transition: all 0.3s var(--ease);
}

.trust-badge.clinical {
background: #F0FDF4;
border: 1px solid #BBF7D0;
color: #15803D;
}

.trust-badge.research {
background: #EFF6FF;
border: 1px solid #BFDBFE;
color: #1D4ED8;
}

.trust-badge.field {
background: #FEF3C7;
border: 1px solid #FDE68A;
color: #92400E;
}

.trust-badge:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-icon {
font-size: 14px;
}

/* Enhanced Features */
.feature-list.enhanced li {
display: flex;
align-items: center;
gap: var(--s3);
font-size: 15px;
color: var(--ink-700);
line-height: 1.7;
margin-bottom: var(--s3);
padding: var(--s3);
background: rgba(108,77,255,0.02);
border-radius: var(--r-md);
border-left: 3px solid var(--violet-500);
transition: all 0.3s var(--ease);
}

.feature-list.enhanced li:hover {
background: rgba(108,77,255,0.05);
transform: translateX(4px);
}

.feature-icon {
font-size: 18px;
}

/* How It Works Steps */
.how-it-works {
margin-top: var(--s10);
}

.how-it-works h4 {
font-size: 16px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s6);
text-transform: uppercase;
letter-spacing: 0.05em;
}

.steps-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s4);
}

.step-card {
display: flex;
align-items: center;
gap: var(--s4);
padding: var(--s4);
background: white;
border: 1px solid #E0E7FF;
border-radius: var(--r-lg);
transition: all 0.3s var(--ease);
}

.step-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(108,77,255,0.1);
border-color: var(--violet-400);
}

.step-number {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #6C4DFF, #8B5CF6);
color: white;
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.step-info h5 {
font-size: 14px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: 2px;
}

.step-info p {
font-size: 12px;
color: var(--ink-500);
margin: 0;
}
/* ============================================================
ENHANCED GI-BUD SECTION STYLES
============================================================ */

.gibud-enhanced {
position: relative;
overflow: hidden;
}

.gibud-enhanced::before {
content: '';
position: absolute;
inset: 0;
background: 
radial-gradient(ellipse 60% 40% at 30% 60%, rgba(124,58,237,0.15) 0%, transparent 60%),
radial-gradient(ellipse 50% 50% at 70% 30%, rgba(167,139,250,0.12) 0%, transparent 60%);
}

.gibud-showcase {
background: rgba(255,255,255,0.05);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.app-phone-premium {
width: 280px;
height: 560px;
background: linear-gradient(145deg, #1F2937, #374151);
border: 3px solid rgba(255,255,255,0.1);
border-radius: 40px;
padding: 20px;
position: relative;
box-shadow: 
0 50px 100px rgba(0,0,0,0.4),
0 0 0 1px rgba(255,255,255,0.05);
animation: phoneFloat 8s ease-in-out infinite;
}

.phone-notch {
width: 100px;
height: 28px;
background: #111827;
border-radius: var(--r-full);
margin: 0 auto 16px;
position: relative;
}

.phone-notch::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 8px;
height: 8px;
background: #374151;
border-radius: 50%;
}

.app-screen-premium {
background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 100%);
border-radius: 32px;
padding: var(--s6);
height: 100%;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}

.app-header-premium {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--s6);
}

.app-logo-premium {
font-size: 16px;
font-weight: 800;
background: linear-gradient(135deg, var(--violet-400), var(--violet-300));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.app-status-premium {
display: flex;
align-items: center;
gap: var(--s2);
font-size: 11px;
color: rgba(255,255,255,0.6);
}

.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #10B981;
box-shadow: 0 0 10px rgba(16,185,129,0.5);
animation: pulse 2s infinite;
}

.score-ring-premium {
width: 140px;
height: 140px;
border-radius: 50%;
background: conic-gradient(
var(--violet-500) 0%,
var(--violet-400) 75%,
rgba(255,255,255,0.1) 75%
);
display: flex;
align-items: center;
justify-content: center;
margin: var(--s6) auto;
position: relative;
animation: ringRotate 10s linear infinite;
}

.score-ring-premium::before {
content: '';
position: absolute;
inset: 12px;
border-radius: 50%;
background: linear-gradient(160deg, #1E1B4B, #0F172A);
}

.score-center {
position: relative;
z-index: 1;
text-align: center;
}

.score-number {
font-size: 36px;
font-weight: 800;
color: white;
line-height: 1;
}

.score-label {
font-size: 10px;
color: rgba(255,255,255,0.5);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-top: 4px;
}

.metrics-grid-premium {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s3);
margin-bottom: var(--s6);
}

.metric-card {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 12px;
padding: var(--s3);
text-align: center;
transition: all 0.3s var(--ease);
}

.metric-card:hover {
background: rgba(255,255,255,0.08);
transform: translateY(-2px);
}

.metric-value {
font-size: 14px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 2px;
}

.metric-value.good { color: #10B981; }
.metric-value.negative { color: #EF4444; }
.metric-value.low { color: #F59E0B; }
.metric-value.trend { color: #8B5CF6; }

.metric-key {
font-size: 9px;
color: rgba(255,255,255,0.4);
text-transform: uppercase;
letter-spacing: 0.08em;
}

.chart-section-premium {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 12px;
padding: var(--s4);
}

.chart-title {
font-size: 10px;
color: rgba(255,255,255,0.4);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: var(--s3);
}

.chart-bars-premium {
display: flex;
align-items: flex-end;
gap: 4px;
height: 50px;
}

.chart-bar {
flex: 1;
border-radius: 2px 2px 0 0;
background: linear-gradient(to top, var(--violet-600), var(--violet-400));
opacity: 0.6;
transition: all 0.3s var(--ease);
animation: barGrow 2s ease-out infinite alternate;
}

.chart-bar.active {
opacity: 1;
box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

@keyframes phoneFloat {
0%, 100% { transform: translateY(0px) rotateY(-5deg); }
50% { transform: translateY(-15px) rotateY(5deg); }
}

@keyframes ringRotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* AI Features Floating */
.ai-features-floating {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}

.ai-card {
position: absolute;
background: rgba(255,255,255,0.08);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 14px;
padding: 12px 16px;
display: flex;
align-items: center;
gap: var(--s2);
font-size: 12px;
color: rgba(255,255,255,0.9);
box-shadow: 0 8px 24px rgba(0,0,0,0.3);
animation: floatAI 5s ease-in-out infinite;
}

.ai-card-1 {
left: -80px;
top: 80px;
animation-delay: 0s;
}

.ai-card-2 {
right: -90px;
top: 180px;
animation-delay: 2s;
}

.ai-card-3 {
left: -70px;
bottom: 120px;
animation-delay: 4s;
}

.ai-icon {
font-size: 16px;
}

@keyframes floatAI {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-12px); }
}

/* GI-BUD Content Styles */
.gibud-content .product-title {
background: linear-gradient(135deg, #FFFFFF, #E0E7FF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.ai-features-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s4);
margin: var(--s8) 0;
}

.ai-feature-card {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--r-lg);
padding: var(--s5);
transition: all 0.3s var(--ease);
}

.ai-feature-card:hover {
background: rgba(255,255,255,0.08);
transform: translateY(-4px);
border-color: rgba(139,92,246,0.3);
}

.feature-icon-ai {
width: 48px;
height: 48px;
border-radius: var(--r-md);
background: rgba(139,92,246,0.15);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
margin-bottom: var(--s3);
}

.feature-content h4 {
font-size: 15px;
font-weight: 600;
color: white;
margin-bottom: var(--s2);
}

.feature-content p {
font-size: 13px;
color: rgba(255,255,255,0.6);
line-height: 1.6;
margin: 0;
}

/* App Download Section */
.app-download-section {
margin-top: var(--s10);
}

.btn-download {
display: flex;
align-items: center;
gap: var(--s4);
background: linear-gradient(135deg, #10B981, #059669);
color: white;
padding: 16px 24px;
border-radius: var(--r-lg);
font-weight: 600;
transition: all 0.3s var(--ease);
box-shadow: 0 6px 20px rgba(16,185,129,0.3);
margin-bottom: var(--s4);
}

.btn-download:hover {
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(16,185,129,0.4);
}

.download-icon {
font-size: 24px;
}

.download-text {
display: flex;
flex-direction: column;
}

.download-main {
font-size: 16px;
font-weight: 700;
}

.download-sub {
font-size: 12px;
opacity: 0.8;
}

.download-arrow {
font-size: 18px;
margin-left: auto;
}

.app-badges {
display: flex;
gap: var(--s3);
flex-wrap: wrap;
}

.app-badge {
padding: 6px 12px;
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
border-radius: var(--r-full);
font-size: 11px;
color: rgba(255,255,255,0.8);
}
/* ============================================================
ENHANCED GROWGUT SECTION STYLES
============================================================ */

.growgut-section {
position: relative;
overflow: hidden;
}

.growgut-section::before {
content: '';
position: absolute;
inset: 0;
background: 
radial-gradient(ellipse 50% 60% at 20% 40%, rgba(21,128,61,0.08) 0%, transparent 60%),
radial-gradient(ellipse 40% 50% at 80% 60%, rgba(5,150,105,0.06) 0%, transparent 60%);
}

.growgut-header {
position: relative;
z-index: 2;
}

.growgut-intro {
font-size: 18px;
line-height: 1.8;
color: var(--ink-600);
max-width: 800px;
margin: 0 auto;
}

.growgut-roadmap-card {
background: white;
border: 1px solid #D1FAE5;
border-radius: var(--r-2xl);
padding: var(--s10);
box-shadow: 0 20px 60px rgba(21,128,61,0.08), 0 8px 24px rgba(0,0,0,0.04);
position: relative;
}

.roadmap-title {
font-size: 20px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s8);
text-align: center;
}

.roadmap-timeline {
display: flex;
flex-direction: column;
gap: var(--s6);
margin-bottom: var(--s8);
}

.roadmap-step {
display: flex;
align-items: center;
gap: var(--s4);
padding: var(--s4);
border-radius: var(--r-lg);
transition: all 0.3s var(--ease);
position: relative;
}

.roadmap-step.completed {
background: rgba(21,128,61,0.05);
border: 1px solid rgba(21,128,61,0.1);
}

.roadmap-step.active {
background: rgba(59,130,246,0.05);
border: 1px solid rgba(59,130,246,0.2);
animation: pulse 2s infinite;
}

.roadmap-step.upcoming {
background: rgba(156,163,175,0.05);
border: 1px solid rgba(156,163,175,0.1);
}

.step-marker {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: 700;
flex-shrink: 0;
}

.roadmap-step.completed .step-marker {
background: linear-gradient(135deg, #10B981, #059669);
color: white;
}

.roadmap-step.active .step-marker {
background: linear-gradient(135deg, #3B82F6, #2563EB);
color: white;
}

.roadmap-step.upcoming .step-marker {
background: #F3F4F6;
color: #6B7280;
}

.step-content h4 {
font-size: 16px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: 4px;
}

.step-content p {
font-size: 14px;
color: var(--ink-500);
margin: 0;
}

.product-gallery-mini {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--s3);
}

.gallery-item-mini {
position: relative;
border-radius: var(--r-md);
overflow: hidden;
background: white;
border: 1px solid #D1FAE5;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
transition: all 0.4s var(--ease);
aspect-ratio: 1;
}

.gallery-item-mini img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s var(--ease);
}

.gallery-item-mini:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(21,128,61,0.12);
border-color: #A7F3D0;
}

.gallery-item-mini:hover img {
transform: scale(1.05);
}

/* GrowGut Benefits */
.growgut-benefits h3 {
font-size: 20px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s6);
}

.benefit-grid {
display: flex;
flex-direction: column;
gap: var(--s4);
margin-bottom: var(--s8);
}

.benefit-item {
display: flex;
align-items: center;
gap: var(--s4);
padding: var(--s4);
background: rgba(21,128,61,0.03);
border: 1px solid rgba(21,128,61,0.08);
border-radius: var(--r-lg);
transition: all 0.3s var(--ease);
}

.benefit-item:hover {
background: rgba(21,128,61,0.05);
transform: translateX(4px);
border-color: rgba(21,128,61,0.15);
}

.benefit-icon {
font-size: 32px;
flex-shrink: 0;
}

.benefit-text h4 {
font-size: 16px;
font-weight: 600;
color: var(--ink-800);
margin-bottom: 4px;
}

.benefit-text p {
font-size: 14px;
color: var(--ink-500);
margin: 0;
}

.growgut-mission {
background: rgba(21,128,61,0.05);
border: 1px solid rgba(21,128,61,0.1);
border-radius: var(--r-lg);
padding: var(--s6);
margin: var(--s8) 0;
}

.growgut-mission p {
font-size: 15px;
line-height: 1.7;
color: var(--ink-600);
margin-bottom: var(--s3);
}

.mission-tagline {
font-size: 16px;
font-weight: 600;
color: #15803D;
}

/* Buy Now Section */
.buy-now-section {
margin-top: var(--s10);
}

.buy-now-card {
background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
border: 2px solid #A7F3D0;
border-radius: var(--r-2xl);
padding: var(--s8);
box-shadow: 0 20px 60px rgba(21,128,61,0.1), 0 8px 24px rgba(0,0,0,0.04);
text-align: center;
}

.buy-header h4 {
font-size: 22px;
font-weight: 700;
color: var(--ink-800);
margin-bottom: var(--s3);
}

.buy-header p {
font-size: 16px;
color: var(--ink-500);
margin-bottom: var(--s8);
}

.btn-buy-now {
display: inline-flex;
align-items: center;
gap: var(--s4);
background: linear-gradient(135deg, #10B981, #059669);
color: white;
padding: 18px 32px;
border-radius: var(--r-full);
font-size: 18px;
font-weight: 700;
transition: all 0.3s var(--ease);
box-shadow: 0 8px 24px rgba(16,185,129,0.3);
margin-bottom: var(--s6);
}

.btn-buy-now:hover {
transform: translateY(-3px) scale(1.02);
box-shadow: 0 12px 32px rgba(16,185,129,0.4);
}

.buy-icon {
font-size: 24px;
}

.buy-text {
font-size: 18px;
}

.buy-arrow {
font-size: 20px;
transition: transform 0.3s var(--ease);
}

.btn-buy-now:hover .buy-arrow {
transform: translateX(4px);
}

.buy-features {
display: flex;
justify-content: center;
gap: var(--s4);
flex-wrap: wrap;
}

.feature-badge {
padding: 8px 16px;
background: rgba(16,185,129,0.1);
border: 1px solid rgba(16,185,129,0.2);
border-radius: var(--r-full);
font-size: 12px;
font-weight: 600;
color: #059669;
}
/* ============================================================
RESPONSIVE ENHANCEMENTS FOR PRODUCTS
============================================================ */

@media (max-width: 968px) {
.diacue-product-images {
flex-direction: column;
align-items: center;
}

.floating-stats .stat-card {
position: relative;
display: inline-block;
margin: var(--s2);
}

.stat-1, .stat-2, .stat-3 {
position: relative;
top: auto;
left: auto;
right: auto;
bottom: auto;
transform: none;
}

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

.app-phone-premium {
width: 240px;
height: 480px;
}

.ai-features-grid {
grid-template-columns: 1fr;
}

.ai-features-floating .ai-card {
position: relative;
display: flex;
margin: var(--s3) 0;
}

.ai-card-1, .ai-card-2, .ai-card-3 {
position: relative;
left: auto;
right: auto;
top: auto;
bottom: auto;
}

.benefit-grid {
gap: var(--s3);
}

.buy-features {
flex-direction: column;
align-items: center;
}
}

@media (max-width: 640px) {
.product-card {
padding: var(--s6);
}

.kit-box-enhanced {
width: 160px;
height: 200px;
}

.kit-name {
font-size: 24px;
}

.diacue-product-images {
gap: var(--s4);
}

.product-img-item img {
width: 60px;
height: 60px;
}

.app-phone-premium {
width: 200px;
height: 400px;
padding: 16px;
}

.score-ring-premium {
width: 100px;
height: 100px;
}

.score-number {
font-size: 28px;
}

.roadmap-timeline {
gap: var(--s4);
}

.roadmap-step {
flex-direction: column;
text-align: center;
gap: var(--s3);
}

.step-marker {
width: 40px;
height: 40px;
font-size: 16px;
}

.product-gallery-mini {
grid-template-columns: 1fr;
max-width: 200px;
margin: 0 auto;
}

.btn-buy-now {
padding: 16px 24px;
font-size: 16px;
}

.buy-text {
font-size: 16px;
}
}

/* ============================================================
ENHANCED ANIMATIONS AND INTERACTIONS
============================================================ */

@keyframes kitFloat {
0%, 100% { 
transform: translateY(0px) rotate(-1deg); 
box-shadow: 0 15px 40px rgba(108,77,255,0.12), 0 6px 16px rgba(0,0,0,0.04);
}
50% { 
transform: translateY(-12px) rotate(1deg); 
box-shadow: 0 25px 60px rgba(108,77,255,0.18), 0 10px 24px rgba(0,0,0,0.06);
}
}

@keyframes barGrow {
0% { 
opacity: 0.6; 
transform: scaleY(0.8);
}
100% { 
opacity: 0.9; 
transform: scaleY(1);
}
}

/* Smooth scroll behavior for product sections */
.product-section {
scroll-margin-top: 80px;
}

/* Enhanced hover states */
.product-card:hover {
transform: translateY(-6px) scale(1.01);
}

.trust-badge:hover,
.app-badge:hover,
.feature-badge:hover {
transform: translateY(-2px);
}

/* Loading states for interactive elements */
.btn-buy-now:active {
transform: translateY(-1px) scale(0.98);
}

.btn-download:active {
transform: translateY(-1px) scale(0.98);
}

/* Focus states for accessibility */
.btn-buy-now:focus,
.btn-download:focus {
outline: 2px solid rgba(16,185,129,0.5);
outline-offset: 2px;
}

/* Improved text readability */
.product-description.enhanced,
.growgut-intro {
text-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Enhanced gradient overlays */
.diacue-enhanced {
background: linear-gradient(135deg, #F7F9FF 0%, #EEF2FF 50%, #E0E7FF 100%);
}

.growgut-section {
background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 50%, #D1FAE5 100%);
}
/* ============================================================
GI-BUD AI SECTION - CLEAN REDESIGNED LAYOUT
============================================================ */

.gibud-redesigned {
position: relative;
overflow: hidden;
}

.gibud-redesigned::before {
content: '';
position: absolute;
inset: 0;
background: 
radial-gradient(ellipse 60% 40% at 30% 60%, rgba(124,58,237,0.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 50% at 70% 30%, rgba(167,139,250,0.10) 0%, transparent 60%);
}

/* Header Area */
.gibud-header {
max-width: 800px;
margin: 0 auto var(--s16);
position: relative;
z-index: 2;
}

.gibud-title {
font-size: clamp(32px, 4vw, 48px);
font-weight: 700;
color: white;
line-height: 1.2;
margin-bottom: var(--s4);
background: linear-gradient(135deg, #FFFFFF, #E0E7FF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.gibud-description {
font-size: 18px;
line-height: 1.7;
color: rgba(255,255,255,0.8);
max-width: 600px;
margin: 0 auto;
}

/* 3-Column Layout */
.gibud-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s16);
align-items: start;
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 2;
}

/* Left Column: Phone Mockup */
.gibud-phone-column {
display: flex;
justify-content: center;
align-items: center;
}

.phone-mockup-clean {
position: relative;
}

.phone-frame-clean {
width: 280px;
height: 560px;
background: linear-gradient(145deg, #1F2937, #374151);
border: 2px solid rgba(255,255,255,0.1);
border-radius: 32px;
padding: 16px;
box-shadow: 
0 20px 60px rgba(0,0,0,0.3),
0 0 0 1px rgba(255,255,255,0.05);
transition: all 0.4s ease;
}

.phone-frame-clean:hover {
transform: translateY(-8px);
box-shadow: 
0 30px 80px rgba(0,0,0,0.4),
0 0 0 1px rgba(255,255,255,0.08);
}

.phone-screen-clean {
background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 100%);
border-radius: 24px;
padding: var(--s6);
height: 100%;
display: flex;
flex-direction: column;
}

.app-interface-clean {
flex: 1;
display: flex;
flex-direction: column;
}

.app-header-clean {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--s6);
}

.app-title-clean {
font-size: 16px;
font-weight: 700;
background: linear-gradient(135deg, #8B5CF6, #A78BFA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.status-indicator-clean {
width: 8px;
height: 8px;
background: #10B981;
border-radius: 50%;
box-shadow: 0 0 8px rgba(16,185,129,0.5);
animation: pulse 2s infinite;
}

.dashboard-content-clean {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.health-score-clean {
text-align: center;
margin-bottom: var(--s6);
}

.score-number-clean {
font-size: 48px;
font-weight: 800;
color: white;
line-height: 1;
}

.score-label-clean {
font-size: 12px;
color: rgba(255,255,255,0.6);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-top: 8px;
}

.metrics-row-clean {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
width: 100%;
margin-bottom: var(--s6);
}

.metric-clean {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 12px;
padding: 12px;
text-align: center;
}

.metric-value-clean {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
}

.metric-value-clean.good { color: #10B981; }
.metric-value-clean.negative { color: #EF4444; }

.metric-label-clean {
font-size: 10px;
color: rgba(255,255,255,0.5);
text-transform: uppercase;
letter-spacing: 0.05em;
}

.chart-mini-clean {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 12px;
padding: 12px;
width: 100%;
}

.chart-title-clean {
font-size: 10px;
color: rgba(255,255,255,0.4);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 8px;
}

.chart-bars-clean {
display: flex;
align-items: flex-end;
gap: 3px;
height: 40px;
}

.chart-bar-clean {
flex: 1;
border-radius: 2px 2px 0 0;
background: linear-gradient(to top, var(--violet-600), var(--violet-400));
opacity: 0.7;
transition: all 0.3s ease;
}

.chart-bar-clean.active {
opacity: 1;
box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

/* Right Column: Feature Cards */
.gibud-features-column {
display: flex;
align-items: center;
}

.features-grid-clean {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s5);
width: 100%;
}

.feature-card-clean {
background: rgba(255,255,255,0.08);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.12);
border-radius: var(--r-lg);
padding: var(--s6);
text-align: center;
transition: all 0.3s ease;
}

.feature-card-clean:hover {
background: rgba(255,255,255,0.12);
transform: translateY(-4px);
border-color: rgba(139,92,246,0.3);
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.feature-icon-clean {
font-size: 32px;
margin-bottom: var(--s4);
display: block;
}

.feature-title-clean {
font-size: 16px;
font-weight: 600;
color: white;
margin-bottom: var(--s3);
line-height: 1.3;
}

.feature-desc-clean {
font-size: 14px;
color: rgba(255,255,255,0.7);
line-height: 1.5;
margin: 0;
}

/* Call to Action */
.gibud-cta {
margin-top: var(--s16);
position: relative;
z-index: 2;
}

.btn-gibud-download {
display: inline-flex;
align-items: center;
gap: var(--s4);
background: linear-gradient(135deg, #10B981, #059669);
color: white;
padding: 18px 32px;
border-radius: var(--r-lg);
font-size: 16px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 6px 20px rgba(16,185,129,0.3);
text-decoration: none;
}

.btn-gibud-download:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(16,185,129,0.4);
color: white;
}

.download-icon-clean {
font-size: 20px;
}

.download-text-clean {
font-size: 16px;
font-weight: 600;
}

.download-arrow-clean {
font-size: 18px;
transition: transform 0.3s ease;
}

.btn-gibud-download:hover .download-arrow-clean {
transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 968px) {
.gibud-layout {
grid-template-columns: 1fr;
gap: var(--s12);
text-align: center;
}

.gibud-phone-column {
order: -1;
}

.features-grid-clean {
grid-template-columns: 1fr;
max-width: 400px;
margin: 0 auto;
}

.phone-frame-clean {
width: 240px;
height: 480px;
}

.score-number-clean {
font-size: 36px;
}
}

@media (max-width: 640px) {
.phone-frame-clean {
width: 200px;
height: 400px;
padding: 12px;
}

.phone-screen-clean {
padding: var(--s4);
}

.score-number-clean {
font-size: 28px;
}

.features-grid-clean {
gap: var(--s4);
}

.feature-card-clean {
padding: var(--s5);
}

.btn-gibud-download {
padding: 16px 24px;
font-size: 15px;
}
}

/* ============================================================
GI-BUD CLEAN REDESIGN STYLES
============================================================ */

.gibud-clean {
position: relative;
overflow: hidden;
}

.gibud-clean::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 20% 80%, rgba(139,92,246,0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(124,58,237,0.15) 0%, transparent 50%);
pointer-events: none;
}

/* Header Area - Clean */
.gibud-header-clean {
max-width: 800px;
margin: 0 auto var(--s16);
position: relative;
z-index: 1;
}

.gibud-title-clean {
font-size: clamp(32px, 4vw, 48px);
font-weight: 700;
background: linear-gradient(135deg, #FFFFFF, #E0E7FF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: var(--s4);
}

.gibud-description-clean {
font-size: 18px;
line-height: 1.7;
color: rgba(255,255,255,0.8);
margin-bottom: 0;
}

/* 3-Column Layout - Clean */
.gibud-main-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s16);
align-items: center;
margin-bottom: var(--s16);
position: relative;
z-index: 1;
}

/* Left Column: Phone Section - Clean */
.gibud-phone-section {
display: flex;
justify-content: center;
align-items: center;
}

.smartphone-mockup {
position: relative;
max-width: 280px;
}

.phone-frame {
background: linear-gradient(145deg, #1f2937, #374151);
border-radius: 32px;
padding: 12px;
box-shadow: 0 20px 40px rgba(0,0,0,0.3),
            0 8px 16px rgba(0,0,0,0.2);
}

.phone-screen {
background: #000000;
border-radius: 24px;
padding: 20px 16px;
min-height: 480px;
position: relative;
overflow: hidden;
}

.phone-screen::before {
content: '';
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background: #333;
border-radius: 2px;
}

.app-dashboard {
color: white;
height: 100%;
display: flex;
flex-direction: column;
}

.app-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding-top: 12px;
}

.app-logo {
font-size: 18px;
font-weight: 700;
color: #8B5CF6;
}

.status-dot {
width: 8px;
height: 8px;
background: #10B981;
border-radius: 50%;
}

.dashboard-main {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}

.health-score-display {
text-align: center;
background: linear-gradient(145deg, rgba(139,92,246,0.1), rgba(124,58,237,0.1));
border-radius: 16px;
padding: 20px;
border: 1px solid rgba(139,92,246,0.2);
}

.score-number {
font-size: 48px;
font-weight: 800;
background: linear-gradient(135deg, #8B5CF6, #A78BFA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
}

.score-text {
font-size: 14px;
color: #A78BFA;
margin: 4px 0;
font-weight: 600;
}

.score-status {
font-size: 11px;
color: rgba(255,255,255,0.7);
}

.metrics-display {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.metric-item {
background: rgba(255,255,255,0.05);
border-radius: 12px;
padding: 12px;
text-align: center;
border: 1px solid rgba(255,255,255,0.1);
}

.metric-value {
font-size: 12px;
font-weight: 600;
margin-bottom: 4px;
}

.metric-value.positive {
color: #10B981;
}

.metric-value.negative {
color: #EF4444;
}

.metric-name {
font-size: 10px;
color: rgba(255,255,255,0.6);
}

.trend-chart {
background: rgba(255,255,255,0.05);
border-radius: 12px;
padding: 16px;
border: 1px solid rgba(255,255,255,0.1);
}

.chart-header {
font-size: 12px;
color: rgba(255,255,255,0.7);
margin-bottom: 12px;
text-align: center;
}

.chart-bars {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 4px;
height: 40px;
}

.bar {
width: 8px;
background: linear-gradient(to top, rgba(139,92,246,0.6), rgba(139,92,246,0.8));
border-radius: 2px;
transition: all 0.3s ease;
}

.bar.active {
background: linear-gradient(to top, #8B5CF6, #A78BFA);
}

/* Right Column: Features Section - Clean */
.gibud-features-section {
display: flex;
align-items: center;
justify-content: center;
}

.features-grid-2x2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--s5);
max-width: 500px;
}

.feature-card-glass {
background: rgba(255,255,255,0.08);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 16px;
padding: var(--s6);
text-align: center;
transition: all 0.3s ease;
}

.feature-card-glass:hover {
background: rgba(255,255,255,0.12);
transform: translateY(-4px);
box-shadow: 0 8px 32px rgba(139,92,246,0.2);
}

.feature-icon {
font-size: 32px;
margin-bottom: var(--s4);
display: block;
}

.feature-title {
font-size: 16px;
font-weight: 600;
color: white;
margin-bottom: var(--s3);
line-height: 1.3;
}

.feature-description {
font-size: 13px;
color: rgba(255,255,255,0.7);
line-height: 1.4;
margin: 0;
}

/* Call to Action Section - Clean */
.gibud-cta-section {
margin-top: var(--s16);
position: relative;
z-index: 1;
}

.btn-download-gibud {
display: inline-flex;
align-items: center;
gap: 12px;
background: linear-gradient(135deg, #10B981, #059669);
color: white;
padding: 18px 32px;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
font-size: 16px;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}

.btn-download-gibud:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(16,185,129,0.4);
color: white;
text-decoration: none;
}

.download-icon {
font-size: 20px;
}

.download-text {
font-weight: 600;
}

.download-arrow {
font-size: 18px;
transition: transform 0.3s ease;
}

.btn-download-gibud:hover .download-arrow {
transform: translateX(4px);
}

/* Responsive Design - Clean */
@media (max-width: 968px) {
.gibud-main-layout {
grid-template-columns: 1fr;
gap: var(--s12);
text-align: center;
}

.gibud-phone-section {
order: -1;
}

.features-grid-2x2 {
grid-template-columns: 1fr;
max-width: 400px;
margin: 0 auto;
}

.smartphone-mockup {
max-width: 240px;
}

.phone-screen {
min-height: 400px;
padding: 16px 12px;
}

.health-score-display {
padding: 16px;
}

.score-number {
font-size: 36px;
}
}

@media (max-width: 640px) {
.features-grid-2x2 {
gap: var(--s4);
}

.feature-card-glass {
padding: var(--s5);
}

.btn-download-gibud {
padding: 16px 24px;
font-size: 15px;
}
}

/* ============================================================
GI-BUD PROMOTIONAL IMAGE STYLES
============================================================ */

.gibud-promo-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gibud-promo-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
              0 10px 20px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
}

.gibud-promo-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5),
              0 15px 30px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(16, 185, 129, 0.3);
}

/* Add a subtle glow effect around the image */
.gibud-promo-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 40px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gibud-promo-container:hover::before {
  opacity: 1;
}

/* Fallback design if promotional image fails to load */
.gibud-promo-fallback {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.fallback-phone {
  background: linear-gradient(145deg, #1f2937, #374151);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.fallback-screen {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  color: white;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.fallback-header {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 20px;
}

.fallback-score {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.fallback-label {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.fallback-status {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.fallback-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fallback-feature {
  background: rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

/* Responsive adjustments for promotional image */
@media (max-width: 968px) {
  .gibud-promo-container {
    max-width: 320px;
    margin-bottom: var(--s8);
  }
}

@media (max-width: 640px) {
  .gibud-promo-container {
    max-width: 280px;
  }
  
  .gibud-promo-image {
    border-radius: 16px;
  }
}

/* ============================================================
ACHIEVEMENTS SECTION - PREMIUM STARTUP SHOWCASE
============================================================ */

.achievements-showcase {
position: relative;
overflow: hidden;
}

.achievements-showcase::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, #FAFAFA 0%, #F8FAFC 100%);
pointer-events: none;
}

/* Header Styling */
.achievements-header {
max-width: 800px;
margin: 0 auto var(--s16);
position: relative;
z-index: 1;
}

.achievements-title {
font-size: clamp(32px, 4vw, 48px);
font-weight: 700;
background: linear-gradient(135deg, #1E293B, #475569);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: var(--s4);
line-height: 1.2;
}

.achievements-subtitle {
font-size: 18px;
line-height: 1.7;
color: #64748B;
margin: 0;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}



/* Responsive Design */
@media (max-width: 968px) {
.achievements-gallery {
gap: 20px;
animation-duration: 45s;
}

.achievement-card {
width: 240px;
height: 180px;
padding: 16px;
}

.achievements-title {
font-size: clamp(28px, 5vw, 36px);
}

.achievements-subtitle {
font-size: 16px;
}
}

@media (max-width: 640px) {
.achievements-gallery {
gap: 16px;
animation-duration: 35s;
}

.achievement-card {
width: 200px;
height: 150px;
padding: 12px;
}

.achievements-gallery-container {
margin: 0 -10px;
padding: 0 10px;
}

.achievements-gallery-container::before,
.achievements-gallery-container::after {
width: 50px;
}

.achievements-header {
margin-bottom: var(--s12);
}

.achievements-title {
font-size: clamp(24px, 6vw, 32px);
margin-bottom: var(--s3);
}

.achievements-subtitle {
font-size: 15px;
}
}



/* High contrast mode support */
@media (prefers-contrast: high) {
.achievement-card {
border: 2px solid #000000;
}

.achievements-title {
background: #000000;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
}



/* ============================================================
ACHIEVEMENTS GALLERY - ENHANCED AUTO-FLOWING SYSTEM
============================================================ */

/* Gallery Container - Full Width with Overflow Management */
.achievements-gallery-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FF 100%);
  padding: 60px 0;
  border-top: 1px solid rgba(108,77,255,0.08);
  border-bottom: 1px solid rgba(108,77,255,0.08);
}

/* Enhanced Auto-flowing Gallery with Hardware Acceleration */
.achievements-gallery {
  display: flex;
  gap: 40px;
  animation: autoFlowEnhanced 50s linear infinite;
  will-change: transform;
  width: max-content;
  transform: translateX(0);
  /* Hardware acceleration for smooth performance */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* Ensure continuous flow */
  animation-fill-mode: none;
  animation-play-state: running;
}

/* Enhanced Auto-flow Animation with GPU Acceleration */
@keyframes autoFlowEnhanced {
  0% {
    transform: translate3d(100%, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Premium Achievement Cards with Enhanced Styling */
.achievement-card {
  flex: 0 0 auto;
  width: 340px;
  height: 300px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 
    0 4px 20px rgba(108,77,255,0.08),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(108,77,255,0.12);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  opacity: 1;
  visibility: visible;
  /* Prevent animation interference */
  transform-origin: center center;
  /* Loading state preparation */
  min-height: 300px;
}

/* Enhanced Hover Effects with Smooth Transitions */
.achievement-card:hover {
  transform: translateY(-16px) scale(1.06);
  box-shadow: 
    0 25px 80px rgba(108,77,255,0.2),
    0 8px 32px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(108,77,255,0.3);
  z-index: 15;
}

/* Image Container with Loading States */
.achievement-card .image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #F7F9FF 0%, #EEF1F6 100%);
}

/* Enhanced Image Styling with Loading Support */
.achievement-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
  display: block;
  opacity: 1;
  transform: scale(1);
  background: #f8f9fa;
}

/* Image Loaded State */
.achievement-card img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Image Hover Effect */
.achievement-card:hover img {
  transform: scale(1.05);
}

/* Loading Placeholder */
.achievement-card .loading-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(108,77,255,0.1);
  border-top: 3px solid var(--violet-500);
  border-radius: 50%;
  animation: loadingSpinner 1s linear infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.achievement-card img.loaded + .loading-placeholder {
  opacity: 0;
  pointer-events: none;
}

@keyframes loadingSpinner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error State Styling */
.achievement-card .error-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--ink-400);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-card img.error + .loading-placeholder + .error-placeholder {
  opacity: 1;
}

/* Enhanced Achievement Title */
.achievement-title {
  padding: 24px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-800);
  text-align: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
  border-top: 1px solid rgba(108,77,255,0.08);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  position: relative;
}

/* Title Accent Line */
.achievement-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
  border-radius: 2px;
  opacity: 0;
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-title::before {
  opacity: 1;
  width: 60px;
}

/* Optional User Controls (Hidden by Default) */
.gallery-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(108,77,255,0.15);
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(108,77,255,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 20;
}

.achievements-gallery-container:hover .gallery-controls {
  opacity: 1;
  visibility: visible;
}

.gallery-controls button {
  background: none;
  border: none;
  color: var(--violet-600);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.gallery-controls button:hover {
  background: rgba(108,77,255,0.1);
  color: var(--violet-700);
  transform: scale(1.1);
}

.gallery-controls .speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-500);
}

.gallery-controls input[type="range"] {
  width: 80px;
  height: 4px;
  background: rgba(108,77,255,0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.gallery-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--violet-500);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(108,77,255,0.3);
}

/* Accessibility Features */
.gallery-announcer {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .achievements-gallery {
    animation: autoFlowEnhanced 120s linear infinite !important;
  }
  
  .achievement-card {
    transition-duration: 0.1s;
  }
  
  .achievement-card:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Cross-browser Animation Support */
.achievements-gallery {
  -webkit-animation: autoFlowEnhanced 50s linear infinite;
  -moz-animation: autoFlowEnhanced 50s linear infinite;
  -o-animation: autoFlowEnhanced 50s linear infinite;
  animation: autoFlowEnhanced 50s linear infinite;
  
  /* Cross-browser transforms */
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
}

/* Cross-browser Keyframes */
@-webkit-keyframes autoFlowEnhanced {
  0% { -webkit-transform: translate3d(100%, 0, 0); }
  100% { -webkit-transform: translate3d(-100%, 0, 0); }
}

@-moz-keyframes autoFlowEnhanced {
  0% { -moz-transform: translate3d(100%, 0, 0); }
  100% { -moz-transform: translate3d(-100%, 0, 0); }
}

@-o-keyframes autoFlowEnhanced {
  0% { -o-transform: translate3d(100%, 0, 0); }
  100% { -o-transform: translate3d(-100%, 0, 0); }
}

/* Responsive Design Enhancements */
@media (max-width: 968px) {
  .achievements-gallery {
    animation-duration: 40s;
    gap: 30px;
  }
  
  .achievement-card {
    width: 300px;
    height: 270px;
  }
  
  .achievement-card .image-container {
    height: 190px;
  }
  
  .achievement-title {
    font-size: 16px;
    padding: 20px 24px;
  }
  
  .gallery-controls {
    bottom: 15px;
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .achievements-gallery {
    animation-duration: 35s;
    gap: 25px;
  }
  
  .achievement-card {
    width: 270px;
    height: 240px;
  }
  
  .achievement-card .image-container {
    height: 160px;
  }
  
  .achievement-title {
    font-size: 15px;
    padding: 18px 20px;
  }
  
  .gallery-controls {
    display: none; /* Hide controls on mobile for better UX */
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .achievements-gallery {
    animation-duration: 45s;
  }
  
  .achievement-card:hover {
    transform: none; /* Disable hover effects on touch devices */
  }
  
  .gallery-controls {
    opacity: 1;
    visibility: visible;
    position: relative;
    margin-top: 20px;
    left: auto;
    transform: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .achievement-card {
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  .achievement-title {
    border-top: 2px solid #000000;
  }
}

/* Performance Optimizations */
.achievements-gallery-container {
  /* Enable hardware acceleration */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  
  /* Optimize rendering */
  contain: layout style paint;
}

.achievement-card {
  /* Optimize individual cards */
  contain: layout style paint;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Focus Management for Accessibility */
.achievement-card:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 2px;
}

.gallery-controls button:focus-visible {
  outline: 2px solid var(--violet-500);
  outline-offset: 2px;
}

/* ============================================================
   PERFORMANCE OPTIMIZATION ADAPTATION STYLES (Task 13.2)
   ============================================================ */

/* Performance alert styles */
.performance-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  z-index: 10000;
  max-width: 320px;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  animation: slideInAlert 0.3s ease-out;
  font-family: var(--font-primary);
}

.performance-alert .alert-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.performance-alert .alert-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.95;
}

.performance-alert .alert-content button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.performance-alert .alert-content button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@keyframes slideInAlert {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Reduced motion support for performance optimization */
.reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Emergency performance mode styles */
.emergency-performance-mode .animation,
.emergency-performance-mode .parallax,
.emergency-performance-mode .fancy-effect {
  display: none !important;
}

.emergency-performance-mode .hero-content {
  transform: none !important;
}

.emergency-performance-mode .floating-orb {
  display: none !important;
}

/* Adaptive image loading states */
.adaptive-image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Performance optimization indicators */
.performance-optimized::after {
  content: "⚡";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 12px;
  opacity: 0.7;
}

/* Critical resource loading priority */
.critical-resource {
  /* Priority hint for critical resources */
  content-visibility: auto;
}

/* Adaptive lazy loading margins */
.adaptive-lazy-loading {
  transition: opacity 0.3s ease;
}

.adaptive-lazy-loading.loading {
  opacity: 0.7;
}

.adaptive-lazy-loading.loaded {
  opacity: 1;
}

/* Performance degradation warning styles */
.performance-degradation-warning {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffa726;
  color: #333;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
  animation: slideInWarning 0.3s ease-out;
}

@keyframes slideInWarning {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bottleneck identification visual indicators */
.bottleneck-indicator {
  position: relative;
}

.bottleneck-indicator::before {
  content: "🐌";
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 16px;
  z-index: 100;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Adaptive preloading status */
.preload-status {
  position: fixed;
  top: 50px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preload-status.active {
  opacity: 1;
}

/* Performance score indicator */
.performance-score {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 9997;
  min-width: 40px;
  text-align: center;
}

.performance-score.poor {
  background: #f44336;
}

.performance-score.needs-improvement {
  background: #ff9800;
}

.performance-score.good {
  background: #4caf50;
}

/* Responsive optimizations for different performance levels */
@media (max-width: 768px) {
  .performance-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .performance-degradation-warning {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}

/* High contrast mode support for performance alerts */
@media (prefers-contrast: high) {
  .performance-alert {
    border: 2px solid white;
  }
  
  .performance-degradation-warning {
    border: 2px solid #333;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .performance-alert,
  .performance-degradation-warning,
  .adaptive-image-loading,
  .bottleneck-indicator::before {
    animation: none;
  }
  
  .adaptive-lazy-loading {
    transition: none;
  }
}

/* ============================================================
   END PERFORMANCE OPTIMIZATION ADAPTATION STYLES
   ============================================================ */
/* ============================================================
RESPONSIVE SYSTEM INTEGRATION STYLES
============================================================ */

/* Breakpoint transition states */
.breakpoint-transitioning {
  pointer-events: none;
}

.breakpoint-transitioning * {
  transition-duration: 0.2s !important;
}

/* Performance optimization during transitions */
.transition-performance-mode .hero-orb,
.transition-performance-mode .ticker-track,
.transition-performance-mode .loading-spinner {
  animation-play-state: paused !important;
}

.transition-performance-mode .animate-on-scroll {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Breakpoint-specific classes */
.breakpoint-mobile {
  --container-padding: 16px;
  --section-spacing: 40px;
  --card-padding: 16px;
}

.breakpoint-tablet {
  --container-padding: 20px;
  --section-spacing: 60px;
  --card-padding: 20px;
}

.breakpoint-desktop {
  --container-padding: 24px;
  --section-spacing: 80px;
  --card-padding: 24px;
}

/* Smooth breakpoint transitions */
.container {
  padding-left: var(--container-padding, 24px);
  padding-right: var(--container-padding, 24px);
  transition: padding 0.3s ease;
}

.section {
  padding-top: var(--section-spacing, 80px);
  padding-bottom: var(--section-spacing, 80px);
  transition: padding 0.3s ease;
}

.card {
  padding: var(--card-padding, 24px);
  transition: padding 0.3s ease;
}

/* Integration-specific navigation states */
.breakpoint-mobile .nav-links {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  z-index: 99;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.breakpoint-mobile .nav-open .nav-links {
  display: flex;
  transform: translateY(0);
}

.breakpoint-mobile .nav-hamburger {
  display: flex !important;
}

.breakpoint-tablet .nav-hamburger,
.breakpoint-desktop .nav-hamburger {
  display: none !important;
}

.breakpoint-tablet .nav-links,
.breakpoint-desktop .nav-links {
  display: flex !important;
  position: static !important;
  background: none !important;
  backdrop-filter: none !important;
  flex-direction: row !important;
  padding: 0 !important;
  gap: 24px !important;
  z-index: auto !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Integration-specific grid adjustments */
.breakpoint-mobile .grid-2,
.breakpoint-mobile .grid-3,
.breakpoint-mobile .grid-4 {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

.breakpoint-tablet .grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.breakpoint-tablet .grid-3 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.breakpoint-tablet .grid-4 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.breakpoint-desktop .grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
}

.breakpoint-desktop .grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.breakpoint-desktop .grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

/* Integration-specific text scaling */
.breakpoint-mobile .text-h1,
.breakpoint-mobile .hero-headline {
  font-size: clamp(28px, 8vw, 40px) !important;
  line-height: 1.2 !important;
}

.breakpoint-mobile .text-h2 {
  font-size: clamp(24px, 6vw, 32px) !important;
  line-height: 1.3 !important;
}

.breakpoint-mobile .text-body {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.breakpoint-tablet .text-h1,
.breakpoint-tablet .hero-headline {
  font-size: clamp(40px, 6vw, 56px) !important;
  line-height: 1.2 !important;
}

.breakpoint-tablet .text-h2 {
  font-size: clamp(32px, 4vw, 40px) !important;
  line-height: 1.3 !important;
}

.breakpoint-tablet .text-body {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.breakpoint-desktop .text-h1,
.breakpoint-desktop .hero-headline {
  font-size: clamp(56px, 4vw, 72px) !important;
  line-height: 1.1 !important;
}

.breakpoint-desktop .text-h2 {
  font-size: clamp(40px, 3vw, 48px) !important;
  line-height: 1.2 !important;
}

.breakpoint-desktop .text-body {
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* Integration-specific button adjustments */
.breakpoint-mobile .btn {
  padding: 14px 20px !important;
  font-size: 14px !important;
  min-height: 48px !important;
  width: 100% !important;
  justify-content: center !important;
}

.breakpoint-mobile .hero-actions {
  flex-direction: column !important;
  gap: 12px !important;
}

.breakpoint-tablet .btn {
  padding: 12px 24px !important;
  font-size: 15px !important;
  min-height: 44px !important;
  width: auto !important;
}

.breakpoint-desktop .btn {
  padding: 12px 32px !important;
  font-size: 16px !important;
  min-height: 44px !important;
  width: auto !important;
}

/* Integration-specific hero layout */
.breakpoint-mobile .hero-content {
  text-align: center !important;
  margin-bottom: 32px !important;
}

.breakpoint-mobile .hero-visual {
  max-width: 100% !important;
  margin: 0 auto !important;
}

.breakpoint-tablet .hero-content,
.breakpoint-desktop .hero-content {
  text-align: left !important;
  margin-bottom: 0 !important;
}

/* Integration-specific image optimizations */
.breakpoint-mobile .responsive-img {
  object-fit: contain !important;
}

.breakpoint-tablet .responsive-img,
.breakpoint-desktop .responsive-img {
  object-fit: cover !important;
}

/* Fallback mode styles */
.fallback-mode {
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-premium: none;
}

.fallback-mode .btn {
  box-shadow: none !important;
  border: 1px solid currentColor !important;
}

.fallback-mode .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e5e7eb !important;
}

.fallback-mode .nav {
  box-shadow: none !important;
  border-bottom: 1px solid #e5e7eb !important;
}

/* Animation disabled state */
.animations-disabled *,
.animations-disabled *::before,
.animations-disabled *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* High contrast integration mode */
.high-contrast-mode {
  --primary: CanvasText;
  --bg: Canvas;
  --surface: Canvas;
  --ink-800: CanvasText;
  --ink-700: CanvasText;
  --ink-600: CanvasText;
  --ink-400: CanvasText;
  --border: CanvasText;
}

.high-contrast-mode .btn {
  background: CanvasText !important;
  color: Canvas !important;
  border: 2px solid CanvasText !important;
}

.high-contrast-mode .card {
  background: Canvas !important;
  border: 2px solid CanvasText !important;
  color: CanvasText !important;
}

/* Integration loading states */
.loading-mobile {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 2s infinite;
}

.loading-tablet {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

.loading-desktop {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1s infinite;
}

/* Integration-specific media queries for fine-tuning */
@media (max-width: 480px) {
  .breakpoint-mobile .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .breakpoint-mobile .section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .breakpoint-tablet .nav-links {
    gap: 16px !important;
  }
  
  .breakpoint-tablet .nav-link {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}

@media (min-width: 1400px) {
  .breakpoint-desktop .container {
    max-width: 1320px !important;
  }
}

/* Integration success indicator */
.responsive-integration-complete {
  position: relative;
}

.responsive-integration-complete::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0;
  animation: integration-pulse 2s ease-in-out;
}

@keyframes integration-pulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Debug mode styles (development only) */
.debug-responsive-integration {
  position: fixed;
  top: 50px;
  right: 10px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  z-index: 10001;
  max-width: 200px;
}

.debug-responsive-integration .debug-item {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-responsive-integration .debug-value {
  color: #10b981;
  font-weight: bold;
}

/* Ensure smooth transitions for all integrated components */
.responsive-smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Integration complete state */
body.responsive-integration-ready {
  --integration-status: 'ready';
}

body.responsive-integration-ready .nav,
body.responsive-integration-ready .hero,
body.responsive-integration-ready .section {
  opacity: 1;
  transform: none;
}

/* Print styles for integrated system */
@media print {
  .breakpoint-mobile,
  .breakpoint-tablet,
  .breakpoint-desktop {
    --container-padding: 0;
    --section-spacing: 20px;
    --card-padding: 12px;
  }
  
  .responsive-integration-complete::after {
    display: none !important;
  }
}

/* ============================================================
COMPREHENSIVE SMARTPHONE OPTIMIZATION
============================================================ */

/* Enhanced Mobile Viewport and Touch Optimization */
@media (max-width: 767px) {
  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Optimize scrolling performance */
  body {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Container mobile optimization */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
  
  /* Navigation mobile optimization */
  .nav {
    height: 60px;
    padding: 0 16px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  
  .nav-logo-img {
    height: 32px !important;
    width: auto !important;
  }
  
  /* Hero section mobile optimization */
  .hero {
    padding: 60px 0 40px 0 !important;
    min-height: auto !important;
  }
  
  .hero-content {
    gap: var(--s6);
  }
  
  .hero-headline {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.2 !important;
    margin-bottom: var(--s4);
  }
  
  .hero-sub {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: var(--s6);
  }
  
  /* Button optimizations for touch */
  .btn {
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .hero-actions {
    flex-direction: column !important;
    gap: var(--s3) !important;
    width: 100% !important;
  }
  
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px;
    font-size: 16px;
  }
  
  /* Hero visual mobile optimization */
  .hero-visual {
    margin-top: var(--s8);
    order: -1;
  }
  
  .hero-visual-card {
    max-width: 100%;
    padding: var(--s4);
  }
  
  /* Team cards mobile optimization */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s5) !important;
  }
  
  .team-card {
    padding: var(--s6) !important;
    min-height: 320px !important;
  }
  
  .team-card-image {
    width: 100px !important;
    height: 100px !important;
  }
  
  /* Typography mobile optimization */
  .text-h1 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.2 !important;
  }
  
  .text-h2 {
    font-size: clamp(20px, 5vw, 28px) !important;
    line-height: 1.3 !important;
  }
  
  .text-h3 {
    font-size: clamp(18px, 4vw, 24px) !important;
    line-height: 1.3 !important;
  }
  
  /* Grid optimizations */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: var(--s5) !important;
  }
  
  /* Achievement gallery mobile optimization */
  .achievements-gallery {
    gap: 12px !important;
    padding: 0 16px !important;
  }
  
  .achievement-card {
    width: 280px !important;
    height: 200px !important;
    flex-shrink: 0 !important;
  }
  
  /* Form optimizations */
  .form-input,
  .form-textarea,
  .form-select {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 16px !important;
  }
  
  /* Touch target optimization */
  a, button, input, select, textarea, [tabindex] {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  /* Prevent zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
  
  /* Performance optimizations */
  .hero-orb {
    animation: none !important;
    opacity: 0.1 !important;
  }
  
  /* Image optimization */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Hero stats mobile optimization */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
    margin-top: var(--s8);
  }
  
  .hero-stat-val {
    font-size: 20px;
  }
  
  .hero-stat-label {
    font-size: 12px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Typography scaling */
  .hero-headline {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .hero-sub {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: var(--s6);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--s3);
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }
  
  /* Hero visual mobile optimization */
  .hero-visual {
    margin-top: var(--s8);
    order: -1;
  }
  
  .hero-visual-card {
    max-width: 100%;
    padding: var(--s4);
  }
  
  /* Hero stats mobile optimization */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s4);
    margin-top: var(--s8);
  }
  
  .hero-stat-val {
    font-size: 20px;
  }
  
  .hero-stat-label {
    font-size: 12px;
  }
  
  .text-h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
  
  .text-h3 {
    font-size: clamp(20px, 5vw, 24px);
  }
  
  /* Button optimization */
  .btn {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  /* Card optimization */
  .card {
    padding: var(--s4);
    margin-bottom: var(--s4);
  }
  
  /* Team cards mobile optimization */
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}
  .team-card {
    padding: var(--s4);
    min-height: 320px;
  }
  
  .team-card-image {
    width: 100px;
    height: 100px;
  }
  
  .team-name {
    font-size: 16px;
  }
  
  .team-designation {
    font-size: 12px;
  }
  
  .team-bio {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Achievement cards mobile */
  .achievement-card {
    width: 280px;
    height: 200px;
  }
  
  .achievement-card .image-container {
    height: 140px;
  }
  
  /* Hero stats single column on very small screens */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }
@media (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .nav-link,
  .team-linkedin,
  a[href] {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved button spacing */
  .btn {
    padding: 12px 20px;
  }
  
  /* Navigation touch optimization */
  .nav-hamburger {
    width: 48px;
    height: 48px;
  }
  
  .nav-links .nav-link {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  /* Form elements touch optimization */
  input, textarea, select {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 20px 0;
  }
  
  .hero-content {
    gap: var(--s4);
    flex-direction: row;
    align-items: center;
  }
  
  .hero-visual {
    order: 0;
    margin-top: 0;
    flex: 1;
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s2);
  }
@media (max-width: 767px) {
  /* Optimize scroll performance */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Prevent text selection on UI elements */
  .nav, .btn, .card, .team-card {
    -webkit-user-select: none;
    user-select: none;
  }
  p, .team-bio, .text-body {
    -webkit-user-select: text;
    user-select: text;
  .animate-on-scroll {
    transition-duration: 0.3s;
  .ticker-track {
    animation-duration: 8s;
  body {
    min-height: -webkit-fill-available;
  input, textarea, select {
    font-size: 16px !important;
  .nav {
    padding-top: env(safe-area-inset-top);
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  main {
    padding-top: 60px;
  img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
  .hero-orb {
    display: none;
  .card, .team-card, .btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  .card:hover, .team-card:hover {
    transform: translateY(-2px);
  .nav {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  *:focus {
    outline: 3px solid var(--violet-600);
    outline-offset: 2px;
  .text-muted {
    color: var(--ink-600);
  p, .text-body {
    line-height: 1.6;
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--s4);
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  .achievements-gallery {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: 0 16px;
  .section {
    padding: var(--s12) 0;
  .container {
    margin-bottom: var(--s8);
  .loading-placeholder {
    animation-duration: 1s;
  .btn, .card, .nav-link {
    transition-duration: 0.2s;
  img[loading="lazy"] {
    content-visibility: auto;
  .section-label {
    font-size: 12px;
  .team-tag {
    font-size: 10px;
    padding: 3px 8px;
  .achievement-title {
    font-size: 13px;
  .hero-headline {
    line-height: 1.1;
  .text-h2 {
    line-height: 1.2;
  .btn:active {
    transform: scale(0.98);
  .card:active, .team-card:active {
    transform: scale(0.99);
  .nav-link:active {
    background: rgba(108, 77, 255, 0.1);
  .hero-grid {
    display: none;
  .hero-content > div:first-child {
    text-align: center;
  .about .grid-2 {
    gap: var(--s8);
  .awards-ticker {
    margin: var(--s6) 0;
  }

  .ticker-item {
    font-size: 14px;
    padding: 0 var(--s4);
  }
}


/* Missing closing braces fix */
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

/* Enhanced DiaCue Product Images - Section Specific */
.diacue-enhanced .diacue-product-images.enhanced-images {
  margin-top: 24px;
  gap: 20px;
}

.diacue-enhanced .product-img-item.enhanced-img {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.diacue-enhanced .product-img-item.enhanced-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(124, 58, 237, 0.2);
}

.diacue-enhanced .product-img-item.enhanced-img img {
  width: 100%;
  height: auto;
  max-width: 280px;
  min-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.diacue-enhanced .product-img-item.enhanced-img:hover img {
  transform: scale(1.02);
}

.diacue-enhanced .product-img-item.enhanced-img .img-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-700);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Enhanced spacing and layout for DiaCue section */
.diacue-enhanced .diacue-product-images.enhanced-images {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 28px;
  padding: 0 16px;
}

/* Responsive enhancements for DiaCue images */
@media (max-width: 768px) {
  .diacue-enhanced .diacue-product-images.enhanced-images {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .diacue-enhanced .product-img-item.enhanced-img {
    max-width: 300px;
    width: 100%;
  }
  
  .diacue-enhanced .product-img-item.enhanced-img img {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .diacue-enhanced .product-img-item.enhanced-img {
    padding: 16px;
    max-width: 280px;
  }
  
  .diacue-enhanced .product-img-item.enhanced-img img {
    max-width: 200px;
    min-height: 160px;
  }
}

/* Enhanced visual hierarchy for DiaCue section */
.diacue-enhanced .kit-display {
  margin-bottom: 20px;
}

.diacue-enhanced .floating-stats {
  margin-top: 32px;
}
/* Enhanced LinkedIn Integration for Dr. Soumya Sunder Dash */
.team-name-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.team-name-link:hover {
  color: #0077b5;
  text-decoration: none;
}

.team-name-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0077b5, #00a0dc);
  transition: width 0.3s ease;
}

.team-name-link:hover::after {
  width: 100%;
}

/* LinkedIn Connect Button */
.linkedin-connect-btn {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.connect-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

.connect-linkedin:hover {
  background: linear-gradient(135deg, #005885 0%, #0077b5 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.3);
  color: white;
  text-decoration: none;
}

.connect-linkedin svg {
  transition: transform 0.3s ease;
}

.connect-linkedin:hover svg {
  transform: scale(1.1);
}

/* Enhanced hover effect for Dr. Soumya's card */
.team-card:has(.team-name-link) {
  position: relative;
  overflow: hidden;
}

.team-card:has(.team-name-link)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0077b5, #00a0dc);
  opacity: 0;
  transition: opacity 0.3s ease;
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
}

.team-card:has(.team-name-link):hover::before {
  opacity: 0.1;
}

/* LinkedIn icon overlay on hover */
.team-card:has(.team-name-link)::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230077b5'%3E%3Cpath d='M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.team-card:has(.team-name-link):hover::after {
  opacity: 0.8;
  transform: scale(1);
}

/* Mobile responsiveness for LinkedIn features */
@media (max-width: 768px) {
  .connect-linkedin {
    font-size: 12px;
    padding: 6px 12px;
    gap: 6px;
  }
  
  .linkedin-connect-btn {
    margin-top: 12px;
    padding-top: 12px;
  }
  
  .team-card:has(.team-name-link)::after {
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
  }
}

/* Tooltip enhancement */
.team-name-link[title]:hover::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 4px;
}

/* ============================================================
UTILITY CLASSES FOR INLINE STYLE FIXES
============================================================ */

/* Common spacing utilities */
.mb-s5 { margin-bottom: var(--s5); }
.mb-s6 { margin-bottom: var(--s6); }
.mb-s8 { margin-bottom: var(--s8); }
.mb-s10 { margin-bottom: var(--s10); }
.mb-s16 { margin-bottom: var(--s16); }
.mb-s20 { margin-bottom: var(--s20); }
.mt-s5 { margin-top: var(--s5); }
.mt-s6 { margin-top: var(--s6); }
.mt-s16 { margin-top: var(--s16); }
.mt-s20 { margin-top: var(--s20); }

/* Padding utilities */
.p-s6 { padding: var(--s6); }
.p-s10 { padding: var(--s10); }

/* Text alignment */
.text-center { text-align: center; }

/* Line height utilities */
.lh-18 { line-height: 1.8; }

/* Background utilities */
.bg-white { background: #FFFFFF; }

/* Max width utilities */
.max-w-700 { max-width: 700px; }
.max-w-600 { max-width: 600px; }

/* Margin auto utilities */
.mx-auto { margin: 0 auto; }

/* Flex utilities */
.justify-center { justify-content: center; }

/* Section padding utilities */
.section-padding { padding: var(--s24) 0; }

/* Hero stat span styling */
.hero-stat-span {
  font-size: 16px;
  font-weight: 500;
}

/* Impact number card specific styles */
.impact-num-green {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Specific positioning for Saumyashree Swain's image to show more of the person */
img[alt="Saumyashree Swain"].team-avatar {
  object-position: center 20%;
}
/* Navigation button specific styling */
.nav-cta .btn {
  padding: 10px 20px;
  font-size: 13px;
}
/* Section specific styles */
.section-label-mb { margin-bottom: var(--s5); }
.text-h2-mb { margin-bottom: var(--s5); }
.text-body-lg-mb { margin-top: var(--s5); margin-bottom: var(--s6); }
.text-body-mb { margin-bottom: var(--s8); }
.container-mt { margin-top: var(--s20); }
.container-mt-16 { margin-top: var(--s16); }
.grid-gap { gap: var(--s16); }
.grid-gap-6 { gap: var(--s6); }
.card-padding { padding: var(--s10); }
.card-padding-6 { padding: var(--s6); }
.impact-section-mb { margin-top: var(--s16); margin-bottom: var(--s20); }
.text-h2-mb-8 { margin-bottom: var(--s8); }
.partner-section-mt { margin-top: var(--space-lg) !important; }
.partner-section-mb { margin-bottom: 0 !important; }
/* Mission card quote styling */
.mission-quote {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-700);
  line-height: 1.5;
  margin-bottom: var(--s6);
  position: relative;
  z-index: 1;
}

.mission-attribution {
  font-size: 13px;
  color: var(--ink-400);
  position: relative;
  z-index: 1;
}

/* Grid gap utilities */
.grid-2-gap { gap: var(--s16); }
/* Partnership section specific styles - override to use consistent spacing */
.partner-section {
  background: #FFFFFF;
  padding: var(--space-3xl) 0 !important; /* Use consistent spacing instead of var(--s24) */
}
}

.partner-content {
  max-width: 700px;
  margin: 0 auto;
}

.partner-logos-container {
  margin-top: var(--s16);
}

.partner-logos-title {
  margin-bottom: var(--s6);
  color: var(--ink-600);
}

.partner-logos-wrapper {
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}
/* Additional utility classes for common inline styles */
.container-sections {
  margin-top: var(--s20);
}

.container-sections-16 {
  margin-top: var(--s16);
}

.card-sections {
  padding: var(--s10);
}

.text-body-sections {
  line-height: 1.8;
}

.impact-cards {
  padding: var(--s6);
  text-align: center;
}

.impact-icons {
  font-size: 32px;
  margin-bottom: var(--s3);
}

.impact-titles {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--s2);
  color: var(--ink-800);
}

.grid-3-sections {
  gap: var(--s6);
}
/* Enhanced visibility for image labels */
.img-label {
  background: var(--ink-800) !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
/* ============================================================
COMPREHENSIVE INLINE STYLE FIXES
============================================================ */

/* Hero visual dashboard styles */
.hero-dashboard {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dashboard-card {
  background: linear-gradient(145deg, #fff, #faf5ff);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(124,58,237,0.15), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(124,58,237,0.12);
  text-align: center;
  min-width: 200px;
}

.hero-dashboard-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-700);
  margin-bottom: 8px;
}

.hero-dashboard-score {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dashboard-status {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 4px;
}

.hero-chart-container {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
  justify-content: center;
}

.hero-chart-bar-1 {
  width: 12px;
  height: 30%;
  background: linear-gradient(var(--violet-500), var(--violet-600));
  border-radius: 3px;
  opacity: 0.6;
  animation: barGrow 2s 0s ease-in-out infinite alternate;
}

.hero-chart-bar-2 {
  width: 12px;
  height: 55%;
  background: linear-gradient(var(--violet-500), var(--violet-600));
  border-radius: 3px;
  opacity: 0.7;
  animation: barGrow 2s 0.3s ease-in-out infinite alternate;
}

.hero-chart-bar-3 {
  width: 12px;
  height: 70%;
  background: linear-gradient(var(--violet-500), var(--violet-400));
  border-radius: 3px;
  opacity: 0.8;
  animation: barGrow 2s 0.6s ease-in-out infinite alternate;
}

.hero-chart-bar-4 {
  width: 12px;
  height: 90%;
  background: linear-gradient(var(--violet-400), var(--violet-300));
  border-radius: 3px;
  animation: barGrow 2s 0.9s ease-in-out infinite alternate;
}

.hero-chart-bar-5 {
  width: 12px;
  height: 75%;
  background: linear-gradient(var(--violet-500), var(--violet-400));
  border-radius: 3px;
  opacity: 0.85;
  animation: barGrow 2s 1.2s ease-in-out infinite alternate;
}

.hero-chart-bar-6 {
  width: 12px;
  height: 60%;
  background: linear-gradient(var(--violet-500), var(--violet-600));
  border-radius: 3px;
  opacity: 0.7;
  animation: barGrow 2s 1.5s ease-in-out infinite alternate;
}

.hero-chart-bar-7 {
  width: 12px;
  height: 85%;
  background: linear-gradient(var(--violet-400), var(--violet-300));
  border-radius: 3px;
  opacity: 0.9;
  animation: barGrow 2s 1.8s ease-in-out infinite alternate;
}

.hero-chart-label {
  font-size: 10px;
  color: var(--ink-300);
  margin-top: 6px;
}

.hero-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.hero-tech-item {
  text-align: center;
}

.hero-tech-icon {
  font-size: 18px;
  font-weight: 700;
}

.hero-tech-icon-1 { color: var(--violet-700); }
.hero-tech-icon-2 { color: var(--violet-600); }
.hero-tech-icon-3 { color: #059669; }

.hero-tech-label {
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 2px;
}

/* Remove duplicate CSS classes that were added multiple times */
/* ============================================================
ADDITIONAL COMPREHENSIVE FIXES
============================================================ */

/* Chart and visualization styles */
.donut-legend-dot-violet {
  background: var(--violet-600);
}

.donut-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.donut-legend-text {
  flex: 1;
  font-size: 13px;
}

.donut-legend-percentage {
  font-weight: 700;
  font-size: 13px;
  color: var(--violet-700);
}

/* Contact form styles */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.contact-form-full {
  grid-column: 1 / -1;
}

/* CTA section styles */
.cta-section-padding {
  padding: var(--s20) 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s12);
}

/* Footer styles */
.footer-section {
  background: var(--ink-900);
  color: var(--ink-100);
  padding: var(--s20) 0 var(--s10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s16);
}

.footer-bottom {
  padding-top: var(--s8);
  border-top: 1px solid var(--ink-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
}

/* Remove unnecessary duplicate classes and clean up */
/* ============================================================
ENHANCED PARTNERS SECTION STYLING
============================================================ */

/* Beautiful Partners Section */
.partner-logos-title {
  margin-bottom: var(--s8);
  color: var(--ink-700);
  position: relative;
  font-weight: 600;
}

.partner-logos-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
  border-radius: 2px;
}

.partner-logos-wrapper {
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  gap: var(--s5);
}

/* Enhanced Partner Badges */
.partner-badge {
  padding: var(--s4) var(--s6);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-700);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.partner-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.1), transparent);
  transition: left 0.6s ease;
}

.partner-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 24px rgba(124,58,237,0.15),
    0 4px 8px rgba(0,0,0,0.08);
  border-color: var(--violet-300);
  color: var(--violet-700);
}

.partner-badge:hover::before {
  left: 100%;
}

/* Add subtle icons to partner badges */
.partner-badge:nth-child(1)::after {
  content: '🏥';
  margin-left: 8px;
  font-size: 16px;
}

.partner-badge:nth-child(2)::after {
  content: '🔬';
  margin-left: 8px;
  font-size: 16px;
}

.partner-badge:nth-child(3)::after {
  content: '🏛️';
  margin-left: 8px;
  font-size: 16px;
}

/* Staggered animation for partner badges */
.partner-badge:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.partner-badge:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.partner-badge:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced container styling */
.partner-logos-container {
  margin-top: var(--s16);
  padding: var(--s10) var(--s6);
  background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
  border-radius: var(--r-xl);
  border: 1px solid rgba(124,58,237,0.08);
  position: relative;
  overflow: hidden;
}

.partner-logos-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124,58,237,0.03) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

/* Responsive enhancements */
@media (max-width: 768px) {
  .partner-logos-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
  }
  
  .partner-badge {
    min-width: 200px;
    text-align: center;
  }
  
  .partner-logos-container {
    margin-top: var(--s12);
    padding: var(--s8) var(--s4);
  }
}
/* ============================================================
ENHANCED TYPOGRAPHY WITH NEW FONTS
============================================================ */

/* Enhanced body text with Inter */
body {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'pnum' 1, 'tnum' 0, 'onum' 1, 'lnum' 0, 'dlig' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Enhanced headings with better spacing */
.text-h1, .text-h2, .text-h3, .hero-headline {
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1, 'hlig' 1;
  letter-spacing: -0.02em;
}

/* Enhanced display text with Playfair Display */
.text-display, .hero-headline {
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1, 'swsh' 1;
  letter-spacing: -0.03em;
}

/* Better button typography */
.btn {
  font-feature-settings: 'kern' 1, 'liga' 1;
  letter-spacing: 0.01em;
}

/* Enhanced partner badges typography */
.partner-badge {
  font-feature-settings: 'kern' 1, 'liga' 1;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Improved readability for body text */
.text-body, .text-body-lg, p {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  line-height: 1.7;
}

/* Enhanced monospace for code */
.text-mono, code, pre {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'zero' 1;
}

/* Responsive font scaling improvements */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .partner-badge {
    font-size: 15px;
    font-weight: 600;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}
/* ============================================================
FORCE FONT CHANGES - OVERRIDE ALL EXISTING FONTS
============================================================ */

/* Force Inter for all body text */
body, p, div, span, a, button, input, textarea, select, 
.text-body, .text-body-lg, .text-sm, .text-xs,
.btn, .nav-link, .partner-badge, .team-name, .team-bio,
.card, .impact-card-label, .hero-stat-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force Source Sans 3 for all headings */
h1, h2, h3, h4, h5, h6,
.text-h1, .text-h2, .text-h3, .text-display,
.hero-headline, .section-title, .product-title,
.partner-logos-title {
  font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force JetBrains Mono for code */
code, pre, .text-mono {
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace !important;
}

/* Ensure partner badges use Inter */
.partner-badge {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600 !important;
}

/* Override any remaining Sora references */
* {
  font-family: inherit;
}

/* Specific overrides for common elements */
.mission-quote {
  font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.nav-logo, .nav-links, .nav-cta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Enhanced Typography for Better Readability */
body {
  letter-spacing: -0.01em !important;
  line-height: 1.6 !important;
}

h1, h2, h3, h4, h5, h6, .hero-headline, .text-h1, .text-h2, .text-h3 {
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.hero-headline {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

p, .text-body, .text-body-lg {
  line-height: 1.7 !important;
  letter-spacing: -0.005em !important;
}

.btn {
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.nav-link {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Improve text contrast and clarity */
.text-muted {
  color: var(--ink-600) !important;
}

.section-title, .product-title {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Enhanced readability for cards and content */
.card p, .team-bio, .impact-card-label {
  line-height: 1.6 !important;
  letter-spacing: -0.005em !important;
}

/* ============================================================
UTILITY CLASSES FOR INLINE STYLES
============================================================ */

/* Spacing utilities */
.mt-s16 { margin-top: var(--s16); }
.mt-s20 { margin-top: var(--s20); }
.mb-s5 { margin-bottom: var(--s5); }
.mb-s6 { margin-bottom: var(--s6); }
.mb-s8 { margin-bottom: var(--s8); }
.mb-s12 { margin-bottom: var(--s12); }
.mb-s16 { margin-bottom: var(--s16); }
.mb-s20 { margin-bottom: var(--s20); }
.mt-mb-s16-s20 { margin-top: var(--s16); margin-bottom: var(--s20); }

/* Padding utilities */
.p-s6 { padding: var(--s6); }
.p-s10 { padding: var(--s10); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

/* Text utilities */
.text-center { text-align: center; }
.text-white { color: white; }
.line-height-1-8 { line-height: 1.8; }

/* Layout utilities */
.max-width-600 { max-width: 600px; margin: 0 auto; }
.max-width-700 { max-width: 700px; margin: 0 auto; }
.gap-s6 { gap: var(--s6); }
.gap-s8 { gap: var(--s8); }

/* Flex utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-gap-32 { gap: 32px; }

/* Contact info utilities */
.contact-info-secondary { display: block; margin-top: 4px; }
.social-section { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid rgba(0,0,0,0.06); }
.social-title { font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: var(--s4); }

/* Footer utilities */
.footer-logo-spacing { margin-bottom: 12px; display: inline-block; }
.footer-logo-filter { filter: brightness(0) invert(1); }
.footer-contact-section { margin-top: var(--s6); }
.footer-contact-text { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.8; }

/* CTA utilities */
.cta-subtitle { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; line-height: 1.75; }
.contact-row-flex { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.contact-item-flex { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 14px; }

/* Partner utilities */
.partner-description { margin-bottom: var(--s6); max-width: 400px; margin-left: auto; margin-right: auto; }

/* Hero utilities */
.hero-tag-hidden { display: none; }

/* Fallback utilities */
.gibud-fallback-hidden { display: none; }
.pause-icon-hidden { display: none; }

/* Research badge utilities */
.research-badges-flex { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Contact header utilities */
.contact-header-title { margin-bottom: var(--s6); color: var(--ink-900); }
.contact-header-text { margin-bottom: var(--s8); }

/* Grid utilities */
.grid-gap-s6 { gap: var(--s6); }

/* Card utilities */
.card-center { text-align: center; }
.card-p-s6 { padding: var(--s6); }

/* Section utilities */
.section-mb-s5 { margin-bottom: var(--s5); }
.section-mb-s8 { margin-bottom: var(--s8); }

/* ============================================================
END UTILITY CLASSES
============================================================ */

/* ============================================================
COMPREHENSIVE RESPONSIVE UTILITIES
============================================================ */

/* Responsive Display Utilities */
@media (max-width: 479px) {
  .hidden-xs { display: none !important; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hidden-sm { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hidden-md { display: none !important; }
}

@media (min-width: 1024px) {
  .hidden-lg { display: none !important; }
}

@media (max-width: 767px) {
  .hidden-mobile { display: none !important; }
  .show-mobile { display: block !important; }
}

@media (min-width: 768px) {
  .hidden-desktop { display: none !important; }
  .show-desktop { display: block !important; }
  .show-mobile { display: none !important; }
}

/* Responsive Spacing Utilities */
@media (max-width: 767px) {
  /* Mobile Margins */
  .m-mobile-0 { margin: 0 !important; }
  .mt-mobile-sm { margin-top: var(--space-sm) !important; }
  .mt-mobile-md { margin-top: var(--space-md) !important; }
  .mt-mobile-lg { margin-top: var(--space-lg) !important; }
  .mb-mobile-sm { margin-bottom: var(--space-sm) !important; }
  .mb-mobile-md { margin-bottom: var(--space-md) !important; }
  .mb-mobile-lg { margin-bottom: var(--space-lg) !important; }
  
  /* Mobile Padding */
  .p-mobile-sm { padding: var(--space-sm) !important; }
  .p-mobile-md { padding: var(--space-md) !important; }
  .p-mobile-lg { padding: var(--space-lg) !important; }
  .px-mobile-sm { padding-left: var(--space-sm) !important; padding-right: var(--space-sm) !important; }
  .px-mobile-md { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }
  .py-mobile-sm { padding-top: var(--space-sm) !important; padding-bottom: var(--space-sm) !important; }
  .py-mobile-md { padding-top: var(--space-md) !important; padding-bottom: var(--space-md) !important; }
}

/* Responsive Text Utilities */
@media (max-width: 767px) {
  .text-mobile-center { text-align: center !important; }
  .text-mobile-left { text-align: left !important; }
  .text-mobile-sm { font-size: var(--text-sm) !important; }
  .text-mobile-base { font-size: var(--text-base) !important; }
  .text-mobile-lg { font-size: var(--text-lg) !important; }
}

/* Responsive Flex Utilities */
@media (max-width: 767px) {
  .flex-mobile-col { flex-direction: column !important; }
  .flex-mobile-center { justify-content: center !important; align-items: center !important; }
  .items-mobile-center { align-items: center !important; }
  .justify-mobile-center { justify-content: center !important; }
}

/* Responsive Width Utilities */
@media (max-width: 767px) {
  .w-mobile-full { width: 100% !important; }
  .w-mobile-auto { width: auto !important; }
  .max-w-mobile-full { max-width: 100% !important; }
}

/* Responsive Grid Utilities */
@media (max-width: 767px) {
  .grid-mobile-1 { grid-template-columns: 1fr !important; }
  .gap-mobile-sm { gap: var(--space-sm) !important; }
  .gap-mobile-md { gap: var(--space-md) !important; }
  .gap-mobile-lg { gap: var(--space-lg) !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .gap-tablet-md { gap: var(--space-lg) !important; }
}

/* Responsive Image Utilities */
@media (max-width: 767px) {
  .img-mobile-center {
    display: block !important;
    margin: 0 auto !important;
  }
  
  .img-mobile-full {
    width: 100% !important;
    height: auto !important;
  }
}

/* Responsive Button Utilities */
@media (max-width: 767px) {
  .btn-mobile-full {
    width: 100% !important;
    display: block !important;
  }
  
  .btn-mobile-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-md) !important;
  }
  
  .btn-mobile-stack .btn {
    width: 100% !important;
  }
}

/* Responsive Container Utilities */
@media (max-width: 479px) {
  .container-mobile-xs {
    padding-left: var(--space-sm) !important;
    padding-right: var(--space-sm) !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .container-mobile-sm {
    padding-left: var(--space-md) !important;
    padding-right: var(--space-md) !important;
  }
}

/* Responsive Section Utilities */
@media (max-width: 767px) {
  .section-mobile-sm {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
  }
  
  .section-mobile-md {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-3xl) !important;
  }
}

/* Responsive Card Utilities */
@media (max-width: 767px) {
  .card-mobile-sm {
    padding: var(--space-md) !important;
  }
  
  .card-mobile-stack {
    margin-bottom: var(--space-md) !important;
  }
}

/* Responsive Navigation Utilities */
@media (max-width: 767px) {
  .nav-mobile-center {
    text-align: center !important;
  }
  
  .nav-mobile-full {
    width: 100% !important;
  }
}

/* Responsive Typography Scale */
@media (max-width: 479px) {
  .hero-headline {
    font-size: var(--text-2xl) !important;
    line-height: 1.3 !important;
  }
  
  .section-title {
    font-size: var(--text-xl) !important;
  }
  
  .card-title {
    font-size: var(--text-lg) !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .hero-headline {
    font-size: var(--text-3xl) !important;
    line-height: 1.2 !important;
  }
  
  .section-title {
    font-size: var(--text-2xl) !important;
  }
}

/* Responsive Overflow Utilities */
@media (max-width: 767px) {
  .overflow-mobile-hidden {
    overflow: hidden !important;
  }
  
  .overflow-x-mobile-auto {
    overflow-x: auto !important;
  }
  
  .overflow-y-mobile-auto {
    overflow-y: auto !important;
  }
}

/* Responsive Position Utilities */
@media (max-width: 767px) {
  .position-mobile-static {
    position: static !important;
  }
  
  .position-mobile-relative {
    position: relative !important;
  }
}

/* Responsive Z-Index Utilities */
@media (max-width: 767px) {
  .z-mobile-auto {
    z-index: auto !important;
  }
  
  .z-mobile-10 {
    z-index: 10 !important;
  }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767px) {
  /* Reduce animations on mobile for better performance */
  .reduce-mobile-motion * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Optimize images for mobile */
  .optimize-mobile-images img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch-friendly utilities */
@media (pointer: coarse) {
  .touch-target {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  .touch-padding {
    padding: var(--space-md) !important;
  }
}

/* High DPI optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .crisp-edges {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 767px) and (orientation: landscape) {
  .landscape-mobile-height {
    min-height: 50vh !important;
  }
  
  .landscape-mobile-padding {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
  }
}

/* Print optimizations */
@media print {
  .print-hidden {
    display: none !important;
  }
  
  .print-visible {
    display: block !important;
  }
  
  .print-break-before {
    page-break-before: always !important;
  }
  
  .print-break-after {
    page-break-after: always !important;
  }
  
  .print-no-break {
    page-break-inside: avoid !important;
  }
}

/* ============================================================
RESPONSIVE COMPONENT OVERRIDES
============================================================ */

/* Ensure all existing components are responsive */
@media (max-width: 767px) {
  /* Override any fixed widths */
  .hero-visual-card,
  .team-card,
  .product-card,
  .achievement-card,
  .typewriter-story-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Ensure proper spacing */
  .grid-2,
  .grid-3,
  .grid-4,
  .team-grid,
  .product-grid,
  .achievement-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }
  
  /* Mobile-friendly buttons */
  .btn-group {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-sm) !important;
  }
  
  .btn-group .btn {
    width: 100% !important;
  }
  
  /* Mobile navigation adjustments */
  .nav-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }
  
  /* Mobile form adjustments */
  .form-group {
    margin-bottom: var(--space-md) !important;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    width: 100% !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
}

/* Final responsive safety net */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================================
SECTION SPACING UTILITIES
============================================================ */

/* Section margin top utilities */
.section-mt-16 {
  margin-top: var(--space-4xl);
}

.section-mt-20 {
  margin-top: var(--space-4xl);
}

.section-mt-020 {
  margin-top: var(--space-2xl);
}

/* Section margin bottom utilities */
.section-mb-20 {
  margin-bottom: var(--space-4xl);
}

/* Container sections spacing */
.container-sections {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* Card sections spacing */
.card-sections {
  margin-bottom: var(--space-lg);
}

.text-body-sections {
  margin-bottom: var(--space-md);
}

/* Responsive section spacing adjustments */
@media (min-width: 768px) {
  .section-mt-16,
  .section-mt-20 {
    margin-top: var(--space-4xl);
  }
  
  .section-mt-020 {
    margin-top: var(--space-3xl);
  }
  
  .container-sections {
    margin-top: var(--space-4xl);
    margin-bottom: var(--space-4xl);
  }
}

@media (min-width: 1024px) {
  .section-mt-16,
  .section-mt-20 {
    margin-top: calc(var(--space-4xl) * 1.5);
  }
  
  .container-sections {
    margin-top: calc(var(--space-4xl) * 1.5);
    margin-bottom: calc(var(--space-4xl) * 1.5);
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Responsive images final override */
img, video, iframe, embed, object {
  max-width: 100% !important;
  height: auto !important;
}

/* Responsive table */
@media (max-width: 767px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}