/* Modern CSS Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables with Modern Color Systems */
:root {
  /* Primary Orange Theme */
  --primary-color: #ff5f1f;
  --primary-dark: #e54410;
  --primary-light: #ff8554;
  --accent-color: #1a1a2e;
  --accent-light: #16213e;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #ff5f1f, #ff8554);
  --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
  
  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 3vw, 3rem);
  --space-lg: clamp(3rem, 5vw, 5rem);
  --space-xl: clamp(4rem, 7vw, 7rem);
  
  /* Container sizes */
  --container-max: 1200px;
  --container-padding: var(--space-sm);
  
  /* Animation timings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  
  /* Enable color scheme */
  color-scheme: light dark;
}

/* Dark mode support with orange theme */
@media (prefers-color-scheme: dark) {
  :root {
    /* Orange theme for dark mode */
    --primary-color: #ff5f1f;
    --primary-dark: #cc4a18;
    --primary-light: #ff8554;
    --accent-color: #e94b3c;
    --accent-light: #f56565;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --white: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #ff5f1f, #e94b3c);
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  }
}

/* Base styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

/* Mouse Glow Effect */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at center, 
    rgba(255, 95, 31, 0.15) 0%, 
    rgba(255, 95, 31, 0.08) 25%,
    rgba(255, 95, 31, 0.03) 50%,
    transparent 70%);
  filter: blur(40px);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.mouse-glow.active {
  opacity: 1;
}

/* Container query support */
.container {
  container-type: inline-size;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center !important;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--primary-color));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* animation: gradientShift 8s ease infinite; */ /* Disabled to prevent text shifting */
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  text-align: center !important;
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: block;
}

/* Navigation with modern nesting */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
  
  &.scrolled {
    background: color-mix(in lch, var(--bg-primary) 95%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  & .nav-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  & .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 3s ease-in-out infinite;
  }
  
  & .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    
    & a {
      text-decoration: none;
      color: var(--text-primary);
      font-weight: 500;
      position: relative;
      background-image: linear-gradient(to right, var(--primary-color), var(--primary-light));
      background-size: 0% 2px;
      background-position: left bottom;
      background-repeat: no-repeat;
      transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
      
      &:hover {
        color: var(--primary-color);
        background-size: 100% 2px;
      }
    }
  }
  
  & .cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s var(--ease-out);
    
    &:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
  }
  
  & .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    
    @container (max-width: 768px) {
      display: block;
    }
  }
}

/* Hero Section with animations */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  
  & .hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    
    /* Morphing gradient mesh */
    &::before {
      content: '';
      position: absolute;
      inset: -50%;
      background: radial-gradient(circle at 20% 50%, rgba(255, 95, 31, 0.3) 0%, transparent 50%),
                  radial-gradient(circle at 80% 80%, rgba(255, 133, 84, 0.2) 0%, transparent 50%),
                  radial-gradient(circle at 40% 20%, rgba(233, 75, 60, 0.2) 0%, transparent 50%);
      animation: morphGradient 15s ease-in-out infinite;
      will-change: transform;
    }
    
    /* Noise texture overlay */
    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
      opacity: 0.03;
      mix-blend-mode: overlay;
      pointer-events: none;
    }
    
    & .floating-shape {
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      animation: float 20s ease-in-out infinite;
      
      &.shape-1 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255, 95, 31, 0.2), transparent);
        top: 10%;
        left: 10%;
        animation: float 25s ease-in-out infinite;
        animation-delay: 0s;
        will-change: transform;
      }
      
      &.shape-2 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 133, 84, 0.15), transparent);
        top: 50%;
        right: 10%;
        animation: float 30s ease-in-out infinite reverse;
        animation-delay: 5s;
        will-change: transform;
      }
      
      &.shape-3 {
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(233, 75, 60, 0.2), transparent);
        bottom: 10%;
        left: 30%;
        animation: float 35s ease-in-out infinite;
        animation-delay: 10s;
        will-change: transform;
      }
      
      &.shape-4 {
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(255, 95, 31, 0.1), transparent);
        top: 60%;
        left: 5%;
        animation: float 40s ease-in-out infinite reverse;
        animation-delay: 15s;
        will-change: transform;
      }
    }
  }
  
  & .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }
  
  & .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    
    & .typewriter {
      display: inline-block;
      overflow: hidden;
      
      & span {
        display: inline-block;
        opacity: 0;
        transform: translateY(30px);
        animation: wordReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }
    }
    
    & .typewriter-second {
      display: inline-block;
      overflow: hidden;
      
      & span {
        display: inline-block;
        opacity: 0;
        transform: translateY(30px);
        animation: wordReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        color: var(--text-primary);
      }
    }
  }
  
  & .hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s var(--ease-out) 1.5s both;
  }
  
  & .hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s var(--ease-out) 1.8s both;
    
    & .stat-item {
      text-align: center;
      
      & .stat-number {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: var(--primary-color);
      }
      
      & .stat-suffix {
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 600;
        color: var(--primary-color);
      }
      
      & .stat-label {
        display: block;
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-top: 0.25rem;
      }
    }
  }
  
  & .hero-cta {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 2.1s forwards;
    
    & .primary-button, & .secondary-button {
      padding: 1rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s var(--ease-out);
      display: inline-block;
    }
    
    & .primary-button {
      background: var(--primary-color);
      color: var(--white);
      position: relative;
      overflow: hidden;
      
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--primary-dark);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
      }
      
      &:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        
        &::before {
          width: 300px;
          height: 300px;
        }
      }
      
      &.pulse {
        animation: pulse 2s var(--ease-in-out) infinite;
      }
    }
    
    & .secondary-button {
      background: transparent;
      color: var(--primary-color);
      border: 2px solid var(--primary-color);
      
      &:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      }
    }
  }
}

