/* ═══════════════════════════════════════════
   Avaaz Design System — Clean White + Blue
   ═══════════════════════════════════════════ */
:root {
  --bg:      #FFFFFF;
  --bg2:     #F0F7FF;
  --bg3:     #E6F0FE;
  --surface: #FFFFFF;

  --primary:      #2563EB;
  --primary-dark: #1A4FC8;
  --primary-dim:  rgba(37,99,235,0.08);
  --primary-glow: rgba(37,99,235,0.22);

  --accent:     #0EA5E9;
  --accent-dim: rgba(14,165,233,0.10);
  --cyan:       #06B6D4;

  --text:   #0F172A;
  --text2:  #1E293B;
  --text3:  #334155;
  --muted:  #64748B;
  --muted2: #94A3B8;

  --border:    #E2E8F0;
  --border2:   #F1F5F9;
  --border-hi: #BFDBFE;

  --success:     #10B981;
  --success-dim: rgba(16,185,129,0.1);
  --warning:     #F59E0B;
  --error:       #EF4444;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 4px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.05);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.06);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.12);
  --shadow-blue: 0 4px 16px rgba(37,99,235,0.22);
  --shadow-blue-lg: 0 8px 32px rgba(37,99,235,0.30);

  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  --t: 0.2s ease;
  --t-slow: 0.3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--font); outline: none; border: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; color: var(--text); }
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
}
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 60%, #06B6D4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--t-slow);
}
.nav.transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #0EA5E9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(37,99,235,0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--muted); transition: var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--bg2); }
.nav-links a.active { color: var(--primary); background: var(--primary-dim); }
.nav-cta {
  padding: 10px 22px; border-radius: var(--r);
  background: var(--primary); color: white;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: var(--t);
}
.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}
.nav-ham { display: none; padding: 8px; color: var(--text); }
.mobile-menu {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 999;
  flex-direction: column; gap: 4px; padding: 20px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 18px; border-radius: var(--r);
  font-size: 16px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border2);
}
.mobile-menu a:hover { background: var(--bg2); color: var(--primary); }

/* ── Buttons ───────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r);
  background: var(--primary); color: white;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: var(--t);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r);
  background: transparent; color: var(--primary);
  border: 2px solid var(--border-hi);
  font-size: 15px; font-weight: 700;
  transition: var(--t);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r);
  background: var(--bg2); color: var(--text);
  font-size: 14px; font-weight: 600;
  transition: var(--t); cursor: pointer;
}
.btn-ghost:hover { background: var(--bg3); }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────── */
.input-group { margin-bottom: 16px; }
.input-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text3); margin-bottom: 6px;
}
.input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text); font-size: 15px;
  transition: var(--t);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.input::placeholder { color: var(--muted2); }
.select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg); color: var(--text);
  font-size: 15px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  transition: var(--t);
}
.select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }

/* Phone input row */
.phone-row {
  display: flex; border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  background: white; transition: var(--t);
}
.phone-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim), var(--shadow-blue);
}
.phone-pre {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px;
  color: var(--primary); font-weight: 700; font-size: 14px;
  border-right: 1.5px solid var(--border);
  white-space: nowrap; background: var(--bg2);
}
.phone-inp {
  flex: 1; padding: 16px; background: transparent;
  color: var(--text); font-size: 16px; font-weight: 500;
}
.phone-inp::placeholder { color: var(--muted2); }

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--t-slow);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hi);
}
.card-blue {
  background: var(--primary-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
}

/* ── Badges ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.badge-blue { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--border-hi); }
.badge-green { background: var(--success-dim); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-gray { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }

/* ── Section layout ────────────────────── */
.section { padding: 80px 5vw; }
.section-sm { padding: 48px 5vw; }
.container { max-width: 1240px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.75; }

/* ── Footer ────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.9);
  padding: 64px 5vw 32px;
}
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.75; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 10px; transition: var(--t); }
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1240px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-seo { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-seo p { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.8; max-width: 1240px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.footer-logo span { font-size: 18px; font-weight: 800; color: white; letter-spacing: -0.5px; }

/* ── PWA Install Banner ─────────────────── */
.pwa-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 2000; width: calc(100% - 32px); max-width: 500px;
  background: white; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-hi);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  animation: slide-up 0.4s ease;
}
.pwa-banner.hidden { display: none; }
@keyframes slide-up { from { transform: translateX(-50%) translateY(100px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.pwa-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.pwa-text { flex: 1; }
.pwa-text b { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.pwa-text span { font-size: 12px; color: var(--muted); }
.pwa-install {
  padding: 9px 18px; border-radius: var(--r);
  background: var(--primary); color: white;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.pwa-dismiss {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg2); color: var(--muted);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Animations ────────────────────────── */
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.animate-up { animation: fadeup 0.6s ease both; }
.animate-up-d1 { animation: fadeup 0.6s ease 0.1s both; }
.animate-up-d2 { animation: fadeup 0.6s ease 0.2s both; }
.animate-up-d3 { animation: fadeup 0.6s ease 0.3s both; }

/* ── Utilities ─────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.w-full { width: 100%; }

/* ── Divider ────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-blue { height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: flex; }
  .section { padding: 56px 5vw; }
  .section-header h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
