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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #050505;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* Grid pattern background */
.grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Gradient overlay for depth */
.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 111, 239, 0.08), transparent);
  pointer-events: none;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main content */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  max-width: 800px;
}

/* Label */
.label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease forwards;
}

/* Headline */
.headline {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
  opacity: 0;
  animation: fade-in 0.8s ease 0.1s forwards;
}

/* Subtitle */
.subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.2s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  opacity: 0;
  animation: fade-in 0.8s ease 0.3s forwards;
  border: none;
  cursor: pointer;
}

.primary-btn {
  padding: 0.875rem 1.5rem;
  background: #1A6FEF;
  color: #fff;
  border-radius: 8px;
  white-space: nowrap;
}

.primary-btn:hover {
  background: #155ACC;
  transform: translateY(-1px);
}

/* Liquid Glass Button */
.liquid-glass-btn {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(26, 111, 239, 0.45) 0%,
    rgba(26, 111, 239, 0.3) 50%,
    rgba(26, 111, 239, 0.45) 100%
  );
  color: #fff;
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid rgba(26, 111, 239, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(26, 111, 239, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(26, 111, 239, 0.3);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Liquid shine effect */
.liquid-glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

/* Inner glow layer */
.liquid-glass-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(107, 163, 245, 0.35),
    transparent 50%
  );
  pointer-events: none;
}

.liquid-glass-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 111, 239, 0.8);
  box-shadow: 
    0 12px 40px rgba(26, 111, 239, 0.5),
    0 4px 16px rgba(107, 163, 245, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(26, 111, 239, 0.4);
  background: linear-gradient(
    135deg,
    rgba(26, 111, 239, 0.55) 0%,
    rgba(26, 111, 239, 0.4) 50%,
    rgba(26, 111, 239, 0.55) 100%
  );
}

.liquid-glass-btn:hover::before {
  left: 100%;
}

.liquid-glass-btn span {
  position: relative;
  z-index: 1;
}

/* CTA Buttons Container */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* App Store Button */
.app-store-btn {
  position: relative;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  animation-delay: 0.4s;
}

.app-store-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.app-store-btn:hover::before {
  left: 100%;
}

.app-store-btn svg {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.app-store-btn span {
  position: relative;
  z-index: 1;
}

/* App name for legal pages */
.app-name {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Error code (404) */
.error-code {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: -5px;
  margin-bottom: 1rem;
  line-height: 1;
  color: #fff;
  opacity: 0;
  animation: fade-in 0.8s ease forwards;
}

/* 404 page specific */
.title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.1s forwards;
}

.message {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.2s forwards;
}

.home-btn {
  padding: 0.875rem 1.5rem;
  background: #1A6FEF;
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  animation: fade-in 0.8s ease 0.3s forwards;
  white-space: nowrap;
}

.home-btn:hover {
  background: #155ACC;
  transform: translateY(-1px);
}

.home-btn svg {
  width: 16px;
  height: 16px;
}

.contact-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(26, 111, 239, 0.45) 0%,
    rgba(26, 111, 239, 0.3) 50%,
    rgba(26, 111, 239, 0.45) 100%
  );
  color: #fff;
  font-size: 0.85rem;
  border: 1px solid rgba(26, 111, 239, 0.6);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(26, 111, 239, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(26, 111, 239, 0.3);
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
  white-space: nowrap;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(107, 163, 245, 0.35),
    transparent 50%
  );
  pointer-events: none;
}

.contact-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 111, 239, 0.8);
  box-shadow: 
    0 12px 40px rgba(26, 111, 239, 0.5),
    0 4px 16px rgba(107, 163, 245, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(26, 111, 239, 0.4);
  background: linear-gradient(
    135deg,
    rgba(26, 111, 239, 0.55) 0%,
    rgba(26, 111, 239, 0.4) 50%,
    rgba(26, 111, 239, 0.55) 100%
  );
}

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

.contact-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.contact-btn > * {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .headline {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .headline br {
    display: none;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .subtitle br {
    display: none;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .error-code {
    font-size: 5rem;
    letter-spacing: -3px;
  }
  
  .title {
    font-size: 1.25rem;
  }
  
  .message {
    font-size: 0.95rem;
  }
  
  .grid-pattern {
    background-size: 40px 40px;
  }
}

/* Legal pages (Privacy Policy, Terms, EULA) */
.legal-page main {
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: left;
}

.legal-content .hero {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-content .app-store-link {
  display: inline-block;
  margin-top: 1rem;
  color: #6BA3F5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fade-in 0.8s ease 0.2s forwards;
}

.legal-content .app-store-link:hover {
  color: #8CBAF7;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fade-in 0.8s ease forwards;
}

.legal-content .app-name {
  opacity: 0;
  animation: fade-in 0.8s ease 0.1s forwards;
}

.legal-content .last-updated {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content .intro {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.3s forwards;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6BA3F5;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
}

.legal-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.5s forwards;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.5s forwards;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #1A6FEF, #6BA3F5);
  border-radius: 50%;
}

.legal-content ul li strong {
  color: rgba(255, 255, 255, 0.9);
}

.legal-content strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.legal-content a {
  color: #6BA3F5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: #8CBAF7;
  text-decoration: underline;
}

.legal-content ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.legal-content ul ul li::before {
  width: 4px;
  height: 4px;
  top: 0.8rem;
}

.legal-page footer {
  padding-bottom: 3rem;
}

@media (max-width: 480px) {
  .legal-content h1 {
    font-size: 1.75rem;
  }
  
  .legal-content h2 {
    font-size: 1.25rem;
  }
  
  .legal-content h3 {
    font-size: 1.1rem;
  }
  
  .legal-page main {
    padding-top: 2rem;
  }
}
