/* ========================================
   KANZ LANDING PAGE — LIGHT MODE
   Fintech-grade, not AI slop.
   ======================================== */

:root {
  --gold: #C9A84C;
  --gold-light: #d4b85e;
  --gold-dark: #a68a35;
  --gold-bg: rgba(201, 168, 76, 0.06);
  --gold-border: rgba(201, 168, 76, 0.18);
  --black: #1a1a1a;
  --heading: #111111;
  --body: #555555;
  --muted: #888888;
  --subtle: #aaaaaa;
  --border: #e8e8e8;
  --card: #ffffff;
  --surface: #f7f7f5;
  --bg: #fefefe;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── RESET ── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── UTILITIES ── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold-text {
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  background: var(--gold-bg);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--gold-border);
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--muted);
  color: var(--heading);
  transform: translateY(-1px);
}

.btn-support {
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  font-size: 14px;
  padding: 8px 18px;
}

.btn-support:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
}

/* ── NAV ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(254, 254, 254, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--heading);
}

.nav-links .btn-sm.btn-primary {
  color: var(--white);
  background: var(--gold);
}

.nav-links .btn-sm.btn-primary:hover {
  background: var(--gold-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(254, 254, 254, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ── HERO ── */

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--subtle);
}

.hero-phone {
  display: flex;
  justify-content: center;
}

/* ── PHONE FRAME ── */

.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 25px 80px rgba(0,0,0,0.08);
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* ── TRUST BAR ── */

.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 13px;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── FEATURES ── */

.features {
  padding: 120px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border-radius: var(--radius);
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── SCREENSHOTS ── */

.screenshots {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshot-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -24px;
  padding: 0 24px;
}

.screenshot-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-track {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding-bottom: 16px;
}

.screenshot-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-item .phone-frame {
  width: 200px;
  border-radius: 28px;
  transition: transform 0.3s ease;
}

.screenshot-item:hover .phone-frame {
  transform: translateY(-8px);
}

.screenshot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── ZAKAT ── */

.zakat-section {
  padding: 120px 0;
}

.zakat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zakat-text h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.zakat-text > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 32px;
}

.zakat-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.zakat-rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.zakat-rule-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zakat-rule-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-dark);
}

.zakat-phone {
  display: flex;
  justify-content: center;
}

/* ── HOW IT WORKS ── */

.how-it-works {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
  color: var(--border);
}

/* ── TECH STRIP ── */

.tech-strip {
  padding: 100px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-item {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: border-color 0.2s;
}

.tech-item:hover {
  border-color: var(--gold-border);
}

.tech-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.tech-item span {
  font-size: 12px;
  color: var(--subtle);
}

/* ── CTA ── */

.cta-section {
  padding: 80px 0 120px;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, rgba(201, 168, 76, 0.02) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-card p a {
  color: var(--gold-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.cta-card p a:hover {
  border-color: var(--gold);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
}

.footer-logo img {
  border-radius: 6px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--gold-dark);
  font-weight: 600;
}

.footer-copy {
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}

.uae-flag {
  font-weight: 600;
  color: var(--body);
}

/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
  }

  .hero-phone .phone-frame {
    width: 220px;
  }

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

  .screenshot-track {
    justify-content: flex-start;
  }

  .screenshot-item .phone-frame {
    width: 180px;
  }

  .zakat-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .zakat-phone {
    order: -1;
  }

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

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-card {
    padding: 48px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-items {
    gap: 24px;
  }

  .trust-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .zakat-rules {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* ──────────────────────────────────────
   LANGUAGE TOGGLE
   ────────────────────────────────────── */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--gold-border);
  color: var(--gold-dark);
  background: var(--gold-bg);
}

.lang-toggle-mobile {
  font-size: 16px;
  padding: 10px 24px;
}

/* ──────────────────────────────────────
   RTL / ARABIC
   ────────────────────────────────────── */

html[dir="rtl"] {
  --font: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Reem Kufi', 'Readex Pro', sans-serif;
}

html[dir="rtl"] body {
  font-family: var(--font);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .hero-badge,
html[dir="rtl"] .section-tag,
html[dir="rtl"] .nav-logo span,
html[dir="rtl"] .trust-number {
  font-family: var(--font-heading);
}

html[dir="rtl"] .step-arrow svg {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  html[dir="rtl"] .step-arrow svg {
    transform: scaleX(-1) rotate(90deg);
  }
}
