/* ===========================
   Global Styles
   =========================== */

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

:root {
  --gradient-start: #DBA2FE;
  --gradient-end: #FFFFFF;
  --text-h1: #222222;
  --text-h2: #666666;
  --text-h3: #999999;
  --text-dark: #333333;
  --text-light: #666666;
  --text-white: #FFFFFF;
  --button-primary: #8B5CF6;
  --button-hover: #7C3AED;
  --button-light: #E9D5FF;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #FFFFFF;
}

/* Temporarily hidden elements */
.delete-account-btn {
  display: none !important;
}

.download-btn-secondary {
  display: none !important;
}

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

/* ===========================
   Header / Navigation
   =========================== */

.header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.delete-account-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.delete-account-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  padding: 60px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-screenshot {
  width: auto;
}

.app-screenshot img {
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 20px;
}

.hero-right {
  flex: 1;
  color: var(--text-white);
}

.hero-logo {
  font-size: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text-h1);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-h2);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-h3);
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.download-btn-primary {
  background-color: var(--text-white);
  color: var(--button-primary);
}

.download-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.download-btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.download-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Features Section
   =========================== */

.features {
  padding: 80px 0;
  background-color: var(--text-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-h2);
}

.feature-description {
  font-size: 15px;
  color: var(--text-h3);
  line-height: 1.6;
}

/* ===========================
   Footer
   =========================== */

.footer {
  background-color: #F9FAFB;
  padding: 40px 0 30px;
  text-align: center;
}

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

.footer-link {
  color: var(--button-primary);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-copyright {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-contact {
  color: var(--text-light);
  font-size: 13px;
}

.contact-link {
  color: var(--button-primary);
  text-decoration: none;
}

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

/* ===========================
   Delete Account Modal
   =========================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.modal-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #E5E7EB;
  background-color: #F9FAFB;
  border-radius: 4px 4px 0 0;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--button-primary);
  background-color: #F3F4F6;
}

.form-input::placeholder {
  color: #D1D5DB;
}

.form-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 16px;
  background-color: #FEF3C7;
  border-radius: 8px;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: #93C5FD;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background-color: #60A5FA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.form-submit:active {
  transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 15px;
  }

  .download-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .modal-content {
    padding: 30px 24px;
  }

  .modal-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .download-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .feature-icon {
    font-size: 48px;
  }

  .feature-title {
    font-size: 18px;
  }

  .modal-content {
    padding: 24px 20px;
  }
}
