/* ==========================================================================
   FAMILY TRADE — Main Stylesheet
   Professional Landing Page 
   ========================================================================== */

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

/* ── Base ── */
body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Lucide Icons Global Sizing */
[data-lucide] {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-100);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-label [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* ──────────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: var(--color-navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
}

.navbar-logo .logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.navbar-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-logo .logo-icon [data-lucide] {
  width: 22px;
  height: 22px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-item {
  position: relative;
  padding: var(--space-2) 0;
}

.navbar-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

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

/* Dropdown Styles */
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.dropdown-trigger svg {
  transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-trigger {
  color: var(--color-primary);
}

.nav-item:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex !important;
  flex-direction: column;
  padding: var(--space-3) var(--space-4) !important;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--color-primary-50);
}

.dropdown-item-title {
  font-weight: var(--font-semibold);
  color: var(--color-navy) !important;
  font-size: var(--text-sm);
}

.dropdown-item-desc {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold) !important;
  font-size: var(--text-sm) !important;
}

.navbar-cta:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle i {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Nav Menu */
.navbar-mobile {
  position: fixed;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  z-index: var(--z-nav);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-200) transparent;
}

.navbar-mobile.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-mobile::-webkit-scrollbar {
  width: 4px;
}

.navbar-mobile::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-200);
  border-radius: 10px;
}

