:root {
  --primary-color: #000000;
  --secondary-color: #000000;
  --background-color: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #666666;
  --accent-color: #F5F5F5;
  --spacing-base: 1rem;
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background-color);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo img {
  width: 48px;
  height: 48px;
}

.logo span {
  font-size: 1.1rem;
}

.logo a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: calc(var(--spacing-base) * 2);
  align-items: center;
}

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

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

.nav-download {
  background: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.2s ease !important;
}

.nav-download:hover {
  color: white !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 160px;
  padding: calc(var(--spacing-base) * 2);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  gap: calc(var(--spacing-base) * 8);
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-image {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.iphone-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  transform: scale(0.9);
}

.iphone {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.iphone-1 {
  transform: rotate(-5deg);
}

.iphone-2 {
  transform: rotate(5deg);
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  opacity: 0.7;
  padding: 0 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: calc(var(--spacing-base) * 2);
  line-height: 1.2;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-base) * 3);
  max-width: 500px;
}

/* Features Section */
.features {
  padding-top: calc(var(--spacing-base) * 3);
  padding-bottom: calc(var(--spacing-base) * 3);
  padding-left: calc(var(--spacing-base) * 2);
  padding-right: calc(var(--spacing-base) * 2);
  background: var(--accent-color);
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-base) * 4);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-base) * 3);
  max-width: var(--container-width);
  margin: 0 auto;
}

.feature {
  background: white;
  padding: calc(var(--spacing-base) * 2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-base);
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-base);
}

/* How it works Section */
.how-it-works {
  margin-top: 60px;
  padding: calc(var(--spacing-base) * 1);
  text-align: center;
}

.how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-base) * 4);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-base) * 3);
  max-width: var(--container-width);
  margin: 0 auto;
}

.step {
  padding: calc(var(--spacing-base) * 2);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto var(--spacing-base);
}

/* Accuracy Section */
.accuracy {
  padding: calc(var(--spacing-base) * 6) var(--spacing-base) * 2;
  text-align: center;
  background: var(--accent-color);
}

.accuracy h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-base) * 2);
}

.accuracy p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: var(--spacing-base);
  margin-top: calc(var(--spacing-base) * 3);
}

.download-btn {
  display: block;
  width: 540px;
  height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.ios {
  background-image: url('assets/ios.svg');
}

.android {
  background-image: url('assets/android.svg');
}

/* Footer */
.footer {
  text-align: center;
  padding: calc(var(--spacing-base) * 3);
  background: var(--text-primary);
  color: white;
}

.footer p:first-child {
  margin-bottom: 1rem;
}

.footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .iphone {
    width: 220px;
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .header {
    padding: 1rem;
  }

  .logo img {
    width: 48px;
    height: 48px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .nav {
    display: none; /* Hide regular nav on mobile */
  }

  /* Hero section adjustments */
  .hero {
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  /* iPhone display adjustments */
  .iphone-container {
    transform: scale(0.8);
    margin: 2rem -1rem;
  }

  .iphone {
    width: 200px;
  }

  /* Features section adjustments */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
  }

  /* How it works section */
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  /* CTA section */
  .cta-section {
    margin: 2rem 1rem;
    padding: 3rem 1rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  /* Download buttons */
  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .download-btn {
    width: 160px;
    height: 50px;
  }
}

/* Add a mobile menu button */
.mobile-menu-button {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: calc(var(--spacing-base) * 3);
  color: var(--text-primary);
}

.cta-section {
    background-color: #000000;
    color: #ffffff;
    padding: calc(var(--spacing-base) * 6) var(--spacing-base);
    margin: calc(var(--spacing-base) * 8) auto;
    max-width: 800px;
    border-radius: 24px;
}

.cta-container {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-base) * 2);
    line-height: 1.1;
}

.cta-section p {
    font-size: 1.25rem;
    color: #888888;
    margin-bottom: calc(var(--spacing-base) * 3);
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Support Section */
.support-section {
    padding: calc(var(--spacing-base) * 3);
    background: var(--accent-color);
    text-align: center;
}

.support-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.support-section p {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.support-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.support-section a:hover {
    text-decoration: underline;
}