/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Theme: Dark Mode */
  --bg-deep: #09090b;
  --bg-accent: #1a1a2a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #4ade80; /* Farmhouse Green */
  --accent-alt: #fbbf24; /* Harvest Gold */

  /* Brutalist Branding */
  --brutal-border: 3px solid #000;
  --brutal-shadow: 6px 6px 0px #000;
  --brutal-shadow-hover: 3px 3px 0px #000;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);

  --radius-none: 0px;
  --container-max: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg-deep);
  background-attachment: fixed; /* Minimal parallax */
}

h1, h2, h3, h4 {
  font-family: 'Righteous', cursive;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }

/* === STRUCTURAL BASELINES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Glassmorphism Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  animation: blob-float 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, rgba(0,0,0,0) 70%); }
.blob-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, rgba(0,0,0,0) 70%); animation-delay: -5s; }

@keyframes blob-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(100px, 50px) scale(1.1); }
}

/* === NAVIGATION (Hidden Until Scroll) === */
.farm-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--brutal-border);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  padding: 0.75rem 0;
}

.farm-nav.visible {
  transform: translateY(0);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Righteous', cursive;
  font-size: 1.25rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-link:hover { color: var(--accent); }

/* === BUTTONS (Brutalist) === */
.btn-brutal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  padding: 0.85rem 1.5rem;
  font-weight: 800;
  font-size: 1rem;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-brutal:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000;
}

.btn-brutal:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #000;
}

.btn-secondary {
  background: var(--accent-alt);
}

/* === HERO SECTION === */
.farm-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  background: radial-gradient(circle at center, #1a1a2a 0%, #09090b 100%);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 2rem;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.rating-badge {
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  font-weight: bold;
  font-size: 1.1rem;
}

.rating-badge i { color: var(--accent-alt); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* === HOW IT WORKS (Vertical Timeline) === */
.timeline-section {
  background: var(--bg-deep);
}

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

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.timeline-content {
  background: var(--bg-accent);
  padding: 1.5rem;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-50%); }
  .timeline-item { width: 50%; padding-left: 0; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 40px; }
  .timeline-item:nth-child(odd) { padding-right: 40px; text-align: right; }
  .timeline-dot { left: 50%; transform: translateX(-50%); }
}

/* === FEATURES (3-Column Grid) === */
.features-section {
  background: var(--bg-accent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.05);
}

.feature-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

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

/* === SCREENSHOT GALLERY (Full-bleed Slider) === */
.gallery-section {
  padding-left: 0;
  padding-right: 0;
  background: #000;
}

.gallery-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  max-height: 550px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-btn {
  background: var(--accent);
  color: #000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 3px solid #000;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active { background: var(--accent); width: 30px; border-radius: 6px; }

/* === REVIEWS (Horizontal Scroll) === */
.reviews-section {
  background: var(--bg-deep);
}

.reviews-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.reviews-wrapper::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 350px;
  background: var(--bg-accent);
  padding: 1.5rem;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.avatar-initials {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Righteous', cursive;
}

.stars { color: var(--accent-alt); margin-bottom: 1rem; }

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* === DOWNLOAD CTA === */
.download-cta {
  text-align: center;
  background: radial-gradient(circle, var(--bg-accent) 0%, var(--bg-deep) 100%);
  padding: 100px 0;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  border-radius: 20px;
  border: 3px solid var(--accent);
}

.cta-tagline {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* === FOOTER === */
.farm-footer {
  background: #000;
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Righteous', cursive;
}

.footer-logo img { width: 24px; height: 24px; border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Intersection Observer Helpers */
.stagger-item { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 4rem; }
  .section-header h2 { font-size: 2.5rem; }
  .gallery-container { height: 450px; }
  .slide img { max-height: 400px; }
  .timeline-item { margin-bottom: 30px; }
}
