/* Muneem Ji landing page — Outpost-Relay-inspired
   Cream / wine / sage palette, Caveat handwritten headlines, Inter body. */

:root {
  --bg:        #fdfaf6;
  --bg-soft:   #f6f0e6;
  --bg-card:   #ffffff;
  --line:      #e8e1d6;
  --line-soft: #efe9dd;

  --text:        #1f1d1a;
  --text-muted:  #6b6862;
  --text-faint:  #9a948b;

  --wine:       #5b2a3e;
  --wine-dark:  #401d2c;
  --wine-soft:  #efe1e7;

  --sage:       #6f9384;
  --sage-dark:  #4f7264;

  --yellow:     #f5d76e;
  --yellow-soft:#fbecae;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(31, 29, 26, 0.04);
  --shadow:    0 6px 20px -8px rgba(31, 29, 26, 0.10);

  --font-body:  'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand:  'Caveat', "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-dark); }

code, pre {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--wine); }
.topbar-cta {
  display: flex;
  gap: 14px;
  align-items: center;
}
.link-muted {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.link-muted:hover { color: var(--wine); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn-lg { font-size: 16px; padding: 14px 22px; border-radius: 12px; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--wine-dark); color: #fff; }
.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--wine); color: var(--wine); }
.code-glyph {
  font-family: ui-monospace, monospace;
  color: var(--wine);
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 72px 0 88px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
}
.pill-dot { color: var(--wine); }

.hero-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.05;
  margin: 28px 0 8px;
  color: var(--text);
}
.highlight {
  background: linear-gradient(0deg, var(--yellow-soft) 60%, transparent 60%);
  padding: 0 14px;
  border-radius: 4px;
}

.hero-sub {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--sage-dark);
  margin: 18px 0 36px;
}
.script-link {
  color: var(--sage-dark);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 1px;
}
.script-link:hover { color: var(--wine); border-bottom-color: var(--wine); }

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-fineprint {
  font-family: var(--font-hand);
  color: var(--text-faint);
  font-size: 18px;
  margin-top: 22px;
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 36px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 54px);
  color: var(--wine);
  line-height: 1;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 14px;
  color: var(--text);
}
.script-accent {
  color: var(--sage-dark);
  position: relative;
  display: inline-block;
}
.script-accent::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 6px;
  background: var(--yellow-soft);
  border-radius: 4px;
  z-index: -1;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 12px auto 48px;
  font-size: 16px;
}

/* ---------- Lifecycle strip ---------- */
.lifecycle {
  padding: 90px 0 70px;
  background: var(--bg);
}
.lifecycle-strip {
  display: grid;
  grid-template-columns: 1fr 50px 1fr 50px 1fr 50px 1fr 50px 1fr;
  align-items: start;
  gap: 12px;
  max-width: 1040px;
  margin: 16px auto 0;
}
.lc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.lc-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8cdb8;
}
.lc-step-auto {
  background: linear-gradient(180deg, #f3efe5 0%, var(--bg-card) 100%);
}
.lc-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wine-soft);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.lc-circle svg {
  width: 26px;
  height: 26px;
}
.lc-num {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 18px;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.lc-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}
.lc-body {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.lc-body code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--wine);
}
.lc-tag {
  margin-top: 10px;
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--sage-dark);
  border-bottom: 2px solid var(--yellow-soft);
  padding-bottom: 1px;
}
.lc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 130px;
}
.lc-arrow svg {
  width: 50px;
  height: 24px;
}

@media (max-width: 980px) {
  .lifecycle-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
  }
  .lc-arrow {
    min-height: 0;
    transform: rotate(90deg);
    height: 28px;
    margin: -4px 0;
  }
}

/* ---------- Features ---------- */
.features {
  padding: 90px 0;
  background: var(--bg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d8cdb8;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--wine-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--text);
}
.feature-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Shop types ---------- */
.shop-types {
  padding: 90px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shop-card:hover {
  border-color: var(--wine);
  transform: translateY(-2px);
}
.shop-emoji { font-size: 30px; line-height: 1; }
.shop-label {
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.shop-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Quickstart ---------- */
.quickstart {
  padding: 90px 0;
  background: var(--bg);
}
.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.qs-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.qs-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wine);
  background: var(--wine-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.qs-tag-alt {
  color: var(--sage-dark);
  background: #e3eee9;
}
.qs-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 32px;
  margin: 14px 0 16px;
  color: var(--text);
}
.qs-code {
  background: #1f1d1a;
  color: #f5d76e;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0 0 16px;
}
.qs-code code { color: inherit; }
.qs-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.qs-note code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--wine);
}
.qs-deeper {
  text-align: center;
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- "We're not" ---------- */
.not-cta {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 90px 0;
}
.not-list {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 720px;
  display: grid;
  gap: 14px;
}
.not-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.not-list strong { color: var(--text); }
.not-foot {
  text-align: center;
  color: var(--text-muted);
  margin: 32px auto 0;
  max-width: 640px;
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  text-align: center;
}
.final-cta-title {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 50px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 22px;
}
.footer-tag {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--wine); }
.footer-meta {
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  gap: 8px;
}
.footer-credit {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-muted);
}
.footer-credit a {
  color: var(--wine);
  border-bottom: 2px solid var(--yellow-soft);
  padding-bottom: 1px;
}
.footer-credit a:hover {
  color: var(--wine-dark);
  border-bottom-color: var(--yellow);
}
.footer-credit-dot {
  margin: 0 8px;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .topbar-cta .link-muted { display: none; }
  .hero { padding: 56px 0 64px; }
  .features, .shop-types, .quickstart, .not-cta, .final-cta { padding: 64px 0; }
}
