/* ═══════════════════════════════════════════════════════════
   AGROSENSE — CINEMATIC AI AGRICULTURE EXPERIENCE
   Design System: Luxury Botanical Eco-Tech
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Color Palette */
  --bg-primary:    #F4FFF6;
  --bg-secondary:  #E8F5E9;
  --bg-tertiary:   #DDEEDF;
  --bg-deep:       #CFE8D2;
  --bg-card:       rgba(255, 255, 255, 0.55);
  --bg-card-hover: rgba(255, 255, 255, 0.75);

  --accent-primary:   #2D783C;
  --accent-mid:       #3A9B50;
  --accent-light:     #5EC472;
  --accent-glow:      rgba(62, 180, 90, 0.35);
  --accent-glow-soft: rgba(62, 180, 90, 0.12);

  --emerald-deep:  #1A5C2A;
  --emerald-mid:   #2D783C;
  --emerald-light: #4CAF65;
  --emerald-pale:  #BFDCC4;

  --text-primary:   #0D1F12;
  --text-secondary: #2A4030;
  --text-muted:     #5A7A62;
  --text-faint:     #8AAA90;

  --glass-bg:     rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(45, 120, 60, 0.08);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --font-mono:    'Inter', monospace;

  /* Spacing */
  --section-pad: 120px;
  --container:   1280px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* Lenis handles this */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--accent-glow);
  color: var(--emerald-deep);
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), background 0.3s;
  mix-blend-mode: multiply;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(45, 120, 60, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out), width 0.4s var(--ease-spring), height 0.4s var(--ease-spring), opacity 0.3s;
}

body:has(.magnetic-btn:hover) .cursor { width: 60px; height: 60px; background: var(--accent-glow); }
body:has(.magnetic-btn:hover) .cursor-follower { opacity: 0; }

/* ─── 3D CANVAS ──────────────────────────────────────────── */
#flowerCanvas {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(244, 255, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(45, 120, 60, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 20px;
  color: var(--accent-primary);
  animation: logoSpin 8s linear infinite;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--accent-primary); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent-primary);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 48px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ─── AMBIENT BACKGROUND LAYERS ──────────────────────────── */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(62, 180, 90, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.title-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 50%, #8BC34A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 60px;
}

/* ─── GLASSMORPHISM CARDS ────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, background 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(45, 120, 60, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  background: var(--bg-card-hover);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-mid));
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  border: none;
  cursor: none;
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 16px 48px var(--accent-glow);
}

.btn-primary.btn-large { font-size: 17px; padding: 20px 44px; }

.btn-icon {
  font-size: 18px;
  animation: btnIconSpin 4s linear infinite;
}

@keyframes btnIconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover .btn-glow { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  padding: 16px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid rgba(45, 120, 60, 0.25);
  transition: all 0.3s var(--ease-out);
  cursor: none;
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow-soft);
  transform: translateY(-2px);
}

.btn-ghost.btn-large { font-size: 17px; padding: 20px 36px; }

.btn-arrow {
  transition: transform 0.3s var(--ease-spring);
}

.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

/* ─── MAGNETIC BUTTON ────────────────────────────────────── */
.magnetic-btn { transition: transform 0.3s var(--ease-spring); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 60%, var(--bg-tertiary) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  gap: 60px;
}

.hero-left { padding-top: 80px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(45, 120, 60, 0.08);
  border: 1px solid rgba(45, 120, 60, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 8.5vw, 140px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.title-line { display: block; }

.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-right {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flower-label {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.fl-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: badgePulse 1.5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* Ambient particles */
.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ─── CRISIS SECTION ─────────────────────────────────────── */
.crisis-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.crisis-header { margin-bottom: 72px; }

.crisis-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #C0392B, #E74C3C, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 16px;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.crisis-card {
  padding: 36px 28px;
}

.crisis-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.crisis-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.crisis-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.crisis-statement {
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(45,120,60,0.06), rgba(62,180,90,0.04));
  border: 1px solid rgba(45,120,60,0.12);
  border-radius: 24px;
}

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ─── PLATFORM SECTION ───────────────────────────────────── */
.platform-section {
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-deep) 50%, var(--bg-secondary) 100%);
}

