@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Colors matching the app theme */
  --primary: #E53935;
  --primary-glow: rgba(229, 57, 53, 0.4);
  --primary-hover: #D32F2F;
  --bg-dark: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-light: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-secondary: #9FA1A6;
  --success: #4CAF50;
  
  /* Utilities */
  --glass-bg: rgba(15, 15, 15, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-main);
}

/* =========================================
   Navigation (Floating Pill)
========================================= */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 2rem;
  z-index: 1000;
  pointer-events: none; /* Let clicks pass through container */
}

.navbar {
  pointer-events: auto; /* Re-enable clicks on navbar */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  color: var(--text-main) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   Buttons
========================================= */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white !important;
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-main) !important;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--surface-light);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(229, 57, 53, 0.1);
}

/* Pulse Animation for CTA */
.pulse-btn {
  position: relative;
}
.pulse-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50px;
  border: 2px solid var(--primary);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* =========================================
   Hero Section & Radar Background
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(229, 57, 53, 0.08), transparent 60%);
}

.grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  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: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
}

.radar .circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(229, 57, 53, 0.2);
  animation: radar-pulse 4s linear infinite;
  opacity: 0;
}

.radar .circle:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.radar .circle:nth-child(2) { width: 400px; height: 400px; animation-delay: 1s; }
.radar .circle:nth-child(3) { width: 600px; height: 600px; animation-delay: 2s; }
.radar .circle:nth-child(4) { width: 800px; height: 800px; animation-delay: 3s; }

@keyframes radar-pulse {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.hero-content {
  max-width: 800px;
  margin-top: 5rem;
  padding: 0 20px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.3);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* =========================================
   Features Grid
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
}

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

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(229, 57, 53, 0.1), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 57, 53, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(229, 57, 53, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(229, 57, 53, 0.2);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.feature-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================
   Scroll Animations
========================================= */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Page Headers & Content Boxes (Privacy/Terms)
========================================= */
.page-header {
  padding: 200px 5% 80px;
  background: radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.15), transparent 60%);
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.content-box {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.content-box h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-size: 1.8rem;
}

.content-box h2:first-child { margin-top: 0; }

.content-box p, .content-box ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.content-box ul { padding-left: 1.5rem; }
.content-box li { margin-bottom: 0.8rem; }

/* =========================================
   Support Card
========================================= */
.support-card {
  text-align: center;
  padding: 5rem 2rem;
}

.support-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.email-box {
  display: inline-block;
  background: rgba(229, 57, 53, 0.1);
  padding: 1.5rem 3.5rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0;
  border: 1px solid rgba(229, 57, 53, 0.3);
  transition: var(--transition);
  color: var(--text-main) !important;
}

.email-box:hover {
  background: rgba(229, 57, 53, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: translateY(-5px);
}

/* =========================================
   Footer
========================================= */
footer {
  background: rgba(10, 10, 10, 0.8);
  padding: 4rem 5% 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-desc {
  color: var(--text-secondary);
  max-width: 320px;
  margin-top: 1rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-main);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--primary); }

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

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .nav-container { padding: 1rem; }
  
  .navbar {
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 5%;
    width: 90%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    flex-direction: column;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.1rem; }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .content-box { padding: 2rem; }
  .email-box { font-size: 1.2rem; padding: 1rem 1.5rem; }
}