/* Value Propositions with scroll animations */
.value-props {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  
  & .value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    
    @container (min-width: 900px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  & .value-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 95, 31, 0.1);
    border-radius: 20px;
    padding: var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s var(--ease-out);
    }
    
    &.visible {
      opacity: 1;
      transform: translateY(0);
      
      &::before {
        transform: scaleX(1);
      }
    }
    
    &:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    }
    
    & .value-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 1rem;
      background: linear-gradient(135deg, rgba(255, 95, 31, 0.1), rgba(255, 133, 84, 0.1));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      
      & svg {
        width: 40px;
        height: 40px;
        stroke: var(--primary-color);
      }
    }
    
    & h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    
    & p {
      color: var(--text-secondary);
      line-height: 1.8;
    }
  }
}

/* Services Section */
.services {
  padding: var(--space-xl) 0;
  
  & .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-sm);
    
    @container (min-width: 768px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  & .service-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
      opacity: 0;
      transition: opacity 0.3s var(--ease-out);
    }
    
    &:hover {
      border-color: var(--primary-color);
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
      
      &::before {
        opacity: 0.05;
      }
      
      & .service-icon {
        transform: rotateY(360deg);
      }
    }
    
    & .service-icon {
      width: 60px;
      height: 60px;
      margin: 0 auto 1rem;
      transition: transform 0.6s var(--ease-out);
      transform-style: preserve-3d;
      
      & svg {
        width: 100%;
        height: 100%;
        stroke: var(--primary-color);
      }
    }
    
    & h3 {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
    }
    
    & p {
      color: var(--text-secondary);
      font-size: 0.9rem;
    }
  }
}

/* Pricing Section */
.pricing {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  
  & .comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
    
    @container (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }
  
  & .comparison-card {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-md);
    text-align: center;
    position: relative;
    
    &.scalably {
      border: 3px solid var(--primary-color);
      transform: scale(1.05);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
      
      & .badge {
        position: absolute;
        top: -15px;
        right: 20px;
        background: var(--accent-color);
        color: var(--white);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.875rem;
      }
    }
    
    & h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    
    & .cost-breakdown {
      margin: 2rem 0;
      
      &.simple {
        background: transparent;
        padding: 0;
      }
      
      & .cost-stack {
        display: flex;
        height: 40px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
      }
      
      & .cost-labels {
        display: flex;
        justify-content: space-around;
        font-size: 0.875rem;
        color: var(--text-secondary);
        
        & .cost-label {
          text-align: center;
          flex: 1;
        }
      }
      
      & .cost-bar {
        height: 100%;
        position: relative;
        transition: all 0.3s var(--ease-out);
        
        &.base-cost {
          background: #374151;
          color: var(--white);
        }
        
        &.benefits-cost {
          background: #4b5563;
          color: var(--white);
        }
        
        &.tax-cost {
          background: #6b7280;
          color: var(--white);
        }
        
        &.overhead-cost {
          background: #9ca3af;
          color: var(--white);
        }
        
        &.scalably-cost {
          background: var(--gradient-primary);
          color: var(--white);
          width: 100% !important;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 1.5rem;
          border-radius: 12px;
          font-weight: 600;
          
          & .includes {
            font-size: 0.8rem;
            opacity: 0.9;
            margin-top: 0.25rem;
          }
        }
        
        &:hover {
          filter: brightness(1.1);
        }
      }
    }
    
    & .feature-list {
      list-style: none;
      text-align: left;
      
      & li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        
        &::before {
          content: '✓';
          position: absolute;
          left: 0;
          color: var(--success-color);
          font-weight: 700;
        }
        
        &.highlight-red {
          color: #dc2626;
          font-weight: 600;
          
          &::before {
            content: '✗';
            color: #dc2626;
          }
        }
        
        &.highlight-green {
          color: var(--success-color);
          font-weight: 600;
          background: rgba(16, 185, 129, 0.1);
          margin: 0.25rem -0.5rem;
          padding: 0.5rem 0.5rem 0.5rem 2rem;
          border-radius: 8px;
        }
      }
    }
  }
  
  & .comparison-arrow {
    & svg {
      width: 48px;
      height: 48px;
      stroke: var(--primary-color);
      animation: slideRight 2s var(--ease-in-out) infinite;
    }
  }
  
  & .savings-calculator {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
    
    & h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
    
    & .savings-display {
      & .savings-amount {
        font-size: 4rem;
        font-weight: 800;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      
      & .savings-label {
        display: block;
        font-size: 1.2rem;
        color: var(--text-secondary);
        margin-top: 0.5rem;
      }
    }
  }
}

