/*--------------------------------------
  CSS Variables & Theme Settings
---------------------------------------*/
:root {
    /* Light theme - Modern palette */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --secondary-light: #22d3ee;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-color: #1f2937;
    --text-color-secondary: #6b7280;
    --text-color-muted: #9ca3af;
    --background-color: #ffffff;
    --background-secondary: #f9fafb;
    --card-background: rgba(255, 255, 255, 0.8);
    --nav-background: rgba(255, 255, 255, 0.95);
    --hero-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hero-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-text: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
  }
  
  [data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --secondary-color: #22d3ee;
    --secondary-light: #67e8f9;
    --accent-color: #fbbf24;
    --success-color: #34d399;
    --text-color: #f9fafb;
    --text-color-secondary: #d1d5db;
    --text-color-muted: #9ca3af;
    --background-color: #0f172a;
    --background-secondary: #1e293b;
    --card-background: rgba(30, 41, 59, 0.8);
    --nav-background: rgba(15, 23, 42, 0.95);
    --hero-background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --hero-overlay: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --border-color: #374151;
    --border-light: #4b5563;
    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #fbbf24 0%, #f87171 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
    --glass-bg: rgba(30, 41, 59, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
  
  /*--------------------------------------
    Global Styles & Resets
  ---------------------------------------*/
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /*--------------------------------------
    Header & Navigation
  ---------------------------------------*/
  header {
    background: var(--nav-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  header.sticky {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
  }
  
  /* Logo as a link */
  .logo {
    font-size: 1.875rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }
  
  .logo:hover {
    transform: translateY(-1px);
  }
  
  /* Navigation Links */
  .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
    background: var(--glass-bg);
    transform: translateY(-1px);
  }
  
  /* Call-to-Action Button */
  .nav-links .cta-button {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  
  .nav-links .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }
  
  .nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
  }
  
  .nav-links .cta-button:hover::before {
    left: 100%;
  }
  
  /* Theme Toggle Button */
  .theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    cursor: pointer;
    padding: 0.75rem;
    font-size: 1.125rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1.5rem;
    position: relative;
    overflow: hidden;
  }
  
  .theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-lg);
  }
  
  /* Mobile Menu Button */
  .mobile-menu {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    padding: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-menu:hover {
    background: var(--primary-color);
    transform: scale(1.05);
  }
  
  .mobile-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
  }
  
  .mobile-menu:hover span {
    background-color: white;
  }
  
  .mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: white;
  }
  
  .mobile-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: white;
  }
  
  /*--------------------------------------
    Hero Section
  ---------------------------------------*/
  #hero {
    background: var(--hero-background);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
  }
  
  #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
  }
  
  #hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 2;
  }
  
  .hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 3;
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
  }
  
  .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
  }
  
  .hero-description {
    font-size: 1.25rem;
    margin: 2rem 0 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
  }
  
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .hero-image img:hover {
    transform: scale(1.05);
  }
  
  /* Floating Animation */
  .floating {
    animation: floating 6s ease-in-out infinite;
  }
  
  @keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /*--------------------------------------
    Store Links
  ---------------------------------------*/
  .store-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
  }
  
  .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .btn i {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .btn:hover i {
    transform: scale(1.1);
  }
  
  .btn span {
    display: flex;
    flex-direction: column;
  }
  
  .btn small {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.15);
  }
  
  /*--------------------------------------
    Features Section
  ---------------------------------------*/
  #features {
    padding: 8rem 2rem;
    background: var(--background-color);
    position: relative;
  }
  
  #features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, var(--primary-color)10, transparent 50%),
                radial-gradient(circle at 70% 80%, var(--secondary-color)10, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
  }
  
  #features h2 {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  
  .feature-item {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .feature-item.animate {
    opacity: 1;
    transform: translateY(0);
  }
  
  .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }
  
  .feature-item:hover::before {
    opacity: 0.05;
  }
  
  .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
  }
  
  .feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .feature-item:hover .feature-icon::before {
    opacity: 1;
  }
  
  .feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
  }
  
  .feature-icon i {
    font-size: 1.75rem;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .feature-item:hover .feature-icon i {
    transform: scale(1.1);
  }
  
  .feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .feature-item p {
    color: var(--text-color-secondary);
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /*--------------------------------------
    Video Section
  ---------------------------------------*/
  #video {
    padding: 8rem 2rem;
    background: var(--background-secondary);
    position: relative;
  }
  
  #video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, var(--accent-color)10, transparent 50%);
    opacity: 0.03;
    pointer-events: none;
  }
  
  .video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 3rem;
    position: relative;
    z-index: 2;
  }
  
  .responsive-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
  }
  
  .responsive-iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  
  .responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
  }
  
  /*--------------------------------------
    Section Headings
  ---------------------------------------*/
  h2 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
    width: 100%;
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-md);
  }
  
  /*--------------------------------------
    Footer
  ---------------------------------------*/
  footer {
    background: var(--card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-color);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
  }
  
  footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
    pointer-events: none;
  }
  
  .footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
  }
  
  /*--------------------------------------
    Responsive Design
  ---------------------------------------*/
  @media (max-width: 768px) {
    .nav-container {
      padding: 1rem;
    }
  
    .mobile-menu {
      display: block;
      z-index: 100;
    }
  
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--nav-background);
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px);
      padding: 2rem 1.5rem;
      flex-direction: column;
      gap: 1.5rem;
      box-shadow: var(--shadow-xl);
      border-bottom: 1px solid var(--glass-border);
      border-radius: 0 0 20px 20px;
    }
  
    .nav-links.active {
      display: flex;
      animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
  
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    .nav-links a {
      width: 100%;
      text-align: center;
      font-size: 1.125rem;
      padding: 1rem 0;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
  
    .nav-links a:hover {
      background: var(--glass-bg);
    }
  
    .nav-links .cta-button {
      width: 100%;
      margin-top: 0.5rem;
      padding: 1rem 1.75rem;
    }
  
    .theme-toggle {
      margin-left: 0;
      margin-right: 1rem;
    }
  
    .hero-container {
      flex-direction: column;
      text-align: center;
      gap: 3rem;
    }
  
    .hero-content h1 {
      font-size: clamp(2rem, 8vw, 3rem);
    }
  
    .store-links {
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
  
    .btn {
      width: 100%;
      max-width: 280px;
    }
  
    .feature-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .feature-item {
      padding: 2rem 1.5rem;
    }
  
    section {
      padding: 4rem 1.5rem;
    }
  
    #features, #video {
      padding: 6rem 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .nav-container {
      padding: 0.75rem 1rem;
    }
  
    .logo {
      font-size: 1.5rem;
    }
  
    .hero-content h1 {
      font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
  
    .hero-description {
      font-size: 1.125rem;
    }
  
    .feature-item {
      padding: 1.5rem 1rem;
    }
  
    .feature-icon {
      width: 60px;
      height: 60px;
    }
  
    .feature-icon i {
      font-size: 1.5rem;
    }
  }
  
  /*--------------------------------------
    Custom Animations
  ---------------------------------------*/
  @media (prefers-reduced-motion: no-preference) {
    .feature-item {
      animation: fadeInUp 0.6s ease-out forwards;
    }
  
    .feature-item:nth-child(1) { animation-delay: 0.1s; }
    .feature-item:nth-child(2) { animation-delay: 0.2s; }
    .feature-item:nth-child(3) { animation-delay: 0.3s; }
    .feature-item:nth-child(4) { animation-delay: 0.4s; }
    .feature-item:nth-child(5) { animation-delay: 0.5s; }
    .feature-item:nth-child(6) { animation-delay: 0.6s; }
  }
  
  /* Accessibility improvements */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Focus styles for accessibility */
  *:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
  }