/* ============================================================
   DIGICROP AGRICULTURE — AGRICULTURAL THEME
   Palette: sunrise golden sky, deep earth greens, soil amber
   Fonts: Playfair Display (headlines) + Inter (body) + JetBrains Mono (data)
   ============================================================ */

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

:root {
  /* Sky & atmosphere */
  --sky-top:       #0b1a0e;
  --sky-mid:       #1a3a10;
  --sky-horizon:   #2c5a18;
  --sun-gold:      #f9c74f;
  --sun-amber:     #f4845f;

  /* Earth greens */
  --leaf-deep:     #1b4d0a;
  --leaf-mid:      #2e7d32;
  --leaf-bright:   #4cba2e;
  --leaf-light:    #8bc34a;
  --leaf-glow:     rgba(76,186,46,0.22);

  /* Soil & warm earth */
  --soil-dark:     #3e2000;
  --soil-mid:      #6d3a00;
  --soil-amber:    #a05a00;
  --soil-warm:     rgba(160,90,0,0.18);

  /* Text */
  --txt-sky:       #e8f5e0;
  --txt-body:      #b8d4a0;
  --txt-muted:     #6a8f55;
  --txt-accent:    #f9c74f;

  /* Cards */
  --card-bg:       rgba(18,40,10,0.72);
  --card-border:   rgba(76,186,46,0.2);
  --card-glass:    rgba(255,255,255,0.04);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
}

html, body {
  min-height: 100vh;
  background: var(--sky-top);
  color: var(--txt-body);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---- SEED CANVAS (floating pollen) ---- */
#seedCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- SKY BACKGROUND ---- */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 100% 60% at 50% -10%,
      #f9c74f18 0%, #f4845f10 25%, transparent 60%),
    linear-gradient(180deg,
      #050e03 0%,
      #0b1a0e 25%,
      #122808 50%,
      #1a3a10 75%,
      #2c5a18 100%);
  pointer-events: none;
}

/* Subtle field texture overlay */
.sky-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 200% 40% at 50% 100%, rgba(76,186,46,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 20% 70%, rgba(249,199,79,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 30% at 80% 70%, rgba(249,199,79,0.06) 0%, transparent 50%);
}

/* ---- LANDSCAPE ---- */
.landscape {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.landscape-svg {
  display: block;
  width: 100%;
  height: auto;
}

.croprows-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
}

/* ---- WRAPPER ---- */
.wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

/* ---- HEADER ---- */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 0 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(249,199,79,0.35));
  animation: logoPulse 5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(249,199,79,0.28)); }
  50%       { filter: drop-shadow(0 0 30px rgba(249,199,79,0.55)); }
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--txt-sky);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.tagline {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-muted);
  font-weight: 500;
}

/* ---- MAIN ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 960px;
}

/* ---- LAUNCH BADGE ---- */
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(249,199,79,0.1);
  border: 1px solid rgba(249,199,79,0.35);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.83rem;
  font-family: var(--font-mono);
  color: var(--sun-gold);
  letter-spacing: 0.03em;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 8px var(--leaf-bright);
  animation: blink 1.4s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0.25; }
}

/* ---- HERO TEXT ---- */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--txt-sky);
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.hl-green {
  color: var(--leaf-light);
  text-shadow: 0 0 32px rgba(76,186,46,0.4);
}

.sub-headline {
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.75;
  color: var(--txt-body);
  max-width: 640px;
}

/* ---- SECTION EYEBROW ---- */
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-muted);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---- COUNTDOWN CARD ---- */
.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* Soil-texture strip at bottom of card */
.countdown-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf-deep), var(--leaf-bright), var(--sun-gold), var(--leaf-bright), var(--leaf-deep));
}

/* ---- COUNTDOWN GRID ---- */
.countdown-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 76px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(76,186,46,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 8px 10px;
}

.cd-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--txt-sky);
  line-height: 1;
  text-shadow: 0 0 16px rgba(76,186,46,0.3);
  display: block;
}

.cd-unit {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--txt-muted);
  font-family: var(--font-mono);
}

.cd-sep {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--leaf-bright);
  opacity: 0.7;
  margin-bottom: 18px;
  animation: cdSepBlink 1s step-end infinite;
}

@keyframes cdSepBlink {
  0%,100% { opacity:0.7; } 50% { opacity:0.15; }
}

/* ---- GROWTH BAR ---- */
.growth-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.growth-title {
  font-size: 0.8rem;
  color: var(--txt-body);
  font-weight: 500;
}

.growth-pct {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--leaf-bright);
  font-weight: 600;
}

.growth-track {
  position: relative;
  height: 22px;
  background: rgba(0,0,0,0.3);
  border-radius: 100px;
  border: 1px solid rgba(76,186,46,0.25);
  overflow: visible;
}

.growth-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg,
    #3e2000 0%,
    #6d4c00 20%,
    #2e7d32 50%,
    #4cba2e 80%,
    #8bc34a 100%);
  width: 0%;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(76,186,46,0.45);
}

.growth-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -60%);
  transition: left 1s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.growth-stages {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--txt-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0 2px;
}

/* ---- INDEX PANELS ---- */
.index-panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.index-card {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  overflow: hidden;
}

