/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 75%, #475569 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(600px circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 40%),
    radial-gradient(800px circle at 80% 70%, rgba(147, 51, 234, 0.1), transparent 40%),
    radial-gradient(400px circle at 40% 80%, rgba(34, 197, 94, 0.05), transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Floating Navigation */
.nav-header {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 0.75rem 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  width: calc(100vw - 4rem);
  max-width: 1200px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-logo {
  width: 60px;
  height: 60px;
  margin: -10px 0;
}

.nav-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: #60a5fa;
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link-with-icon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-icon-only {
  padding: 0.5rem;
}



/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 12rem 0 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.badge-text {
  font-size: 0.875rem;
  color: #93c5fd;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Apps Section */
.apps-section {
  padding: 0 0 6rem 0;
}

.apps-header {
  text-align: center;
  margin-bottom: 4rem;
}

.apps-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.apps-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Apps Grid - Clean 3-column layout */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* App Card - Self-contained with consistent structure */
.app-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 400px;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

/* App Icon */
.app-icon-container {
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 100px;
  height: 100px;
}

/* App Content - Flexible middle section */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.app-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.app-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  flex: 1;
}

/* App Footer - Fixed bottom section */
.app-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status Badge */
.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.available {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.coming-soon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Store Badge */
.store-badge-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.store-badge-link:hover {
  transform: translateY(-0.5px);
}

.store-badge {
  height: 40px;
  width: auto;
}

/* Mystery App Styling */
.mystery-app {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.mystery-app:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15);
}

.mystery-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(79, 70, 229, 0.3));
  border: 2px dashed rgba(147, 51, 234, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mystery-text {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(147, 51, 234, 0.8);
  text-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  text-align: center;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content > p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.principle-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
}

.principle-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.principle-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.principle-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .apps-grid {
    gap: 1.5rem;
  }
  
  .app-card {
    padding: 1.5rem;
  }
  
  .app-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .nav-header {
    top: 1rem;
    padding: 1rem 1.5rem;
    width: calc(100vw - 2rem);
  }
  
  .nav-container {
    gap: 1rem;
  }
  
  .nav-logo {
    width: 40px;
    height: 40px;
  }
  
  .nav-title {
    font-size: 1.25rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .main-container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 10rem 0 2rem;
  }
  
  .apps-section {
    padding: 0 0 3rem 0;
  }
  
  .apps-header {
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .app-card {
    padding: 2rem;
    min-height: 350px;
  }
  
  .app-icon {
    width: 90px;
    height: 90px;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-header {
    padding: 0.75rem 1rem;
    width: calc(100vw - 1rem);
  }
  
  .nav-container {
    gap: 0.5rem;
  }
  
  .nav-logo {
    width: 32px;
    height: 32px;
  }
  
  .nav-title {
    font-size: 1.1rem;
  }
  
  .nav-links {
    gap: 0.75rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 9rem 0 1.5rem;
  }
  
  .apps-header {
    margin-bottom: 0.75rem;
  }
  
  .apps-section {
    padding: 0 0 2rem 0;
  }
  
  .about-section {
    padding: 4rem 0;
  }
}