:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #f0f5f1;
  --text: #0f1e27;
  --muted: #3b4d58;
  --line: #d7e0da;
  --brand: #0b4f52;
  --brand-2: #176b61;
  --gold: #b08b3b;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(9, 42, 45, 0.12);
}

@font-face {
  font-family: "AmiriWeb";
  src: url("assets/fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AmiriWeb";
  src: url("assets/fonts/Amiri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: radial-gradient(circle at 20% 0%, #edf4ef 0%, var(--bg) 44%, #f7f8f7 100%);
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 0% 0%, rgba(23, 107, 97, 0.14), transparent 55%),
    radial-gradient(700px 450px at 100% 6%, rgba(176, 139, 59, 0.13), transparent 50%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(248, 251, 249, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(151, 168, 159, 0.34);
}

.brand img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a,
.footer-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a.active,
.footer-links a:hover {
  color: var(--brand-2);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
}

.section {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 68px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
  padding-top: 72px;
}

.label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
}

h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-solid {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(18, 89, 81, 0.24);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn-solid-alt {
  background: linear-gradient(140deg, #1d3f52 0%, #235a66 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(26, 67, 79, 0.22);
}

.metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metrics article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.metrics strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand);
}

.metrics span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

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

.phone-grid img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(17, 41, 55, 0.12);
  box-shadow: var(--shadow);
  background: #f4f7f6;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.showcase-grid img {
  width: 100%;
  max-width: 240px;
  justify-self: center;
  border-radius: 24px;
  border: 1px solid rgba(17, 41, 55, 0.12);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 22px;
}

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

.feature-card,
.timeline article,
.split-panel,
.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 244, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(18, 51, 52, 0.08);
}

.feature-card {
  padding: 22px;
}

.feature-card ul,
.split-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-card li,
.split-panel li {
  margin-bottom: 8px;
}

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

.timeline article {
  padding: 20px;
}

.timeline span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #eef4e3;
  border: 1px solid #dce8ca;
  color: #496534;
  font-weight: 800;
  margin-bottom: 10px;
}

.timeline p,
.split-main p,
.download p,
.footer p {
  color: var(--muted);
}

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

.trust-card {
  padding: 20px;
}

.trust-card p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.split-main {
  padding-right: 14px;
}

.split-panel {
  padding: 22px;
}

.qibla-panel {
  display: grid;
  place-items: center;
}

.qibla-panel img {
  width: min(300px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(17, 41, 55, 0.12);
  box-shadow: var(--shadow);
}

.arabic {
  font-family: "AmiriWeb", "Noto Naskh Arabic", serif;
  font-size: 2rem;
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand);
  margin: 14px 0 0;
  text-align: right;
  unicode-bidi: isolate;
}

.download {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 240, 0.9));
  box-shadow: var(--shadow);
}

.footer {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 38px 0 56px;
  border-top: 1px solid rgba(143, 165, 151, 0.3);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.footer img {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-convert {
  border-top: 1px solid rgba(124, 150, 134, 0.35);
}

.footer-top {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
  text-align: left;
}

.footer-brand,
.footer-signup {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 247, 244, 0.9));
  padding: 20px;
}

.footer-brand img {
  height: 40px;
}

.footer-brand p,
.footer-signup p {
  margin: 10px 0 0;
}

.footer-store {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.footer-signup h3 {
  margin-bottom: 6px;
}

.launch-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.launch-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.launch-form button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  cursor: pointer;
}

.footer-signup small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.footer-convert-links {
  margin-top: 14px;
  justify-content: center;
}

.footer-note {
  margin-top: 2px;
}

.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;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .split-main {
    padding-right: 0;
  }
}

@media (max-width: 800px) {
  .menu-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 62px;
    background: #f7faf8;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 42px;
  }

  .feature-grid,
  .timeline,
  .metrics,
  .phone-grid,
  .showcase-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .launch-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }
}
