:root {
  --bg: #FAFAF5;
  --bg-warm: #F4F1E8;
  --fg: #1A3A2A;
  --fg-muted: #5C7A6A;
  --accent: #2D6A4F;
  --accent-mid: #40916C;
  --accent-light: #74C69D;
  --accent-pale: #D8F3DC;
  --amber: #B5651D;
  --amber-light: #F5E6D0;
  --danger: #C0392B;
  --warning: #D97706;
  --ok: #2D6A4F;
  --border: #C8D9CE;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-badge {
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-pale) 0%, transparent 70%);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: 5%; background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%); }
.shape-3 { width: 200px; height: 200px; top: 30%; right: 30%; background: radial-gradient(circle, var(--accent-pale) 0%, transparent 70%); }

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-mid);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 460px;
  line-height: 1.7;
}

/* Scan widget */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}
.scan-widget {
  position: relative;
  width: 220px;
  height: 220px;
  background: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(45,106,79,0.12);
  flex-shrink: 0;
}
.scan-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-light);
  animation: spin-slow 12s linear infinite;
}
.scan-ring-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.25;
  animation: pulse-ring 2s ease-in-out infinite;
}
.scan-crosshair {
  position: relative;
  z-index: 2;
}
.ch-h, .ch-v {
  position: absolute;
  background: var(--accent);
  opacity: 0.4;
}
.ch-h { width: 24px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ch-v { width: 1.5px; height: 24px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.plant-icon-wrap {
  position: relative;
  z-index: 2;
}
.scan-label {
  position: absolute;
  bottom: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.7;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.result-card {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  width: 280px;
  box-shadow: 0 4px 24px rgba(45,106,79,0.1);
  border-left: 3px solid var(--accent);
}
.result-plant-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 8px;
}
.result-issue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 500;
  margin-bottom: 6px;
}
.issue-dot {
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
}
.result-confidence {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-action {
  font-size: 0.72rem;
  background: var(--accent-pale);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ── How it works ── */
.how-it-works {
  background: var(--bg-warm);
  padding: 90px 24px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  line-height: 1.2;
}
.steps-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.step-card {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.step-icon svg { width: 100%; height: 100%; }
.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(to right, var(--border), var(--accent-light));
  flex-shrink: 0;
}

/* ── Features ── */
.features {
  padding: 100px 24px;
  background: var(--bg);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.features-intro {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}
.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}
.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Diagnosis demo */
.diagnosis-demo {
  background: var(--fg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,58,42,0.25);
}
.demo-header {
  background: #243D2E;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #A8C5B5;
  font-weight: 500;
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: #4A6E57; display: block; }
.demo-plant {
  padding: 20px 24px 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #D8F3DC;
}
.demo-condition {
  padding: 0 24px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.condition-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.condition-warning { background: rgba(217,119,6,0.25); color: #FCD34D; }
.condition-ok { background: rgba(45,106,79,0.3); color: #86EFAC; }
.condition-neutral { background: rgba(168,197,181,0.15); color: #A8C5B5; }
.demo-result { padding: 0 24px 24px; }
.demo-score { margin-bottom: 12px; }
.score-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 5px;
}
.score-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-mid), var(--accent-light));
  border-radius: 2px;
}
.score-label { font-size: 0.72rem; color: #A8C5B5; font-weight: 500; }
.demo-cause {
  font-size: 0.78rem;
  color: #B5D4C3;
  line-height: 1.6;
  margin-bottom: 16px;
}
.demo-treatment { display: flex; flex-direction: column; gap: 8px; }
.treatment-step {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: #D8F3DC;
  line-height: 1.5;
}
.ts-num {
  width: 18px;
  height: 18px;
  background: var(--accent-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Science ── */
.science-section {
  background: var(--accent);
  padding: 80px 24px;
}
.science-inner { max-width: 900px; margin: 0 auto; }
.science-quote blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: #D8F3DC;
  line-height: 1.5;
  margin-bottom: 50px;
}
.science-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(216,243,220,0.7);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ── Closing ── */
.closing {
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-leaf-bg {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
.closing-leaf-bg svg { width: 350px; height: 450px; }
.closing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { align-items: center; }
  .features-inner { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; gap: 40px; }
  .step-connector { width: 1.5px; height: 40px; background: linear-gradient(to bottom, var(--border), var(--accent-light)); }
  .science-stats { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .closing-leaf-bg { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .scan-widget { width: 180px; height: 180px; }
  .result-card { width: 100%; }
}