/* How It Works */
.how-it-works {
  padding: 0;
  position: relative;
  min-height: 100vh;
  
  & .timeline-horizontal {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
    padding: var(--space-md) 0;
    z-index: 10;
    
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 20% 80%, rgba(255, 95, 31, 0.05) 0%, transparent 50%),
                  radial-gradient(circle at 80% 20%, rgba(255, 133, 84, 0.03) 0%, transparent 50%),
                  radial-gradient(circle at 40% 40%, rgba(233, 75, 60, 0.02) 0%, transparent 50%);
      animation: morphGradient 20s ease-in-out infinite;
      pointer-events: none;
    }
    
    & .timeline-header {
      text-align: center;
      margin-bottom: var(--space-lg);
      z-index: 1;
      
      & .section-title {
        margin-bottom: 0.5em;
      }
      
      & .section-subtitle {
        margin-bottom: 0;
        text-align: center;
        width: 100%;
      }
    }
    
    & .timeline-progress {
      --progress: 0%;
      position: absolute;
      bottom: 50%;
      left: 10%;
      right: 10%;
      height: 4px;
      background: rgba(255, 95, 31, 0.1);
      border-radius: 2px;
      transform: translateY(80px);
      
      &::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: var(--progress);
        background: var(--gradient-primary);
        border-radius: 2px;
        transition: width 0.5s var(--ease-out);
        box-shadow: 0 0 20px rgba(255, 95, 31, 0.5);
      }
    }
    
    & .timeline-steps-wrapper {
      width: 100%;
      max-width: 1200px;
      padding: 0 var(--space-md);
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    & .timeline-steps {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 3rem;
      width: 100%;
    }
    
    & .timeline-step {
      flex: 1;
      opacity: 0;
      transform: translateY(50px) scale(0.8);
      transition: all 0.8s var(--ease-out);
      
      &.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
      
      & .step-number {
        width: 60px;
        height: 60px;
        background: var(--white);
        border: 4px solid var(--primary-color);
        color: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 auto 1.5rem;
        position: relative;
        z-index: 2;
        box-shadow: 0 5px 20px rgba(255, 95, 31, 0.3);
        transition: all 0.3s var(--ease-out);
        
        &::before {
          content: '';
          position: absolute;
          inset: -10px;
          border: 2px solid rgba(255, 95, 31, 0.2);
          border-radius: 50%;
          animation: pulse 2s var(--ease-in-out) infinite;
        }
      }
      
      & .step-content {
        background: var(--white);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border: 2px solid rgba(255, 95, 31, 0.1);
        transition: all 0.3s var(--ease-out);
        text-align: center;
        max-width: 350px;
        
        &:hover {
          border-color: var(--primary-color);
          transform: translateY(-10px);
          box-shadow: 0 20px 50px rgba(255, 95, 31, 0.15);
          
          & .step-icon {
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, rgba(255, 95, 31, 0.2), rgba(255, 133, 84, 0.1));
          }
          
          & .step-number {
            transform: scale(1.1);
          }
        }
        
        & .step-icon {
          width: 80px;
          height: 80px;
          background: linear-gradient(135deg, rgba(255, 95, 31, 0.1), rgba(255, 133, 84, 0.05));
          border-radius: 20px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 auto 1.5rem;
          transition: all 0.3s var(--ease-out);
          
          & svg {
            width: 40px;
            height: 40px;
            stroke: var(--primary-color);
          }
        }
        
        & h3 {
          font-size: 1.5rem;
          margin-bottom: 0.75rem;
          color: var(--text-primary);
          font-weight: 700;
        }
        
        & p {
          color: var(--text-secondary);
          line-height: 1.8;
          margin: 0 0 1.5rem 0;
          font-size: 1rem;
        }
        
        & .step-meta {
          & .time-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-color);
            font-size: 0.875rem;
            font-weight: 600;
            background: rgba(255, 95, 31, 0.05);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            
            & svg {
              stroke: var(--primary-color);
            }
          }
        }
      }
    }
    
    & .timeline-connector {
      width: 100px;
      height: 50px;
      opacity: 0;
      transition: opacity 0.5s var(--ease-out) 0.3s;
      
      &.visible {
        opacity: 1;
      }
      
      & svg {
        width: 100%;
        height: 100%;
        stroke: var(--primary-color);
      }
    }
    
    & .timeline-scroll-indicator {
      position: absolute;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      opacity: 0;
      transition: opacity 0.5s var(--ease-out);
      
      &.visible {
        opacity: 1;
        animation: bounce 2s var(--ease-in-out) infinite;
      }
      
      & span {
        display: block;
        color: var(--text-secondary);
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
      }
      
      & svg {
        width: 24px;
        height: 24px;
        stroke: var(--primary-color);
        animation: slideDown 1.5s var(--ease-in-out) infinite;
      }
    }
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes slideDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* CTA Section */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--gradient-primary);
  color: var(--white);
  
  & .cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  
  & .cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
  }
  
  & .cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-md);
  }
  
  & .contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: var(--space-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    & .form-group {
      margin-bottom: 1.5rem;
      text-align: left;
      
      & label {
        display: block;
        color: var(--text-primary);
        font-weight: 600;
        margin-bottom: 0.5rem;
      }
      
      & input,
      & select {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid rgba(255, 95, 31, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
        color: var(--text-primary);
        font-size: 1rem;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        
        &:focus {
          outline: none;
          border-color: var(--primary-color);
          background: rgba(255, 255, 255, 0.1);
          box-shadow: 0 0 0 4px rgba(255, 95, 31, 0.1),
                      0 0 20px rgba(255, 95, 31, 0.2);
          transform: translateY(-2px);
        }
        
        &:hover {
          border-color: rgba(255, 95, 31, 0.3);
        }
      }
    }
    
    /* Form validation with :has() */
    &:has(input:invalid:not(:placeholder-shown)) {
      & .submit-button {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }
    
    & .submit-button {
      width: 100%;
      padding: 1rem 2rem;
      background: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: 50px;
      font-size: 1.125rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s var(--ease-out);
      
      &:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
      }
    }
  }
}

