/* CSS Reset & Variables */
:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-from: #0d0221;
  --bg-via: #1e0a3a;
  --bg-to: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-light: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.8);
}

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

body {
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(13, 2, 33, 0.85);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  transition: all 0.4s ease-out;
}

.navbar.scrolled { box-shadow: 0 4px 20px var(--primary-glow); }

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.age-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.4s ease-out;
}

.nav-menu a:hover { color: var(--primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 20px 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%230d0221" width="1200" height="800"/><circle cx="200" cy="150" r="300" fill="%238b5cf6" opacity="0.1"/><circle cx="1000" cy="650" r="400" fill="%237c3aed" opacity="0.08"/></svg>') center/cover no-repeat;
}

.hero-content { max-width: 800px; margin: 0 auto; z-index: 1; }

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  margin-bottom: 20px;
  text-shadow: 0 0 30px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 40px;
  color: var(--text-dim);
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.4s ease-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: left 0.4s ease-out;
  z-index: -1;
}

.cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px var(--primary-glow);
  color: white;
}

.cta-btn:hover::before { left: 0; }

/* Sections */
section {
  padding: 60px 20px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 50px;
  color: var(--accent);
}

/* Download Section */
.download-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 50px 30px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 8px 40px var(--primary-glow); }
}

.download-form { margin-top: 30px; }

.email-input {
  width: 100%;
  padding: 15px;
  background: rgba(13, 2, 33, 0.6);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.4s ease-out;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.success-message {
  display: none;
  padding: 20px;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22c55e;
  border-radius: 8px;
  color: #22c55e;
  font-weight: 600;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease-out;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: scale(1.03) translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px var(--primary-glow));
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--accent);
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
}

.about-content p { margin-bottom: 20px; }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  font-size: 40px;
  color: var(--primary);
}

/* FAQ Section */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text-light);
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.4s ease-out;
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 20px;
  color: var(--text-dim);
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* Disclaimer Section */
.disclaimer-section {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid #dc2626;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin: 60px 20px;
}

.disclaimer-section h2 {
  color: #dc2626;
  margin-bottom: 20px;
  font-size: 32px;
}

/* Footer */
.footer {
  background: rgba(13, 2, 33, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 50px 20px 30px;
  text-align: center;
}

.footer-logo {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.4s ease-out;
}

.footer-links a:hover { color: var(--primary); }

.footer-age-badge {
  display: inline-block;
  margin: 20px 0;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.6);
}

.copyright {
  margin-top: 30px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
  padding: 50px;
  border-radius: 10px;
  border: 2px solid #dc2626;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(220, 38, 38, 0.5);
}

.modal-content h2 {
  color: #dc2626;
  margin-bottom: 30px;
  font-size: 36px;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.modal-btn {
  padding: 15px 30px;
  border: 2px solid;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease-out;
}

.btn-accept {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.btn-decline {
  background: transparent;
  border-color: #dc2626;
  color: #dc2626;
}

.btn-accept:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5); }
.btn-decline:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5); }

/* Point System Page */
.scoring-table {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 30px 0;
}

.scoring-table th,
.scoring-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.scoring-table th {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.scoring-table tr:hover { background: rgba(139, 92, 246, 0.1); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tip-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 25px;
  transition: all 0.4s ease-out;
}

.tip-card:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.tip-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* Privacy & Terms Pages */
.content-page {
  min-height: 100vh;
  padding: 100px 20px 50px;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

.content-container h1 {
  font-size: 42px;
  margin-bottom: 30px;
  color: var(--accent);
}

.content-container h2 {
  font-size: 28px;
  margin: 30px 0 15px;
  color: var(--primary);
}

.content-container p,
.content-container li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.content-container ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(13, 2, 33, 0.98);
    width: 100%;
    padding: 30px;
    border-bottom: 1px solid var(--card-border);
    transition: left 0.4s ease-out;
  }
  
  .nav-menu.active { left: 0; }
  
  .hero { padding: 120px 20px 60px; }
  
  .features-grid { grid-template-columns: 1fr; }
  
  .footer-links { flex-direction: column; gap: 15px; }
  
  .modal-content { padding: 30px; margin: 20px; }
  
  .modal-buttons { flex-direction: column; }
  
  .content-container { padding: 30px 20px; }
  
  .scoring-table { font-size: 14px; }
  
  .scoring-table th,
  .scoring-table td { padding: 10px; }
}

@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .logo-icon { width: 35px; height: 35px; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
}