:root {
  /* Color scheme based on Swift UI */
  --color-green-light: #e1e9d1;
  --color-green-regular: #7a9d54;
  --color-green-dark: #5a7d2c;
  --color-red-light: #f3d4c2;
  --color-red-regular: #c1442e;
  --color-red-dark: #922b21;
  --color-blue-light: #d2dde7;
  --color-blue-regular: #5a7d9a;
  --color-blue-dark: #3e5a75;
  --color-gold-light: #f1e5c8;
  --color-gold-regular: #c9a74e;
  --color-gold-dark: #8a6e28;
  --color-brown-light: #6a5d2f;
  --color-brown-regular: #4b4221;
  --color-brown-dark: #2f311b;
  --color-white-light: #fffaed;
  --color-white-regular: #ffefc7;
  --color-white-dark: #ffe8ad;
  --color-black-light: #444444;
  --color-black-regular: #222222;
  --color-black-dark: #000000;
  --color-gray-light: #e9e4dc;
  --color-gray-regular: #cfc7bd;
  --color-gray-dark: #a89f96;

  /* Typography */
  --font-heading: "Varela Round", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  scroll-behavior: smooth;

  scroll-padding-top: 6rem;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(
    135deg,
    var(--color-white-light),
    var(--color-white-regular)
  );
  color: var(--color-black-regular);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ffe8ad" stroke-width="1" opacity="0.2"/></svg>');
  background-size: 50px;
  opacity: 0.3;
  z-index: -1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

/* Full-width header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-white-dark);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-brown-regular);
  text-decoration: none;
}

.logo i {
  color: var(--color-gold-regular);
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav a {
  text-decoration: none;
  color: var(--color-brown-regular);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--color-gold-regular);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-regular);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Button Styles - Enhanced to match SwiftUI */
.btn {
  border-radius: 12px;
  padding: 0;
  height: 60px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: transform 0.15s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: var(--btn-dark);
  z-index: 0;
}

.btn-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--btn-regular);
  border-radius: inherit;
  z-index: 1;
  transition: transform 0.2s ease;
}

.btn:hover .btn-main {
  transform: translateY(-8px);
}

.btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 32px;
  color: var(--btn-text);
}

.btn-content i {
  margin-right: 8px;
}

.btn-small {
  height: 36px;
  border-radius: 9px;
}

.btn-medium {
  height: 48px;
  border-radius: 12px;
}

.btn-large {
  height: 60px;
  border-radius: 15px;
}

.btn-green {
  --btn-light: var(--color-green-light);
  --btn-regular: var(--color-green-regular);
  --btn-dark: var(--color-green-dark);
  --btn-text: var(--color-white-regular);
}

.btn-red {
  --btn-light: var(--color-red-light);
  --btn-regular: var(--color-red-regular);
  --btn-dark: var(--color-red-dark);
  --btn-text: var(--color-white-regular);
}

.btn-blue {
  --btn-light: var(--color-blue-light);
  --btn-regular: var(--color-blue-regular);
  --btn-dark: var(--color-blue-dark);
  --btn-text: var(--color-white-regular);
}

.btn-gold {
  --btn-light: var(--color-gold-light);
  --btn-regular: var(--color-gold-regular);
  --btn-dark: var(--color-gold-dark);
  --btn-text: var(--color-white-regular);
}

.btn-brown {
  --btn-light: var(--color-brown-light);
  --btn-regular: var(--color-brown-regular);
  --btn-dark: var(--color-brown-dark);
  --btn-text: var(--color-white-regular);
}

.btn-white {
  --btn-light: var(--color-white-light);
  --btn-regular: var(--color-white-regular);
  --btn-dark: var(--color-white-dark);
  --btn-text: var(--color-black-regular);
}

