/* ==========================================================================
   AGRISENTINEL DESIGN SYSTEM - PREMIUM MODERN SAAS STYLING (DARK MODE FIRST)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-primary: #F0FDF4;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #FEF9C3;
  
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  
  --accent-emerald: #166534;
  --accent-teal: #6B4226;
  --accent-mint: #2E7D32;
  --accent-red: #DC2626;
  --accent-amber: #D97706;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-mint) 100%);
  --gradient-dark: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 50%, #F0FDF4 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FBF9F3 100%);
  --gradient-text: linear-gradient(to right, #166534, #2E7D32);
  --gradient-glow: radial-gradient(circle, rgba(46, 125, 50, 0.08) 0%, rgba(22, 101, 52, 0) 70%);

  /* Borders & Shadows */
  --border-glass: 1px solid rgba(107, 66, 38, 0.15);
  --border-focus: 1px solid rgba(46, 125, 50, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-emerald: 0 0 30px rgba(46, 125, 50, 0.08);
  --shadow-alarm: 0 0 30px rgba(220, 38, 38, 0.15);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 80%;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* Ambient glow backgrounds */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-glow);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.8;
}

.glow-top-left { top: -200px; left: -200px; }
.glow-bottom-right { bottom: 20%; right: -200px; }
.glow-mid { top: 40%; left: 50%; transform: translate(-50%, -50%); }

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Gradients text */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), var(--shadow-emerald);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 8rem 0;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: var(--border-glass);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  background: var(--gradient-brand);
  color: var(--bg-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-meta {
  font-size: 0.65rem;
  color: var(--accent-mint);
  font-weight: normal;
  letter-spacing: 1px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent-emerald);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 6rem;
  overflow: hidden;
}

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

.hero-content {
  max-width: 580px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: var(--border-glass);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Interactive Visuals */
.hero-visual {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Floating Card Base */
.floating-card {
  position: absolute;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.8);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  transition: var(--transition-smooth);
}

.floating-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Simulation Hub Widget */
.widget-sim {
  top: 10%;
  left: 5%;
  width: 320px;
  z-index: 10;
}

.widget-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.5s infinite;
}

.sim-countdown-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.sim-countdown-fill {
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  animation: countdown 30s linear infinite;
}

