/* Shared design tokens, base styles, buttons and badges (used by the landing page and the demo app). */
/* ---------- Design tokens (change colours/fonts here) ----------
   Same values as the Optilogist app (QA / live demo design system, static/admin/css/custom.css). */
:root {
  --brand-strong: #5B65DC;  /* app primary: active states, accents */
  --brand-fill: #5B65DC;    /* solid fills behind white text */
  --brand: #5B65DC;         /* eyebrows, links, accents */
  --brand-hover: #4A53C4;
  --brand-press: #3A42A8;
  --brand-dark: #122056;    /* app primary-dark (navy) */
  --brand-soft: #EEEFFD;    /* app primary-light: tints, pills */
  --brand-line: rgba(91,101,220,.25);
  --ink: #111827;           /* grey-900: headings, body text */
  --muted: #6B7280;         /* grey-500: secondary text */
  --body: #374151;          /* grey-700 */
  --line: #E5E7EB;          /* grey-200: hairlines, card borders */
  --line-2: #D1D5DB;        /* grey-300: input / outlined-button borders */
  --gray-bg: #F9FAFB;       /* grey-50: app page background */
  --gray-100: #F3F4F6;
  --page: #fff;             /* page background */
  --surface: #fff;          /* cards, panels, menus */
  --faint: #9CA3AF;
  --chip-bg: rgba(255,255,255,.7);
  --glow: #F3F4FE;
  --media-mid: #F7F8FE;
  --media-end: #fff;
  --map-bg: #F3F4F6;
  --map-road: #E5E7EB;
  --map-road-2: #EEF0F3;
  --phone-frame: #111827;
  --soon-bg: #FFFBEB;
  --soon-line: #FCD34D;
  --success-bg: #D1FAE5; --success: #1E8A4C;
  --amber-bg: #FEF3C7;   --amber: #D97706;
  --red-bg: #FEE2E2;     --red: #C0392B;
  --radius: 4px;            /* app radius-sm (buttons, inputs) */
  --radius-md: 8px;         /* app radius-md (stat cards) */
  --radius-lg: 12px;        /* app radius-lg (panels) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --font-stat: "Inter", system-ui, -apple-system, sans-serif; /* the app sets figures in Inter bold */
}
/* Dark theme: same palette as the live demo */
html[data-theme="dark"] {
  color-scheme: dark;
  --brand-strong: #8A94F5;
  --brand: #8A94F5;
  --brand-dark: #0A1238;
  --brand-soft: #1C2044;
  --brand-line: rgba(117,128,240,.35);
  --ink: #F9FAFB;
  --muted: #9CA3AF;
  --body: #D1D5DB;
  --line: #252B48;
  --line-2: #363E63;
  --gray-bg: #11131F;
  --gray-100: #1E2340;
  --success-bg: rgba(52,212,117,.15); --success: #34D475;
  --amber-bg: rgba(245,158,11,.15);   --amber: #F59E0B;
  --red-bg: rgba(248,113,113,.15);    --red: #F87171;
  --page: #0D0F1A;
  --surface: #161929;
  --faint: #6B7280;
  --chip-bg: rgba(255,255,255,.04);
  --glow: #151833;
  --media-mid: #141729;
  --media-end: #0D0F1A;
  --map-bg: #11131F;
  --map-road: #2A3050;
  --map-road-2: #1E2340;
  --phone-frame: #2A3050;
  --soon-bg: rgba(245,158,11,.06);
  --soon-line: rgba(245,158,11,.4);
}
html[lang="bn"] { --font-body: "Hind Siliguri", "Inter", system-ui, sans-serif; }
html[lang="bn"] .eyebrow, html[lang="bn"] .footer h3 { font-family: "Hind Siliguri", var(--font-mono); letter-spacing: .02em; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img, svg { display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }
.intro { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.intro p { color: var(--muted); font-size: 1.1rem; }
.intro .eyebrow { color: var(--brand); font-size: .8rem; }
.section { padding: 5.5rem 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--brand-dark); color: #E5E7EB; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted, .section--dark .intro p { color: #B4BAE6; }
.section--dark .eyebrow, .section--dark .intro .eyebrow { color: #A5ABF5; }

/* ---------- Buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.25rem; border-radius: var(--radius); border: 1.5px solid transparent; font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn--sm { padding: .5rem 1rem; }
.btn--primary { background: var(--brand-fill); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-sm); }
.btn--primary:active { background: var(--brand-press); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--brand); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--float { background: var(--surface); box-shadow: var(--shadow-md); }
.btn-text { display: inline-flex; gap: .35rem; font-weight: 600; color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.arrow { display: inline-block; transition: transform .3s; }
.btn:hover .arrow, .btn-text:hover .arrow { transform: translateX(.35rem); }
/* Status pills (uppercase, pill, tinted with a matching border) */
.tag { display: inline-block; padding: .12rem .55rem; border-radius: 9999px; border: 1px solid transparent; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tag--ok { background: var(--success-bg); color: var(--success); border-color: rgba(30,138,76,.25); }
.tag--warn { background: var(--amber-bg); color: var(--amber); border-color: rgba(217,119,6,.25); }
.tag--alert { background: var(--red-bg); color: var(--red); border-color: rgba(192,57,43,.25); }
.tag--info { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.soon { display: inline-block; padding: .12rem .55rem; border-radius: 9999px; border: 1px solid rgba(217,119,6,.25); background: var(--amber-bg); color: var(--amber); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