/* Footer */
.footer {
  padding: var(--space-md) 0;
  background: var(--bg-secondary);
  
  & .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    
    @container (max-width: 768px) {
      flex-direction: column;
      text-align: center;
    }
  }
  
  & .footer-links {
    & ul {
      display: flex;
      list-style: none;
      gap: 2rem;
      
      & a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s var(--ease-out);
        
        &:hover {
          color: var(--primary-color);
        }
      }
    }
  }
  
  & .footer-contact {
    & h4 {
      color: var(--primary-color);
      margin-bottom: 0.5rem;
      font-size: 1.125rem;
    }
    
    & a {
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.3s var(--ease-out);
      
      &:hover {
        color: var(--primary-color);
      }
    }
    
    & a[href^="mailto:"] {
      color: var(--primary-color);
      font-weight: 500;
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s ease;
      }
      
      &:hover {
        color: #ff7f3f;
        
        &::after {
          width: 100%;
        }
      }
    }
    
    & .social-links {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      margin-top: 1rem;
      flex-wrap: nowrap;
      
      & a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 95, 31, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s var(--ease-out);
        
        & svg {
          width: 20px;
          height: 20px;
          fill: var(--primary-color);
          color: var(--primary-color);
          transition: fill 0.3s ease;
        }
        
        &:hover {
          background: var(--primary-color);
          transform: translateY(-3px);
          box-shadow: 0 5px 15px rgba(255, 95, 31, 0.3);
          
          & svg {
            fill: var(--white);
          }
        }
      }
    }
  }
  
  & .footer-legal {
    color: var(--text-secondary);
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -20px);
  }
  50% {
    transform: translate(-15px, 15px);
  }
  75% {
    transform: translate(25px, 5px);
  }
}