.index-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.index-card.ndvi::before  { background: linear-gradient(90deg, #1b5e20, #4cba2e); }
.index-card.ndre::before  { background: linear-gradient(90deg, #bf360c, #ff9800); }
.index-card.ndwi::before  { background: linear-gradient(90deg, #01579b, #29b6f6); }
.index-card.nasa::before  { background: linear-gradient(90deg, #4a148c, #ff6f00); }
.index-card.satellite::before { background: linear-gradient(90deg, #263238, #1565c0); }
.index-card.health::before { background: linear-gradient(90deg, #f44336, #ffc107, #4cba2e); }

.index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76,186,46,0.4);
  box-shadow: 0 10px 36px rgba(0,0,0,0.35);
}

.idx-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.idx-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.idx-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt-sky);
  letter-spacing: 0.04em;
}

.idx-sub {
  font-size: 0.72rem;
  color: var(--txt-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.idx-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--txt-body);
}

/* NDVI/NDRE/NDWI bar */
.idx-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.idx-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.idx-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1.2s ease;
}

.idx-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--txt-sky);
  min-width: 36px;
  text-align: right;
}

/* NASA pill row */
.idx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.idx-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--txt-body);
}

/* Health arc */
.health-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.health-arc-wrap {
  position: relative;
  width: 80px;
}

.arc-svg { width: 100%; }

.health-arc {
  animation: arcDraw 1.5s ease forwards;
}

@keyframes arcDraw {
  from { stroke-dashoffset: 138; }
  to   { stroke-dashoffset: 40; }
}

.health-score {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt-sky);
}

.health-label {
  font-size: 0.7rem;
  color: var(--leaf-bright);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- FEATURE PILLS ROW ---- */
.features-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
}

.feat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(76,186,46,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--txt-body);
  font-weight: 500;
  cursor: default;
  transition: all 0.22s;
}

.feat-pill:hover {
  background: rgba(76,186,46,0.12);
  border-color: rgba(76,186,46,0.45);
  color: var(--leaf-light);
  transform: translateY(-2px);
}

/* ---- NOTIFY ---- */
.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid rgba(249,199,79,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  backdrop-filter: blur(10px);
}

.notify-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--txt-sky);
  font-weight: 600;
}

.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.notify-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(76,186,46,0.3);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--txt-sky);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-input::placeholder { color: var(--txt-muted); }

.notify-input:focus {
  border-color: var(--leaf-bright);
  box-shadow: 0 0 0 3px rgba(76,186,46,0.15);
}

.notify-btn {
  background: linear-gradient(135deg, var(--leaf-mid), var(--leaf-bright));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.notify-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(76,186,46,0.35);
}

.notify-success {
  display: none;
  font-size: 0.84rem;
  color: var(--leaf-light);
  font-family: var(--font-mono);
  text-align: center;
}

.notify-success.visible { display: block; animation: fadeUp 0.4s ease; }

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

/* ---- FOOTER ---- */
.footer {
  margin-top: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Keep above landscape */
  padding-bottom: 180px;
}

.footer p { font-size: 0.74rem; color: var(--txt-muted); }
.footer-sub { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; }

/* ---- MOVED CARD ---- */
.moved-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
  animation: fadeUp 0.6s ease-out;
}

.moved-icon {
  font-size: 3.5rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 16px rgba(76,186,46,0.4));
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.moved-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--txt-sky);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.moved-desc {
  font-size: 1.05rem;
  color: var(--txt-body);
  line-height: 1.6;
  margin-bottom: 12px;
}

.moved-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--leaf-mid), var(--leaf-bright));
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76,186,46,0.3);
}

.moved-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76,186,46,0.5);
  background: linear-gradient(135deg, var(--leaf-bright), #8bc34a);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .headline { font-size: clamp(2rem, 5vw, 3rem); }
  .countdown-card { padding: 24px 20px; }
  .index-panels { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
  .header { flex-direction: column; text-align: center; gap: 12px; padding: 24px 10px 10px; }
  .logo-img { width: 90px; }
  .brand-name { font-size: 1.6rem; }
  .tagline { font-size: 0.65rem; }

  .launch-badge { 
    padding: 8px 14px; 
    font-size: 0.75rem; 
    flex-wrap: wrap; 
    justify-content: center;
    text-align: center;
    line-height: 1.4;
  }
  
  .countdown-card { padding: 20px 12px; }
  .countdown-grid { gap: 4px; }
  .cd-block { min-width: 55px; padding: 10px 4px; }
  .cd-num { font-size: 1.6rem; }
  .cd-unit { font-size: 0.5rem; letter-spacing: 0.05em; }
  .cd-sep { font-size: 1.4rem; margin-bottom: 12px; margin-left: 2px; margin-right: 2px; }
  
  .notify-form { flex-direction: column; }
  .notify-btn { width: 100%; }
  
  .index-panels { grid-template-columns: 1fr; }
  .index-card { padding: 16px; }
  .idx-icon { font-size: 1.5rem; }

  .growth-stages span:nth-child(2),
  .growth-stages span:nth-child(3),
  .growth-stages span:nth-child(4) { display: none; }
  
  .footer { padding-bottom: 120px; }
}

@media (max-width: 400px) {
  .headline { font-size: 1.8rem; }
  .sub-headline { font-size: 0.85rem; }
  
  .countdown-grid { gap: 2px; }
  .cd-block { min-width: 48px; padding: 8px 2px; }
  .cd-num { font-size: 1.3rem; }
  .cd-sep { font-size: 1.2rem; margin-bottom: 10px; }
  
  .feat-pill { font-size: 0.7rem; padding: 5px 10px; }
}