.sim-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sim-btn {
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.sim-btn-confirm {
  background: var(--accent-emerald);
  color: var(--bg-primary);
}

.sim-btn-confirm:hover {
  background: var(--accent-mint);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.sim-btn-simulate {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: var(--border-glass);
}

.sim-btn-simulate:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sim-log-feed {
  max-height: 80px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.sim-log-entry {
  padding: 0.2rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

.sim-log-entry.unauthorized {
  border-left: 2px solid var(--accent-red);
  color: #FFAAAA;
  animation: flashRed 1s infinite alternate;
}

.sim-log-entry.authorized {
  border-left: 2px solid var(--accent-emerald);
  color: #AAFFAA;
}

/* Smartphone Mockup */
.widget-phone {
  bottom: 5%;
  right: 5%;
  width: 250px;
  height: 420px;
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #0D131E;
  z-index: 5;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  background: #090E16;
  border-radius: 18px;
  overflow: hidden;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.6rem;
  margin-bottom: 0.8rem;
}

.phone-card {
  background: rgba(255, 255, 255, 0.04);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.phone-alert {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #FFAAAA;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: shake 0.5s infinite;
}

.phone-btn {
  background: var(--accent-emerald);
  color: var(--bg-primary);
  font-weight: 700;
  text-align: center;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  margin-top: auto;
  cursor: pointer;
}

/* CSS-Drawn Noisy Scarecrow Hardware */
.hardware-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 380px;
  z-index: 2;
}

.pole-stand {
  position: absolute;
  bottom: 0;
  left: 65px;
  width: 10px;
  height: 250px;
  background: linear-gradient(90deg, #4B5563, #374151);
  border-radius: 5px;
}

.device-solar {
  position: absolute;
  top: 30px;
  left: 10px;
  width: 120px;
  height: 20px;
  background: linear-gradient(135deg, #1E3A8A, #1D4ED8);
  border: 1px solid var(--accent-teal);
  border-radius: 4px;
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(29, 78, 216, 0.4);
}

.device-box {
  position: absolute;
  top: 70px;
  left: 35px;
  width: 70px;
  height: 90px;
  background: linear-gradient(135deg, #374151, #1F2937);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 10px;
}

.device-horn {
  position: absolute;
  top: 170px;
  left: 45px;
  width: 50px;
  height: 30px;
  background: #111;
  border-radius: 0 4px 4px 0;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}

.device-sensor {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 5px #fff;
}

.device-led {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  margin: 0 auto;
  animation: blinkRed 0.5s infinite alternate;
}

/* ==========================================================================
   TRUSTED BY (ORGANIZATIONS)
   ========================================================================== */

.trusted-section {
  background-color: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
  padding: 3rem 0;
}

.trusted-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.trusted-wrapper h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.brand-row {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.6;
}

.brand-item {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.brand-item:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */

.problem-section {
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.2);
}

.problem-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.problem-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.problem-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   SOLUTION SECTION
   ========================================================================== */

.solution-section {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-media {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-device-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.solution-illustration {
  position: relative;
  width: 80%;
  height: 80%;
}

.sol-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.sol-orb-hw {
  top: 10%;
  left: 10%;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.sol-orb-app {
  bottom: 10%;
  left: 30%;
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.2);
}

.sol-orb-cloud {
  top: 30%;
  right: 10%;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

.sol-orb i {
  font-size: 1.5rem;
  color: var(--accent-mint);
  margin-bottom: 0.5rem;
}

.sol-connector {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  z-index: 0;
}

/* Connectors */
.conn-1 { top: 30%; left: 35%; width: 120px; height: 1px; transform: rotate(20deg); }
.conn-2 { bottom: 35%; right: 35%; width: 100px; height: 1px; transform: rotate(-45deg); }

.solution-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.solution-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.solution-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sol-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sol-feat-item i {
  color: var(--accent-mint);
  margin-top: 0.2rem;
}

.sol-feat-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sol-feat-item p {
  font-size: 0.85rem;
}

/* ==========================================================================
   PLATFORM OVERVIEW
   ========================================================================== */

.platform-section {
  position: relative;
}

.platform-workflow {
  position: relative;
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  margin-top: 4rem;
  overflow: hidden;
}

.workflow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 3rem;
}

.workflow-connector-line {
  position: absolute;
  top: 27px;
  left: 27px;
  right: 27px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-teal) 50%, var(--accent-mint) 100%);
  z-index: 1;
  opacity: 0.4;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  color: var(--accent-mint);
  opacity: 0.5;
  z-index: 2;
}

.workflow-arrow i {
  width: 18px;
  height: 18px;
}

.workflow-step {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.workflow-step:hover .step-icon-circle {
  transform: scale(1.15);
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-emerald);
}

.workflow-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.workflow-step p {
  font-size: 0.75rem;
}

/* ==========================================================================
   PRODUCT FEATURES
   ========================================================================== */

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

.feature-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-md);
}

.feat-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-section {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.timeline-interactive {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: rgba(46, 125, 50, 0.2);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 17px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid rgba(46, 125, 50, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.timeline-item.active .timeline-marker {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
}

/* ==========================================================================
   DASHBOARD SHOWCASE
   ========================================================================== */

.dashboard-showcase {
  position: relative;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--accent-emerald);
  color: var(--bg-primary);
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.dashboard-display {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.showcase-pane {
  display: none;
}

.showcase-pane.active {
  display: block;
}

/* Grid configurations inside showcase */
.grid-showcase-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.kpi-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.kpi-card span {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.grid-showcase-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* ==========================================================================
   HARDWARE SECTION
   ========================================================================== */

.hardware-section {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.hardware-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hardware-interactive-view {
  position: relative;
  background: #0D131F;
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Hotspots */
.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-mint);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-mint);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bg-primary);
  font-weight: 700;
  animation: pulseGreen 1.5s infinite;
}

.hotspot:hover {
  transform: scale(1.2);
}

/* Hotspot coords */
.hp-solar { top: 12%; left: 30%; }
.hp-led { top: 22%; left: 65%; }
.hp-box { top: 30%; left: 45%; }
.hp-horn { top: 50%; left: 55%; }
.hp-pir { top: 38%; left: 40%; }

.hotspot-details-panel {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  min-height: 250px;
}

.details-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-mint);
}

.details-content p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   RESEARCH & VALIDATION
   ========================================================================== */

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.research-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.research-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.research-stat-card h3 {
  font-size: 2.5rem;
  color: var(--accent-mint);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  flex: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.user-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING PREVIEW
   ========================================================================== */

.pricing-section {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card.recommended {
  border-color: var(--accent-emerald);
  position: relative;
  transform: translateY(-8px);
  box-shadow: var(--shadow-emerald);
}

.recommended-ribbon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-emerald);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.pricing-card:hover:not(.recommended) {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin: 1.5rem 0 2rem 0;
}

.pricing-price span {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.pricing-price p {
  font-size: 0.85rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-features-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features-list li i {
  color: var(--accent-mint);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-section {
  background: var(--bg-secondary);
  border-top: var(--border-glass);
  border-bottom: var(--border-glass);
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: var(--border-glass);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-answer p {
  padding-top: 1rem;
  font-size: 0.95rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-mint);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-panel p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.08);
  border: var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  font-size: 1.1rem;
}

.contact-method-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-method-item span {
  font-size: 1rem;
}

/* Form Styling */
.contact-form-panel {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-emerald);
}

.contact-form-panel .btn {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--bg-secondary);
  border-top: var(--border-glass);
  padding: 6rem 0 3rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: var(--border-glass);
  padding-bottom: 4rem;
}

.footer-brand-column p {
  font-size: 0.9rem;
  margin: 1rem 0 2rem 0;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-circle:hover {
  background: var(--accent-emerald);
  color: var(--bg-primary);
}

.footer-links-column h4 {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-column ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links-column ul a:hover {
  color: var(--text-primary);
}

.newsletter-column h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-column p {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-emerald);
}

.newsletter-form .btn {
  padding: 0.6rem 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-meta-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* ==========================================================================
   BLOG LAYOUT STYLING
   ========================================================================== */

.blog-section {
  position: relative;
  background-color: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  background: transparent;
  border-bottom: var(--border-glass);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.blog-card-image i {
  font-size: 3rem;
  color: var(--accent-teal);
  opacity: 0.5;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 0.5rem;
}

.blog-card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-meta-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); opacity: 0; }
}

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

@keyframes flashRed {
  0% { background: rgba(239, 68, 68, 0.05); }
  100% { background: rgba(239, 68, 68, 0.2); }
}

@keyframes blinkRed {
  0% { opacity: 0.3; filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
  100% { opacity: 1; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.8)); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-2px, 0); }
  30% { transform: translate(2px, 0); }
  50% { transform: translate(-2px, 0); }
  70% { transform: translate(2px, 0); }
  90% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    height: 480px;
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hardware-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .pricing-card.recommended {
    transform: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand-column,
  .newsletter-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Add JS class for responsive mobile navigation drawer */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .grid-showcase-metrics {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-showcase-split {
    grid-template-columns: 1fr;
  }
  
  .workflow-connector-line {
    display: none;
  }
  
  .workflow-arrow {
    display: none;
  }
  
  .workflow-container {
    flex-direction: column;
    align-items: center;
  }
  
  .workflow-step {
    width: 100%;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-marker {
    left: 7px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
}

/* ==========================================================================
   HERO VISUAL OVERLAY ANIMATIONS
   ========================================================================== */

.hero-visual-card {
  position: relative;
  overflow: hidden;
}

.hero-visual-img {
  animation: kenBurns 40s ease-in-out infinite alternate;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.05);
}

.sensor-scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.6) 50%, rgba(16, 185, 129, 0) 100%);
  box-shadow: 0 0 12px var(--accent-mint);
  animation: scannerMove 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.radar-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation: radarWave 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.ring-2 {
  width: 200px;
  height: 200px;
  animation: radarWave 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: 1.5s;
}

.floating-badge {
  position: absolute;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border: var(--border-glass);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 4;
}

.fb-1 {
  top: 10%;
  left: 10%;
  animation: badgeFloat 6s ease-in-out infinite;
}

.fb-2 {
  bottom: 15%;
  left: 15%;
  animation: badgeFloat 6s ease-in-out infinite;
  animation-delay: 2s;
}

.fb-3 {
  top: 30%;
  right: 8%;
  animation: badgeFloat 6s ease-in-out infinite;
  animation-delay: 4s;
}

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

@keyframes scannerMove {
  0% { top: -5%; }
  50% { top: 105%; }
  100% { top: -5%; }
}

@keyframes radarWave {
  0% { width: 40px; height: 40px; opacity: 1; }
  100% { width: 300px; height: 300px; opacity: 0; }
}

@keyframes badgeFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}