.btn-text {
  color: var(--btn-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.btn:hover i {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding-block: var(--space-xl);

  p {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--color-brown-light);
  }

  .hero-desktop {
    display: flex;
    margin-top: var(--space-xl);
    gap: var(--space-md);
    align-items: center;

    .content {
      max-width: 800px;
    }
  }

  .hero-mobile {
    grid-template-areas:
      "headline headline"
      "subheadline image";
    grid-template-columns: 1fr auto;
    align-items: start;
    display: none;
    gap: var(--space-sm);

    h1 {
      font-size: 3rem;
    }
    .subheadline {
      grid-area: subheadline;
    }
  }

  .screenshot {
    flex-shrink: 0;
    aspect-ratio: 654/1354;
    width: 360px;
    overflow: visible;
    object-fit: cover;

    img {
      position: relative;
      width: auto;
      height: 100%;
      top: 0;
      left: 0;
    }
  }

  h1 {
    grid-area: headline;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-brown-regular);
    line-height: 1.2;

    span {
      color: var(--color-gold-regular);
      background: linear-gradient(
        var(--color-gold-light),
        var(--color-gold-light)
      );
      background-size: 100% 12px;
      background-repeat: no-repeat;
      background-position: 0 90%;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
      padding: 0 2px; /* Optional to add space for the highlight */
    }
  }
}

@media (max-width: 768px) {
  .hero {
    .hero-mobile {
      display: grid;
      .screenshot {
        width: 180px;
      }
    }
    .hero-desktop {
      display: none;
    }
  }
}

@media (max-width: 380px) {
  .hero {
    .hero-mobile {
      grid-template-columns: 1fr;
      grid-template-areas:
        "headline"
        "image"
        "subheadline";
      place-items: center;
      text-align: center;

      .screenshot img {
        transform: translateX(24px);
      }
    }
  }
}

.app-store-badge {
  width: 200px;
}

@media (max-width: 768px) {
  .app-store-badge {
    width: 160px;
  }
}

/* Features Section */
.features {
  padding: var(--space-xl) 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin: var(--space-md) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-brown-regular);
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-brown-light);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: var(--space-sm);
  flex-wrap: wrap;
  text-align: center;
}

.feature img {
  height: 420px; /* fixed height */
  width: auto;
}

.feature-icon {
  font-size: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 0.8rem;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
}

.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--color-brown-regular);
}

.feature p {
  font-size: 1.05rem;
  color: var(--color-brown-light);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature img {
    height: 360px;
  }

  .feature-icon {
    margin: 0 auto 0.8rem;
  }
}

/* How It Works */
.how-it-works {
  padding: var(--space-xl) 0;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.step-card {
  background: white;
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-white-dark);
  text-align: center;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-gold-regular);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.step-number::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--color-gold-light);
  z-index: -1;
  opacity: 0.7;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-brown-regular);
}

.step-card p {
  color: var(--color-brown-light);
}

/* Testimonials */
.testimonials {
  padding: var(--space-xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 2px solid var(--color-white-dark);
}

.testimonial-card::before {
  content: "";
  font-size: 5rem;
  position: absolute;
  top: -25px;
  left: 20px;
  color: var(--color-gold-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-brown-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brown-regular);
  font-weight: bold;
}

.author-info h4 {
  font-family: var(--font-heading);
  color: var(--color-brown-regular);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
  font-style: normal;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(
    135deg,
    var(--color-brown-regular),
    var(--color-brown-dark)
  );
  color: white;
  border-radius: 30px;
  margin: var(--space-md) 0;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.cta p {
  max-width: 700px;
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta .btn {
  margin-top: var(--space-sm);
}

.cta::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    var(--color-gold-regular) 0%,
    transparent 70%
  );
  opacity: 0.2;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
}

/* App Store Badges */
.app-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.app-badge {
  display: inline-block;
  background: #000;
  border-radius: 10px;
  padding: 10px 20px;
  transition: transform 0.3s ease;
}

.app-badge:hover {
  transform: translateY(-5px);
}

.app-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-text {
  font-size: 0.7rem;
  color: white;
  margin-bottom: 2px;
}

.badge-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

/* Footer */
footer {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
  color: var(--color-brown-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-brown-regular);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Hero Image */
.hero-image {
  margin-top: var(--space-md);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  margin: var(--space-md) auto;
  border: 8px solid var(--color-white-regular);
}

.hero-image img {
  width: 100%;
  display: block;
}

.image-placeholder {
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--color-gold-light),
    var(--color-green-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brown-regular);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  padding: var(--space-md);
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .app-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

.floating.delay-1 {
  animation-delay: 0.5s;
}

.floating.delay-2 {
  animation-delay: 1s;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-brown-regular);
  cursor: pointer;
}

.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
}
