:root {
  --green-dark: #1f5f35;
  --green: #3e8b45;
  --green-light: #86c96b;
  --green-soft: #dff4d3;
  --earth: #8b5a35;
  --sky-top: #8ed0ff;
  --sky-bottom: #e7f8ff;
  --yellow: #ffd54f;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text: #1d2c1f;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  position: relative;
}

a {
  color: var(--green-dark);
  font-weight: bold;
}

.sky {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255,255,255,0.35), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.25), transparent 16%),
    linear-gradient(to bottom, var(--sky-top), var(--sky-bottom) 45%, #bfe59b 70%, #82be59 100%);
  z-index: -10;
}

.sun {
  position: fixed;
  top: 40px;
  right: 70px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6b3 0%, var(--yellow) 60%, rgba(255, 213, 79, 0.2) 75%, transparent 76%);
  box-shadow: 0 0 60px rgba(255, 213, 79, 0.45);
  z-index: -9;
  animation: pulseSun 5s ease-in-out infinite;
}

.cloud {
  position: fixed;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  z-index: -8;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
}

.cloud-1 {
  width: 130px;
  height: 45px;
  top: 120px;
  left: 8%;
  animation: floatCloud 24s linear infinite;
}
.cloud-1::before {
  width: 55px;
  height: 55px;
  top: -22px;
  left: 18px;
}
.cloud-1::after {
  width: 60px;
  height: 60px;
  top: -26px;
  right: 18px;
}

.cloud-2 {
  width: 160px;
  height: 50px;
  top: 180px;
  left: 52%;
  animation: floatCloud 30s linear infinite;
}
.cloud-2::before {
  width: 65px;
  height: 65px;
  top: -28px;
  left: 24px;
}
.cloud-2::after {
  width: 70px;
  height: 70px;
  top: -30px;
  right: 20px;
}

.cloud-3 {
  width: 110px;
  height: 38px;
  top: 80px;
  left: 72%;
  animation: floatCloud 18s linear infinite;
}
.cloud-3::before {
  width: 48px;
  height: 48px;
  top: -20px;
  left: 14px;
}
.cloud-3::after {
  width: 46px;
  height: 46px;
  top: -18px;
  right: 16px;
}

.landscape {
  position: fixed;
  inset: 0;
  z-index: -7;
  pointer-events: none;
}

.hill {
  position: absolute;
  bottom: 150px;
  border-radius: 50%;
}

.hill-1 {
  left: -8%;
  width: 45%;
  height: 220px;
  background: #6daa55;
}

.hill-2 {
  left: 25%;
  width: 40%;
  height: 180px;
  background: #5f9b4d;
}

.hill-3 {
  right: -5%;
  width: 38%;
  height: 210px;
  background: #73b05a;
}

.fields {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 220px;
  background:
    repeating-linear-gradient(
      -12deg,
      #7fb94e 0px,
      #7fb94e 30px,
      #72ab45 30px,
      #72ab45 60px,
      #8bc85a 60px,
      #8bc85a 90px
    );
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  border-top: 4px solid rgba(255,255,255,0.15);
}

.tractor {
  position: absolute;
  bottom: 70px;
  right: -220px;
  width: 210px;
  height: 110px;
  animation: tractorRide 16s linear infinite;
}

.tractor-body {
  position: absolute;
  bottom: 28px;
  left: 45px;
  width: 105px;
  height: 30px;
  background: #d94141;
  border-radius: 12px 18px 10px 10px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.tractor-cabin {
  position: absolute;
  bottom: 52px;
  left: 86px;
  width: 42px;
  height: 34px;
  background: #bde8ff;
  border: 5px solid #d94141;
  border-bottom: 8px solid #d94141;
  border-radius: 8px 8px 4px 4px;
}

.tractor-wheel {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: #2a2a2a;
  border: 6px solid #4d4d4d;
}

.tractor-wheel::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #c9c9c9;
}

.tractor-wheel.back {
  width: 54px;
  height: 54px;
  left: 28px;
}

.tractor-wheel.front {
  width: 34px;
  height: 34px;
  left: 140px;
  bottom: 4px;
}

.tractor-scan {
  position: absolute;
  left: 152px;
  bottom: 26px;
  width: 90px;
  height: 120px;
  background: linear-gradient(to right, rgba(61, 219, 255, 0.35), rgba(61, 219, 255, 0));
  clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%);
  animation: beamPulse 1.8s ease-in-out infinite;
}

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 20px 35px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  color: var(--green-dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: #184c2b;
  text-shadow: 0 3px 0 rgba(255,255,255,0.45);
}

