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

/* --- CUSTOM PROPERTIES & TOKENS --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Brand Colors */
  --brand-dark: #122026;
  --brand-green: #91cb02;
  --brand-green-dark: #4f7a00;
  --brand-orange: #f9af3b;
  --brand-orange-light: #fdf5e6;
  --brand-green-light: #f2f7e5;
  
  /* Light Mode Defaults */
  --background: #fdfdfd;
  --foreground: #122026;
  
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(18, 32, 38, 0.08);
  --border-color-hover: rgba(145, 203, 2, 0.4);
  
  --text-muted: #5e6b72;
  --text-inverse: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(18, 32, 38, 0.04);
  --shadow-md: 0 10px 30px rgba(18, 32, 38, 0.06);
  --shadow-lg: 0 20px 50px rgba(18, 32, 38, 0.1);
  --shadow-primary: 0 12px 24px rgba(145, 203, 2, 0.25);

  --glass-blur: blur(16px);
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  
  --header-height: 4.25rem;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --background: #090e11;
  --foreground: #f1f5f9;
  
  --bg-gradient: radial-gradient(circle at 10% 20%, #122026 0%, #090e11 90%);
  --bg-card: rgba(18, 32, 38, 0.65);
  --bg-card-hover: rgba(18, 32, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(145, 203, 2, 0.6);
  
  --text-muted: #94a3b8;
  --text-inverse: #090e11;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 12px 30px rgba(145, 203, 2, 0.4);
}

/* --- BASICS & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border-color);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-green);
  color: var(--brand-dark);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(145, 203, 2, 0.35);
  background: #a5e206;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: rgba(145, 203, 2, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(145, 203, 2, 0.1);
  color: var(--brand-green-dark);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(145, 203, 2, 0.2);
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .badge {
  color: var(--brand-green);
  background: rgba(145, 203, 2, 0.08);
  border: 1px solid rgba(145, 203, 2, 0.15);
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.4s ease;
}

[data-theme="dark"] header {
  background: rgba(9, 14, 17, 0.65);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] header.scrolled {
  background: rgba(9, 14, 17, 0.85);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 2.6rem;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--foreground);
  opacity: 0.85;
}

nav a:hover, nav a.active {
  opacity: 1;
  color: var(--brand-green-dark);
}
[data-theme="dark"] nav a:hover, [data-theme="dark"] nav a.active {
  color: var(--brand-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--brand-green);
  color: var(--brand-dark);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.5s ease;
}

.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.125rem;
  cursor: pointer;
  z-index: 110;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- HERO SECTION --- */
.hero {
  padding: calc(var(--header-height) + 3rem) 0 6rem 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 45rem;
  height: 45rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 203, 2, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(145, 203, 2, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero .grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 38rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  color: var(--foreground);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-cta-buttons {
  display: flex;
  gap: 1rem;
}

.hero-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-label span {
  color: var(--brand-green-dark);
}
[data-theme="dark"] .hero-label span {
  color: var(--brand-green);
}

/* Hero Live App Preview Dashboard mockup */
.hero-preview {
  position: relative;
  width: 100%;
}

.mockup-container {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: rgba(18, 32, 38, 0.03);
  border: 1px solid rgba(18, 32, 38, 0.05);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .mockup-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.mockup-app {
  border-radius: var(--radius-md);
  background: var(--background);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  height: 2.75rem;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
}

.mockup-dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(18, 32, 38, 0.15);
}
[data-theme="dark"] .mockup-dots span {
  background: rgba(255, 255, 255, 0.15);
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #fbbf24; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
  font-family: var(--font-heading);
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-dashboard {
  display: grid;
  gap: 1.25rem;
}

.dashboard-crop-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(18, 32, 38, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .dashboard-crop-selector {
  background: rgba(255, 255, 255, 0.01);
}

.crop-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crop-icon-placeholder {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--brand-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.crop-name {
  text-align: left;
}
.crop-name h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.crop-name p {
  font-size: 0.75rem;
}

.crop-yield-badge {
  background: rgba(145, 203, 2, 0.15);
  color: var(--brand-green-dark);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
[data-theme="dark"] .crop-yield-badge {
  color: var(--brand-green);
}

.dashboard-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.result-card {
  padding: 1rem 0.75rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.result-card.glow-n { border-bottom: 3.5px solid #3b82f6; }
.result-card.glow-p { border-bottom: 3.5px solid var(--brand-green); }
.result-card.glow-k { border-bottom: 3.5px solid var(--brand-orange); }

.result-card h5 {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  opacity: 0.6;
}

.result-val {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.result-unit {
  font-size: 0.7rem;
  opacity: 0.5;
  display: block;
  margin-top: 0.2rem;
}

.dashboard-chart-preview {
  height: 5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(18, 32, 38, 0.01);
}

/* Floating Badges in Hero */
.floating-element {
  position: absolute;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
}

.floating-1 {
  top: 15%;
  left: -8%;
  animation-delay: 0s;
}

.floating-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

.stat-pill span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
}

.stat-pill-orange span {
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
}

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

/* --- THE PAIN AND SOLUTION SECTION (EL GRAN DIFERENCIAL) --- */
.pain-solution {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  background: var(--background);
}

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

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.pain-side, .solution-side {
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pain-side {
  background: rgba(249, 175, 59, 0.03);
  border: 1px solid rgba(249, 175, 59, 0.15);
}
[data-theme="dark"] .pain-side {
  background: rgba(249, 175, 59, 0.01);
  border: 1px solid rgba(249, 175, 59, 0.08);
}

.solution-side {
  background: rgba(145, 203, 2, 0.04);
  border: 1.5px solid rgba(145, 203, 2, 0.25);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .solution-side {
  background: rgba(145, 203, 2, 0.02);
  border-color: rgba(145, 203, 2, 0.15);
}

.solution-side::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 203, 2, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.side-header {
  margin-bottom: 2.5rem;
}

.side-badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.pain-side .side-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.solution-side .side-badge {
  background: rgba(145, 203, 2, 0.15);
  color: var(--brand-green-dark);
}
[data-theme="dark"] .solution-side .side-badge {
  color: var(--brand-green);
}

.side-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.side-desc {
  font-size: 1.05rem;
  line-height: 1.6;
}

.solution-side .side-desc {
  color: var(--foreground);
  opacity: 0.95;
}

.side-bullets {
  display: grid;
  gap: 1.25rem;
  margin-top: 0;
}

.bullet-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pain-side .bullet-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.solution-side .bullet-icon {
  background: var(--brand-green);
  color: var(--brand-dark);
}

.bullet-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bullet-text p {
  font-size: 0.9rem;
}

/* --- INTERACTIVE CALCULATOR WIDGET --- */
.interactive-calculator-sec {
  padding: 6rem 0;
  background: var(--bg-gradient);
}

.calc-widget {
  max-width: 58rem;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.calc-inputs {
  padding: 3.5rem 3rem;
  background: var(--bg-card);
}

.calc-outputs {
  padding: 3.5rem 3rem;
  background: var(--brand-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.calc-inputs h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.calc-inputs > p {
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  opacity: 0.85;
}

/* Custom Selector Chips */
.crop-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.crop-chip {
  padding: 0.85rem 1rem;
  background: var(--background);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.crop-chip:hover {
  border-color: var(--brand-green);
  background: rgba(145, 203, 2, 0.05);
}

.crop-chip.active {
  border-color: var(--brand-green);
  background: rgba(145, 203, 2, 0.12);
  color: var(--brand-green-dark);
}
[data-theme="dark"] .crop-chip.active {
  color: var(--brand-green);
  background: rgba(145, 203, 2, 0.08);
}

/* Custom Number Input & Slider Combo */
.yield-slider-container {
  display: grid;
  gap: 1rem;
}

.yield-num-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding: 0.25rem 0;
}

.yield-num-wrapper input[type="number"] {
  font-size: 2rem;
  font-weight: 700;
  width: 60%;
  color: var(--foreground);
  font-family: var(--font-heading);
}

.yield-unit-label {
  font-weight: 600;
  opacity: 0.6;
}

/* Slider Style */
.yield-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.yield-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-green);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 0 10px rgba(145, 203, 2, 0.4);
}

.yield-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Output Display styling */
.calc-outputs h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.calc-outputs-intro {
  margin-bottom: 2.5rem;
}

.calc-outputs-intro p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.output-meters {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.meter-row {
  display: grid;
  gap: 0.5rem;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.meter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.meter-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}
.dot-n { background: #3b82f6; }
.dot-p { background: var(--brand-green); }
.dot-k { background: var(--brand-orange); }

.meter-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.meter-val span {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
}

.meter-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter-bar-fill.n { background: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.meter-bar-fill.p { background: var(--brand-green); box-shadow: 0 0 10px rgba(145, 203, 2, 0.5); }
.meter-bar-fill.k { background: var(--brand-orange); box-shadow: 0 0 10px rgba(249, 175, 59, 0.5); }

.calc-disclaimer {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

/* --- FEATURES & FUNCTIONALITIES --- */
.features {
  padding: 6rem 0;
  background: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(145, 203, 2, 0.1);
  color: var(--brand-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon-wrapper svg {
  width: 22px;
  height: 22px;
}
[data-theme="dark"] .feature-icon-wrapper {
  background: rgba(145, 203, 2, 0.06);
  color: var(--brand-green);
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

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

/* --- BOTTOM CALL TO ACTION --- */
.cta-bottom {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  color: #ffffff;
  text-align: center;
}

.cta-bottom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 203, 2, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.cta-bottom .container {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.cta-bottom h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-bottom p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 3rem;
  text-wrap: balance;
}

.cta-bottom .btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  box-shadow: 0 16px 36px rgba(145, 203, 2, 0.3);
}

/* --- FOOTER --- */
footer {
  padding: 3rem 0;
  background: #090e11;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 2.1rem;
  opacity: 0.75;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- ANIMATIONS & INTERACTIVE STATES --- */
/* Scroll Reveal elements */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero .grid-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-buttons {
    justify-content: center;
  }

  .hero-label {
    justify-content: center;
  }

  .hero-preview {
    max-width: 34rem;
    margin: 0 auto;
  }

  .floating-1 {
    left: -2%;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .calc-widget {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    height: var(--header-height);
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
    z-index: 95;
  }

  nav.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .menu-btn {
    display: flex;
  }

  /* Hamburger transform when menu open */
  .menu-btn.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

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

  .pain-side, .solution-side {
    padding: 2.25rem 1.75rem;
  }

  .calc-inputs, .calc-outputs {
    padding: 2.5rem 1.75rem;
  }
  
  footer .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
  }

  .crop-chips {
    grid-template-columns: 1fr;
  }
}
