/* ========================================
   GreenLens Landing Page – Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-dark: #1a2e1f;
  --color-dark-alt: #243828;
  --color-green: #2d5a3d;
  --color-green-light: #4a8c5e;
  --color-accent: #e8734a;
  --color-accent-hover: #d4623b;
  --color-cream: #f5f2eb;
  --color-white: #ffffff;
  --color-text: #1a2e1f;
  --color-text-light: rgba(245, 242, 235, 0.7);
  --color-text-muted: #6b7c6f;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img,
video {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 46, 31, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-cream);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  transform: scale(1.05);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-green-light);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 420px;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 115, 74, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-cream);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(245, 242, 235, 0.3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-cream);
  background: rgba(245, 242, 235, 0.08);
}

.hero-video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 46, 31, 0.15), transparent);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.stat {
  text-align: left;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-cream);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ========================================
   FEATURES GRID – "Scan it. / Track it."
   ======================================== */
.features {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.features-header h2 {
  color: var(--color-dark);
}

.features-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-dark);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26, 46, 31, 0.2);
}

.feature-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card-bg {
  transform: scale(1.05);
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 46, 31, 0.9) 0%, rgba(26, 46, 31, 0.2) 60%);
}

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

.feature-card h3 {
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

/* Small feature cards row */
.features-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.feature-small-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-small-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 46, 31, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.feature-small-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.feature-small-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================================
   BOTANICAL INTELLIGENCE
   ======================================== */
.intelligence {
  padding: var(--space-2xl) 0;
  background: var(--color-white);
  overflow: hidden;
}

.intelligence .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.intelligence-content h2 em {
  font-style: italic;
  color: var(--color-green);
}

.intelligence-content h2 {
  margin-bottom: var(--space-md);
}

.intelligence-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.intelligence-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.intelligence-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.intelligence-feature:hover {
  background: var(--color-cream);
}

.intelligence-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.intelligence-feature h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.intelligence-feature p {
  font-size: 0.85rem;
  margin-bottom: 0;
  margin-top: 2px;
}

.intelligence-visual {
  position: relative;
}

.intelligence-mockup {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.intelligence-mockup::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-green) 0%, transparent 70%);
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.mockup-text {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-cream);
  text-align: center;
  z-index: 1;
  position: relative;
}

.mockup-text em {
  color: var(--color-green-light);
  font-style: italic;
}

/* ========================================
   CTA – "Join the Jungle"
   ======================================== */
.cta-section {
  padding: var(--space-2xl) 0;
  background: var(--color-cream);
}

.cta-card {
  background: var(--color-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.cta-card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-green) 0%, transparent 70%);
  opacity: 0.15;
  top: -100px;
  right: -100px;
  filter: blur(80px);
}

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

.cta-content h2 {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.cta-content h2 em {
  font-style: italic;
  color: var(--color-green-light);
}

.cta-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
  max-width: 440px;
}

.cta-metrics {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.cta-metric {
  text-align: left;
}

.cta-metric-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-accent);
}

.cta-metric-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.store-buttons {
  display: flex;
  gap: var(--space-sm);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245, 242, 235, 0.1);
  border: 1px solid rgba(245, 242, 235, 0.2);
  color: var(--color-cream);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}

.store-btn:hover {
  background: rgba(245, 242, 235, 0.15);
  border-color: rgba(245, 242, 235, 0.4);
}

.store-btn-icon {
  font-size: 1.4rem;
}

.store-btn-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
}

.store-btn-text strong {
  font-size: 0.9rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-dark);
  padding: var(--space-xl) 0 var(--space-md);
  color: var(--color-cream);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(245, 242, 235, 0.1);
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  color: var(--color-text-light);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

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

.footer-brand-large {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  color: rgba(245, 242, 235, 0.06);
  text-align: center;
  line-height: 1;
  padding: var(--space-lg) 0 var(--space-md);
  user-select: none;
  letter-spacing: -2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(245, 242, 235, 0.06);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 242, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  transition: background var(--transition), color var(--transition);
}

.footer-social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto var(--space-md);
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .hero-video-wrapper {
    max-width: 500px;
    margin: var(--space-md) auto 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-small {
    grid-template-columns: 1fr;
  }

  .intelligence .container {
    grid-template-columns: 1fr;
  }

  .intelligence-visual {
    order: -1;
  }

  .intelligence-mockup {
    max-width: 350px;
    min-height: 350px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-content p {
    margin: 0 auto var(--space-md);
  }

  .cta-metrics {
    justify-content: center;
  }

  .cta-actions {
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

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

  .nav-hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 46, 31, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .store-buttons {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
  }
}