/* ==========================================================================
   AGROPLATFORM PREMIUM DESIGN SYSTEM
   Version 2.0 - Final Polish
   ========================================================================== */

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

:root {
  /* Core Colors */
  --dark: #0f172a;
  --dark-glass: rgba(15, 23, 42, 0.85);
  --bg-slate: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #475569;
  
  /* Brand Palette */
  --green: #10b981;
  --green-hover: #059669;
  --green-bg: #ecfdf5;
  --green-border: #d1fae5;
  
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #dbeafe;
  
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --amber-border: #fef3c7;
  
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  --purple-border: #ede9fe;
  
  --cyan: #06b6d4;
  --cyan-bg: #ecfeff;
  --cyan-border: #cffafe;
  
  /* Gradients */
  --green-grad: linear-gradient(135deg, #10b981, #059669);
  --blue-grad: linear-gradient(135deg, #3b82f6, #2563eb);
  --amber-grad: linear-gradient(135deg, #f59e0b, #d97706);
  --purple-grad: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --cyan-grad: linear-gradient(135deg, #06b6d4, #0891b2);
  --dark-grad: linear-gradient(135deg, #1e293b, #0f172a);
  
  /* Spacing & Borders */
  --container-w: 1140px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.12);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-dark);
  line-height: 1.7; 
  font-size: 18px; 
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .topnav-brand, .card-title {
  font-family: 'Outfit', sans-serif;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0; /* Refined padding */
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition);
}

.topnav-brand {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
}

.topnav-brand span {
  background: var(--green-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topnav-links {
  display: flex;
  gap: 32px;
}

.topnav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.topnav-links a:hover, .topnav-links a.active {
  color: #fff;
}

.topnav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green-grad);
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.section-hero {
  background: radial-gradient(circle at top right, #0f172a, #020617);
  color: #fff;
  padding: 120px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.03;
  pointer-events: none;
  animation: bgAnim 20s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero-container {
  padding: 60px 24px 80px;
}

.hero-eyebrow {
  color: var(--green);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 14px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out both;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 24px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.1s;
}

.hero-description {
  font-size: 19px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.2s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.4s;
}

.flow-h-margin {
  margin-top: 60px;
  animation: fadeInUp 0.8s ease-out both;
  animation-delay: 0.6s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-grad);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   CARDS & GRID
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px; /* Increased from 32px */
  font-weight: 700;
  margin-bottom: 48px; /* Increased margin */
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::before {
  content: '';
  width: 48px;
  height: 4px;
  background: var(--green-grad);
  border-radius: 4px;
}

.card-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card.clickable { cursor: pointer; text-decoration: none; color: inherit; }

.card-eyebrow {
  font-size: 13px; /* Increased from 12px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.card-title {
  font-size: 26px; /* Increased from 24px */
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.card-desc {
  font-size: 16px; /* Increased from 15px */
  color: var(--text-light);
  margin-bottom: 24px;
  flex: 1;
}

.card-arrow {
  margin-top: auto;
  font-weight: 700;
  font-size: 15px; /* Increased from 14px */
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

/* Card Variants */
.card.green { border-left: 6px solid var(--green); }
.card.green .card-eyebrow { color: var(--green); }
.card.blue { border-left: 6px solid var(--blue); }
.card.blue .card-eyebrow { color: var(--blue); }
.card.amber { border-left: 6px solid var(--amber); }
.card.amber .card-eyebrow { color: var(--amber); }
.card.purple { border-left: 6px solid var(--purple); }
.card.purple .card-eyebrow { color: var(--purple); }
.card.cyan { border-left: 6px solid var(--cyan); }
.card.cyan .card-eyebrow { color: var(--cyan); }

/* ==========================================================================
   UI COMPONENTS
   ========================================================================== */
.tag {
    display: inline-flex;
    padding: 8px 14px; /* Increased padding */
    border-radius: 8px;
    font-size: 12px; /* Increased from 11px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.tag.purple { background: var(--purple-bg); color: var(--purple); }
.tag.cyan { background: var(--cyan-bg); color: var(--cyan); }

.info-box, .note-box, .success-box {
    padding: 28px; /* Increased padding */
    border-radius: var(--radius-sm);
    margin: 32px 0;
    font-size: 16px; /* Increased from 15px */
}
.info-box { background: var(--blue-bg); border-left: 4px solid var(--blue); }
.note-box { background: var(--amber-bg); border-left: 4px solid var(--amber); }
.success-box { background: var(--green-bg); border-left: 4px solid var(--green); }

.data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px; /* Increased from 14px */
}
.data-table th {
    background: var(--bg-slate);
    padding: 18px; /* Increased padding */
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid var(--gray-200);
}
.data-table td {
    padding: 18px; /* Increased padding */
    border-bottom: 1px solid var(--gray-100);
}

.breadcrumb {
    padding: 32px 0 0;
    font-size: 15px; /* Increased from 13px */
    color: var(--text-light);
    max-width: var(--container-w);
    margin: 0 auto;
}
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 600; }
.breadcrumb .sep { margin: 0 12px; opacity: 0.3; } /* Increased margin */

.page-header {
    padding: 60px 0;
    border-left: 8px solid var(--green);
    padding-left: 40px; /* Increased padding */
    margin: 40px 0;
}
.page-header h1 { font-size: 52px; /* Increased from 48px */ font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; }
.page-header .desc { font-size: 20px; /* Increased from 18px */ color: var(--text-light); max-width: 750px; }
.page-header .eyebrow { font-weight: 800; font-size: 16px; /* Increased from 14px */ text-transform: uppercase; margin-bottom: 12px; }

/* FLOWS */
.flow-h { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 48px 0; }
.flow-node { 
  padding: 16px 32px; 
  border-radius: 100px; 
  font-weight: 700; 
  font-size: 15px; 
  box-shadow: var(--shadow-sm); 
  animation: pulseNode 3s infinite ease-in-out;
}
.flow-node:nth-child(3) { animation-delay: 0.5s; }
.flow-node:nth-child(5) { animation-delay: 1.0s; }
.flow-node:nth-child(7) { animation-delay: 1.5s; }
.flow-node:nth-child(9) { animation-delay: 2.0s; }

.flow-arrow { font-size: 24px; color: var(--text-light); opacity: 0.5; }

.code-block {
    background: var(--dark);
    color: #f1f5f9;
    padding: 32px;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 15px; 
    line-height: 1.6;
    margin: 32px 0;
    border-left: 6px solid var(--green);
}

.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0;
  text-align: center;
  font-size: 15px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 100px 0;
  background: radial-gradient(circle at bottom left, #1e293b, #020617);
  color: #fff;
  text-align: center;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: 80px;
}

.cta-section h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.cta-section p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-sm); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
}

@keyframes bgAnim {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}


.site-footer strong { color: #fff; }

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 36px !important; }
  .hero-cta, .cta-buttons { flex-direction: column; gap: 12px; align-items: stretch; padding: 0 40px; }
  .card-grid.three, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .topnav { flex-direction: column; gap: 20px; text-align: center; }
  .topnav-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .flow-h { flex-direction: column; gap: 12px; }
  .flow-arrow { transform: rotate(90deg); margin: 4px 0; }
  .cta-section { padding: 80px 24px; }
  .cta-section h2 { font-size: 32px; }
}
