:root {
  /* iOS Theme Colors */
  --primary-color: #FF6B35;
  --primary-color-dark: #E65A20;
  --background-color: #F2F2F7;
  --card-background: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #3C3C4399;

  /* Fonts */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #FF8C5A;
    --background-color: #000000;
    --card-background: #1C1C1E;
    --text-primary: #FFFFFF;
    --text-secondary: #EBEBF599;
  }
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Glassmorphism Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

@media (prefers-color-scheme: dark) {
  nav {
    background: rgba(28, 28, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero Section with subtle gradient mesh */
.hero {
  position: relative;
  text-align: center;
  padding: 10rem 2rem 6rem 2rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

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

.badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.hero-social-proof {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* App Store Button */
.btn-app-store {
  display: inline-flex;
  align-items: center;
  background-color: var(--text-primary);
  color: var(--background-color);
  padding: 0.5rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  gap: 12px;
}

.btn-app-store:hover {
  transform: scale(1.02) translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-app-store .btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-app-store .small {
  font-size: 0.65rem;
  line-height: 1;
}

.btn-app-store .large {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

/* Trust Banner */
.trust-banner {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

.trust-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trust-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 6rem 2rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.feature-card {
  background-color: var(--card-background);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Updated Image Container for better visibility */
.feature-image-container {
  width: 100%;
  background-color: #f8f8fb;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (prefers-color-scheme: dark) {
  .feature-image-container {
    background-color: #111;
  }
}

/* Added faux-phone styling to screenshots */
.feature-screenshot {
  width: 80%;
  max-width: 260px;
  border-radius: 36px;
  box-shadow: 0 0 0 12px #000, 0 20px 40px rgba(0, 0, 0, 0.25);
  height: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .feature-screenshot {
    box-shadow: 0 0 0 12px #222, 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
  }
}

.feature-text {
  padding: 2.5rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials {
  padding: 4rem 2rem;
  background-color: var(--card-background);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 24px;
  text-align: left;
}

.testimonial-card .quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Bottom CTA */
.bottom-cta {
  padding: 8rem 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 120%, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Support Page Styles */
.support-container {
  max-width: 600px;
  margin: 8rem auto 4rem;
  padding: 3rem;
  background-color: var(--card-background);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.support-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.support-container p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--background-color);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group textarea {
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Legal Pages Styles */
.legal-container {
  max-width: 800px;
  margin: 8rem auto 4rem;
  padding: 3rem 2rem;
  background-color: var(--card-background);
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-container p,
.legal-container ul {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-container ul {
  padding-left: 2rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-background);
  padding: 3rem 2rem;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

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

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.modal-content .form-group {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content .btn-primary {
  padding: 0.8rem;
}