:root {
  --primary: #00D4FF;
  --secondary: #0099CC;
  --accent: #FF6B35;
  --dark-bg: #0A0E1A;
  --darker-bg: #050810;
  --card-bg: #1A1F2E;
  --gray-bg: rgba(26, 31, 46, 0.8);
  --footer-bg: #0F1419;
  --section-bg: #F8FAFC;
  --text-light: #E2E8F0;
  --text-gray: #94A3B8;
  --main-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #0099CC 50%, #0066FF 100%);
  --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  --shadow-soft: 0 4px 20px rgba(0, 212, 255, 0.1);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--dark-bg);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  color: var(--text-light);
  font-family: var(--main-font);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  padding: 80px 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4, h5 {
  font-family: var(--main-font);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
}

.button, .btn {
  background: var(--gradient-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.button:active, .btn:active {
  transform: translateY(0);
}
nav {
  background: var(--gray-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(26, 31, 46, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-medium);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.logo {
  height: 70px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Add padding to body to account for fixed nav */
body {
  padding-top: 82px;
}
.hero {
  background: var(--darker-bg);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1 1 400px;
  min-width: 300px;
  color: var(--text-light);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero img {
  max-width: 500px;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
  position: relative;
}

.hero img:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Optimized animations - reduced for performance */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero img {
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}

/* Disable heavy animations on mobile */
@media (max-width: 768px) {
  .hero img {
    animation: none;
  }
}

/* Performance optimizations */
.mobile-optimized .hero img,
.mobile-optimized .feature-block {
  animation: none !important;
  transform: none !important;
}

.mobile-optimized .hero::before {
  display: none;
}
/* Feature sections styling */
section:nth-child(even) {
  background: var(--card-bg);
}

section.features {
  background: var(--section-bg);
  color: #1a202c;
  position: relative;
}

section.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: 1;
}

section.features .container {
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-block {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
  color: #1a202c;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-block:hover::before {
  transform: scaleX(1);
}

.feature-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.2);
}

.feature-block h3 {
  color: #1a202c;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-block p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}
/* Additional section styling */
section:not(.hero):not(.features) {
  position: relative;
}

section h2 {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Roadmap specific styling */
#roadmap .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#roadmap .feature-block {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#roadmap .feature-block h4 {
  color: var(--primary);
  font-size: 1.25rem;
}

#roadmap .feature-block ul {
  text-align: left;
  padding-left: 20px;
}

#roadmap .feature-block li {
  color: var(--text-gray);
  margin-bottom: 8px;
}

/* Footer styling */
footer {
  background: var(--footer-bg);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  color: var(--text-light);
  padding: 60px 0 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

footer .footer-links div {
  text-align: left;
}

footer .footer-links h6 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-links li {
  margin-bottom: 8px;
}

footer .footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  margin: 32px 0 24px 0;
}

.footer-social a {
  display: inline-block;
  margin: 0 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 8px;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Responsive design */
@media (max-width: 768px) {
  nav ul {
    gap: 20px;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero .container {
    gap: 40px;
  }

  section {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  footer .footer-links {
    gap: 40px;
    text-align: center;
  }

  footer .footer-links div {
    text-align: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-block {
  animation: fadeInUp 0.6s ease forwards;
}

/* Additional modern enhancements */
.section-banner {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-medium);
}

/* Enhanced button styles */
.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Glowing effect for important elements */
.glow {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Text selection styling */
::selection {
  background: var(--primary);
  color: #fff;
}

::-moz-selection {
  background: var(--primary);
  color: #fff;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced list styling */
ul:not(nav ul):not(.footer-links ul) {
  list-style: none;
  padding-left: 0;
}

ul:not(nav ul):not(.footer-links ul) li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

ul:not(nav ul):not(.footer-links ul) li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

/* Lazy loading and image optimization */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  min-height: 200px;
  border-radius: 12px;
}

.lazy.loaded {
  opacity: 1;
  background: none;
  animation: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Image error handling */
img[alt]:after {
  content: "🖼️ " attr(alt);
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  color: var(--text-gray);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

/* Optimized image styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img:not(.logo):not(.footer-social img) {
  transition: transform 0.3s ease;
  will-change: transform;
}

img:not(.logo):not(.footer-social img):hover {
  transform: scale(1.02);
}

/* Performance optimizations */
.feature-block {
  will-change: transform, opacity;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for smooth animations */
.hero,
.feature-block,
nav {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Font optimization - using Google Fonts with display swap */
/* This is handled in HTML link tag with display=swap parameter */