/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Inter Fallback';src: local("Arial");ascent-override: 90.44%;descent-override: 22.52%;line-gap-override: 0.00%;size-adjust: 107.12%
}.__className_f367f3 {font-family: 'Inter', 'Inter Fallback';font-style: normal
}.__variable_f367f3 {--font-inter: 'Inter', 'Inter Fallback'
}

/* Optimized Navigation Styles */

/* Dropdown animation classes */
.nav-dropdown {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown.inactive {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}

/* Mobile menu animations */
.mobile-menu-backdrop {
  transition: opacity 0.3s ease;
}

.mobile-menu-panel {
  transition: transform 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    transition-duration: 0.01ms !important;
  }
}

/* Performance optimizations */
.nav-header {
  contain: layout style;
  /* Removed will-change to prevent repaint issues */
}

.nav-dropdown {
  contain: layout style paint;
}

/* GPU acceleration hints */
.nav-item-hover {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Simplified hover states */
.nav-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Logo animation */
.nav-logo {
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo:active {
  transform: scale(0.98);
}

/* CTA button optimized animation */
.nav-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-cta:active {
  transform: scale(0.98);
}

/* Icon rotation for dropdown */
.dropdown-chevron {
  transition: transform 0.2s ease;
}

.dropdown-chevron.rotated {
  transform: rotate(180deg);
}

/* Mobile menu icon transition */
.menu-icon-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
}

.menu-icon,
.close-icon {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-icon.hidden {
  opacity: 0;
  transform: rotate(90deg);
}

.close-icon.hidden {
  opacity: 0;
  transform: rotate(-90deg);
}
/* Hero CTA Carousel Styles */

/* Ensure smooth scrolling and touch interactions */
.hero-cta-carousel {
  -webkit-tap-highlight-color: transparent;
}

/* Style navigation dots with glassmorphism effect */
.hero-cta-dots {
  position: relative;
  z-index: 10;
}

.hero-cta-dot {
  position: relative;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-dot:hover {
  transform: scale(1.2);
}

.hero-cta-dot.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Carousel container adjustments */
.hero-cta-carousel .embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

.hero-cta-carousel .embla__slide {
  position: relative;
  flex: 0 0 auto;
}

/* Smooth transitions */
.hero-cta-carousel .embla__slide__inner {
  transition: opacity 0.3s ease;
}

/* Active slide emphasis */
.hero-cta-carousel .embla__slide.is-selected .hero-cta-card {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Ensure cards maintain proper height */
.hero-cta-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  .hero-cta-card {
    min-height: 380px;
  }
}

/* Touch feedback */
@media (hover: none) {
  .hero-cta-carousel .embla__slide:active .hero-cta-card {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Prevent text selection during swipe */
.hero-cta-carousel {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Allow text selection within cards */
.hero-cta-card p,
.hero-cta-card h3 {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
/* Imports moved to index.css to avoid duplication */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 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;
  }
}

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

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

/* Force images to fill container height */
img.fill-height {
  min-height: 100%;
  width: auto;
  min-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Fix for hero section responsiveness */
@media (max-width: 768px) {
  .glass-hero {
    min-height: 100vh;
    height: auto;
  }
}

/* Ensure proper email input sizing */
input[type="email"] {
  min-width: 0;
  width: 100%;
}

/* Fix for background images on mobile */
@media (max-width: 640px) {
  section[id="roadmap"] {
    min-height: auto;
  }
}

/* Mobile CTA scrolling */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  overscroll-behavior-x: contain;
}

.overflow-x-auto::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Touch action for better mobile scrolling */
.touch-pan-x {
  touch-action: pan-x;
}

/* Add visual scroll indicators on mobile */
@media (max-width: 1024px) {
  .overflow-x-auto {
    position: relative;
  }
  
  /* Gradient fade indicators */
  .overflow-x-auto::before,
  .overflow-x-auto::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 1;
  }
  
  .overflow-x-auto::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
  }
  
  .overflow-x-auto::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.1), transparent);
  }
}

/* Safe area padding for notched devices */
.px-safe {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* Typography Global Styles */

/* CSS Custom Properties for Typography */
:root {
  /* Enhanced kerning values */
  --kern-tight: -0.04em;
  --kern-normal: -0.02em;
  --kern-wide: 0.015em;
  --kern-wider: 0.06em;
  --kern-widest: 0.08em;
  
  /* Optical size adjustments - removed as they're not used */
}

/* Simplified Font Settings for Performance */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto; /* Changed from optimizeLegibility for better performance */
  font-synthesis: none;
}