.hero p {
  max-width: 820px;
  margin: 18px auto 0;
  font-size: 1.15rem;
  line-height: 1.7;
  background: rgba(255,255,255,0.68);
  padding: 18px 22px;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.orientation-box {
  width: 80%;
  max-width: 1000px;
  margin: 25px auto 35px;
  background: rgba(255,255,255,0.84);
  padding: 28px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.17);
  backdrop-filter: blur(6px);
}

.orientation-box h2 {
  margin-top: 0;
  color: var(--green-dark);
}

.orientation-box p {
  line-height: 1.7;
  margin-bottom: 18px;
}

.orientation-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.orientation-links a {
  text-decoration: none;
  background: linear-gradient(135deg, #3e8b45, #2f6b36);
  color: white;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: bold;
  transition: 0.3s;
  width: 290px;
  display: block;
  box-shadow: 0 12px 20px rgba(47, 107, 54, 0.22);
}

.orientation-links a:hover {
  transform: translateY(-4px);
}

.orientation-links small {
  display: block;
  margin-top: 6px;
  opacity: 0.95;
  font-weight: normal;
}

.activities {
  width: 80%;
  max-width: 1100px;
  margin: 30px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.activity-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--card-bg);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, box-shadow 0.35s ease, opacity 0.6s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(134, 201, 107, 0.18), transparent 45%);
  pointer-events: none;
}

