@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/Almarai-Light-arabic.woff2") format("woff2");
}

@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/Almarai-Regular-arabic.woff2") format("woff2");
}

@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/Almarai-Bold-arabic.woff2") format("woff2");
}

@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/Almarai-ExtraBold-ext.woff2") format("woff2");
}

:root {
  --brand-50: #fdf2f8;
  --brand-100: #fce7f3;
  --brand-600: #c9185b;
  --brand-700: #a8124a;
  --brand-800: #8b0e3d;
  --brand-900: #6d1b4e;
  --brand-950: #450b30;
  --gold-50: #fffdf0;
  --gold-100: #fffac2;
  --gold-400: #d4b870;
  --gold-500: #c9a255;
  --gold-600: #b89055;
  --gold-700: #a07840;
  --surface-50: #fafafa;
  --surface-100: #f5f5f5;
  --surface-200: #e8e8e8;
  --white: #ffffff;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 8px 30px rgba(109, 27, 78, 0.15);
  --shadow-brand-hover: 0 12px 40px rgba(109, 27, 78, 0.25);
  --shadow-gold: 0 8px 30px rgba(201, 162, 85, 0.15);
  --radius-sm: 0.85rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --radius-3xl: 3rem;
  --container: 1180px;
  --landing-header-height: 88px;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  --surface-50: #0f0a12;
  --surface-100: #1a1020;
  --surface-200: #231528;
  --white: #1a1020;
  --ink-900: #f9fafb;
  --ink-800: #f3f4f6;
  --ink-600: #d1d5db;
  --ink-500: #9ca3af;
  --ink-400: #6b7280;
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.26);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.34);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(109, 27, 78, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(201, 162, 85, 0.08) 0%, transparent 60%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--landing-header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--surface-50);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(109, 27, 78, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(201, 162, 85, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--ink-900);
  font-family: "Almarai", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

strong,
h1,
h2,
h3,
h4,
summary,
.brand strong,
.desktop-nav,
.btn,
.trust-grid span,
.type-grid span,
.metrics-grid strong,
.metrics-grid span,
.store-button strong {
  font-weight: 800;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  background: transparent;
  backdrop-filter: none;
  transition: box-shadow 180ms ease, padding 180ms ease;
}

body.dark-mode .site-header {
  background: transparent;
}

.site-header.is-scrolled {
  padding-block: 10px;
  box-shadow: none;
}

body.dark-mode .site-header.is-scrolled {
  box-shadow: none;
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-card);
}

body.dark-mode .header-inner {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(26, 16, 32, 0.78);
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 8px 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.desktop-nav a:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 800;
  transition: transform 220ms var(--ease-out-quint), box-shadow 220ms var(--ease-out-quint), background 220ms var(--ease-out-quint);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active,
.icon-action:active,
.store-button:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  box-shadow: var(--shadow-brand-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-900);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--brand-50);
}

.btn-header-download {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.btn-header-download:hover {
  box-shadow: var(--shadow-brand-hover);
}

.icon-action {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--gold-500);
  color: var(--white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 220ms var(--ease-out-quint), background 220ms var(--ease-out-quint), color 220ms var(--ease-out-quint), box-shadow 220ms var(--ease-out-quint);
}

.icon-action:hover {
  transform: translateY(-2px);
  background: var(--gold-400);
  box-shadow: var(--shadow-card-hover);
}

.gold-icon {
  color: var(--white);
}

.icon-action svg {
  width: 20px;
  height: 20px;
}

.menu-button {
  width: 48px;
  height: 40px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--brand-900);
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

.mobile-tools {
  display: none;
}

.hero {
  position: relative;
  height: calc(100svh - var(--landing-header-height));
  min-height: 0;
  padding: 20px;
  background: var(--surface-50);
}

.hero-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-900) 58%, #1a1020 100%);
  padding: clamp(72px, 10vh, 120px) 64px clamp(56px, 8vh, 96px);
  color: var(--white);
  box-shadow: var(--shadow-brand);
  animation: heroCardIn 900ms var(--ease-out-expo) both;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.15;
  animation: dotsDrift 16s linear infinite;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
}

