/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Youthful, vibrant color scheme */
  --background: #fefefe;
  --foreground: #1a1a2e;
  --card: #fafafa;
  --card-foreground: #1a1a2e;
  --primary: #8b5cf6; /* Vibrant purple-blue */
  --primary-foreground: #ffffff;
  --secondary: #ec4899; /* Bright pink accent */
  --secondary-foreground: #ffffff;
  --accent: #06b6d4; /* Cyan accent */
  --accent-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --radius: 1rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
  --gradient-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05), rgba(6, 182, 212, 0.1));
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 254, 254, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-decoration: none;
}

.nav-menu {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--muted-foreground);
}

.nav-actions {
  display: none;
}

.btn-outline {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--muted);
}

.mobile-menu-btn {
  display: block;
}

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

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  padding: 1rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-link {
  display: block;
  padding: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.mobile-link:hover {
  background: var(--muted);
}

.mobile-actions {
  padding: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
  overflow: hidden;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.float-1 {
  top: 5rem;
  left: 2.5rem;
  width: 5rem;
  height: 5rem;
  background: rgba(139, 92, 246, 0.2);
  animation: pulse 2s infinite;
}

.float-2 {
  top: 10rem;
  right: 5rem;
  width: 4rem;
  height: 4rem;
  background: rgba(236, 72, 153, 0.2);
  animation: bounce 2s infinite;
}

.float-3 {
  bottom: 8rem;
  left: 25%;
  width: 3rem;
  height: 3rem;
  background: rgba(6, 182, 212, 0.2);
  animation: pulse 2s infinite 1s;
}

.float-4 {
  bottom: 5rem;
  right: 33%;
  width: 6rem;
  height: 6rem;
  background: rgba(139, 92, 246, 0.15);
  animation: bounce 2s infinite 0.5s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sparkle {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.plane {
  font-size: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 24rem;
  margin: 0 auto;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.btn-ios {
  background: var(--gradient-primary);
}

.btn-android {
  background: var(--gradient-accent);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Features Section */
.features {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom, var(--background), var(--muted));
}

.features-container {
  max-width: 96rem;
  margin: 0 auto;
}

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

.features-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--card), var(--muted));
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 0;
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Page styles */
.page-header {
  padding: 6rem 1rem 4rem;
  background: var(--gradient-bg);
  text-align: center;
}

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

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.detailed-features {
  padding: 4rem 0;
}

.detailed-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.detailed-feature {
  background: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.detailed-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.detailed-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.detailed-feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.detailed-feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: white;
}

.footer-section-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    max-width: none;
  }

  .btn-primary {
    width: auto;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .nav-actions {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .detailed-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .detailed-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legal Pages */
.legal-content {
  padding: 4rem 1rem;
  background: var(--background);
}

.legal-document {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--card);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--foreground);
  font-weight: 600;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: var(--secondary);
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.legal-footer p {
  color: var(--muted-foreground);
  font-style: italic;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
  .legal-document {
    padding: 2rem 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section h3 {
    font-size: 1.125rem;
  }
}