@keyframes morphGradient {
  0%, 100% {
    transform: scale(1) rotate(0deg) translate(0, 0);
  }
  25% {
    transform: scale(1.1) rotate(90deg) translate(5%, 0);
  }
  50% {
    transform: scale(0.95) rotate(180deg) translate(0, 5%);
  }
  75% {
    transform: scale(1.05) rotate(270deg) translate(-5%, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }
}

@keyframes slideRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

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

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

/* Premium button animations */
.primary-button, .secondary-button, .cta-button, .submit-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  
  &:hover::after {
    opacity: 1;
  }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
  .value-card,
  .service-card,
  .comparison-card,
  .contact-form {
    background: var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
  
  .timeline-step .step-content {
    background: var(--bg-secondary);
    
    &::after {
      border-left-color: var(--bg-secondary);
      border-right-color: var(--bg-secondary);
    }
  }
  
  .custom-cursor {
    &::after {
      background: var(--primary-light);
    }
    
    &::before {
      background: radial-gradient(circle, rgba(255, 133, 84, 0.4), transparent);
    }
  }
  
  .comparison-card.scalably {
    border-color: var(--primary-light);
  }
  
  input, select {
    background: var(--bg-primary) !important;
    border-color: lch(25% 0 0) !important;
    
    &:focus {
      background: var(--bg-secondary) !important;
      border-color: var(--primary-color) !important;
    }
  }
  
  .cta-section {
    background: var(--gradient-primary);
  }
  
  .highlight-red {
    color: #ef4444 !important;
    
    &::before {
      color: #ef4444 !important;
    }
  }
  
  .highlight-green {
    background: rgba(16, 185, 129, 0.2) !important;
  }
  
  .cost-bar {
    &.base-cost {
      background: #1f2937 !important;
    }
    &.benefits-cost {
      background: #374151 !important;
    }
    &.tax-cost {
      background: #4b5563 !important;
    }
    &.overhead-cost {
      background: #6b7280 !important;
    }
  }
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Custom cursor styles - DISABLED */
.custom-cursor {
  display: none;
}

/* Enhanced service card morphing */
.service-card {
  transform-style: preserve-3d;
  transition: all 0.4s var(--ease-out);
  
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 95, 31, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    border-radius: inherit;
    pointer-events: none;
  }
  
  &:hover::after {
    opacity: 1;
  }
}

/* Glassmorphism overlay for modals/popups */
.glass-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  
  &.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* Loading animation styles */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 95, 31, 0.1);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  
  &.active {
    opacity: 1;
  }
  
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out);
  }
  
  &[data-progress="25"]::after { width: 25%; }
  &[data-progress="50"]::after { width: 50%; }
  &[data-progress="75"]::after { width: 75%; }
  &[data-progress="100"]::after { width: 100%; }
}

/* Haptic-style micro-interactions */
.haptic-feedback {
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s var(--ease-out);
  }
  
  &:active::before {
    opacity: 0.2;
    transform: scale(1);
  }
}

/* Enhanced parallax depth layers */
.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  
  &[data-depth="0.1"] {
    transform: translateZ(-100px) scale(1.1);
  }
  
  &[data-depth="0.2"] {
    transform: translateZ(-200px) scale(1.2);
  }
  
  &[data-depth="0.3"] {
    transform: translateZ(-300px) scale(1.3);
  }
}

/* Premium scroll reveal animations */
.reveal-element {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s var(--ease-out);
  
  &.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  &.reveal-left {
    transform: translateX(-50px) scale(0.95);
  }
  
  &.reveal-right {
    transform: translateX(50px) scale(0.95);
  }
  
  &.reveal-scale {
    transform: scale(0.8);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
  
  .custom-cursor {
    display: none;
  }
  
  /* Reduce particle opacity on mobile */
  #particle-canvas {
    opacity: 0.3;
  }
  
  /* Hide mouse glow on touch devices */
  .mouse-glow {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem !important;
  }
  
  .comparison-arrow {
    transform: rotate(90deg);
  }
  
  .timeline-horizontal {
    height: auto !important;
    position: relative !important;
    top: auto !important;
    padding: var(--space-md) 0;
    
    & .timeline-progress {
      display: none;
    }
    
    & .timeline-steps {
      flex-direction: column;
      gap: var(--space-md);
    }
    
    & .timeline-step {
      opacity: 1 !important;
      transform: none !important;
      
      & .step-content {
        padding: 1.5rem;
      }
    }
    
    & .timeline-connector {
      display: none;
    }
    
    & .timeline-scroll-indicator {
      display: none;
    }
  }
  
  .how-it-works {
    height: auto !important;
  }
}