.hero-glow {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  filter: blur(110px);
}

.hero-glow-one {
  width: 600px;
  height: 600px;
  left: -160px;
  top: -160px;
  animation: ambientOne 18s ease-in-out infinite;
}

.hero-glow-two {
  width: 500px;
  height: 500px;
  right: -140px;
  bottom: -130px;
  animation: ambientTwo 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-wordmark {
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 2vh, 28px);
  animation: wordReveal 1250ms var(--ease-out-expo) 120ms both;
}

.hero-main-word,
.hero-sub-word {
  display: block;
  font-family: "Almarai", system-ui, sans-serif;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-main-word {
  color: var(--white);
  font-size: clamp(96px, 15.8vw, 218px);
}

.hero-sub-word {
  margin-top: 0;
  color: var(--white);
  font-size: clamp(96px, 15.8vw, 218px);
}

.hero-divider {
  height: 1px;
  width: 100%;
  margin-top: 32px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05), transparent);
  transform-origin: left;
  animation: dividerIn 820ms var(--ease-out-quint) 520ms both;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  animation: fadeSlideUp 760ms var(--ease-out-quint) 620ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--brand-900);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: fadeSlideUp 760ms var(--ease-out-quint) 700ms both;
}

.trust-band {
  min-height: 120px;
  padding-block: 0 38px;
  background: transparent;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
}

.trust-grid div {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--brand-900);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 240ms var(--ease-out-quint), box-shadow 240ms var(--ease-out-quint);
}

.trust-grid div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.trust-grid svg {
  width: 42px;
  height: 34px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--gold-50);
  color: var(--gold-700);
}

.split-grid,
.privacy-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.28;
  font-weight: 700;
}

.section-copy {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-600);
  font-size: 15px;
  font-weight: 400;
}

.intro-section .section-copy {
  margin-top: 42px;
}

.rulings-grid {
  align-items: start;
}

.rulings-copy {
  margin-top: 42px;
  color: var(--ink-500);
  font-weight: 400;
  line-height: 1.85;
}

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

.bento-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "nisab nisab nisab calc calc calc"
    "nisab nisab nisab privacy fitr fitr"
    "ruling ruling ruling ruling history history";
  grid-auto-rows: minmax(184px, auto);
  align-items: stretch;
}

.feature-card {
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: transform 260ms var(--ease-out-quint), box-shadow 260ms var(--ease-out-quint);
}

.bento-grid .feature-card {
  min-height: auto;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.bento-large {
  grid-area: nisab;
  padding: 32px;
  background: var(--white);
}

.bento-tall {
  grid-area: calc;
}

.bento-grid .feature-card:nth-child(3) {
  grid-area: privacy;
}

.bento-wide {
  grid-area: ruling;
  min-height: 190px;
  background: var(--white);
}

.bento-grid .feature-card:nth-child(5) {
  grid-area: fitr;
}

.bento-quiet {
  grid-area: history;
}

.bento-large .icon-box {
  width: 68px;
  height: 54px;
}

.bento-large h3 {
  max-width: 13ch;
  color: var(--ink-900);
  font-size: clamp(24px, 2vw, 32px);
}

.bento-large p,
.bento-wide p {
  max-width: 54ch;
  font-size: 14px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.icon-box {
  width: 56px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-100);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.icon-box.gold {
  background: var(--gold-50);
  color: var(--gold-700);
}

.icon-box.brand-color {
  background: var(--brand-50);
  color: var(--brand-800);
}

.icon-box.brand-soft {
  background: var(--brand-50);
  color: var(--brand-900);
}

.icon-box.gold-soft {
  background: var(--gold-50);
  color: var(--gold-700);
}

.icon-box.slate {
  background: var(--surface-100);
  color: var(--ink-500);
}

.bento-grid .icon-box,
.bento-grid .icon-box.gold,
.bento-grid .icon-box.brand-color,
.bento-grid .icon-box.brand-soft,
.bento-grid .icon-box.gold-soft,
.bento-grid .icon-box.slate {
  background: var(--surface-100);
  color: var(--ink-500);
}

.feature-card h3,
.type-grid h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.feature-card p,
.type-grid p {
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.types-section {
  background: transparent;
}

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

.type-grid article {
  min-height: 235px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out-quint), box-shadow 260ms var(--ease-out-quint);
}

.type-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.type-grid span {
  width: 48px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12px;
  font-weight: 800;
}

.nisab-section {
  padding-bottom: 16px;
}

.nisab-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-3xl);
  background:
    radial-gradient(circle at 15% 15%, rgba(201, 162, 85, 0.18), transparent 34%),
    linear-gradient(135deg, var(--brand-900), var(--brand-950));
  box-shadow: var(--shadow-brand);
  color: var(--white);
}

