*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a7a3d;
  --primary-fg: #ffffff;
  --secondary: #163a5f;
  --secondary-fg: #ffffff;
  --foreground: #1e3348;
  --card: #ffffff;
  --heading-blue: #163a5f;
  --heading-green: #1a7a3d;
  --check-green: #22994d;
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--foreground); background: #edf4f8; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── SITE HEADER (nav + Download App) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand img { height: 40px; width: 40px; }
.navbar-brand span { font-size: 1.25rem; font-weight: 700; color: var(--secondary); }
.navbar-brand .green { color: var(--primary); }
.btn-primary {
  display: inline-block;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.875rem; font-weight: 500; transition: color 0.2s; color: var(--foreground); }
.nav-links a:hover { color: var(--primary); }
.nav-cta { flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; color: var(--foreground); }
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 0.75rem; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid #e5e7eb; background: #fff; }
.mobile-menu a { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn-primary { text-align: center; }

@media (max-width: 767px) {
  .site-header-right { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-menu.open { display: flex; }
}

/* ── HERO ── */
.hero { position: relative; overflow: hidden; }
.hero-img-wrap { position: relative; height: 520px; }
.hero-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(22,58,95,0.8), rgba(22,58,95,0.5), transparent); }
.hero-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 4rem 0; }
.hero-inner { max-width: 520px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; color: #fff; }
.hero h1 .green { color: #4ade80; }
.hero p { color: rgba(255,255,255,0.9); margin-top: 1.25rem; font-size: 1rem; max-width: 28rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn-outline { border-radius: 9999px; border: 2px solid #fff; padding: 0.75rem 1.75rem; font-weight: 600; color: #fff; transition: background 0.2s; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-hero { border-radius: 9999px; background: var(--primary); color: #fff; padding: 0.75rem 1.75rem; font-weight: 600; }
.store-btns { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.store-btn { display: inline-block; border-radius: 0.5rem; background: var(--foreground); padding: 0.5rem 1rem; color: #fff; transition: opacity 0.2s; }
.store-btn:hover { opacity: 0.9; }
.store-btn .small { display: block; font-size: 10px; opacity: 0.8; line-height: 1; }
.store-btn .big { font-size: 0.875rem; font-weight: 600; line-height: 1.3; }

.hero-wave { display: block; margin-top: -1px; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

@media (min-width: 768px) {
  .hero-img-wrap { height: 600px; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
}

/* ── SECTIONS (exclude .hero — hero sits flush under the navbar) ── */
section:not(.hero) { position: relative; overflow: hidden; padding: 4rem 0; }
@media (min-width: 768px) { section:not(.hero) { padding: 6rem 0; } }
.section-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .section-grid { grid-template-columns: 1fr 1fr; } }
.section-img { display: flex; justify-content: center; }
.section-img img { max-width: min(100%, 520px); width: 100%; }
@media (min-width: 768px) { .section-img img { max-width: 440px; } }
.section-text { display: flex; flex-direction: column; gap: 1.25rem; }
.section-text h2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .section-text h2 { font-size: 1.875rem; } }
.section-text p { color: rgba(30,51,72,0.8); line-height: 1.7; }
.text-blue { color: var(--heading-blue); }
.text-green { color: var(--heading-green); }

.wave-divider { position: absolute; bottom: 0; left: 0; width: 100%; }

#about { background: linear-gradient(to bottom, #eef7f1, #e6f4ec, #dff0e5); }
.about-brand { display: flex; align-items: center; gap: 0.75rem; }
.about-brand img { height: 48px; width: 48px; }
.about-brand span { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.about-brand .green { color: var(--primary); }

#vision {
  background: linear-gradient(to bottom, #e4eef8, #dce8f5, #d4e2f0),
    url('../bg-vision.jpg') center / cover no-repeat;
}
.vision-content { text-align: center; max-width: 42rem; margin: 0 auto; }
.vision-content h2 { font-size: 1.875rem; font-weight: 700; color: var(--heading-blue); }
@media (min-width: 768px) { .vision-content h2 { font-size: 2.25rem; } }
.vision-content p { font-size: 1.125rem; font-style: italic; color: rgba(30,51,72,0.8); line-height: 1.7; margin-top: 1.5rem; }
.vision-pins { display: flex; justify-content: space-between; max-width: 28rem; margin: 1.5rem auto 0; }
.vision-pins svg { width: 40px; height: 40px; color: var(--primary); opacity: 0.6; }

#benefits { background: linear-gradient(to bottom, #e8f5ee, #e0f0e6, #d8ecde); }
.benefits-title { font-size: 1.875rem; font-weight: 700; color: var(--heading-blue); text-align: center; }
@media (min-width: 768px) { .benefits-title { font-size: 2.25rem; } }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.benefit-icon {
  width: 96px; height: 96px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.benefit-icon svg { width: 44px; height: 44px; }
.benefit-icon img { width: 64px; height: 64px; object-fit: contain; }
.benefit-card h3 { font-weight: 600; font-size: 0.875rem; color: var(--heading-blue); }
.benefit-card .desc { font-size: 0.8rem; color: rgba(30,51,72,0.7); display: flex; align-items: flex-start; gap: 0.25rem; }
.benefit-card .desc svg { width: 16px; height: 16px; color: var(--check-green); flex-shrink: 0; margin-top: 2px; }

#impact { background: linear-gradient(to bottom, #e4eef8, #dce8f5, #d4e2f0); }

#download {
  background: linear-gradient(to bottom, #e8f5ee, #dff0e5, #d5eadb),
    url('../bg-download.jpg') center / cover no-repeat;
}
.download-visual { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px rgba(22,58,95,0.12); }

.footer { background: var(--secondary); color: var(--secondary-fg); padding: 3rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand img { height: 32px; width: 32px; }
.footer-brand span { font-weight: 700; font-size: 1.125rem; }
.footer p.sub { font-size: 0.875rem; color: rgba(255,255,255,0.7); max-width: 20rem; margin-top: 0.75rem; }
.footer h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-bottom: 0.5rem; }
.footer-links a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ── Auth / Dashboard (shared) ── */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; background: #edf4f8; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(22,58,95,0.1);
  padding: 2rem;
}
.auth-card h1 { font-size: 1.5rem; color: var(--heading-blue); margin-bottom: 0.5rem; }
.auth-card .sub { font-size: 0.875rem; color: rgba(30,51,72,0.7); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--heading-blue); margin-bottom: 0.35rem; }
.form-group input {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 0.5rem;
  border: 1px solid #c5d4e0; font-family: inherit; font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,122,61,0.15); }
.auth-error {
  display: none;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
}
.auth-error.is-visible { display: block; }
.form-group input.input-error { border-color: #f87171; }
.auth-card .btn-primary { width: 100%; text-align: center; padding: 0.65rem 1.25rem; margin-top: 0.5rem; }

.dashboard-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.dashboard-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(22,58,95,0.08);
  padding: 2rem;
}
.dashboard-panel h1 { font-size: 1.75rem; color: var(--heading-blue); margin-bottom: 0.75rem; }
.dashboard-panel p { color: rgba(30,51,72,0.85); line-height: 1.6; margin-bottom: 1rem; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn-secondary {
  display: inline-block; border-radius: 9999px;
  border: 2px solid var(--secondary); color: var(--secondary);
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--secondary); color: #fff; }