.platform-header { margin-bottom: 80px; }

.platform-features { display: flex; flex-direction: column; gap: 80px; margin-bottom: 80px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.feature-row-reverse { grid-template-columns: 1.4fr 1fr; }
.feature-row-reverse .feature-visual { order: 2; }
.feature-row-reverse .feature-content { order: 1; }

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  position: relative;
}

/* Scan rings */
.scan-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(45, 120, 60, 0.25);
  animation: scanPulse 3s ease-in-out infinite;
}

.scan-ring { width: 180px; height: 180px; }
.scan-ring-2 { width: 240px; height: 240px; animation-delay: 0.5s; border-color: rgba(45,120,60,0.15); }
.scan-ring-3 { width: 300px; height: 300px; animation-delay: 1s; border-color: rgba(45,120,60,0.08); }

@keyframes scanPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.6; }
}

.feature-icon-center {
  font-size: 48px;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(45,120,60,0.3));
}

/* Soil viz */
.soil-viz {
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.soil-layer {
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color);
  opacity: calc(1 - var(--depth) * 0.15);
}

.soil-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(62,180,90,0.8), transparent);
  animation: soilScan 2.5s ease-in-out infinite;
}

@keyframes soilScan {
  0%   { top: 0; }
  100% { top: 100%; }
}

/* Offline badge */
.offline-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.offline-icon { font-size: 40px; }

.offline-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.bar {
  width: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: barAnim 1.5s ease-in-out infinite;
}

.bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.bar:nth-child(2) { height: 65%; animation-delay: 0.15s; }
.bar:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.bar-off { background: rgba(45,120,60,0.2) !important; animation: none !important; height: 30% !important; }

@keyframes barAnim {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.offline-badge span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.feature-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  background: rgba(45, 120, 60, 0.08);
  border: 1px solid rgba(45, 120, 60, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cap-card {
  padding: 28px 24px;
  text-align: center;
}

.cap-icon { font-size: 28px; display: block; margin-bottom: 14px; }

.cap-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cap-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── CROPS SECTION ──────────────────────────────────────── */
.crops-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.crops-orbit {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.crop-card {
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.crop-scan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,120,60,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.crop-card:hover .crop-scan-overlay { opacity: 1; }

.crop-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.4s var(--ease-spring);
}

.crop-card:hover .crop-emoji { transform: scale(1.2) translateY(-4px); }

.crop-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.crop-diseases {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── DASHBOARD SECTION ──────────────────────────────────── */
.dashboard-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  min-height: auto;
  padding: 80px 0;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.2fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  min-height: 700px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 120px rgba(45, 120, 60, 0.1);
}

.dash-panel {
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-panel:last-child { border-right: none; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(45,120,60,0.1);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(45,120,60,0.2);
}

.panel-dot.active {
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%       { box-shadow: 0 0 16px var(--accent-glow), 0 0 32px var(--accent-glow-soft); }
}

.panel-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
}

.panel-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Crop selector */
.crop-selector label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.crop-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.crop-select-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(45,120,60,0.15);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: none;
  transition: all 0.25s var(--ease-out);
  text-align: left;
}

.crop-select-btn:hover,
.crop-select-btn.active {
  background: rgba(45,120,60,0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Upload zone */
.upload-zone {
  flex: 1;
  border: 1.5px dashed rgba(45,120,60,0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
  min-height: 200px;
}

.upload-zone:hover { border-color: var(--accent-primary); }

.upload-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.upload-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.upload-sub {
  font-size: 12px;
  color: var(--text-faint);
}

.upload-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(45,120,60,0.08);
  border: 1px solid rgba(45,120,60,0.2);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  margin-top: 8px;
}

.upload-btn:hover {
  background: rgba(45,120,60,0.15);
  transform: scale(1.03);
}

.upload-preview {
  height: 100%;
  position: relative;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.rescan-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  cursor: none;
  backdrop-filter: blur(8px);
}

/* Scan button */
.scan-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-mid));
  border: none;
  border-radius: 14px;
  padding: 16px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.scan-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.scan-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.scan-icon {
  font-size: 18px;
  animation: btnIconSpin 3s linear infinite;
}

.scan-btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.scan-btn:hover .scan-btn-glow { opacity: 1; }

/* Scan visualization */
.scan-visualization { flex: 1; }

.scan-idle-state {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.scan-placeholder {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-circle-outer,
.scan-circle-mid,
.scan-circle-inner {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,120,60,0.2);
  animation: idlePulse 3s ease-in-out infinite;
}

.scan-circle-outer { width: 120px; height: 120px; }
.scan-circle-mid   { width: 80px;  height: 80px;  animation-delay: 0.5s; }
.scan-circle-inner { width: 40px;  height: 40px;  animation-delay: 1s; background: rgba(45,120,60,0.05); }

@keyframes idlePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.scan-placeholder-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: absolute;
  bottom: -28px;
  white-space: nowrap;
}

.scan-active-state { display: flex; flex-direction: column; gap: 12px; }

.scan-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.scan-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-overlay-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,120,60,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,120,60,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(62,180,90,0.9), transparent);
  box-shadow: 0 0 12px rgba(62,180,90,0.6);
  animation: beamScan 1.5s ease-in-out infinite;
}