.nisab-panel .section-title,
.nisab-panel .section-copy {
  color: var(--white);
}

.nisab-panel .section-copy {
  max-width: 520px;
  opacity: 0.76;
}

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

.metrics-grid div {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 240ms var(--ease-out-quint), background 240ms var(--ease-out-quint);
}

.metrics-grid div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.metrics-grid strong {
  color: var(--white);
  font-size: 38px;
  line-height: 1;
}

.metrics-grid span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.privacy-section {
  background: transparent;
  padding-top: 4px;
}

.privacy-grid {
  position: relative;
  grid-template-columns: 1fr;
  gap: 32px;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius-3xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.privacy-grid::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  inset-inline-start: -100px;
  top: -120px;
  border-radius: 999px;
  background: rgba(201, 162, 85, 0.12);
  filter: blur(50px);
  pointer-events: none;
}

.privacy-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 760px;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.privacy-list article {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-light);
  transition: transform 240ms var(--ease-out-quint), background 240ms var(--ease-out-quint), box-shadow 240ms var(--ease-out-quint);
}

.privacy-list article:hover {
  transform: translateY(-3px);
  background: rgba(17, 24, 39, 0.025);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.09), var(--shadow-card);
}

.privacy-list svg {
  width: 34px;
  height: 28px;
  padding: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--surface-100);
  color: var(--gold-700);
}

.privacy-list h3 {
  margin: 0;
  color: var(--brand-900);
  font-size: 14px;
  line-height: 1.4;
}

.privacy-list p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 240ms var(--ease-out-quint), box-shadow 240ms var(--ease-out-quint);
}

details:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

summary {
  position: relative;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  color: var(--ink-900);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before,
summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-900);
  transform: translateY(-50%);
}

summary::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 160ms ease;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

details p {
  margin: 0;
  padding: 0 56px 20px 22px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.download-section {
  padding-bottom: 48px;
}

.download-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--brand-900), var(--brand-950));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

.download-panel .section-title,
.download-panel .section-copy {
  color: var(--white);
}

.download-panel .section-copy {
  opacity: 0.72;
}

.download-icon {
  width: 82px;
  height: 74px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: brightness(0) invert(1);
}

.download-actions {
  display: flex;
  gap: 12px;
}

.store-button {
  min-width: 154px;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  transition: transform 220ms var(--ease-out-quint), background 220ms var(--ease-out-quint);
}

.store-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.store-button.light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.store-button span,
.store-button strong {
  display: block;
  grid-column: 2;
}

.store-button .store-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  opacity: 1;
}

.store-button .store-icon svg {
  width: 18px;
  height: 18px;
}

.store-button .apple-logo {
  fill: #111827;
}

.store-button span {
  font-size: 10px;
  opacity: 0.72;
}

.store-button strong {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.2;
}

.ghaith-apps-section {
  padding-top: 24px;
}

.apps-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.app-link-card {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out-quint), box-shadow 260ms var(--ease-out-quint), background 260ms var(--ease-out-quint);
}

.app-link-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-card-hover);
}

.app-index {
  width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-100);
  color: var(--brand-900);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.app-link-card div {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

.app-link-card h3 {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.35;
}

.app-link-card p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
  overflow-wrap: anywhere;
}

