/* ================================================================
   ZakatEasy — Shared Styles
   ================================================================ */

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

/* ── Reset ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ── Base ── */

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #f8fafb;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: #334155;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  transition: box-shadow 0.3s;
}

.nav--sticky {
  position: sticky;
  box-shadow: 0 2px 24px rgba(15, 118, 110, 0.06);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(15, 118, 110, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f766e;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #0f766e;
  text-decoration: none;
}

.nav-back {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-back:hover {
  color: #0f766e;
  text-decoration: none;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow:
    0 4px 16px rgba(15, 118, 110, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: #0d6d66;
  transform: translateY(-2px);
  box-shadow:
    0 6px 24px rgba(15, 118, 110, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border: 1.5px solid rgba(15, 118, 110, 0.15);
}

.btn-secondary:hover {
  background: rgba(15, 118, 110, 0.14);
  transform: translateY(-2px);
}

.btn-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.btn-white {
  background: #ffffff;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

.btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Badge ── */

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.1rem;
}

.badge--teal {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.badge--light {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ── Section Header ── */

.section-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f766e;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: #64748b;
}

/* ── Footer ── */

.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #f8fafb;
  border-top: 1px solid #e2e8f0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #0f766e;
  text-decoration: none;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* ── Animations ── */

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card (shared content container) ── */

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.04),
    0 4px 24px rgba(15, 118, 110, 0.04);
  border: 1px solid #e2e8f0;
}

/* ── Copyright line ── */

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
}

/* ================================================================
   Hero (index only)
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  background: linear-gradient(170deg, #f0fdfa 0%, #f8fafb 40%, #ecfdf5 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(15, 118, 110, 0.08) 0%,
    transparent 70%
  );
}

.hero::after {
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow:
    0 8px 32px rgba(15, 118, 110, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  animation: float 4s ease-in-out infinite;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: #475569;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-tagline strong {
  color: #0f766e;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Features
   ================================================================ */

.features {
  padding: 5rem 1.5rem;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ================================================================
   How It Works
   ================================================================ */

.how-it-works {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #f8fafb 0%, #f0fdfa 100%);
}

.steps {
  display: flex;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.875rem;
  color: #64748b;
}

/* ================================================================
   CTA
   ================================================================ */

.cta {
  padding: 5rem 1.5rem;
  background: #ffffff;
  text-align: center;
}

.cta-card {
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  box-shadow:
    0 12px 48px rgba(15, 118, 110, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.cta-card h2 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Content Page (privacy, terms, etc.)
   ================================================================ */

.page-content {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.page-content h1 {
  color: #0f766e;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.page-content h2 {
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.intro {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 640px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
    border-radius: 18px;
  }

  .cta-card h2 {
    font-size: 1.4rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .page-content {
    margin: 1.5rem auto;
    padding: 0 0.75rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }

  .page-content h1 {
    font-size: 1.4rem;
  }
}
