:root {
  --primary-gradient: linear-gradient(45deg, #8b4513, #a0522d, #cd853f);
  --primary-color: #8b4513;
  --secondary-color: #a0522d;
  --accent-color: #cd853f;
  --primary-light: rgba(139, 69, 19, 0.1);
  --text-color: #2c2c2c;
  --text-secondary: #5a5a5a;
  --background-color: #f7f4e9;
  --card-background: #ffffff;
  --border-color: rgba(44, 44, 44, 0.1);
  --shadow-subtle: 0 2px 8px rgba(44, 44, 44, 0.08);
  --shadow-medium: 0 4px 16px rgba(44, 44, 44, 0.12);
  --shadow-elevated: 0 8px 24px rgba(44, 44, 44, 0.15);
  --spacing-unit: 1rem;
  --max-width: 1200px;
  --border-radius: 16px;
  --border-radius-small: 8px;
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary-gradient: linear-gradient(45deg, #cd853f, #daa520, #f4a460);
  --primary-color: #cd853f;
  --secondary-color: #daa520;
  --accent-color: #f4a460;
  --primary-light: rgba(205, 133, 63, 0.1);
  --text-color: #e2e2e2;
  --text-secondary: #b0b0b0;
  --background-color: #1a1a1a;
  --card-background: #2d2d2d;
  --border-color: rgba(226, 226, 226, 0.1);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: "Georgia", "Times New Roman", "Crimson Text", serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(247, 244, 233, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-small);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
  transform: scale(1.1);
}

.theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

.social-links a {
  color: var(--text-secondary);
  font-size: 1.125rem;
  transition: all 0.2s ease;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
}

.social-links a:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

section {
  padding: 8rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  text-align: center;
  padding-top: 10rem;
  padding-bottom: 6rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 400;
}

.app-store-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-store-badge {
  display: inline-block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;

  font-weight: 600;
  font-size: 1.125rem;
}

.app-store-badge img {
  height: 3rem;
  transition: opacity 0.2s ease;
}

.requirements {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.hero-image {
  margin-top: 4rem;
  max-width: 100%;
  padding: 0 2rem;
}

.phone-mockup {
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
  box-shadow: var(--shadow-elevated);
}

.features {
  background-color: var(--card-background);
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2.5rem;
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--primary-light);
  border-radius: var(--border-radius);
}

.feature-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.015em;
}

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

.what-else {
  background-color: var(--background-color);
  text-align: center;
  padding: 8rem 0;
}

.what-else h2 {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
  background: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: inline-block;
}

.benefit-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.015em;
}

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

.cta {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  margin-top: 4rem;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.375rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  background-color: var(--card-background);
  padding: 4rem 2rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

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

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

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

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

@media (max-width: 768px) {
  .nav-links,
  .social-links {
    display: none;
  }

  h1 {
    font-size: 2.75rem;
    padding: 0 1rem;
  }

  .subtitle {
    font-size: 1.25rem;
    padding: 0 1rem;
  }

  section {
    padding: 6rem 0;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .cta h2 {
    font-size: 2.25rem;
  }

  .cta p {
    font-size: 1.25rem;
  }
}

/* Testimonials Section */
.testimonials {
  background: var(--background-color);
  padding: 8rem 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4rem;
  letter-spacing: -0.025em;
}

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

.testimonial-card {
  background: var(--card-background);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.stars i {
  color: #fbbf24;
  font-size: 1.125rem;
}

.testimonial-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author strong {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* FAQ Section */
.faq {
  background: var(--card-background);
  padding: 8rem 0;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4rem;
  letter-spacing: -0.025em;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

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

.faq-question i {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Enhanced Animations and Micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Hero animations */
.hero h1 {
  animation: fadeInUp 0.8s ease-out;
}

.hero .subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .app-store-container {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image img {
  animation: fadeInScale 1s ease-out 0.6s both, float 6s ease-in-out infinite 2s;
}

/* Enhanced button hover effects */
.app-store-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.app-store-badge:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
}

.app-store-badge:active {
  transform: translateY(0) scale(0.98);
}

/* Feature cards enhanced animations */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elevated);
}

.feature-card i {
  transition: all 0.3s ease;
}

.feature-card:hover i {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* Benefit cards animations */
.benefit-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Loading state for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image img {
    animation: none;
  }
}
