/* ── Home Page Specific Styles ── */

/* Hero */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--white);
  background: var(--green-dark);
}
#hero::before, #hero::after {
  content: ''; position: absolute;
  border-radius: 50%; filter: blur(80px);
  z-index: 1; pointer-events: none;
  animation: floatBlobs 24s infinite alternate ease-in-out;
}
#hero::before {
  width: 500px; height: 500px;
  background: rgba(212,160,23,0.25);
  top: -10%; left: -5%;
}
#hero::after {
  width: 600px; height: 600px;
  background: rgba(78,205,196,0.2);
  bottom: -20%; right: -10%;
  animation-delay: -12s;
}
@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -20px) scale(1.05); }
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}
@keyframes subtle-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18,71,38,.85) 0%,
    rgba(27,107,58,.65) 50%,
    rgba(18,71,38,.90) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 140px 20px 100px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 20px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.9);
  margin-bottom: 28px;
}
.hero-badge i { color: var(--gold-light); }
.hero-title {
  color: var(--white); line-height: 1.18;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 24px;
}
.hero-title .highlight {
  color: var(--gold-light);
  position: relative;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.8;
  font-family: var(--font-body);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin-bottom: 64px;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  justify-content: center; align-items: stretch;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 40px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  max-width: 680px; margin: 0 auto;
  overflow: hidden;
}
.hstat {
  flex: 1; min-width: 100px;
  padding: 20px 16px; text-align: center;
}
.hstat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700;
  color: var(--gold-light); line-height: 1;
  margin-bottom: 6px;
}
.hstat-label { font-size: .75rem; color: rgba(255,255,255,.7); line-height: 1.3; }
.hstat-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }
.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block; width: 2px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  margin: 0 auto;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.6); opacity: .5; }
}

/* About Intro */
.about-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.ai-img-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 340px;
}
.ai-blob {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,58,.12), rgba(212,160,23,.08));
  animation: float 5s ease-in-out infinite;
}
.ai-logo-display {
  position: relative; z-index: 1;
  width: 200px; height: 200px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(27,107,58,.25));
  animation: float 5s ease-in-out infinite;
}
.ai-stats-cards {
  position: absolute; bottom: 0; right: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-stat-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: .82rem; min-width: 200px;
}
.ai-stat-card strong { display: block; color: var(--text-dark); font-weight: 700; }
.ai-stat-card span { color: var(--text-medium); line-height: 1.3; }
.ai-stat-icon {
  font-size: 1.3rem; flex-shrink: 0;
  color: var(--green-primary); width: 32px; text-align: center;
}

/* Focus Grid */
.focus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.focus-card { padding: 0; overflow: hidden; }
.focus-card-top {
  height: 6px;
  background: linear-gradient(135deg, rgba(27,107,58,.2), rgba(27,107,58,.4));
}
.focus-card-body { padding: 32px; }
.focus-card h3 { margin: 12px 0 12px; font-size: 1.15rem; }

/* Why Grid */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.why-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.9); font-size: 1.02rem;
}
.why-check {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--white); font-weight: 700;
  flex-shrink: 0;
}
.why-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* Partners */
.partners-flex {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
}
.partners-flex .partner-logo-wrap { flex: 1; min-width: 160px; max-width: 220px; }

/* Vision Forward */
.vision-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
}
.vision-item {
  padding: 32px 20px; text-align: center;
  background: var(--off-white); border-radius: var(--radius-md);
  border: 2px solid transparent; transition: var(--transition);
}
.vision-item:hover { border-color: var(--green-primary); background: var(--white); box-shadow: var(--shadow-md); }
.vision-number {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 800;
  color: var(--green-primary); opacity: .2;
  margin-bottom: 12px; line-height: 1;
}
.vision-item:hover .vision-number { opacity: .8; }
.vision-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.vision-item p { font-size: .88rem; }

