/* Cute Live Plus — website
   রং admin panel আর app এর সাথে মিলিয়ে: teal মূল, mint টান।
   পাতাগুলো আইনি লেখা — তাই সাজের চেয়ে পড়ার আরাম আগে: সরু কলাম, বড় line-height। */

:root {
  --brand: #9B30FF;
  --brand-dark: #6F0797;
  --accent: #DE39DE;
  --bg: #F8F5FC;
  --card: #ffffff;
  --text: #17201f;
  --muted: #5d6b6a;
  --border: #E7DEF2;
  --soft: #F3E8FF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #DE39DE;
    --brand-dark: #B44DF0;
    --bg: #030013;
    --card: #0A071C;
    --text: #e9eeee;
    --muted: #93a5a4;
    --border: #2A1A4A;
    --soft: #2A1450;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand span {
  color: var(--brand);
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.site-nav a:hover {
  background: var(--soft);
  color: var(--brand);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--brand);
}

/* ---------- Document ---------- */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}
.doc-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.doc h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc .meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.doc h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 38px 0 12px;
  scroll-margin-top: 80px;
}
.doc h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.doc p {
  margin-bottom: 14px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px 22px;
}
.doc li {
  margin-bottom: 7px;
}

.summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.toc b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0 0 0 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14.5px;
}
.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
tr:last-child td {
  border-bottom: none;
}

.contact {
  background: var(--soft);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 2px 44px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
}
.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .btn,
  .steps li::before {
    color: #0F022C;
  }
}

/* ---------- Home ---------- */

.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  text-align: center;
}
.hero img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(155, 48, 255, 0.25);
}
.hero h1 {
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 26px 0 12px;
}
.hero h1 span {
  color: var(--brand);
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}
.cards {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.cards a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  color: var(--text);
}
.cards a:hover {
  border-color: var(--brand);
  text-decoration: none;
}
.cards b {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.cards small {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }
  .site-nav a {
    padding: 6px 9px;
    font-size: 13px;
  }
  .brand b {
    display: none;
  }
}
