/* ============================================
   SolarFarm Finance - Main Stylesheet
   ============================================ */

/* CSS Variables & Design System */
:root {
  --primary: #1a7a4a;
  --primary-dark: #145e38;
  --primary-light: #2ecc71;
  --secondary: #f39c12;
  --secondary-dark: #d68910;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --danger: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --info: #3498db;

  --bg-primary: #f0f9f4;
  --bg-secondary: #ffffff;
  --bg-dark: #1a2332;
  --bg-darker: #111827;

  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #ffffff;

  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --shadow-green: 0 8px 30px rgba(26,122,74,0.3);

  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;

  --font-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,122,74,0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
}

.navbar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow-green);
}

.navbar-brand span.brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(26,122,74,0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
  display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.01em;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
}

.btn-xl {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--border-radius);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26,122,74,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0d4728);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,122,74,0.4);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243,156,18,0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f3d20 0%, #1a7a4a 40%, #2ecc71 100%);
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: float 8s ease-in-out infinite;
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation-delay: -3s;
}

.hero-circle-3 {
  width: 250px;
  height: 250px;
  top: 30%;
  left: 20%;
  animation-delay: -6s;
  background: rgba(243,156,18,0.08);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
}

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

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-title span {
  color: var(--secondary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
  line-height: 1;
}

.hero-stat .stat-value span {
  color: var(--secondary);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
}

.hero-card-main {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.hero-card-main .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.solar-icon-big {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), #e67e22);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(243,156,18,0.4);
}

.hero-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.stat-chip .chip-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.stat-chip .chip-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}

.floating-badge-1 {
  top: -20px;
  right: -20px;
  color: var(--success);
}

.floating-badge-2 {
  bottom: -20px;
  left: -20px;
  animation-delay: -2.5s;
  color: var(--accent);
}

.floating-badge .fb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.floating-badge-1 .fb-icon { background: rgba(39,174,96,0.15); }
.floating-badge-2 .fb-icon { background: rgba(52,152,219,0.15); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-body {
  padding: 1.5rem;
}

.card-header-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,122,74,0.03);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-card-icon.green { background: linear-gradient(135deg, rgba(26,122,74,0.1), rgba(46,204,113,0.15)); color: var(--primary); }
.stat-card-icon.yellow { background: linear-gradient(135deg, rgba(243,156,18,0.1), rgba(243,156,18,0.2)); color: var(--secondary); }
.stat-card-icon.blue { background: linear-gradient(135deg, rgba(52,152,219,0.1), rgba(52,152,219,0.2)); color: var(--accent); }
.stat-card-icon.red { background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(231,76,60,0.2)); color: var(--danger); }

.stat-card-content .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-card-content .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-card-content .stat-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  display: inline-block;
}

.stat-change.positive { background: rgba(39,174,96,0.12); color: var(--success); }
.stat-change.negative { background: rgba(231,76,60,0.12); color: var(--danger); }

/* ============================================
   PROCESS / HOW IT WORKS
   ============================================ */
.process-section {
  background: white;
}

.process-steps {
  position: relative;
}

