@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #4A8A5C;
  --color-primary-light: #EAF2EC;
  --color-primary-hover: #3E734D;
  --color-accent: #72A276;
  --color-accent-peach: #F7C59F;
  --color-background: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-card-bg: #FCFAF7;
  --color-text-dark: #2C2520;
  --color-text-muted: #706861;
  --color-text-light: #A19890;
  --color-border: #EFECE6;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 37, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(44, 37, 32, 0.06);
  --shadow-lg: 0 16px 40px rgba(44, 37, 32, 0.10);
  --shadow-green: 0 8px 24px rgba(74, 138, 92, 0.20);
  
  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--color-text-dark);
  font-weight: 800;
  line-height: 1.25;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

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

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

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80%;
  max-width: 960px;
  height: 70px;
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 236, 230, 0.6);
  border-radius: 12px; /* matches the logo icon corner radius exactly */
  z-index: 1000;
  padding: 0 2rem 0 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 30px rgba(44, 37, 32, 0.04), 0 1px 3px rgba(44, 37, 32, 0.01);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              box-shadow 0.3s ease;
}

/* Hidden state (when scrolling down, slides out of view) */
nav.nav-hidden {
  transform: translate(-50%, -100px);
  opacity: 0;
  pointer-events: none;
}

nav .nav-container {
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  text-decoration: none;
}

.logo-container span {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.4px;
  font-weight: 700; /* slightly thinner */
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500; /* slightly thinner */
  font-size: 0.95rem;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 26px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-text-dark);
  border-radius: var(--radius-full);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              background-color 0.3s ease;
  margin: 0;
  padding: 0;
}

.menu-toggle:hover .hamburger-line {
  background-color: var(--color-primary);
}

nav.menu-active .menu-toggle .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

nav.menu-active .menu-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

nav.menu-active .menu-toggle .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
  box-shadow: none;
}

.btn-primary:hover {
  background: transparent;
  color: black;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.btn-primary:active {
  transform: none;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #eaf5ec 0%, #faf8f5 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.app-store-btn {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-btn:hover {
  transform: scale(1.04);
}

.app-store-btn img {
  height: 54px;
}

/* iPhone Mockup Container - Screenshot Hotspot Mode */
.hero-graphics {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  top: -20px;
  width: 320px;
  aspect-ratio: 1428 / 2959;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.phone-frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 80;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.phone-screen-screenshots {
  position: absolute;
  left: 3.78%;
  top: 1.55%;
  width: 92.44%;
  height: 96.92%;
  overflow: hidden;
  border-radius: 12% / 6%; /* Responsive rounded corners to fit inside the frame bezel */
  background: #000;
  z-index: 10;
}

.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  z-index: 95; /* above screenshots, below hotspots */
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  cursor: pointer;
  background: transparent;
  z-index: 100;
}

/* Tab Bar Hotspots at the bottom (11% height) */
.tab-hotspot {
  bottom: 0;
  height: 11%;
  width: 25%;
}

/* Profile screen's Garden Market banner hotspot */
#hotspot-market {
  bottom: 11.5%;
  left: 5%;
  width: 90%;
  height: 9%;
  display: none;
}

/* Catalog screen's Back button hotspot */
#hotspot-back {
  top: 5.5%;
  left: 3%;
  width: 12%;
  height: 7%;
  display: none;
}


/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features {
  padding: 8rem 0;
  background: var(--color-surface);
  position: relative;
  z-index: 10;
}

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

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  color: var(--color-text-muted);
}

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

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 138, 92, 0.15);
}

.feature-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 2rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-primary);
}

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

.feature-card p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works {
  padding: 8rem 0;
  background: var(--color-background);
}

.timeline-how-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 50px;
}

.timeline-how-line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 19px;
  width: 3px;
  background: var(--color-border);
}

.timeline-how-step {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-how-step:last-child {
  margin-bottom: 0;
}

.timeline-how-dot {
  position: absolute;
  left: -42px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 4px solid var(--color-background);
  z-index: 10;
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-how-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.timeline-how-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.timeline-how-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.timeline-how-demo {
  display: flex;
  justify-content: center;
}

/* Demo component simulations inside the "How It Works" steps */
.demo-box {
  width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.demo-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.demo-code-input {
  background: white;
  border: 1px solid var(--color-border);
  padding: 12px;
  border-radius: var(--radius-xs);
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.demo-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-full);
}

.demo-question-pill {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.demo-question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.demo-input-placeholder {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  min-height: 50px;
}

.demo-bloom-sprout {
  max-width: 130px;
  filter: drop-shadow(0 8px 16px rgba(44, 37, 32, 0.1));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: white;
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Legal Pages (Terms, Privacy, Support) styling overhauls */
.legal-page {
  padding: 8rem 0 6rem;
  max-width: 850px;
  margin: 0 auto;
}

.legal-content {
  background: white;
  padding: 4.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1.5px dashed var(--color-primary-light);
}

.legal-content a:hover {
  border-bottom-style: solid;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-tag { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .phone-mockup-wrapper { width: 290px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  nav {
    width: 90%;
    padding: 0 1.5rem;
    height: auto;
    min-height: 70px;
    max-height: 70px;
    display: block;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
  }
  nav.menu-active {
    max-height: 280px;
  }
  .nav-container {
    height: auto;
    min-height: 70px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0;
  }
  .logo-container {
    order: 1;
  }
  .menu-toggle {
    order: 2;
  }
  .logo-container {
    height: 70px;
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: flex;
    align-self: center;
    transform: translateY(-1px);
  }
  .nav-links {
    order: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 1.5rem;
    gap: 1.25rem;
    align-items: center;
    pointer-events: none;
  }
  nav.menu-active .nav-links {
    pointer-events: auto;
  }
  .timeline-how-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .timeline-how-container { padding-left: 30px; }
  .timeline-how-line { left: 9px; }
  .timeline-how-dot { left: -30px; }
  .legal-content { padding: 2.5rem 1.5rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-col:first-child { grid-column: span 1; }
}

/* Partner Connect Card Simulation */
.partner-connect-card {
  text-align: left;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem !important;
  box-shadow: var(--shadow-sm);
  max-width: 290px;
  margin: 0 auto;
}

.pc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FCDCC5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  margin-top: 8px;
}

.pc-subtitle {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-top: 2px;
  margin-bottom: 8px;
}

.pc-section-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.pc-code-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pc-code-text {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--color-text-dark);
}

.pc-copy-icon {
  background: #EAF2EC;
  color: var(--color-primary);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-copy-icon svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.pc-divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
  font-size: 0.65rem;
  color: var(--color-text-light);
}

.pc-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
  z-index: 1;
}

.pc-divider span {
  position: relative;
  background: var(--color-card-bg);
  padding: 0 6px;
  z-index: 2;
}

.pc-input-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 10px;
  color: #c5beb7;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.pc-btn {
  background: #C2DEC9;
  color: white;
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pc-btn svg {
  fill: currentColor;
}

.pc-status-banner {
  background: #EAF2EC;
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.pc-status-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-primary);
}

.pc-status-banner span {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Withered Sprout Demo Container (Step 4) */
.withered-demo-container {
  position: relative;
  width: 90px;
  height: 135px;
  margin: 0 auto;
}

.withered-block-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.withered-sprout-img {
  position: absolute;
  width: 55%;
  height: auto;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

