/* ==========================================================================
   AgroAI — Ultra-Modern Futuristic AI Landing Page Stylesheet
   Author: Ro'ziyev Abdulloxon
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #050B14;
  --bg-card: #0E172A;
  --bg-card-hover: #152342;
  --primary: #00F5A0;
  --primary-glow: rgba(0, 245, 160, 0.4);
  --primary-dark: #00D9F5;
  --accent: #10B981;
  --accent-light: #6EE7B7;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 245, 160, 0.4);
  --glass-bg: rgba(14, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-main: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00F5A0 0%, #00D9F5 100%);
  color: #050B14;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px var(--primary-glow);
  filter: brightness(1.15);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(0, 245, 160, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 24px 0;
}

.header.scrolled {
  background: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #00F5A0, #00D9F5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 25px var(--primary-glow);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 550px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Hero Mockup Showcase --- */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-banner-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
  background: var(--bg-card);
}

.hero-banner-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-banner-card:hover img {
  transform: scale(1.04);
}

.floating-badge {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  padding: 14px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: float 4s ease-in-out infinite;
}

.badge-top-left {
  top: 20px;
  left: -35px;
}

.badge-bottom-right {
  bottom: 20px;
  right: -25px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Features Section --- */
.section {
  padding: 110px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00F5A0, #00D9F5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 245, 160, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 245, 160, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 26px;
  border: 1px solid var(--border-glow);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Guide & Download Steps --- */
.guide-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #091326 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
}

.step-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(0, 245, 160, 0.18);
  position: absolute;
  top: 16px;
  right: 22px;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Live AI Interactive Demo & Leaf HUD Simulator --- */
.demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 36px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 245, 160, 0.1);
}

.chat-box {
  background: #050B14;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 82%;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.msg-ai {
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--border-glow);
  align-self: flex-start;
  color: var(--text-main);
}

.msg-user {
  background: linear-gradient(135deg, #00D9F5, #00F5A0);
  align-self: flex-end;
  color: #050B14;
  font-weight: 700;
}

.chat-input-row {
  display: flex;
  gap: 14px;
}

.chat-input {
  flex: 1;
  background: #050B14;
  border: 1px solid var(--glass-border);
  padding: 16px 22px;
  border-radius: 16px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Author & Copyright Section --- */
.author-card {
  background: linear-gradient(135deg, #0E172A 0%, #13203D 100%);
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 54px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.author-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.author-img {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.author-info h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.author-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.author-bio {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.author-contacts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 12px 22px;
  border-radius: 14px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contact-pill:hover {
  background: var(--primary);
  color: #050B14;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

/* --- Footer --- */
.footer {
  background: #03070E;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- App Screen Showcase Gallery --- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.screen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.screen-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 25px 50px var(--primary-glow);
}

.screen-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.screen-card h4 {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.screen-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-contacts { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
