/* DragonRun Landing Page Styles */

/* CSS Variables - Matching App Theme */
:root {
  /* Main theme colors */
  --background: #F8FFFE;
  --surface: #FFFFFF;
  --surface-elevated: #F0F9FF;
  --primary: #26D0CE;
  --secondary: #FF9F43;
  --accent: #A78BFA;
  
  /* Dragon element colors */
  --fire: #FF5B5B;
  --water: #3B9CFF;
  --earth: #52C557;
  --air: #9575FF;
  
  /* Text colors */
  --text: #2D3748;
  --text-secondary: #718096;
  --text-light: #A0AEC0;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;
  
  /* Status colors */
  --success: #48BB78;
  --success-light: #F0FFF4;
  --warning: #ED8936;
  --danger: #F56565;
  --info: #4299E1;
  
  /* Card and shadow colors */
  --card-shadow: rgba(0, 0, 0, 0.05);
  --card-shadow-strong: rgba(0, 0, 0, 0.1);
  --overlay: rgba(255, 255, 255, 0.95);
  --modal-background: rgba(45, 55, 72, 0.4);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px var(--card-shadow);
  --shadow-md: 0 4px 8px var(--card-shadow);
  --shadow-lg: 0 8px 24px var(--card-shadow-strong);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  background-image: url('/assets/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background overlay for better readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 255, 254, 0.85); /* Semi-transparent overlay using your theme color */
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-icon {
  font-size: 1.2em;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

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

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

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--background) 0%, var(--surface-elevated) 50%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--surface);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.sparkle {
  color: var(--secondary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.phone-mockup {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-dragon,
.floating-egg {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.dragon-1 {
  top: 10%;
  right: -20%;
  animation-delay: -1s;
}

.dragon-2 {
  top: 30%;
  left: -15%;
  animation-delay: -3s;
}

.dragon-3 {
  bottom: 20%;
  right: -25%;
  animation-delay: -5s;
}

.floating-egg {
  top: 60%;
  left: -20%;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Features Section */
.features {
  padding: var(--spacing-xxl) 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--background);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download Section */
.download {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--surface-elevated), var(--background));
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.download-badges {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  transition: transform 0.3s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-image {
  height: 60px;
  width: auto;
}

.download-note {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

.dragon-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.dragon-element {
  background: var(--surface);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.dragon-element:hover {
  transform: scale(1.1) rotate(5deg);
}

.dragon-element.fire {
  border: 2px solid var(--fire);
  background: linear-gradient(135deg, var(--surface), #fff5f5);
}

.dragon-element.water {
  border: 2px solid var(--water);
  background: linear-gradient(135deg, var(--surface), #f0f9ff);
}

.dragon-element.earth {
  border: 2px solid var(--earth);
  background: linear-gradient(135deg, var(--surface), #f0fff4);
}

.dragon-element.air {
  border: 2px solid var(--air);
  background: linear-gradient(135deg, var(--surface), #f5f3ff);
}

/* About Section */
.about {
  padding: var(--spacing-xxl) 0;
  background: var(--surface);
  text-align: center;
}

.about-description {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xxl);
  flex-wrap: wrap;
}

.about-stat {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.about-stat strong {
  color: var(--primary);
  font-weight: 700;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-background);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-large .modal-content {
  max-width: 800px;
  width: 95%;
}

.modal-medium .modal-content {
  max-width: 600px;
  width: 92%;
}

.modal-scrollable {
  max-height: 70vh;
  overflow-y: auto;
}

/* Legal and Support Content Styles */
.legal-content {
  line-height: 1.6;
}

.legal-content h4 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.legal-content h4:first-child {
  margin-top: 0;
}

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

.legal-content li {
  margin-bottom: 0.5rem;
}

.support-content {
  line-height: 1.6;
}

.support-section {
  margin-bottom: 2rem;
}

.support-section h4 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
}

.faq-item h5 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.faq-item p {
  margin: 0;
  color: var(--text-light);
}

.contact-options {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-method {
  padding: 1rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
}

.contact-method strong {
  color: var(--primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-method p {
  margin: 0.25rem 0;
  color: var(--text-light);
}

.response-time {
  font-size: 0.9rem;
  opacity: 0.8;
}

.support-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.support-link:hover {
  text-decoration: underline;
}

/* Delete Account Modal Styles */
.delete-account-content {
  line-height: 1.6;
}

.warning-section {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.warning-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.warning-section h4 {
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.warning-section p {
  margin: 0.75rem 0;
  color: #7f1d1d;
}

.warning-section ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: #7f1d1d;
}

.warning-section li {
  margin-bottom: 0.5rem;
}

.warning-section strong {
  color: #dc2626;
  font-weight: 600;
}

.form-help {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-group select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-family);
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-family);
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-1px);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--background);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.message {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
}

.message.success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.message.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.message.info {
  background: #f0f9ff;
  color: var(--info);
  border: 1px solid var(--info);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
}

.footer-link {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: end;
}

.social-link {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--spacing-xl) auto 0;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-strong);
  text-align: center;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container,
  .download-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-badges {
    justify-content: center;
  }
  
  .about-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 var(--spacing-md);
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
  }
  
  .store-image {
    height: 50px;
  }
}