@keyframes beamScan {
  0%   { top: 0; }
  100% { top: 100%; }
}

.scan-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent-light);
  border-style: solid;
}

.scan-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.scan-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.scan-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.scan-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.scan-progress-bar {
  height: 3px;
  background: rgba(45,120,60,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s;
}

.scan-progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Weather panel */
.weather-panel {
  padding: 16px 20px;
  border-radius: 14px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.weather-loc {
  font-size: 11px;
  color: var(--text-faint);
}

.weather-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.w-icon { font-size: 16px; }
.w-val  { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.w-label { font-size: 10px; color: var(--text-faint); }

/* Results panel */
.results-idle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-placeholder {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  font-style: italic;
}

.results-content { display: flex; flex-direction: column; gap: 14px; }

.top-prediction {
  padding: 20px;
  border-radius: 16px;
}

.pred-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pred-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.severity-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #E74C3C;
  padding: 3px 10px;
  border-radius: 100px;
}

.pred-disease {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.confidence-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: rgba(45,120,60,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 100px;
  transition: width 1s var(--ease-out);
}

.confidence-pct {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-primary);
}

.predictions-list { display: flex; flex-direction: column; gap: 8px; }

.pred-list-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pred-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pred-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  width: 140px;
  flex-shrink: 0;
}

.pred-bar {
  flex: 1;
  height: 4px;
  background: rgba(45,120,60,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.pred-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 100px;
}

.pred-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
}

.metric-icon { font-size: 18px; display: block; margin-bottom: 6px; }
.metric-val  { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text-primary); }
.metric-label { font-size: 10px; color: var(--text-muted); }

.treatment-section {
  padding: 16px 20px;
  border-radius: 14px;
}

.treatment-section h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.treatment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.treatment-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.treatment-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 10px;
}

.prevention-section h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.checklist { display: flex; flex-direction: column; gap: 6px; }

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: none;
}

.check-item input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 14px;
  height: 14px;
}

/* ─── IMPACT SECTION ─────────────────────────────────────── */
.impact-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.impact-card {
  padding: 40px 32px;
  text-align: center;
}

.impact-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.counter {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.impact-unit, .impact-prefix {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-mid);
}

.impact-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.impact-bar {
  height: 3px;
  background: rgba(45,120,60,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.impact-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s var(--ease-out);
}

.impact-bar-fill.animated { width: var(--target-width); }

.impact-statement {
  text-align: center;
  padding: 48px;
}

.impact-statement p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ─── SUSTAINABILITY SECTION ─────────────────────────────── */
.sustainability-section {
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-deep) 50%, var(--bg-secondary) 100%);
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.sdg-card {
  padding: 40px 32px;
}