/* Simplified font families with CSS variables */
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-feature-settings: "kern" 1;
}

.font-sans {
  font-family: var(--font-inter, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "kern" 1;
}

/* Headings Kerning Optimization */
h1, h2, h3, h4, h5, h6,
.heading1, .heading2, .heading3, .heading4 {
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

/* Improved Letter Spacing for Different Sizes with better optical adjustments */
.text-xs { letter-spacing: 0.05em; }
.text-sm { letter-spacing: 0.025em; }
.text-base { letter-spacing: normal; }
.text-lg { letter-spacing: normal; }
.text-xl { letter-spacing: -0.005em; }
.text-2xl { letter-spacing: -0.01em; }
.text-3xl { letter-spacing: -0.015em; }
.text-4xl { letter-spacing: -0.02em; }
.text-5xl { letter-spacing: -0.025em; }
.text-6xl { letter-spacing: -0.03em; }
.text-7xl { letter-spacing: -0.035em; }
.text-8xl { letter-spacing: -0.04em; }
.text-9xl { letter-spacing: -0.045em; }

/* Uppercase Text Spacing */
.uppercase {
  letter-spacing: 0.1em;
  font-feature-settings: "kern" 1, "liga" 1, "cpsp" 1;
}

/* Brand Typography - Special Kerning for SGUA */
.brand-sgua {
  letter-spacing: 0.2em;
  font-feature-settings: "kern" 1, "liga" 0;
}

/* Optimize Line Heights for Readability */
.leading-relaxed {
  line-height: 1.625;
}

.leading-loose {
  line-height: 1.75;
}

/* Simplified body text */
p, .body-text {
  font-feature-settings: "kern" 1;
  -webkit-hyphens: none;
          hyphens: none; /* Disable auto-hyphenation for performance */
  line-height: 1.6; /* Ensure consistent line height */
}

/* Prevent Widows and Orphans */
p, h1, h2, h3, h4, h5, h6 {
  orphans: 3;
  widows: 3;
}

/* Responsive Font Sizing with Better Scaling */
@media (min-width: 640px) {
  .text-responsive {
    font-size: calc(1rem + 0.5vw);
  }
}

/* Simplified variable font settings */
@supports (font-variation-settings: normal) {
  .font-sans {
    font-family: var(--font-inter, 'Inter'), sans-serif;
  }
}

/* Playfair Display Optimization */
.font-serif {
  font-variant-numeric: lining-nums;
  font-variant-caps: normal;
}

/* Better Number Rendering */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Code Typography */
code, pre, .font-mono {
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0;
}

/* Improve CJK Font Rendering if needed */
:lang(zh), :lang(ja), :lang(ko) {
  font-feature-settings: "halt" 1;
  letter-spacing: 0;
}
/* Form Typography and Layout Improvements */

/* Base form styles with improved typography */
:root {
  --form-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --form-label-size: 0.875rem;
  --form-label-weight: 600;
  --form-label-spacing: 0.025em;
  --form-input-size: 0.9375rem;
  --form-input-line-height: 1.5;
  --form-helper-size: 0.8125rem;
  --form-spacing-unit: 0.5rem;
  --radius: 0.5rem;
  
  /* Enhanced form colors */
  --form-focus-ring: hsl(217.2, 91.2%, 59.8%);
  --form-focus-shadow: hsla(217, 91%, 60%, 0.25);
  --form-success: hsl(142, 76%, 36%);
  --form-error: hsl(0, 84.2%, 60.2%);
  --form-muted: rgba(110, 113, 119, 0.7); /* muted-foreground with opacity */
}

/* .form-typography class removed - CSS variables are already available globally from :root */

/* Mobile-first responsive typography */
@media (max-width: 640px) {
  :root {
    --form-label-size: 0.9375rem;
    --form-input-size: 1.0625rem;
    --form-helper-size: 0.8125rem;
  }
}

/* Form container improvements */
.form-container {
  font-family: var(--form-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Enhanced label styling */
.form-label-enhanced {
  font-size: var(--form-label-size);
  font-weight: var(--form-label-weight);
  letter-spacing: var(--form-label-spacing);
  line-height: 1.4;
  color: hsl(var(--foreground));
  margin-bottom: calc(var(--form-spacing-unit) * 1);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* Label with description */
.form-label-with-desc {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.form-label-desc {
  font-size: calc(var(--form-label-size) * 0.9);
  font-weight: 400;
  color: var(--form-muted);
  letter-spacing: normal;
}

/* Input field enhancements */
.form-input-enhanced {
  font-size: var(--form-input-size);
  line-height: var(--form-input-line-height);
  letter-spacing: 0.01em;
  padding: calc(var(--form-spacing-unit) * 1.75) calc(var(--form-spacing-unit) * 2.25);
  min-height: 48px; /* Better touch targets for mobile */
  transition: all 0.15s ease;
  background-color: hsl(var(--background));
  border: 1.5px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 0.75);
}

.form-input-enhanced:hover:not(:focus):not(:disabled) {
  border-color: rgba(228, 228, 231, 0.8); /* border with opacity */
  background-color: rgba(244, 244, 245, 0.3); /* muted bg with opacity */
}

/* Textarea specific improvements */
.form-textarea-enhanced {
  font-size: var(--form-input-size);
  line-height: 1.6;
  letter-spacing: 0.01em;
  padding: calc(var(--form-spacing-unit) * 1.5) calc(var(--form-spacing-unit) * 2);
  min-height: 120px;
  resize: vertical;
}

/* Select dropdown enhancements */
.form-select-enhanced {
  font-size: var(--form-input-size);
  line-height: var(--form-input-line-height);
  padding: calc(var(--form-spacing-unit) * 1.5) calc(var(--form-spacing-unit) * 2);
  min-height: 48px;
}

/* Form field spacing */
.form-field-spacing {
  margin-bottom: calc(var(--form-spacing-unit) * 3);
}

@media (max-width: 640px) {
  .form-field-spacing {
    margin-bottom: calc(var(--form-spacing-unit) * 3.5);
  }
}

/* Form group spacing for grid layouts */
.form-grid-spacing {
  gap: calc(var(--form-spacing-unit) * 2.5);
}

@media (max-width: 640px) {
  .form-grid-spacing {
    gap: calc(var(--form-spacing-unit) * 3);
  }
}

/* Helper text improvements */
.form-helper-enhanced {
  font-size: var(--form-helper-size);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: calc(var(--form-spacing-unit) * 0.75);
  color: hsl(var(--muted-foreground));
}

/* Error message styling */
.form-error-enhanced {
  font-size: var(--form-helper-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: calc(var(--form-spacing-unit) * 0.75);
  color: hsl(var(--destructive));
}

/* Button typography improvements */
.form-button-enhanced {
  font-size: var(--form-input-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: calc(var(--form-spacing-unit) * 2) calc(var(--form-spacing-unit) * 3);
  min-height: 48px;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .form-button-enhanced {
    padding: calc(var(--form-spacing-unit) * 2.25) calc(var(--form-spacing-unit) * 3);
    min-height: 52px;
  }
}

/* Focus states with improved visibility */
.form-input-enhanced:focus,
.form-textarea-enhanced:focus,
.form-select-enhanced:focus {
  outline: none;
  border-color: var(--form-focus-ring);
  box-shadow: 0 0 0 3px var(--form-focus-shadow);
}

/* Active state */
.form-input-enhanced:active:not(:disabled),
.form-textarea-enhanced:active:not(:disabled),
.form-select-enhanced:active:not(:disabled) {
  transform: translateY(0.5px);
}

/* Placeholder text styling */
.form-input-enhanced::-moz-placeholder, .form-textarea-enhanced::-moz-placeholder {
  color: rgba(110, 113, 119, 0.7); /* muted-foreground with opacity */
  font-size: calc(var(--form-input-size) * 0.95);
  letter-spacing: 0.01em;
}
.form-input-enhanced::placeholder,
.form-textarea-enhanced::placeholder {
  color: rgba(110, 113, 119, 0.7); /* muted-foreground with opacity */
  font-size: calc(var(--form-input-size) * 0.95);
  letter-spacing: 0.01em;
}

/* Card header improvements for forms */
.form-card-header {
  padding: calc(var(--form-spacing-unit) * 3) calc(var(--form-spacing-unit) * 4);
}

@media (max-width: 640px) {
  .form-card-header {
    padding: calc(var(--form-spacing-unit) * 2.5) calc(var(--form-spacing-unit) * 3);
  }
}

/* Card content spacing */
.form-card-content {
  padding: calc(var(--form-spacing-unit) * 3) calc(var(--form-spacing-unit) * 4);
}

@media (max-width: 640px) {
  .form-card-content {
    padding: calc(var(--form-spacing-unit) * 2) calc(var(--form-spacing-unit) * 3);
  }
}

/* Modal overlay improvements for mobile */
.form-modal-overlay {
  padding: calc(var(--form-spacing-unit) * 2);
}

@media (max-width: 640px) {
  .form-modal-overlay {
    padding: calc(var(--form-spacing-unit) * 1);
    align-items: flex-end;
  }
  
  .form-modal-content {
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* Improved readability for long forms */
.form-section-divider {
  margin: calc(var(--form-spacing-unit) * 4) 0;
  border-top: 1px solid hsl(var(--border));
}

/* Loading states */
.form-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success states */
.form-success {
  color: hsl(142, 76%, 36%);
  font-weight: 500;
}

/* Accessibility improvements */
.form-required-indicator {
  color: hsl(var(--destructive));
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1;
  margin-left: 0.125rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Visual field grouping */
.form-field-group {
  position: relative;
  padding: calc(var(--form-spacing-unit) * 2.5);
  background: rgba(244, 244, 245, 0.3); /* muted bg with opacity */
  border-radius: var(--radius);
  margin-bottom: calc(var(--form-spacing-unit) * 3);
}

.form-field-group-title {
  font-size: calc(var(--form-label-size) * 1.1);
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: calc(var(--form-spacing-unit) * 2);
  letter-spacing: 0.02em;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced {
    border-width: 2px;
  }
  
  .form-label-enhanced {
    font-weight: 600;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .form-input-enhanced,
  .form-textarea-enhanced,
  .form-select-enhanced,
  .form-button-enhanced {
    transition: none;
  }
}

/* Enhanced form sections with glassmorphism */
.form-section {
  position: relative;
  margin-bottom: calc(var(--form-spacing-unit) * 4);
  padding: calc(var(--form-spacing-unit) * 3);
  background: linear-gradient(to br, 
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.form-section:hover {
  background: linear-gradient(to br, 
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border-color: rgba(255, 255, 255, 0.08);
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: calc(var(--form-spacing-unit) * 2.5);
  padding-bottom: calc(var(--form-spacing-unit) * 1.5);
  border-bottom: 2px solid transparent;
  background: linear-gradient(to right, hsla(217, 91%, 60%, 0.3) 0%, transparent 100%) no-repeat bottom / 100% 2px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Progress indicator for multi-step forms */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: calc(var(--form-spacing-unit) * 4);
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: hsl(var(--border));
  transform: translateY(-50%);
  z-index: 0;
}

.form-progress-step {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 2px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
}

.form-progress-step.active {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.form-progress-step.completed {
  background: var(--form-success);
  border-color: var(--form-success);
  color: white;
}

/* Floating label pattern */
.form-field-floating {
  position: relative;
  margin-bottom: calc(var(--form-spacing-unit) * 3);
}

.form-field-floating input:not(:-moz-placeholder) + label {
  transform: translateY(-1.5rem) scale(0.85);
  color: hsl(var(--primary));
}

.form-field-floating input:not(:placeholder-shown) + label,
.form-field-floating input:focus + label {
  transform: translateY(-1.5rem) scale(0.85);
  color: hsl(var(--primary));
}

.form-field-floating label {
  position: absolute;
  left: calc(var(--form-spacing-unit) * 2.25);
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  font-size: var(--form-input-size);
  color: var(--form-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: hsl(var(--background));
  padding: 0 0.25rem;
}

/* Icon-enhanced inputs */
.form-input-with-icon {
  position: relative;
}

.form-input-icon {
  position: absolute;
  left: calc(var(--form-spacing-unit) * 2);
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--form-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.form-input-with-icon .form-input-enhanced {
  padding-left: calc(var(--form-spacing-unit) * 5.5);
}

.form-input-with-icon .form-input-enhanced:focus ~ .form-input-icon {
  color: hsl(var(--primary));
}

/* Character counter for textareas */
.form-textarea-wrapper {
  position: relative;
}

.form-char-counter {
  position: absolute;
  bottom: calc(var(--form-spacing-unit) * 1);
  right: calc(var(--form-spacing-unit) * 1.5);
  font-size: var(--form-helper-size);
  color: var(--form-muted);
  pointer-events: none;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.form-char-counter.warning {
  color: hsl(var(--destructive));
  background: rgba(239, 68, 68, 0.1);
}

/* Enhanced form card styling */
.form-modal-content {
  position: relative;
  overflow: visible;
}

.form-modal-content::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: linear-gradient(45deg, 
    hsla(217, 91%, 60%, 0.3) 0%,
    hsla(217, 91%, 60%, 0.1) 25%,
    transparent 50%,
    hsla(217, 91%, 60%, 0.1) 75%,
    hsla(217, 91%, 60%, 0.3) 100%
  );
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.5;
  animation: form-gradient-shift 8s ease-in-out infinite;
}

@keyframes form-gradient-shift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

/* Enhanced input focus states */
.form-input-enhanced:focus,
.form-textarea-enhanced:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.1), 0 0 20px -5px hsla(217, 91%, 60%, 0.3);
  background-color: hsl(var(--background));
}

/* Form button enhancements */
.form-button-enhanced {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.form-button-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, 
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.form-button-enhanced:hover::before {
  transform: translateX(100%);
}

/* Mobile-optimized form styles */
@media (max-width: 640px) {
  .form-section {
    padding: calc(var(--form-spacing-unit) * 2);
    margin-bottom: calc(var(--form-spacing-unit) * 3);
    border-radius: 0.75rem;
  }
  
  .form-section:first-child {
    margin-top: 0;
  }
  
  .form-input-enhanced,
  .form-textarea-enhanced {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: calc(var(--form-spacing-unit) * 2) calc(var(--form-spacing-unit) * 2.5);
    min-height: 52px;
  }
  
  .form-button-enhanced {
    font-size: 1rem;
    font-weight: 600;
    padding: calc(var(--form-spacing-unit) * 2.5) calc(var(--form-spacing-unit) * 3);
    min-height: 56px; /* Better touch target */
    width: 100%;
  }
  
  /* Stack form fields on mobile */
  .form-grid-spacing {
    grid-template-columns: 1fr;
    gap: calc(var(--form-spacing-unit) * 2.5);
  }
  
  /* Full-width select dropdowns on mobile */
  .form-select-enhanced {
    width: 100%;
  }
  
  /* Better label spacing on mobile */
  .form-label-enhanced {
    font-size: 0.9375rem;
    margin-bottom: calc(var(--form-spacing-unit) * 1.25);
  }
  
  /* Improve section titles on mobile */
  .form-section-title {
    font-size: 1.0625rem;
    padding-bottom: calc(var(--form-spacing-unit) * 1.25);
    margin-bottom: calc(var(--form-spacing-unit) * 2);
  }
  
  /* Better modal behavior on mobile */
  .form-modal-content {
    border-radius: 1.5rem 1.5rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Character counter positioning on mobile */
  .form-char-counter {
    bottom: calc(var(--form-spacing-unit) * 0.75);
    right: calc(var(--form-spacing-unit) * 1);
    font-size: 0.75rem;
  }
  
  /* Input icon adjustments */
  .form-input-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .form-input-with-icon .form-input-enhanced {
    padding-left: calc(var(--form-spacing-unit) * 5);
  }
}
/* Form Animation Styles */

/* Smooth entrance animations */
@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes formFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes formScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Form modal animations */
.form-modal-overlay {
  animation: formFadeIn 0.2s ease-out;
}

.form-modal-content {
  animation: formScaleIn 0.3s ease-out;
}

/* Section animations */
.form-section {
  animation: formSlideIn 0.4s ease-out;
  animation-fill-mode: both;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }

/* Field focus animations */
.form-input-enhanced,
.form-textarea-enhanced,
.form-select-enhanced {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-enhanced:focus,
.form-textarea-enhanced:focus,
.form-select-enhanced:focus {
  transform: translateY(-1px);
}

/* Button hover effects */
.form-button-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-button-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.form-button-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Success animation */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100px;
  }
  100% {
    stroke-dashoffset: 0px;
  }
}

.form-success-icon {
  stroke-dasharray: 100px;
  animation: checkmark 0.5s ease-out forwards;
}

/* Error shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-4px); }
  20% { transform: translateX(4px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  50% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  70% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  90% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.form-error-shake {
  animation: shake 0.5s ease-out;
}

/* Pulse animation for required fields */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.form-required-indicator {
  animation: pulse 2s ease-in-out infinite;
}

/* Icon rotation on hover */
.form-input-icon {
  transition: transform 0.3s ease, color 0.2s ease;
}

.form-input-with-icon:hover .form-input-icon {
  transform: scale(1.1);
}

/* Character counter animation */
.form-char-counter {
  transition: all 0.2s ease;
}

.form-char-counter.warning {
  animation: pulse 1s ease-in-out infinite;
}

/* Progress indicator animations */
.form-progress-step {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-progress-step:hover {
  transform: scale(1.1);
}

.form-progress-step.active {
  animation: pulse 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
.form-modal-content {
  scroll-behavior: smooth;
}

/* Card hover effects */
.form-card-header {
  position: relative;
  overflow: hidden;
}

.form-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

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

/* Mobile-specific animations */
@media (max-width: 640px) {
  .form-modal-content {
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* CSS Animations to replace Framer Motion */

/* Shimmer animation for skeleton loaders */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Fade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Rotate animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Slide animations */
@keyframes slideInBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Utility classes */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.3s ease-out forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.3s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.3s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-wiggle {
  animation: wiggle 4s ease-in-out infinite;
}

/* Stagger animations */
.stagger-animation {
  opacity: 0;
}

.stagger-animation.animate {
  animation: fadeInUp 0.3s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.05s; }
.stagger-animation:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation:nth-child(3) { animation-delay: 0.15s; }
.stagger-animation:nth-child(4) { animation-delay: 0.2s; }
.stagger-animation:nth-child(5) { animation-delay: 0.25s; }
.stagger-animation:nth-child(6) { animation-delay: 0.3s; }
.stagger-animation:nth-child(7) { animation-delay: 0.35s; }
.stagger-animation:nth-child(8) { animation-delay: 0.4s; }
.stagger-animation:nth-child(9) { animation-delay: 0.45s; }
.stagger-animation:nth-child(10) { animation-delay: 0.5s; }

/* Interactive hover/tap states */
.interactive-scale {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.interactive-scale:hover {
  transform: scale(1.05);
}

.interactive-scale:active {
  transform: scale(0.95);
}

.interactive-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interactive-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading states - removed duplicate shimmer keyframe */

.skeleton-loader {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Entrance animations with viewport trigger */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Simple fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Performance optimization */
.fade-in,
.fade-in-visible {
  will-change: opacity, transform;
}

/* Reduce motion preference for fade-in */
@media (prefers-reduced-motion: reduce) {
  .fade-in-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* Glass System - Extracted from index.css to avoid build issues */

/* Liquid Glass Design System */
.glass-surface {
  background: linear-gradient(to bottom right, 
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.05);
  border-radius: 24px;
}

/* Optimized backdrop-filter with reduced blur for performance */
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) or (-webkit-backdrop-filter: blur(8px)) {
  .glass-surface {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.glass-card {
  background: linear-gradient(to bottom right, 
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.05);
  border-radius: 24px;
  transform: translateZ(0);
  transition: box-shadow 200ms, transform 200ms;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.1);
}

.glass-button {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.6);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: rgb(51, 65, 85);
  font-weight: 500;
  border-radius: 16px;
  transition: all 200ms;
}

.glass-button:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(147, 197, 253, 0.7);
  color: rgb(30, 41, 59);
}

.glass-button-primary {
  background-color: rgba(37, 99, 235, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white;
  font-weight: 600;
  transition: all 200ms;
}

.glass-button-primary:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(147, 197, 253, 0.8);
  color: rgb(239, 246, 255);
}

.glass-button-destructive {
  background: linear-gradient(to right, 
    rgba(239, 68, 68, 0.9),
    rgba(220, 38, 38, 0.95),
    rgba(239, 68, 68, 0.9)
  );
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(248, 113, 113, 0.6);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white;
  font-weight: 600;
  transition: all 300ms;
}

.glass-button-destructive:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(252, 165, 165, 0.8);
  color: rgb(254, 226, 226);
}

.glass-alert {
  background: linear-gradient(to right,
    rgba(254, 243, 199, 0.95),
    rgba(254, 240, 138, 0.9),
    rgba(254, 243, 199, 0.95)
  );
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.glass-input {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: all 200ms;
}

.glass-input:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Shadow Utilities */
.shadow-glass {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-glass-hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-glass-lg {
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Text Shadow Utilities */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Container Queries */
.wrapper {
  container-type: inline-size;
  container-name: wrapper;
}

@container wrapper (min-width: 640px) {
  .glass-card {
    padding: 2rem;
  }
}

@container wrapper (min-width: 1024px) {
  .glass-card {
    padding: 3rem;
  }
}