.activity-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.activity-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.activity-icon {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  background: linear-gradient(135deg, #efffe4, #c9f1b6);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}

.activity-content {
  width: 100%;
}

.activity-content h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  color: var(--green-dark);
}

.activity-content h3 {
  margin: 14px 0 8px;
  color: var(--green-dark);
}

.activity-content p {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.activity-content ul {
  margin-top: 8px;
  line-height: 1.7;
}

.small-note {
  font-size: 0.98rem;
  opacity: 0.9;
}

.mini-crops {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.plant {
  position: relative;
  width: 120px;
  height: 135px;
  background: linear-gradient(to top, #8d6b47 0 32%, transparent 32% 100%);
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
}

.plant span {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
}

.stem {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: 10px;
  height: 52px;
  margin-left: -5px;
  background: linear-gradient(to top, #4b8d2d, #9ee46a);
  border-radius: 20px 20px 6px 6px;
  transform-origin: bottom center;
  transform: scaleY(0.2);
  transition: transform 0.8s ease;
}

.bulb {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) scale(0.2);
  transform-origin: center bottom;
  transition: transform 0.8s ease;
}

.onion-plant .bulb {
  width: 34px;
  height: 26px;
  border-radius: 50% 50% 45% 45%;
  background: #d9c36b;
}

.shallot-plant .bulb {
  width: 26px;
  height: 30px;
  border-radius: 48% 48% 42% 42%;
  background: #ba77a1;
}

.garlic-plant .bulb {
  width: 34px;
  height: 28px;
  border-radius: 48% 48% 45% 45%;
  background: #f2efe6;
  box-shadow: inset -6px 0 0 rgba(0,0,0,0.05), inset 6px 0 0 rgba(0,0,0,0.05);
}

.weed-plant .stem {
  height: 42px;
  width: 7px;
  background: #2f7b32;
}

.leaf {
  position: absolute;
  background: #2f8b3a;
  border-radius: 80% 20% 80% 20%;
  transform: scale(0.2);
  transition: transform 0.8s ease;
}

.weed-plant .leaf-1 {
  width: 42px;
  height: 18px;
  left: 50%;
  bottom: 60px;
  margin-left: -38px;
  transform-origin: right center;
  transform: rotate(-35deg) scale(0.2);
}

.weed-plant .leaf-2 {
  width: 42px;
  height: 18px;
  left: 50%;
  bottom: 72px;
  margin-left: -2px;
  transform-origin: left center;
  transform: rotate(25deg) scale(0.2);
}

.activity-card.grown .stem {
  transform: scaleY(1);
}

.activity-card.grown .bulb {
  transform: translateX(-50%) scale(1);
}

.activity-card.grown .weed-plant .leaf-1 {
  transform: rotate(-35deg) scale(1);
}

.activity-card.grown .weed-plant .leaf-2 {
  transform: rotate(25deg) scale(1);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.legend-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(239,255,228,0.7);
  border-radius: 16px;
  padding: 12px;
}

.legend-color {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.1);
}

.legend-color.green { background: #3fbf5a; }
.legend-color.yellow { background: #f2cb3d; }
.legend-color.red { background: #db4b3f; }
.legend-color.blue { background: #3f8edb; }

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(239,255,228,0.65);
  border-radius: 20px;
  padding: 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3e8b45, #2f6b36);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
}

pre {
  background: #1f2b1f;
  color: #f4fff2;
  padding: 14px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.98rem;
}

code {
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.placeholder-photo {
  margin-top: 12px;
  background: rgba(255,255,255,0.7);
  border: 2px dashed rgba(31,95,53,0.35);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  font-weight: bold;
  color: var(--green-dark);
}

.ai-demo {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.sample-area {
  background: linear-gradient(to top, #8b5a35 0 24%, #f4fff2 24% 100%);
  border-radius: 24px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(63, 139, 69, 0.14);
}

.sample-plant {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 120px;
  height: 170px;
}

.sample-stem {
  position: absolute;
  left: 50%;
  bottom: 45px;
  width: 12px;
  height: 78px;
  margin-left: -6px;
  border-radius: 20px;
  background: linear-gradient(to top, #4c9230, #b2f07a);
}

.sample-bulb {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}

.sample-leaf {
  position: absolute;
  background: #2f8b3a;
  opacity: 0;
}

.sample-plant.onion .sample-bulb {
  width: 44px;
  height: 34px;
  border-radius: 50%;
  background: #d9c36b;
}

.sample-plant.shallot .sample-bulb {
  width: 34px;
  height: 40px;
  border-radius: 45%;
  background: #b86f98;
}

.sample-plant.garlic .sample-bulb {
  width: 44px;
  height: 36px;
  border-radius: 45%;
  background: #f2efe6;
  box-shadow: inset -7px 0 0 rgba(0,0,0,0.05), inset 7px 0 0 rgba(0,0,0,0.05);
}

.sample-plant.weed .sample-stem {
  width: 8px;
  margin-left: -4px;
  height: 58px;
  background: #2d7f31;
}

.sample-plant.weed .sample-bulb {
  width: 0;
  height: 0;
}

.sample-plant.weed .sample-leaf {
  opacity: 1;
  width: 52px;
  height: 18px;
  border-radius: 80% 20% 80% 20%;
}

.sample-plant.weed .leaf-a {
  left: 12px;
  bottom: 70px;
  transform: rotate(-35deg);
}

.sample-plant.weed .leaf-b {
  right: 12px;
  bottom: 84px;
  transform: rotate(28deg);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #3e8b45, #2f6b36);
  color: white;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.demo-btn:hover {
  transform: translateY(-2px);
}

.demo-btn.danger {
  background: linear-gradient(135deg, #b95339, #94331e);
}

.result-box {
  margin-top: 16px;
  background: rgba(239,255,228,0.7);
  border-radius: 18px;
  padding: 18px;
}

.result-box h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

.confidence-wrap {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 12px 0 10px;
}

.confidence-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dcf66, #2f8b3a);
  transition: width 0.6s ease;
}

.ai-explanation {
  font-size: 0.98rem;
}

.footer {
  text-align: center;
  padding: 20px 20px 40px;
  color: #184c2b;
  font-weight: bold;
}

@keyframes pulseSun {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes floatCloud {
  0% { transform: translateX(0); }
  50% { transform: translateX(35px); }
  100% { transform: translateX(0); }
}

@keyframes tractorRide {
  0% {
    right: -240px;
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
  75% {
    transform: translateY(-1px);
  }
  100% {
    right: 110%;
    transform: translateY(0);
  }
}

@keyframes beamPulse {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.75;
  }
}

@media (max-width: 980px) {
  .activities,
  .orientation-box {
    width: 90%;
  }

  .ai-demo,
  .two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 50px;
  }

  .activity-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .activity-icon {
    width: 74px;
    height: 74px;
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .activity-content h2 {
    font-size: 1.4rem;
  }

  .activity-content p {
    font-size: 1rem;
  }

  .sun {
    width: 90px;
    height: 90px;
    right: 30px;
  }

  .mini-crops {
    justify-content: center;
  }

  .button-row {
    flex-direction: column;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 48px;
    height: 48px;
  }
}