/* ilmu.io landing — brand tokens mirrored from the Maktabah app
   (espresso #281a13 ground, gold #c9a86a accent, Inter type). Kept as plain
   CSS variables so this umbrella page carries no build step or shared deps. */
:root {
  --espresso-1: #34241a;
  --espresso-2: #281a13;
  --espresso-3: #190f09;
  --gold: #c9a86a;
  --gold-soft: #dcc18b;
  --cream: #efe9dc;
  --cream-dim: #cdbfa6;
  --cream-muted: #9c8f78;

  --card-bg: rgba(255, 255, 255, 0.04);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --card-border: rgba(201, 168, 106, 0.22);
  --card-border-hover: rgba(201, 168, 106, 0.5);

  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 960px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cream);
  background-color: var(--espresso-2);
  /* Warm gold glow up top, settling into deep espresso — premium book-cover
     ground that echoes the favicon's diagonal espresso gradient. */
  background-image: radial-gradient(
      120% 80% at 50% -10%,
      rgba(201, 168, 106, 0.16) 0%,
      rgba(201, 168, 106, 0) 55%
    ),
    linear-gradient(160deg, var(--espresso-1) 0%, var(--espresso-2) 45%, var(--espresso-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---- Layout shell ---------------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.wordmark__mark {
  width: 30px;
  height: 30px;
  display: block;
}
.wordmark__tld {
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav__link {
  color: var(--cream-dim);
  transition: color 0.18s ease;
}
.site-nav__link:hover {
  color: var(--cream);
}

/* ---- Main / hero ----------------------------------------------------- */
.main {
  flex: 1;
}

.hero {
  padding: clamp(3rem, 11vh, 7rem) 0 clamp(2.5rem, 7vh, 4.5rem);
  max-width: 40rem;
}
.hero__eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero__lede {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--cream-dim);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary {
  background: var(--gold);
  color: var(--espresso-3);
  box-shadow: 0 8px 24px -10px rgba(201, 168, 106, 0.7);
}
.btn--primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--card-border);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg);
}
.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Products -------------------------------------------------------- */
.products {
  padding: 1rem 0 3rem;
}
.products__head {
  border-top: 1px solid var(--card-border);
  padding-top: 1.75rem;
  margin-bottom: 1.5rem;
}
.products__heading {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.products__sub {
  margin: 0.4rem 0 0;
  color: var(--cream-muted);
  font-size: 0.98rem;
}

/* auto-fit grid: drop in another <li class="product-card"> and it flows. */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}
.product-card--featured:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}
.product-card--soon {
  opacity: 0.78;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.product-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 106, 0.12);
  border: 1px solid var(--card-border);
}
.product-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.status--live {
  color: #8fe3b0;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.status--soon {
  color: var(--gold);
  background: rgba(201, 168, 106, 0.1);
  border: 1px solid var(--card-border);
}

.product-card__name {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-card__desc {
  margin: 0 0 1.4rem;
  color: var(--cream-dim);
  font-size: 0.97rem;
  flex: 1;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-weight: 600;
  color: var(--gold);
  transition: gap 0.16s ease, color 0.16s ease;
}
.product-card--featured .product-card__cta:hover {
  color: var(--gold-soft);
  gap: 0.7rem;
}
.product-card__cta--muted {
  color: var(--cream-muted);
  cursor: default;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  font-size: 0.88rem;
  color: var(--cream-muted);
}
.site-footer__brand {
  font-weight: 600;
  color: var(--cream-dim);
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 540px) {
  .site-nav {
    display: none;
  }
  .hero {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
