/* 4Ummah marketing site.
   Palette and type match the product, so the two feel like one thing. */

:root {
  --brand: #1387d4;
  --brand-deep: #0b6bae;
  --brand-soft: #eef7fc;
  --navy: #0b3b5c;
  --teal: #0dafa6;
  --sky: #56d5d8;
  --violet: #8b5cf6;
  --amber: #f59e42;
  --green: #22c55e;

  --ink: #16233a;
  --ink-soft: #5b6b7c;
  --canvas: #fafcfd;
  --line: #eaeef2;

  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 20px 40px -22px rgba(19, 58, 90, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px;
  background: #fff; padding: 0.75rem 1.25rem; border-radius: 10px; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* --- type helpers ---------------------------------------------------- */
.eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--brand-deep); margin-bottom: 0.9rem;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; margin-top: 1.4rem; }
.body-lg { font-size: 1.05rem; color: var(--ink-soft); margin-top: 1.1rem; }
.footnote { font-size: 0.92rem; color: var(--ink-soft); margin-top: 2.5rem; }

.rule { width: 46px; height: 4px; border-radius: 2px; background: var(--teal); margin: 1.25rem 0 0; }
.center-rule { margin-left: auto; margin-right: auto; }

/* --- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(19, 135, 212, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; margin-top: 2rem; }

/* --- header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--brand); color: #fff;
  font-size: 0.8rem; font-weight: 800; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 1.75rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--brand-deep); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* --- hero ------------------------------------------------------------ */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.5rem); color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-note { margin-top: 1.75rem; font-size: 0.87rem; font-weight: 600; color: var(--ink-soft); }

.hero-visual { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 430px; margin: 0 auto; }
.blob { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(150deg, #eaf6fb, #e4f1fb); }
.collage {
  position: absolute; inset: 20px; border-radius: 50%; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px;
}
.tile { display: block; background: linear-gradient(155deg, var(--c1), var(--c2)); }
.t1 { grid-column: 1 / 3; grid-row: 1 / 2; --c1: #0e6fb0; --c2: #1387d4; }
.t2 { grid-column: 3 / 4; grid-row: 1 / 3; --c1: #1387d4; --c2: #3fc0d6; }
.t3 { grid-column: 1 / 2; grid-row: 2 / 4; --c1: #0dafa6; --c2: #56d5d8; }
.t4 { grid-column: 2 / 3; grid-row: 2 / 3; --c1: #0b6bae; --c2: #1387d4; }
.t5 { grid-column: 2 / 4; grid-row: 3 / 4; --c1: #2fa9c7; --c2: #8fe3dd; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 280px; }
  .lede { max-width: none; }
}

/* --- sections -------------------------------------------------------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.3rem); color: var(--navy); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- pillar cards ---------------------------------------------------- */
.cards {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem; margin-top: 3rem;
}
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.35rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.card.muted { background: transparent; border-style: dashed; }
.card.muted:hover { transform: none; box-shadow: none; }

.ico { display: block; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1.1rem; }
.ico-teal   { background: #e3f8f6; box-shadow: inset 0 0 0 2px rgba(13,175,166,0.25); }
.ico-blue   { background: #e7f2fc; box-shadow: inset 0 0 0 2px rgba(19,135,212,0.25); }
.ico-violet { background: #f1ecfd; box-shadow: inset 0 0 0 2px rgba(139,92,246,0.22); }
.ico-amber  { background: #fef1e4; box-shadow: inset 0 0 0 2px rgba(245,158,66,0.24); }
.ico-green  { background: #e6f7ed; box-shadow: inset 0 0 0 2px rgba(34,197,94,0.22); }

.tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  padding: 0.2rem 0.6rem; border-radius: 99px;
  background: #f2f5f7; color: var(--ink-soft);
}
.tag-live { background: var(--brand-soft); color: var(--brand-deep); }

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

/* --- who ------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.who-list { display: grid; gap: 1.75rem; }
.who-list h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.who-list p { color: var(--ink-soft); font-size: 0.97rem; }
.who-list li { padding-left: 1.25rem; border-left: 3px solid var(--brand-soft); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* --- contact --------------------------------------------------------- */
.contact { background: linear-gradient(160deg, #f2f9fd, #eaf4fb); }

/* --- footer ---------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-note { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }

/* --- scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* No JavaScript, or reduced motion: everything is simply visible. A
   marketing page that renders blank without JS is worse than one with no
   animation at all. */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