.app-link-card > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--gold-700);
  transition: transform 260ms var(--ease-out-quint);
}

.app-link-card:hover > svg {
  transform: translate(-3px, 3px);
}

.site-footer {
  padding-block: 28px;
}

.footer-inner {
  display: grid;
  gap: 0;
  padding: 0 28px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 700;
}

.footer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 58px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-brand strong {
  display: block;
  color: var(--brand-900);
  font-size: 18px;
}

.footer-brand p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.7;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.footer-top-link span {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--brand-900);
  font-size: 18px;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 1fr;
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 800;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--ink-500);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 800;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.footer-social a {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  color: var(--gold-600);
  transition: transform 200ms var(--ease-out-quint), background 200ms var(--ease-out-quint), color 200ms var(--ease-out-quint);
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--brand-50);
  color: var(--brand-900);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-shortcuts a {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-100);
  color: var(--ink-500);
  transition: color 200ms var(--ease-out-quint), background 200ms var(--ease-out-quint), transform 200ms var(--ease-out-quint);
}

.footer-shortcuts a:hover {
  transform: translateY(-2px);
  background: var(--brand-50);
  color: var(--brand-900);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  color: var(--ink-400);
}

.footer-inner a:hover {
  color: var(--brand-900);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 560ms var(--ease-out-quint), transform 560ms var(--ease-out-quint);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes softFloatSmall {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes dotsDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 28px;
  }
}

@keyframes ambientOne {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate(70px, 34px);
    opacity: 0.7;
  }
}

