/* Vaultoria Components - Header, Buttons, Cards, etc. */

/* Header Component */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Subtle honeycomb pattern for header */
    conic-gradient(from 30deg at 50% 50%, transparent 60deg, rgba(124, 8, 179, 0.015) 60deg, rgba(124, 8, 179, 0.015) 120deg, transparent 120deg),
    conic-gradient(from 30deg at 50% 50%, transparent 60deg, rgba(177, 155, 221, 0.01) 60deg, rgba(177, 155, 221, 0.01) 120deg, transparent 120deg);
  background-size: 60px 52px, 60px 52px;
  background-position: 0 0, 30px 26px;
  pointer-events: none;
  z-index: -1;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo {
  height: 45px;
  width: auto;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Responsive Logo */
.header-logo-desktop {
  display: block;
}

.header-logo-mobile {
  display: none;
}

/* Mobile styles - show mobile logo, hide desktop logo */
@media (max-width: 768px) {
  .header-logo-desktop {
    display: none;
  }
  
  .header-logo-mobile {
    display: block;
  }
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.header-menu a:hover,
.header-menu a:focus {
  background: rgba(124, 8, 179, 0.1);
  color: var(--primary);
}

.header-menu a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 8, 179, 0.3);
  position: relative;
}

.header-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-switcher select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 24px;
  min-height: 24px;
}

.language-switcher select:hover,
.language-switcher select:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  line-height: 1;
  min-width: 24px;
  min-height: 24px;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 8, 179, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  background: #6a0799;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 8, 179, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 16px rgba(177, 155, 221, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  background: #9f87d1;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(177, 155, 221, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(255, 220, 130, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-accent:hover::before {
  opacity: 1;
}