.process-connector {
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

.step-number.step-1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.step-number.step-2 { background: linear-gradient(135deg, var(--secondary), #e67e22); color: white; }
.step-number.step-3 { background: linear-gradient(135deg, var(--accent), #8e44ad); color: white; }
.step-number.step-4 { background: linear-gradient(135deg, var(--success), #1abc9c); color: white; }

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-badge.premium { background: linear-gradient(135deg, var(--secondary), #e67e22); }
.product-badge.new { background: linear-gradient(135deg, var(--accent), #8e44ad); }

.product-header {
  background: linear-gradient(135deg, var(--bg-primary), #e8f5e9);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.product-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-green);
  color: white;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.product-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  margin-top: 0.75rem;
}

.product-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spec-item i {
  color: var(--primary);
  font-size: 0.9rem;
  width: 16px;
}

.product-features {
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.product-features li i {
  color: var(--success);
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.out-of-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--danger);
  background: rgba(231,76,60,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: linear-gradient(135deg, #0f3d20 0%, #1a7a4a 100%);
  color: white;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #e67e22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.author-name {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

.author-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.testimonial-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.t-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.t-stat .t-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
}

.t-stat .t-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}

.stars {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.form-section-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 2rem 2.5rem;
  color: white;
}

.form-section-header h2 {
  color: white;
  font-size: 1.8rem;
}

.form-section-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

.form-body {
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-label span.required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  transition: var(--transition-fast);
  outline: none;
  font-family: var(--font-primary);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,122,74,0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loan-calc-section {
  background: linear-gradient(135deg, rgba(26,122,74,0.05), rgba(46,204,113,0.08));
  border: 1px solid rgba(26,122,74,0.15);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.loan-calc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calc-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-heading);
}

.calc-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-details {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.calc-detail-chip {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   RANGE SLIDER
   ============================================ */
.range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,122,74,0.4);
  border: 3px solid white;
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending { background: rgba(243,156,18,0.12); color: #d68910; }
.status-under_review { background: rgba(52,152,219,0.12); color: #2980b9; }
.status-approved { background: rgba(39,174,96,0.12); color: var(--success); }
.status-rejected { background: rgba(231,76,60,0.12); color: var(--danger); }
.status-disbursed { background: rgba(26,122,74,0.12); color: var(--primary); }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: linear-gradient(135deg, var(--bg-dark), #263548);
  color: white;
}

thead th {
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(26,122,74,0.03);
}

tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-primary);
  padding: 0.4rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(26,122,74,0.06);
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
  background: linear-gradient(135deg, #0f3d20, #1a7a4a);
  padding: 2rem 0;
  color: white;
}

.dashboard-title {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.25rem;
}

.dashboard-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}

.progress-bar-wrapper {
  background: var(--border-color);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--border-color));
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot.completed { background: var(--success); }
.timeline-dot.active { background: var(--secondary); }
.timeline-dot.pending { background: var(--border-color); }

.timeline-content .t-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.timeline-content .t-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border-left: 4px solid;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: rgba(39,174,96,0.08); border-color: var(--success); color: #1a6b3f; }
.alert-warning { background: rgba(243,156,18,0.08); border-color: var(--warning); color: #8a6204; }
.alert-info { background: rgba(52,152,219,0.08); border-color: var(--info); color: #1a5e8a; }
.alert-danger { background: rgba(231,76,60,0.08); border-color: var(--danger); color: #8e1a10; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--danger);
  background: rgba(231,76,60,0.08);
}

/* ============================================
   IMPACT SECTION
   ============================================ */
.impact-section {
  background: white;
}

.impact-counter {
  text-align: center;
  padding: 2rem 1rem;
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.impact-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.impact-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(26,122,74,0.3);
}

.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(26,122,74,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 200px;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  background: var(--bg-primary);
  padding: 3rem 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  min-height: 70px;
}

.partner-logo:hover {
  color: var(--primary);
  border-color: rgba(26,122,74,0.3);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 320px;
  max-width: 400px;
  pointer-events: all;
  border-left: 4px solid;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--info); }
.toast-warning { border-color: var(--warning); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--info); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.toast-message { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #0f3d20, #1a7a4a);
  padding: 7rem 0 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.page-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.88rem;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade { animation: fadeIn 0.5s ease forwards; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.visible { display: block !important; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.rounded { border-radius: var(--border-radius); }
.rounded-full { border-radius: 50%; }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-white { background: white; }
.bg-light { background: var(--bg-primary); }

.text-primary-color { color: var(--primary); }
.text-secondary-color { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.chip-green { background: rgba(26,122,74,0.1); color: var(--primary); border-color: rgba(26,122,74,0.2); }
.chip-yellow { background: rgba(243,156,18,0.1); color: var(--secondary-dark); border-color: rgba(243,156,18,0.2); }
.chip-blue { background: rgba(52,152,219,0.1); color: var(--accent-dark); border-color: rgba(52,152,219,0.2); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow-md); }
  .navbar-nav.mobile-open { display: flex; }
  .hamburger { display: flex; }
  .navbar-actions .btn-outline { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.25rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .process-connector { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 3.5rem 0; }
  .modal-body { padding: 1.5rem; }
  .form-body { padding: 1.5rem; }
  .hero-content { padding-top: 7rem; }

  .toast { min-width: 280px; }

  .product-specs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat .stat-value { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .tabs { gap: 0; padding: 0.3rem; }
  .tab-btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
}
