/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --secondary-color: #00d4ff;
  --accent-color: #ff0066;
  --bg-dark: #0a0e27;
  --bg-darker: #05070f;
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #1a1f3a;
  --success-color: #00d084;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 20px 60px rgba(0, 102, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  animation: slideDown 0.6s ease-out;
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

.logo-icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0f3a 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 8s ease-in-out infinite;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.gradient-text {
  background: linear-gradient(90deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

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

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-download {
  display: block;
  width: 100%;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Mesh Animation */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.mesh-animation {
  position: relative;
  width: 300px;
  height: 300px;
}

.node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 20px var(--primary-color);
  animation: pulse 2s ease-in-out infinite;
}

.node-1 {
  top: 0%;
  left: 25%;
  animation-delay: 0s;
}
.node-2 {
  top: 25%;
  left: 75%;
  animation-delay: 0.3s;
}
.node-3 {
  top: 50%;
  left: 50%;
  animation-delay: 0.6s;
}
.node-4 {
  top: 75%;
  left: 25%;
  animation-delay: 0.9s;
}
.node-5 {
  top: 75%;
  left: 75%;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.mesh-lines {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 0;
  left: 0;
  animation: rotate 20s linear infinite;
}

.line {
  stroke: var(--secondary-color);
  stroke-width: 2;
  opacity: 0.5;
  animation: dashflow 10s linear infinite;
}

@keyframes dashflow {
  0% {
    stroke-dashoffset: 500;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

.feature-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon {
  animation-delay: 0s;
}
.feature-card:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}
.feature-card:nth-child(4) .feature-icon {
  animation-delay: 0.6s;
}
.feature-card:nth-child(5) .feature-icon {
  animation-delay: 0.8s;
}
.feature-card:nth-child(6) .feature-icon {
  animation-delay: 1s;
}

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

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #1a0f3a 0%, #0a0e27 100%);
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.8s ease-out;
}

.benefit-item {
  margin-bottom: 2rem;
  animation: fadeInLeft 0.8s ease-out;
  animation-fill-mode: both;
}

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

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.benefit-item:hover h3 {
  color: var(--secondary-color);
}

.benefit-item p {
  color: var(--text-muted);
}

.benefits-graphic {
  position: relative;
  height: 400px;
  animation: fadeInRight 0.8s ease-out;
}

.floating-card {
  position: absolute;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 1rem 1.5rem;
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.floating-card:nth-child(2) {
  top: 100px;
  right: 0;
}
.floating-card:nth-child(3) {
  bottom: 100px;
  right: 0;
}
.floating-card:nth-child(4) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.download-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.download-card {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  position: relative;
}

.download-card:nth-child(1) {
  animation-delay: 0.1s;
}
.download-card:nth-child(2) {
  animation-delay: 0.2s;
}
.download-card:nth-child(3) {
  animation-delay: 0.3s;
}

.download-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.download-card.featured {
  border-color: var(--secondary-color);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: slideDown 0.6s ease-out;
}

.platform-icon {
  font-size: 3rem;
  margin: 1rem 0;
}

.download-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.version-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* System Requirements */
.system-requirements {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.system-requirements h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.requirement {
  padding: 1rem;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.requirement:hover {
  border-color: var(--secondary-color);
  background: rgba(0, 212, 255, 0.1);
  transform: scale(1.05);
}

.requirement h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.requirement p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: -150px;
  left: -150px;
  animation: float 8s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -150px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta .btn-primary {
  background: var(--text-light);
  color: var(--primary-color);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .benefits-container {
    grid-template-columns: 1fr;
  }

  .features h2,
  .download h2,
  .cta h2 {
    font-size: 2rem;
  }

  .feature-card:hover {
    transform: translateY(-5px);
  }

  .download-card:hover {
    transform: translateY(-5px);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .floating-card {
    width: 120px;
    height: 120px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .features h2,
  .download h2,
  .cta h2 {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .mesh-animation {
    width: 200px;
    height: 200px;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }
}
