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

:root {
  --bg: #ffffff;
  --bg-card: #fafaf7;
  --bg-card-hover: #f5f3ee;
  --surface: #f7f6f2;
  --green: #4caf50;
  --green-dim: #388e3c;
  --green-glow: rgba(76, 175, 80, 0.14);
  --gold: #4caf50;
  --text: #1a1a1a;
  --text-dim: #5c5c5c;
  --text-muted: #9a9a9a;
  --border: #e5e2db;
  --radius: 12px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

/* ── NAV ────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 24px;
  background: none;
  border: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  transition: color 0.2s;
}

.logo:hover {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.btn-nav {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(76, 175, 80, 0.3);
}

/* ── HERO ───────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-glow--2 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(56, 142, 60, 0.04) 0%, transparent 70%);
  animation: glowPulse 6s 1s ease-in-out infinite;
}

.floating-parcels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.parcel {
  position: absolute;
  border: 1px solid rgba(76, 175, 80, 0.08);
  border-radius: 3px;
  background: rgba(76, 175, 80, 0.02);
  animation: parcelFloat linear infinite;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: var(--text);
}

.hero-title .line {
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title .line--small {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
}

.hero-title .line--big {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 8px 0;
  background: linear-gradient(180deg, #43a047 0%, #1b5e20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(76, 175, 80, 0.3));
  animation: fadeScale 1s 0.2s ease both;
}

.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.6s ease both;
}

.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-x:hover {
  transform: translateY(-3px) scale(1.05);
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(76, 175, 80, 0.05);
}

.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  animation: fadeUp 0.8s 0.85s ease both;
}

.ca-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ca-value {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.ca-copy {
  padding: 4px 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.ca-copy:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── TAGLINE ────────────────────────────── */

.tagline {
  padding: 80px 0;
  text-align: center;
  background: var(--bg);
}

.tagline-text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

.tagline-text strong {
  color: var(--green);
  font-weight: 600;
}

/* ── SECTIONS ───────────────────────────── */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* ── ABOUT ──────────────────────────────── */

.about {
  padding: 140px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.accent {
  color: var(--green);
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

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

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.acre-grid {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 4px;
  transform: perspective(800px) rotateX(25deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}

.acre-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.acre-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.acre-cell.active::after {
  opacity: 0.25;
}

.acre-cell.active {
  border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
  transform: translateY(-4px);
}

/* ── VISION ─────────────────────────────── */

.vision {
  padding: 140px 0;
}

.vision-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 56px;
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.vision-image {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.image-3d-wrapper {
  animation: float3d 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.floating-3d {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15))
          drop-shadow(0 8px 16px rgba(76, 175, 80, 0.1));
  transition: transform 0.3s ease;
}

.image-3d-wrapper:hover .floating-3d {
  transform: rotateY(8deg) rotateX(-4deg) scale(1.03);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--green-glow);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── HOW TO BUY ─────────────────────────── */

.how-to-buy {
  padding: 140px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.htb-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.htb-sub {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 56px;
  max-width: 560px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step:first-child {
  border-top: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
}

.step-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step-body p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 540px;
}

.step-body strong {
  color: var(--text);
  font-weight: 600;
}

.htb-cta {
  margin-top: 48px;
  text-align: center;
}

/* ── FOOTER ─────────────────────────────── */

.footer {
  padding: 48px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── ANIMATIONS ─────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -55%) scale(1.1); }
}

@keyframes parcelFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-120px) rotate(15deg);
    opacity: 0;
  }
}

@keyframes float3d {
  0%, 100% {
    transform: rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(6deg) rotateX(-4deg) translateY(-16px);
  }
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────── */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-image {
    order: -1;
  }

  .floating-3d {
    max-height: 300px;
  }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .step-number {
    font-size: 2rem;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .acre-grid {
    max-width: 280px;
  }

  .floating-3d {
    max-height: 240px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-number {
    font-size: 1.5rem;
  }
}
