/**
 * AgriBot Demo Page Styles
 * Great Way Solutions — University of Botswana Conference 2026
 */

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --green-deep:    #2d6a4f;
  --green-mid:     #40916c;
  --green-bright:  #52b788;
  --green-light:   #d8f3dc;
  --earth-brown:   #8b5e3c;
  --earth-light:   #f5ebe0;
  --sky-blue:      #48cae4;
  --warm-white:    #fafff8;
  --text-dark:     #1b2d1b;
  --text-mid:      #4a6741;
  --text-light:    #6c757d;
  --border:        rgba(45, 106, 79, 0.15);
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout Utilities ──────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-alt { background: #f0f9f0; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(45, 106, 79, 0.97);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  color: white;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: rgba(255,255,255,0.7); font-weight: 400; font-size: 14px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: white; text-decoration: none; }
.nav-cta {
  background: white;
  color: var(--green-deep) !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 13px !important;
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(82, 183, 136, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(72, 202, 228, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #fafff8 0%, #f0f9f0 100%);
  display: flex;
  align-items: center;
  padding: 80px 24px;
  overflow: hidden;
  position: relative;
}

/* Decorative background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64,145,108,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-deep);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1.5px solid rgba(45,106,79,0.2);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--text-dark);
  margin: 0 0 16px;
}
.hero h1 em { color: var(--green-mid); font-style: normal; }

.hero-desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: white;
  box-shadow: 0 4px 16px rgba(45,106,79,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,106,79,0.4);
  text-decoration: none;
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--green-deep);
  border: 2px solid var(--green-mid);
}
.btn-secondary:hover {
  background: var(--green-light);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-deep);
}
.hero-stat span { font-size: 13px; color: var(--text-light); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-phone {
  width: 260px;
  height: 520px;
  background: white;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  border: 6px solid #1a1a2e;
}
.hero-phone-screen {
  background: linear-gradient(160deg, var(--green-deep), var(--green-mid));
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 56px;
  letter-spacing: -2px;
}
.hero-phone-screen .chat-preview {
  font-size: 13px;
  letter-spacing: 0;
  padding: 16px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  background: #fafff8;
  color: #1a1a2e;
  line-height: 1.4;
}
.chat-msg-preview {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 85%;
}
.chat-msg-preview.user {
  background: var(--green-mid);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-msg-preview.bot {
  background: white;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hero-phone-header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.float-badge:nth-child(2) { animation-delay: 1s; }
.float-badge:nth-child(3) { animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-badge-1 { top: 20%; right: -60px; }
.float-badge-2 { bottom: 30%; left: -70px; }
.float-badge-3 { top: 55%; right: -80px; }

/* ── Features Section ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-light), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45,106,79,0.12);
  border-color: var(--green-bright);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 8px;
  position: relative;
}
.feature-card p {
  color: var(--text-light);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
  position: relative;
}

/* ── Knowledge Base Section ────────────────────────────────────────────────── */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.kb-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
}
.kb-item:hover {
  border-color: var(--green-bright);
  background: var(--green-light);
  transform: scale(1.03);
}
.kb-item span { font-size: 28px; display: block; margin-bottom: 8px; }
.kb-item strong { font-size: 13px; color: var(--text-dark); display: block; }
.kb-item small { font-size: 11px; color: var(--text-light); }

/* ── Demo Section ──────────────────────────────────────────────────────────── */
.demo-section {
  background: linear-gradient(135deg, var(--green-deep) 0%, #1b4332 100%);
  padding: 80px 24px;
  color: white;
  text-align: center;
}
.demo-section h2 { color: white; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.demo-section p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 600px; margin: 0 auto 40px; }
.demo-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-demo-primary {
  background: white;
  color: var(--green-deep);
  padding: 15px 32px;
  font-size: 17px;
}
.btn-demo-primary:hover { background: var(--green-light); color: var(--green-deep); }
.btn-demo-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 15px 32px;
  font-size: 17px;
}
.btn-demo-secondary:hover { background: rgba(255,255,255,0.2); color: white; }

/* ── Tech Stack Section ────────────────────────────────────────────────────── */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tech-pill {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tech-pill.primary {
  background: var(--green-deep);
  color: white;
  border-color: var(--green-deep);
  font-size: 14px;
  padding: 10px 20px;
}

/* ── Deployment Guide ──────────────────────────────────────────────────────── */
.deploy-steps {
  background: #1a2236;
  border-radius: 20px;
  padding: 32px;
  color: #e8f5e9;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  margin-top: 32px;
}
.deploy-steps .comment { color: #6bcb77; }
.deploy-steps .cmd { color: #90caf9; }
.deploy-steps .highlight { color: #ffd166; }
.deploy-step-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.deploy-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-mid);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  font-family: -apple-system, sans-serif;
}
.deploy-step-content h4 { margin: 0 0 4px; font-size: 17px; }
.deploy-step-content p { margin: 0; color: var(--text-light); font-size: 14px; }
.deploy-step-content code {
  display: block;
  background: #1a2236;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #90caf9;
  margin-top: 8px;
  font-family: monospace;
  overflow-x: auto;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
}
footer strong { color: white; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 60px 24px; }
  .section { padding: 48px 0; }
  .nav-links { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Scroll reveal animation ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section titles ──────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-title em { color: var(--green-mid); font-style: normal; }
.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Conference banner ────────────────────────────────────────────────────── */
.conference-banner {
  background: linear-gradient(135deg, #f5ebe0, #ffd166);
  border: 2px solid #e9c46a;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.conference-banner-icon { font-size: 36px; flex-shrink: 0; }
.conference-banner-text strong { display: block; font-size: 18px; color: #8b5e3c; }
.conference-banner-text span { font-size: 14px; color: #6d4c41; }
