@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;600;800&display=swap");

:root {
  --primary: #5e8d5a;
  --primary-light: #7baf77;
  --secondary: #a4c69f;
  --accent: #ffd700;
  --background: #ffffff;
  --text: #1d1d1f; /* Apple's specific black */
  --text-muted: #86868b; /* Apple's specific grey */
  --white: #ffffff;
  --primary-glow: rgba(94, 141, 90, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll wiggles */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Disable Text Selection & Highlighting */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  /* Prevent Image Dragging */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

body {
  background-color: var(--background);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.45;
  letter-spacing: -0.011em;
}

h1 {
  font-size: clamp(2.2rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(94, 141, 90, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(94, 141, 90, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  z-index: -1;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px; /* Slightly wider for desktop */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%); /* iOS Safari Support */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.logo {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.logo span {
  color: var(--text);
}

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

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Burger Menu Button */
.burger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 5px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

.mobile-links a {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: 0.3s;
}

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

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

/* For iOS smooth scrolling */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

.timeline-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Store Badges */
.hero-store-badges,
.cta-store-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  align-items: center;
}

.store-badge img {
  height: 65px; /* Scaled back slightly from 85px */
  width: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Balance the visual weight of the App Store badge */
.store-badge img[src="appstore.png"] {
  height: 120px; /* Significantly increased to match visual weight */
}

.store-badge:hover img {
  transform: translateY(-3px) scale(1.05);
}

.btn-download {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--primary-glow);
  filter: brightness(1.1);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 220px 10% 80px;
  text-align: center;
}

.hero-content {
  flex: none;
  max-width: 800px;
  margin-bottom: 4rem;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-content p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.4;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Floating Mobile Mockup */
.hero-visual {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.mascot-container {
  position: absolute;
  bottom: -30px;
  right: 50%;
  transform: translateX(250px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
}

.mascot-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.speech-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border-bottom-right-radius: 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 200px;
  margin-bottom: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.mobile-mockup {
  width: 320px;
  height: auto;
  background: transparent;
  border: none;
  position: relative;
  overflow: visible;
  box-shadow: none; /* Removed the shadow "container" look */
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-mockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.glow-circle {
  display: none; /* Hide the background glow container */
}

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

/* Features Section */
.features {
  padding: 8rem 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 24px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(94, 141, 90, 0.05);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

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

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

.feature-mascot {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  opacity: 0.2;
  transition: 0.3s;
}

.feature-card:hover .feature-mascot {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Footer */
footer {
  padding: 4rem 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Timeline Features */
.timeline-features {
  padding: 60px 10%;
  position: relative;
  overflow: hidden;
}

/* Background Mascots */
.bg-mascot-fade {
  position: fixed;
  width: 900px;
  height: auto;
  opacity: 0.1;
  z-index: -2;
  pointer-events: none;
}

.bg-mascot-fade.right-bottom {
  bottom: 0px;
  right: -750px;
  transform: rotate(-0.5deg);
  opacity: 0.2;
}

.bg-mascot-fade.left-top {
  top: 200px;
  left: -150px;
  transform: rotate(40deg);
  opacity: 0.15;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  box-shadow:
    0 0 15px var(--primary),
    0 0 5px var(--white);
  transition: height 0.1s ease-out;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.timeline-item.alt {
  flex-direction: row-reverse;
}

.timeline-visual,
.timeline-content {
  flex: 1;
  padding: 0 5%;
}

.timeline-content {
  text-align: left;
}

.timeline-item.alt .timeline-content {
  text-align: right;
}

.timeline-item.alt .mascot-speech {
  flex-direction: row-reverse;
}

.mobile-mockup.mini {
  width: 260px;
  height: 520px;
  margin: 0 auto;
}

.mascot-speech {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.timeline-item.alt .speech-bubble {
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 4px;
}

.mascot-small {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.float-1 {
  animation: float 6s ease-in-out infinite;
}
.float-2 {
  animation: float 7s ease-in-out infinite 1s;
}
.float-3 {
  animation: float 5s ease-in-out infinite 0.5s;
}

.timeline-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.timeline-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 450px;
}

.timeline-item.alt p {
  margin-left: auto;
}

@media (max-width: 1024px) {
  .timeline-line {
    display: none;
  }

  .timeline-item,
  .timeline-item.alt {
    flex-direction: column;
    text-align: center !important;
    gap: 3rem;
  }

  .timeline-item.alt .mascot-speech {
    flex-direction: row;
    justify-content: center;
  }

  .mascot-speech {
    justify-content: center;
  }

  .timeline-item p,
  .timeline-item.alt p {
    margin: 0 auto;
  }
}

/* Psychology Elements */
.badge {
  background: rgba(94, 141, 90, 0.15);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
}

.trust-bar {
  padding: 3rem 10%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.trust-bar span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.trust-logo {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials {
  padding: 8rem 10%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(94, 141, 90, 0.05) 0%,
    transparent 70%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: var(--white);
}

.user-info h4 {
  font-size: 1rem;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Final CTA */
.final-cta {
  padding: 100px 10%;
  text-align: center;
  position: relative;
  overflow: visible;
}

.cta-mascot-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.sleeping-mascot {
  width: 85px;
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

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

.final-cta h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.final-cta .btn-download {
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  margin: 0;
  display: inline-block;
}

.scarcity-text {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  padding: 20px 5% 60px;
  position: relative;
  z-index: 2;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--white);
  padding: 60px 80px;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s ease;
}

.about-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
}

.about-mascot {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-mascot img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
}

.about-text {
  flex: 1.5;
  text-align: left;
}

.about-text h2 {
  margin-bottom: 1rem;
  color: var(--text);
}

.about-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 2rem;
  color: var(--primary);
  font-family: "Outfit", sans-serif;
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .about-mascot img {
    width: 250px;
  }
}

/* Mobile Responsiveness & iOS Optimization */
@media (max-width: 768px) {
  nav {
    padding: 0.6rem 1.2rem;
    top: 16px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero {
    padding: 120px 5% 40px;
    min-height: 60vh;
  }

  .hero-store-badges, .cta-store-badges {
    display: flex;
    flex-direction: row; /* Keep side-by-side */
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .burger-menu {
    display: block;
  }

  .store-badge img {
    height: 50px;
  }

  .store-badge img[src="appstore.png"] {
    height: 85px; 
  }

  .timeline-line {
    display: none;
  }

  .timeline-features {
    padding: 40px 5% 40px;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .mascot-container {
    position: relative;
    bottom: 0;
    right: auto;
    transform: none;
    align-items: center;
    margin-top: 2rem;
  }

  .speech-bubble {
    margin: 0 auto 10px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 4px;
  }

  .about-container {
    padding: 30px 15px;
    margin: 0 10px;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-item, .timeline-item.alt {
    margin-bottom: 60px;
  }

  .mobile-mockup.mini {
    width: 200px;
    height: 400px;
  }

  .mascot-small {
    width: 100px;
  }

  .speech-bubble {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    max-width: 180px;
  }

  .about-mascot img {
    width: 160px;
  }

  .bg-mascot-fade {
    width: 250px;
    opacity: 0.05;
  }

  .sleeping-mascot {
    width: 55px;
    top: -35px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-store-badges {
    flex-direction: column;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.3rem;
  }
  
  nav {
    padding: 0.5rem 1.2rem;
    width: 92%;
  }

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

  .cta-description {
    font-size: 1rem;
    padding: 0 10%;
  }
}