@keyframes ambientTwo {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.25;
  }
  50% {
    transform: translate(-58px, -38px);
    opacity: 0.55;
  }
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(14px);
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dividerIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 1024px) {
  .nisab-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: clamp(64px, 9vh, 104px) 40px clamp(48px, 7vh, 78px);
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "nisab nisab"
      "calc privacy"
      "ruling ruling"
      "fitr history";
    grid-auto-rows: auto;
  }

  .bento-grid .feature-card {
    min-height: 218px;
  }

  .bento-large {
    min-height: 280px;
  }

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

  .split-grid,
  .privacy-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro-section .section-copy {
    margin-top: 0;
  }

  .rulings-copy {
    margin-top: 0;
  }

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

  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-actions {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  :root {
    --landing-header-height: 70px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding-block: 40px;
  }

  .site-header {
    padding-block: 8px;
  }

  .header-inner {
    min-height: 52px;
    border-radius: var(--radius-xl);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .desktop-nav,
  .header-actions > .btn-header-download {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 38px;
    background: var(--brand-900);
    color: var(--white);
    border-radius: var(--radius-lg);
  }

  .menu-button span {
    width: 17px;
    height: 2px;
    margin: 0;
  }

  .menu-button span:first-child {
    transform: translateY(4px);
  }

  .menu-button span:nth-child(2) {
    width: 11px;
    transform: translateY(0);
  }

  .menu-button span:nth-child(3) {
    display: none;
  }

  .header-actions > .icon-action[data-theme-toggle] svg {
    display: none;
  }

  .header-actions > .icon-action[data-theme-toggle]::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--white);
    transform: translate(-50%, -50%);
  }

  .header-actions > .icon-action[data-theme-toggle]::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--gold-500);
    transform: translate(-82%, -58%);
  }

  .mobile-nav {
    position: fixed;
    inset: 74px 14px auto auto;
    width: min(232px, calc(100% - 28px));
    z-index: 60;
    display: grid;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 9px 11px;
    border-radius: var(--radius-md);
    color: var(--ink-800);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-nav a:hover {
    background: var(--brand-50);
    color: var(--brand-900);
  }

  .mobile-tools {
    display: none;
  }

  .mobile-tools .icon-action {
    flex: 1;
    width: auto;
  }

  .icon-action {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
  }

  .icon-action svg {
    width: 18px;
    height: 18px;
  }

  .hero {
    height: clamp(390px, 52svh, 500px);
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .hero-panel {
    height: 100%;
    min-height: 0;
    padding: clamp(30px, 5vh, 48px) 18px clamp(20px, 4vh, 30px);
    border-radius: var(--radius-2xl);
  }

  .hero-wordmark {
    gap: clamp(8px, 1.5vh, 18px);
  }

  .hero-main-word {
    font-size: clamp(34px, 11.5vw, 68px);
  }

  .hero-sub-word {
    font-size: clamp(34px, 11.5vw, 68px);
  }

  .hero-divider {
    margin-top: 18px;
  }

  .hero-text,
  .section-copy {
    font-size: 11.3px;
  }

  .hero-bottom {
    gap: 14px;
    margin-top: 16px;
  }

  .hero-text {
    line-height: 1.75;
  }

  .btn {
    min-height: 41px;
    padding-inline: 15px;
    font-size: 12.6px;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .hero-actions,
  .hero-actions-wrap {
    width: 100%;
  }

  .trust-band {
    display: none;
    min-height: 0;
    padding: 0;
  }

  .section-title {
    font-size: clamp(19.5px, 5.95vw, 29px);
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 10.8px;
  }

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

  .features-grid,
  .bento-grid,
  .type-grid,
  .privacy-list,
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bento-grid {
    grid-template-areas:
      "nisab calc"
      "privacy fitr"
      "history ruling";
    grid-auto-rows: auto;
  }

  .feature-card,
  .type-grid article,
  .bento-grid .feature-card,
  .bento-large {
    min-height: auto;
  }

  .bento-large {
    padding: 18px;
  }

  .bento-large h3 {
    max-width: none;
    font-size: 16px;
  }

  .feature-card {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .feature-card h3,
  .type-grid h3 {
    font-size: 16px;
  }

  .feature-card p,
  .type-grid p {
    font-size: 11.7px;
    line-height: 1.7;
  }

  .bento-grid .icon-box {
    width: 42px;
    height: 38px;
  }

  .nisab-panel,
  .privacy-grid,
  .download-panel {
    padding: 22px;
    border-radius: var(--radius-2xl);
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metrics-grid div {
    min-height: 84px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
  }

  .metrics-grid strong {
    font-size: 26px;
  }

  .metrics-grid span {
    margin-top: 8px;
    font-size: 9.5px;
    line-height: 1.45;
  }

  .privacy-list article {
    min-height: 112px;
    padding: 13px;
    gap: 10px;
    border-radius: var(--radius-lg);
  }

  .privacy-list svg {
    width: 30px;
    height: 26px;
    padding: 6px;
  }

  .privacy-list h3 {
    font-size: 12.6px;
  }

  .privacy-list p {
    font-size: 10.8px;
    line-height: 1.65;
  }

  .app-link-card {
    min-height: 132px;
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .app-index {
    width: 38px;
    height: 28px;
    font-size: 10.8px;
  }

  .app-link-card h3 {
    font-size: 14.4px;
  }

  .app-link-card p {
    font-size: 10px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-icon {
    margin-inline: auto;
  }

  .download-actions {
    flex-direction: row;
    gap: 8px;
  }

  .download-actions .store-button {
    min-width: 0;
    flex: 1 1 0;
    padding: 9px 10px;
    column-gap: 8px;
  }

  .download-actions .store-button .store-icon {
    width: 30px;
    height: 30px;
  }

  .download-actions .store-button .store-icon svg {
    width: 16px;
    height: 16px;
  }

  .download-actions .store-button span {
    font-size: 9px;
  }

  .download-actions .store-button strong {
    font-size: 12px;
  }

  .footer-inner {
    padding-inline: 22px;
  }

  .footer-topline,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: row;
    gap: 6px 8px;
  }

  .footer-bottom span:first-child {
    order: 2;
  }

  .footer-bottom span:nth-child(2) {
    order: 3;
    flex-basis: 100%;
  }

  .footer-bottom span:nth-child(3) {
    order: 1;
  }

  .footer-bottom span:first-child,
  .footer-bottom span:nth-child(3) {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
