/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #f5f5f7;
  background-color: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

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

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #f5f5f7;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #518fec;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #518fec;
  transition: width 0.2s ease;
}

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

.install-link {
  background: linear-gradient(135deg, #518fec, #3b82f6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.install-link:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(81, 143, 236, 0.3);
}

.install-link::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #f5f5f7;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.gradient-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ff75f6, transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #518fec, transparent);
  top: 60%;
  right: 10%;
  animation-delay: -4s;
  animation-duration: 22s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #10b981, transparent);
  bottom: 20%;
  left: 20%;
  animation-delay: -8s;
  animation-duration: 16s;
}

.shape-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f59e0b, transparent);
  top: 30%;
  right: 30%;
  animation-delay: -12s;
  animation-duration: 24s;
}

.shape-5 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  bottom: 40%;
  right: 20%;
  animation-delay: -6s;
  animation-duration: 19s;
}

.shape-6 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #ec4899, transparent);
  top: 70%;
  left: 60%;
  animation-delay: -10s;
  animation-duration: 21s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-20px) translateX(15px) rotate(72deg) scale(1.1);
  }
  40% {
    transform: translateY(15px) translateX(-25px) rotate(144deg) scale(0.9);
  }
  60% {
    transform: translateY(-10px) translateX(30px) rotate(216deg) scale(1.05);
  }
  80% {
    transform: translateY(25px) translateX(-15px) rotate(288deg) scale(0.95);
  }
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/noise.png');
  opacity: 0.05;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* First slide - centered content */
.hero-slide[data-slide="1"] .hero-grid {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* Center the first slide as a single column */
.hero-slide[data-slide="1"] .hero-grid {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  margin: 0 auto;
  width: 100%;
  min-height: 60vh;
}

.hero-slide[data-slide="1"] .hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
}

.hero-slide[data-slide="1"] .hero-logo {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  /* First slide - centered content on desktop */
  .hero-slide[data-slide="1"] .hero-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }
}

.hero-text {
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1;
  }
}

.hero-logo {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  padding: 0;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    padding: 0;
    display: block;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: -2rem;
  margin-bottom: 1.5rem;
  color: #f5f5f7;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.highlight {
  background: linear-gradient(135deg, #518fec, #ff75f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a1a1aa;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-description {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.2rem;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #518fec, #3b82f6);
  color: white;
  text-decoration: none;
  padding: 0.875rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(81, 143, 236, 0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(81, 143, 236, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.cta-button:hover .cta-icon {
  transform: translateX(4px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* ===== SLIDE NAVIGATION ===== */
.slide-navigation {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.slide-nav-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slide-nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slide-nav-btn[aria-current="true"] {
  background: #518fec;
  transform: scale(1.2);
}

.slide-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.slide-control {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.slide-control:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.slide-control svg {
  width: 24px;
  height: 24px;
  color: #f5f5f7;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 767px) {
  .navbar-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.75rem 0.4375rem;
    font-size: 1rem;
  }
  
  .slide-controls {
    padding: 0 1rem;
  }
  
  .slide-control {
    width: 40px;
    height: 40px;
  }
  
  .slide-control svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 479px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .slide-controls {
    display: none;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shape {
    animation: none;
  }
}

/* ===== FOCUS STYLES ===== */
.nav-link:focus,
.cta-button:focus,
.slide-nav-btn:focus,
.slide-control:focus {
  outline: 2px solid #518fec;
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .slide-navigation,
  .slide-controls {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding-top: 0;
  }
  
  .hero-slide {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
} 