.btn-accent:hover {
  background: #fcd34d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 220, 130, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero-honeycomb.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

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

/* Improve mobile rendering of offscreen animations */
.hero-animation lottie-player,
.glass-card lottie-player {
  content-visibility: auto;
  contain-intrinsic-size: 600px 300px;
}

/* Hero Animation Fallback */
.hero-fallback {
  display: none;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 1rem;
  color: white;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(124, 8, 179, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 400px;
  margin: 2rem auto;
}

.hero-fallback .fallback-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-fallback h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.hero-fallback p {
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Honeycomb Feature Cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  position: relative;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(124, 8, 179, 0.1);
  box-shadow: 0 8px 32px rgba(124, 8, 179, 0.1);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
}

.feature-card:hover {
  transform: translate3d(0, -6px, 0) scale3d(1.01, 1.01, 1);
  box-shadow: 0 12px 40px rgba(124, 8, 179, 0.15);
  border-color: rgba(124, 8, 179, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gold icon overlay in the center of the cube */
/* Feature icons are now inline SVG elements, no pseudo-elements needed */

.feature-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
  will-change: transform;
}

.feature-icon:hover svg {
  transform: scale3d(1.1, 1.1, 1);
  filter: drop-shadow(0 4px 8px rgba(124, 8, 179, 0.3));
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 24px;
  margin: 4rem 0;
  position: relative;
  border: 1px solid rgba(124, 8, 179, 0.1);
  box-shadow: 0 8px 32px rgba(124, 8, 179, 0.1);
}

.cta-title {
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* App Store Badges */
.app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.app-store-badge {
  display: inline-block;
  min-width: 140px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-indent: -9999px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.play-store {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM1IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMTM1IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMzUiIGhlaWdodD0iNDAiIHJ4PSI1IiBmaWxsPSIjMDAwIi8+PHRleHQgeD0iNjciIHk9IjIwIiBmaWxsPSIjZmZmIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE0Ij5Hb29nbGUgUGxheTwvdGV4dD48L3N2Zz4=');
}

.app-store {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM1IiBoZWlnaHQ9IjQwIiB2aWV3Qm94PSIwIDAgMTM1IDQwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMzUiIGhlaWdodD0iNDAiIHJ4PSI1IiBmaWxsPSIjMDAwIi8+PHRleHQgeD0iNjciIHk9IjIwIiBmaWxsPSIjZmZmIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE0Ij5BcHAgU3RvcmU8L3RleHQ+PC9zdmc+');
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
}

.social-link:hover,
.social-link:focus {
  background: rgba(124, 8, 179, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 8, 179, 0.3);
}

.social-link svg {
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

/* Mobile Navigation Overlay - Hidden on Desktop by Default */
.mobile-nav-overlay {
  display: none !important;
}



.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-menu {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  /* Mobile Navigation Overlay */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 8, 179, 0.95) 0%, rgba(177, 155, 221, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    padding: 2rem;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    /* Ensure it's positioned relative to viewport, not parent */
    transform: translateZ(0);
  }
  
  /* Mobile Menu Close Button */
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100000;
  }
  
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
  }
  
  .mobile-nav-overlay.active {
    display: flex !important;
  }
  
  .mobile-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 280px;
    max-width: 90vw;
  }
  
  .mobile-nav-menu a {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    width: 100%;
    text-align: center;
    display: block;
  }
  
  .mobile-nav-menu a:hover,
  .mobile-nav-menu a:focus {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 8, 179, 0.3);
  }
  
  /* Mobile language switcher in burger menu */
  .mobile-language-switcher {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(124, 8, 179, 0.2);
    width: 100%;
  }
  
  .mobile-language-switcher .language-switcher {
    display: block;
    width: 100%;
  }
  
  .mobile-language-switcher .language-switcher select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c08b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
  }
  
  .mobile-language-switcher .language-switcher select:hover,
  .mobile-language-switcher .language-switcher select:focus {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124, 8, 179, 0.3);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  }
  
  /* Hide desktop header menu on mobile */
  .header-nav .header-menu {
    display: none;
  }
  
  /* Mobile overlay z-index is already set in the main rule above */
  
  /* Add animation for mobile menu items */
  .mobile-nav-menu li {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
  }
  
  .mobile-nav-overlay.active .mobile-nav-menu li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }
  
  /* Stagger animation for menu items */
  .mobile-nav-overlay.active .mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
  .mobile-nav-overlay.active .mobile-nav-menu li:nth-child(2) { transition-delay: 0.2s; }
  .mobile-nav-overlay.active .mobile-nav-menu li:nth-child(3) { transition-delay: 0.3s; }
  .mobile-nav-overlay.active .mobile-nav-menu li:nth-child(4) { transition-delay: 0.4s; }
  .mobile-nav-overlay.active .mobile-nav-menu li:nth-child(5) { transition-delay: 0.5s; }
  
  .burger-menu {
    display: flex;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  /* Hide app store buttons and language switcher in header on mobile */
  .header-actions a[href*="play.google.com"],
  .header-actions a[href*="apps.apple.com"],
  .language-switcher {
    display: none;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .app-stores {
    flex-direction: column;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-nav {
    gap: 1rem;
  }
  
  .header-actions {
    gap: 0.25rem;
  }
  
  .burger-menu {
    width: 22px;
    height: 22px;
  }
  
  .burger-menu span {
    width: 22px;
    height: 2px;
  }
  
  .header-menu a {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .hero-lead {
    font-size: 1.125rem;
  }
  
  .cta-section {
    padding: 3rem 1.5rem;
    margin: 2rem 0;
  }
}

/* Loading states and animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optimized fade-in-up animation with better performance */
.fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
  will-change: opacity, transform;
}

/* Pre-animation state for better performance */
.feature-card:not(.fade-in-up),
.glass-card:not(.fade-in-up),
.cta-section:not(.fade-in-up) {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

/* CSS-only scroll animations for better performance */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* High-performance animation classes with GPU acceleration */
.scroll-animate {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Removed staggered delays to prevent lag during fast scrolling */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .feature-card:not(.fade-in-up),
  .glass-card:not(.fade-in-up),
  .cta-section:not(.fade-in-up) {
    opacity: 1;
    transform: none;
  }
  
  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .scroll-animate.animate {
    opacity: 1;
    transform: none;
  }
}



/* App Store Button Images */
.header-actions img,
.hero-actions img,
.cta-actions img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.header-actions img:hover,
.hero-actions img:hover,
.cta-actions img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

/* Footer Styles */
.footer-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Mobile Footer Layout */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
    align-items: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-copyright {
    margin-bottom: 0.5rem;
  }
}


/* Performance-optimized animations with GPU acceleration */
.fade-in-scale {
  opacity: 0;
  transform: scale3d(0.98, 0.98, 1);
  transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.fade-in-scale.animate {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

/* Optimized mobile menu animations */
.mobile-nav-overlay {
  transition: opacity 0.2s ease, visibility 0.2s ease;
  will-change: opacity;
}

.mobile-nav-overlay.active {
  will-change: auto;
}

/* GPU-accelerated transforms */
.gpu-accelerated {
  transform: translate3d(0, 0, 0);
}

/* Reduced motion optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-animate,
  .fade-in-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* FAQ Accordion */
.faq-accordion {
  width: 100%;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-header:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 24px;
  text-align: center;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 2rem;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 0 2rem 1.5rem 2rem;
}

.accordion-content p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .accordion-header {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .accordion-content {
    padding: 0 1.5rem;
  }
  
  .accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }
}