.navbar-mobile a {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.navbar-mobile a:last-child {
  border-bottom: none;
}

.navbar-mobile a:hover {
  color: var(--color-primary);
}

.mobile-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.mobile-group-title:first-child {
  margin-top: 0;
}

/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */
.hero {
  padding-top: calc(72px + var(--space-20));
  padding-bottom: var(--space-20);
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-bg) 40%, var(--color-primary-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

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

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

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

.btn-accent:hover {
  background: var(--color-accent-dark);
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

/* ──────────────────────────────────────────────
   PROBLEM SECTION
   ────────────────────────────────────────────── */
.problem {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.problem-image {
  display: flex;
  justify-content: center;
}

.problem-image img {
  max-width: 460px;
  width: 100%;
  border-radius: var(--radius-2xl);
}

.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.problem-stat-card {
  background: var(--color-bg-alt);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.problem-stat-card .stat-icon {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.problem-stat-card .stat-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.problem-stat-card .stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
}

.problem-stat-card .stat-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ──────────────────────────────────────────────
   SOLUTION / HOW IT WORKS
   ────────────────────────────────────────────── */
.solution {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.solution-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.solution-header .section-subtitle {
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  color: var(--color-border);
  line-height: 1;
  opacity: 0.4;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.step-icon [data-lucide] {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.step-icon.teal [data-lucide] { color: var(--color-primary); }
.step-icon.orange [data-lucide] { color: #D97706; }
.step-icon.pink [data-lucide] { color: #DB2777; }

.step-icon.teal    { background: var(--color-icon-bg-teal, var(--color-primary-100)); }
.step-icon.orange  { background: var(--color-icon-bg-orange, #FEF3C7); }
.step-icon.pink    { background: var(--color-icon-bg-pink, #FCE7F3); }

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.step-description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────
   FEATURES SECTION
   ────────────────────────────────────────────── */
.features {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-icon.bg-teal     { background: var(--color-icon-bg-teal, var(--color-primary-100)); }
.feature-card-icon.bg-orange   { background: var(--color-icon-bg-orange, #FEF3C7); }
.feature-card-icon.bg-pink     { background: var(--color-icon-bg-pink, #FCE7F3); }
.feature-card-icon.bg-green    { background: var(--color-icon-bg-green, #DCFCE7); }
.feature-card-icon.bg-blue     { background: var(--color-icon-bg-blue, #DBEAFE); }
.feature-card-icon.bg-purple   { background: var(--color-icon-bg-purple, #F3E8FF); }

.feature-card-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.feature-card-icon.bg-teal [data-lucide] { color: var(--color-primary); }
.feature-card-icon.bg-orange [data-lucide] { color: #D97706; }
.feature-card-icon.bg-pink [data-lucide] { color: #DB2777; }
.feature-card-icon.bg-green [data-lucide] { color: #059669; }
.feature-card-icon.bg-blue [data-lucide] { color: #2563EB; }
.feature-card-icon.bg-purple [data-lucide] { color: #7C3AED; }

.feature-card-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.feature-card-content p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ──────────────────────────────────────────────
   APP SHOWCASE
   ────────────────────────────────────────────── */
.showcase {
  padding: var(--space-24) 0;
  background: var(--color-navy-bg, var(--color-navy));
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, transparent 60%);
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 1;
}

.showcase-header .section-label {
  background: rgba(13, 148, 136, 0.2);
  color: var(--color-primary-light);
}

.showcase-header .section-title {
  color: var(--color-white);
}

.showcase-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.showcase-mockup img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.showcase-mockup-label {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.6);
}

/* App Launch Showcase */
.app-launch-card {
  margin-top: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: var(--space-8) var(--space-12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.store-badges-row {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.badge-wrapper {
  transition: transform 0.3s ease;
}

.badge-wrapper:hover {
  transform: translateY(-4px);
}

.official-badge {
  height: 40px; /* Reduced base height to allow scaling without overflow issues */
  width: auto;
  display: block;
}

.badge-wrapper img[src*="google-play"] {
  transform: scale(1.35); /* Compensates for the padding in the Google PNG */
  transform-origin: center;
}

@media (max-width: 640px) {
  .app-launch-card {
    padding: var(--space-6) var(--space-6);
    margin-top: var(--space-6);
    border-radius: 30px;
  }
  .store-badges-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  .official-badge {
    height: 40px;
  }
}

/* ──────────────────────────────────────────────
   IMPACT / SDG SECTION
   ────────────────────────────────────────────── */
.impact {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-50) 100%);
}

.impact-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.impact-header .section-subtitle {
  margin: 0 auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.impact-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.impact-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  overflow: hidden;
}

.impact-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.impact-card-icon.sdg-4  { background: #C5192D; }
.impact-card-icon.sdg-10 { background: #DD1367; }
.impact-card-icon.sdg-12 { background: #BF8B2E; }

.impact-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.impact-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* SDG Banner */
.sdg-banner {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.sdg-banner-text {
  flex: 1;
}

.sdg-banner-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.sdg-banner-text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.sdg-badges {
  display: flex;
  gap: var(--space-4);
}

.sdg-banner-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.sdg-banner-badge:hover {
  transform: scale(1.05);
}

/* ──────────────────────────────────────────────
   TECH STACK
   ────────────────────────────────────────────── */
.tech {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.tech-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.tech-header .section-subtitle {
  margin: 0 auto;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.tech-card {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--color-border);
}

.tech-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-2xl);
  background: var(--color-primary-50);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.tech-card-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.tech-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ──────────────────────────────────────────────
   TEAM SECTION
   ────────────────────────────────────────────── */
.team {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.team-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.team-header .section-subtitle {
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  max-width: 900px;
  margin: 0 auto;
}

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

.team-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-surface);
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-avatar:hover img {
  transform: scale(1.1);
}

.team-member h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ──────────────────────────────────────────────
   ROADMAP
   ────────────────────────────────────────────── */
.roadmap {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.roadmap-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.roadmap-header .section-subtitle {
  margin: 0 auto;
}

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

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent), var(--color-secondary));
  border-radius: var(--radius-full);
}

.roadmap-item {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

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

.roadmap-dot {
  width: 60px;
  min-width: 60px;
  display: flex;
  justify-content: center;
  padding-top: var(--space-1);
}

.roadmap-dot span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  background: var(--color-surface);
  position: relative;
  z-index: 1;
}

.roadmap-item.completed .roadmap-dot span {
  background: var(--color-primary);
}

.roadmap-item.active .roadmap-dot span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15);
}

.roadmap-card {
  flex: 1;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
}

.roadmap-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.roadmap-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.roadmap-phase {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  white-space: nowrap;
}

.roadmap-phase.done    { background: var(--color-primary-100); color: var(--color-primary-dark); }
.roadmap-phase.current { background: var(--color-roadmap-current-bg, #FEF3C7); color: var(--color-roadmap-current-text, var(--color-accent-dark)); }
.roadmap-phase.upcoming { background: var(--color-roadmap-upcoming-bg, var(--color-bg-alt)); color: var(--color-roadmap-upcoming-text, var(--color-text-secondary)); }

/* ──────────────────────────────────────────────
   CTA SECTION
   ────────────────────────────────────────────── */
.cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta .section-title {
  color: var(--color-white);
  font-size: var(--text-4xl);
}

.cta .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto;
  max-width: 540px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

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

.btn-white:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

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

.btn-ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.footer {
  background: var(--color-navy-bg, #1E293B);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .navbar-logo {
  margin-bottom: var(--space-4);
}

.footer-brand .navbar-logo .logo-icon {
  background: transparent;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-primary-light);
}

.made-with-love {
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.made-with-love .heart {
  color: var(--color-coral);
}

.made-with-love .flag {
  margin-left: var(--space-1);
}

/* ──────────────────────────────────────────────
   RESPONSIVE — Tablet
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-title { font-size: var(--text-4xl); }
  .section-title { font-size: var(--text-3xl); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-content { text-align: center; }
  .hero-description { margin: 0 auto var(--space-8); }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-image img {
    max-width: 400px;
  }

  .problem-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .problem-image { order: -1; }

  .steps-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto var(--space-16); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .sdg-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — Mobile
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .hero { padding-top: calc(72px + var(--space-12)); padding-bottom: var(--space-12); }
  .hero-title { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-2xl); }

  .navbar-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

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

  .problem-stats { grid-template-columns: 1fr; }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .showcase-mockup img { max-width: 260px; }

  .tech-grid { grid-template-columns: 1fr 1fr; }

  .cta .section-title { font-size: var(--text-2xl); }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .sdg-badges { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--text-2xl); }
  .hero-badge { font-size: var(--text-xs); }
  .hero-image img { max-width: 300px; }
  .tech-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────
   TEAM MODAL
   ────────────────────────────────────────────── */
.team-member {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member:hover .team-avatar img {
  transform: scale(1.1);
}

.team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 37, 64, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-4);
}

.team-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.team-modal {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  max-width: 800px;
  width: 100%;
  padding: 0;
  position: relative;
  text-align: left;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-modal-inner {
  overflow-y: auto;
  padding: var(--space-8);
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary-200) transparent;
}

.team-modal-inner::-webkit-scrollbar {
  width: 6px;
}

.team-modal-inner::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-200);
  border-radius: 10px;
}

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

.team-modal-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
}

.team-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-surface);
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.team-modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.team-modal-avatar {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-surface);
  margin: 0;
}

.team-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-text {
  flex: 1;
}

.team-modal-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.team-modal-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-modal-bio {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  white-space: pre-line;
}

@media (max-width: 640px) {
  .team-modal {
    text-align: center;
  }
  .team-modal-inner {
    padding: var(--space-6) var(--space-4);
  }
  .team-modal-close {
    top: 12px;
    right: 12px;
  }
  .team-modal-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  .team-modal-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
}
/* ──────────────────────────────────────────────
   FOOTER PARTNERS
   ────────────────────────────────────────────── */
.footer-partners {
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-partners-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-5);
  font-weight: var(--font-medium);
}

.footer-partners-text strong {
  color: var(--color-primary-light);
}

.footer-partners-logos {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-partners-logos img {
  height: 60px; /* Even more generous */
  width: auto;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-partners-logos a:hover img {
  transform: translateY(-6px) scale(1.05);
  filter: drop-shadow(0 0 20px rgba(13, 148, 136, 0.3));
}

.footer-partners-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
}