/* CTA */
.cta-section { padding: 80px 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 32px;
}
.cta-text { flex: 1; min-width: 280px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vision-grid { grid-template-columns: repeat(3, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-visual { order: -1; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { max-width: 100%; }
  .hstat-divider { display: none; }
  .hstat { flex: 0 0 50%; border-top: 1px solid rgba(255,255,255,.1); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .vision-grid { grid-template-columns: 1fr; }
  .ai-stats-cards { position: static; margin-top: 20px; }
  .ai-img-wrap { height: auto; }
  .why-stats { grid-template-columns: 1fr; }
}

/* ── Loan Forms Section ── */
.loan-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.loan-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(27,107,58,.08);
  border: 1.5px solid rgba(27,107,58,.1);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.loan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light, #4ade80));
  border-radius: 20px 20px 0 0;
}
.loan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(27,107,58,.18);
  border-color: rgba(27,107,58,.3);
}

/* Gold variant top bar */
.loan-card:has(.loan-card-icon--gold)::before {
  background: linear-gradient(90deg, var(--gold-accent, #D4A017), var(--gold-light, #F5C842));
}
.loan-card:has(.loan-card-icon--gold) {
  border-color: rgba(212,160,23,.15);
  box-shadow: 0 4px 24px rgba(212,160,23,.08);
}
.loan-card:has(.loan-card-icon--gold):hover {
  box-shadow: 0 20px 48px rgba(212,160,23,.18);
  border-color: rgba(212,160,23,.35);
}

/* Icon */
.loan-card-icon-wrap {
  margin-bottom: 20px;
}
.loan-card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27,107,58,.12), rgba(27,107,58,.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--green-primary);
  box-shadow: 0 4px 12px rgba(27,107,58,.12);
  transition: transform .3s ease;
}
.loan-card:hover .loan-card-icon { transform: scale(1.08) rotate(-4deg); }

.loan-card-icon--gold {
  background: linear-gradient(135deg, rgba(212,160,23,.15), rgba(212,160,23,.06));
  color: var(--gold-accent, #D4A017);
  box-shadow: 0 4px 12px rgba(212,160,23,.15);
}

/* Sub-badge */
.loan-card-badge {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-primary);
  background: rgba(27,107,58,.08);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
}
.loan-card-badge--gold {
  color: var(--gold-accent, #D4A017);
  background: rgba(212,160,23,.1);
}

/* Title */
.loan-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Description */
.loan-card-desc {
  font-size: .93rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* Features list */
.loan-card-features {
  list-style: none;
  padding: 0; margin: 0 0 32px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.loan-card-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--text-medium);
}
.loan-card-features li i {
  color: var(--green-primary);
  font-size: .95rem; flex-shrink: 0;
}
.loan-card:has(.loan-card-icon--gold) .loan-card-features li i {
  color: var(--gold-accent, #D4A017);
}

/* Download button */
.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light, #1d8a4e));
  color: var(--white);
  font-size: .97rem; font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 6px 20px rgba(27,107,58,.3);
  position: relative;
  overflow: hidden;
}
.btn-download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .25s ease;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27,107,58,.4);
  filter: brightness(1.06);
}
.btn-download:active { transform: translateY(0); }

.loan-btn-arrow {
  margin-left: auto;
  transition: transform .3s ease;
}
.btn-download:hover .loan-btn-arrow { transform: translateY(3px); }

/* Gold download button */
.btn-download--gold {
  background: linear-gradient(135deg, var(--gold-accent, #D4A017), #e8b520);
  color: #3a2900;
  box-shadow: 0 6px 20px rgba(212,160,23,.3);
}
.btn-download--gold:hover {
  box-shadow: 0 10px 28px rgba(212,160,23,.45);
}

/* Responsive */
@media (max-width: 768px) {
  .loan-forms-grid { grid-template-columns: 1fr; gap: 24px; }
  .loan-card { padding: 32px 24px; }
}