.sdg-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.sdg-2  { background: linear-gradient(135deg, #E67E22, #F39C12); }
.sdg-12 { background: linear-gradient(135deg, #8E44AD, #9B59B6); }
.sdg-15 { background: linear-gradient(135deg, #27AE60, #2ECC71); }

.sdg-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sdg-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.mission-pillars {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pillar-icon { font-size: 20px; }

/* ─── TECH SECTION ───────────────────────────────────────── */
.tech-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.tech-constellation {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.tech-layer {
  flex: 1;
  min-width: 200px;
}

.tech-layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.tech-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.tech-node:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.tech-node-ai {
  border-color: rgba(45,120,60,0.3);
  background: rgba(45,120,60,0.05);
}

.tech-node-icon { font-size: 18px; }

.tech-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

.connector-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(45,120,60,0.2), rgba(45,120,60,0.5), rgba(45,120,60,0.2));
  position: relative;
}

.connector-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-top: -4px;
  animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ─── TEAM SECTION ───────────────────────────────────────── */
.team-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 60px auto 0;
}

.team-card {
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-spotlight {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45,120,60,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.team-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(45,120,60,0.3);
  animation: avatarRing 3s linear infinite;
}

@keyframes avatarRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.team-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.team-role {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.team-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.team-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(45,120,60,0.08);
  border: 1px solid rgba(45,120,60,0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

.team-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
  background: rgba(45,120,60,0.07);
  border: 1px solid rgba(45,120,60,0.2);
  padding: 9px 20px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  letter-spacing: 0.02em;
}

.team-contact:hover {
  background: rgba(45,120,60,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,120,60,0.15);
}

.contact-icon { font-size: 15px; }

/* ─── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-deep) 50%, var(--bg-tertiary) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

.cta-bloom-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.bloom-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45,120,60,0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bloomExpand 4s ease-out infinite;
}

.bloom-ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.bloom-ring-2 { width: 500px; height: 500px; animation-delay: 0.8s; }
.bloom-ring-3 { width: 700px; height: 700px; animation-delay: 1.6s; }
.bloom-ring-4 { width: 900px; height: 900px; animation-delay: 2.4s; }

@keyframes bloomExpand {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content { position: relative; z-index: 2; max-width: 800px; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.cta-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(45,120,60,0.1);
  padding: 60px 48px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-primary); }

.footer-sdgs { display: flex; gap: 10px; align-items: center; }

.sdg-mini {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(45,120,60,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-faint);
}

/* ─── AMBIENT PARTICLES ──────────────────────────────────── */
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,180,90,0.4), transparent);
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(var(--drift, 20px)) scale(0.5); opacity: 0; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .crisis-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .crops-orbit { grid-template-columns: repeat(4, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-container { grid-template-columns: 1fr 1fr; }
  .dash-results-panel { display: none; }
}

@media (max-width: 900px) {
  :root { --section-pad: 80px; }

  #flowerCanvas { width: 100vw; height: 50vh; position: relative; top: auto; right: auto; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { height: 50vh; }

  .nav-links { display: none; }
  .nav { padding: 16px 24px; }

  .feature-row,
  .feature-row-reverse { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-visual,
  .feature-row-reverse .feature-content { order: unset; }

  .sdg-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .tech-constellation { flex-direction: column; }
  .tech-connector { transform: rotate(90deg); }

  .crops-orbit { grid-template-columns: repeat(3, 1fr); }
  .dashboard-container { grid-template-columns: 1fr; }
  .dash-scan-panel, .dash-results-panel { display: none; }

  .section-inner { padding: 80px 24px; }
}

@media (max-width: 600px) {
  .crisis-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .crops-orbit { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; }
}

/* ─── LOADING SCREEN ─────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(45,120,60,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
  border-radius: 100px;
  animation: loadingAnim 1.8s var(--ease-out) forwards;
}

@keyframes loadingAnim {
  from { width: 0%; }
  to   { width: 100%; }
}

.loading-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}