/*
 * Landing page.
 *
 * The same palette as the app and the admin panel — a visitor who installs
 * Botli should recognise the product they just read about, and three different
 * dark greys across three surfaces reads as three different companies.
 */
:root {
  --bg: #171717;
  --surface: #212121;
  --surface-high: #2b2b2b;
  --border: rgba(255, 255, 255, 0.09);
  --text: #ececec;
  --text-dim: #a8a8a8;
  --text-faint: #767676;
  --accent: #00a67e;
  --accent-text: #06180f;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Vazirmatn", "Noto Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Persian needs a touch more line height — the diacritics and descenders sit
   lower than Latin and run together at 1.65. */
html[dir="rtl"] body { line-height: 1.85; }

a { color: inherit; }

/* --------------------------------- nav --------------------------------- */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 24px;
  max-width: var(--max); margin: 0 auto;
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 17px; letter-spacing: -0.3px;
  text-decoration: none; color: var(--text);
}
.logo { color: var(--text); flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 12px; border-radius: 999px;
  text-decoration: none; color: var(--text-dim); font-size: 14.5px;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links .lang { color: var(--text-faint); }
.nav-links .cta {
  background: var(--text); color: var(--bg); font-weight: 600;
}
.nav-links .cta:hover { background: #fff; color: var(--bg); }

/* -------------------------------- hero --------------------------------- */

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.hero { padding: 74px 0 68px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12; letter-spacing: -1.4px;
  margin: 0 0 18px; font-weight: 680;
}
html[dir="rtl"] .hero h1 { letter-spacing: normal; line-height: 1.32; }

.lede {
  font-size: clamp(16.5px, 2.2vw, 20px);
  color: var(--text-dim); max-width: 620px;
  margin: 0 auto 30px;
}

.hero-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  text-decoration: none; font-size: 15.5px; font-weight: 550;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.btn:hover { background: var(--surface-high); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 640; }
.btn.primary:hover { background: #fff; }

/* ------------------------------ features ------------------------------- */

.features { padding: 46px 0 64px; }
.features h2, .closing h2, .roadmap h2 {
  font-size: clamp(23px, 3.4vw, 31px); letter-spacing: -0.7px;
  margin: 0 0 28px; text-align: center; font-weight: 650;
}
html[dir="rtl"] .features h2,
html[dir="rtl"] .closing h2,
html[dir="rtl"] .roadmap h2 { letter-spacing: normal; }

.grid {
  display: grid; gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.feature-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface-high); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature h3 { font-size: 16.5px; margin: 0 0 6px; font-weight: 620; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ------------------------------- closing ------------------------------- */

.closing {
  text-align: center; padding: 56px 24px 72px; margin-bottom: 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px;
}
.closing p { color: var(--text-dim); max-width: 540px; margin: 0 auto 26px; }

/* -------------------------------- prose -------------------------------- */

.prose { max-width: 720px; padding-top: 26px; padding-bottom: 60px; }
.prose h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.9px; margin: 0 0 14px; }
html[dir="rtl"] .prose h1 { letter-spacing: normal; }
.prose h2 { font-size: 19px; margin: 34px 0 10px; font-weight: 620; }
.prose p { color: var(--text-dim); margin: 0 0 14px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* -------------------------------- footer ------------------------------- */

.footer { border-top: 1px solid var(--border); margin-top: 20px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 34px 24px 44px;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 620; color: var(--text-dim);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }

.made-by { margin: 6px 0 0; color: var(--text-faint); font-size: 14.5px; }
.made-by a { color: var(--accent); font-weight: 560; text-underline-offset: 3px; }

.copyright { margin: 0; color: var(--text-faint); font-size: 13px; }

/* ------------------------------ a11y ----------------------------------- */

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

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f7f7f7;
    --surface-high: #ededed;
    --border: rgba(0, 0, 0, 0.1);
    --text: #0d0d0d;
    --text-dim: #4a4a4a;
    --text-faint: #767676;
    --accent-text: #ffffff;
  }
  .nav-links .cta:hover, .btn.primary:hover { background: #000; }
}

@media (max-width: 620px) {
  .nav { padding: 14px 16px; }
  .nav-links a { padding: 6px 10px; font-size: 14px; }
  main { padding: 0 16px; }
  .hero { padding: 48px 0 44px; }
}

/* ------------------------------- roadmap ------------------------------- */

.roadmap { padding: 30px 0 64px; }
.section-lede {
  text-align: center; color: var(--text-dim);
  max-width: 560px; margin: -14px auto 34px;
}

/* A numbered list, not divs: the roadmap is an ordered sequence, and a screen
   reader should hear it as one. The numbers are drawn by the markers below.

   Capped and centred rather than full width — a milestone is a paragraph, and
   at 1080px the body copy runs past 100 characters a line, which is hard to
   read in either script. */
.timeline {
  list-style: none; padding: 0; position: relative;
  max-width: 720px; margin: 0 auto;
}

.milestone {
  display: flex; gap: 18px;
  padding-bottom: 26px; position: relative;
}
/* The connecting line, drawn from each marker down to the next. The last item
   gets none, so the timeline ends rather than trailing off. */
.milestone:not(:last-child)::before {
  content: ""; position: absolute;
  inset-inline-start: 17px; top: 40px; bottom: 4px;
  width: 2px; background: var(--border);
}

.marker {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-faint); font-size: 14px; font-weight: 640;
  font-variant-numeric: tabular-nums; z-index: 1;
}
.milestone.shipped .marker {
  background: var(--accent); border-color: var(--accent); color: var(--accent-text);
}
.milestone.building .marker { border-color: var(--accent); color: var(--accent); }

.milestone-body { flex: 1; min-width: 0; padding-top: 4px; }
.milestone-head {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 5px;
}
.milestone h3 { font-size: 17px; margin: 0; font-weight: 640; }
.milestone p { margin: 0; color: var(--text-dim); font-size: 14.8px; }

.status {
  font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  background: var(--surface-high); color: var(--text-faint);
  white-space: nowrap;
}
.status.shipped { background: rgba(0, 166, 126, 0.16); color: var(--accent); }
.status.building { background: rgba(226, 160, 63, 0.16); color: #e2a03f; }

/* A planned item is dimmed rather than hidden — the point of showing it is
   that the reader can see where this is going. */
.milestone.planned .milestone-body { opacity: 0.82; }

@media (max-width: 620px) {
  .milestone { gap: 13px; }
  .milestone:not(:last-child)::before { inset-inline-start: 15px; }
  .marker { width: 32px; height: 32px; font-size: 13px; }
}
