:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --bg-elev-2: #191d27;
  --text: #eef0f4;
  --text-dim: #a6acba;
  --border: #262b38;
  /* Brand palette — keep in sync with website/assets/logo.svg's gradient stops */
  --brand-primary: #5b6ef5;
  --brand-secondary: #22d3a6;
  --accent: var(--brand-primary);
  --accent-2: var(--brand-secondary);
  --accent-contrast: #06121f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-elev: #ffffff;
    --bg-elev-2: #f2f4f8;
    --text: #14151a;
    --text-dim: #565c6b;
    --border: #e4e6ee;
    --brand-primary: #4457e0;
    --brand-secondary: #14a686;
    --accent: var(--brand-primary);
    --accent-2: var(--brand-secondary);
    --accent-contrast: #ffffff;
    --shadow: 0 10px 30px rgba(20, 21, 26, 0.08);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }

/* Bangla typography — the default system sans-serif stack falls back to a
   generic, cramped Bangla font on most OSes. Hind Siliguri (body) + Anek
   Bangla (display/headings) are built for Bangla specifically: Anek is a
   modern humanist face that reads as premium at large sizes, and both need
   a taller line-height for conjuncts/matras to render cleanly. */
html[lang="bn"] body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

html[lang="bn"] h1,
html[lang="bn"] h2,
html[lang="bn"] h3,
html[lang="bn"] .brand,
html[lang="bn"] .step-num {
  font-family: "Anek Bangla", "Hind Siliguri", sans-serif;
  letter-spacing: -0.01em;
}

html[lang="bn"] .btn { font-family: "Hind Siliguri", "Anek Bangla", sans-serif; }

html[lang="bn"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

html[lang="bn"] h1 { line-height: 1.4; font-weight: 800; }
html[lang="bn"] h2 { line-height: 1.32; font-weight: 700; }
html[lang="bn"] .tagline { font-family: "Anek Bangla", "Hind Siliguri", sans-serif; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  border-radius: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.lang-toggle:hover { color: var(--text); }

.nav-link-auth {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link-auth:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-link-auth { display: none; }
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.nav-cta { display: inline-flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* Hero */
.hero { padding: 72px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-copy em { color: var(--accent); font-style: normal; }

.tagline {
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 18px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Hero visual: fake phone chat */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 320px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 28px 18px 18px;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 18px;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bubble .typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 1px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  animation: typing-bounce 1s infinite ease-in-out;
}

.bubble .typing-dot:nth-child(2) { animation-delay: 0.15s; }
.bubble .typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.bubble.bot {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Sections generic */
section { padding: 88px 0; }

.section-head {
  max-width: 60ch;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-dim); }

/* Features */
.features { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.feature-card p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.steps li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-elev);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 { margin-bottom: 8px; font-size: 1.05rem; }

.steps p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* Trust */
.trust { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.trust-grid { max-width: 760px; }

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--bg);
  color: var(--text-dim);
}

.trust-list strong { color: var(--text); }

/* Pricing */
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-elev);
  text-align: center;
}

.pricing-card h3 { font-size: 1.1rem; color: var(--text-dim); font-weight: 600; }

.price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 8px 0 20px;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.pricing-card ul li::before { content: "✓ "; color: var(--accent-2); }

/* CTA */
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-inner p { color: var(--text-dim); max-width: 46ch; }

.cta-account-links {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.cta-account-links a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-tagline { color: var(--text-dim); font-size: 0.9rem; margin: 10px 0 0; }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }

.footer-bottom {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Scroll-reveal entrance animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid [data-reveal] { transition-delay: var(--reveal-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Pain points → solution (the "why use it" section) */
.painpoints { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pain-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.pain-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
}

.pain-problem, .pain-solution { display: flex; gap: 11px; align-items: flex-start; font-size: 0.98rem; line-height: 1.5; }
.pain-problem { color: var(--text-dim); }
.pain-solution { color: var(--text); font-weight: 500; }

.pain-x, .pain-check { flex: none; font-weight: 800; line-height: 1.5; }
.pain-x { color: #e0685f; }
.pain-check { color: var(--accent-2); }

.pain-arrow { color: var(--accent); font-size: 1.4rem; flex: none; font-weight: 700; }

.pain-solution code {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: transparent;
  color: var(--accent);
}

@media (max-width: 760px) {
  .pain-row { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .pain-arrow { transform: rotate(90deg); justify-self: start; margin: -2px 0; }
}

/* ================= Home v2: Command Centre mockup hero ================= */
.hero-v2 { position: relative; overflow: hidden; }
.hero-v2::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-v2 .hero-visual { position: relative; }

.cc-mock {
  width: min(460px, 100%);
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow), 8px 8px 0 color-mix(in srgb, var(--brand-primary) 18%, transparent);
  padding: 14px 14px 16px;
  transform: rotate(1.2deg);
}
.cc-mock-bar { display: flex; gap: 6px; margin-bottom: 10px; }
.cc-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.cc-mock-bar span:first-child { background: #ff92c2; }
.cc-mock-bar span:nth-child(2) { background: #ffd85e; }
.cc-mock-bar span:nth-child(3) { background: #84e39a; }
.cc-mock-title {
  font-weight: 800; font-size: 0.95rem; margin: 0 2px 10px;
  letter-spacing: -0.01em;
}
.cc-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-card { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg); }
.mock-agent { grid-column: 1 / -1; }
.mock-head { font-size: 0.72rem; font-weight: 800; color: #08131f; padding: 6px 10px; }
.mh-cyan { background: #6fe3e8; } .mh-green { background: #84e39a; }
.mh-yellow { background: #ffd85e; } .mh-indigo { background: #9db0ff; }
.mock-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 6px; }
.mock-task { font-size: 0.78rem; padding-left: 18px; position: relative; }
.mock-task::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 10px; height: 10px; border-radius: 4px; border: 1.5px solid var(--text-dim);
}
.mock-task.done { color: var(--text-dim); text-decoration: line-through; }
.mock-task.done::before { background: var(--accent-2); border-color: var(--accent-2); }
.mock-line { font-size: 0.78rem; }
.mock-line.dim { color: var(--text-dim); }
.mock-bar { height: 7px; border-radius: 99px; background: var(--bg-elev-2); overflow: hidden; }
.mock-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); }
.mock-body.chat { min-height: 118px; gap: 7px; }
.mock-body.chat .bubble { font-size: 0.76rem; padding: 6px 10px; max-width: 85%; }

.hero-float {
  position: absolute; font-size: 1.7rem;
  background: var(--bg-elev); border: 2px solid var(--border); border-radius: 14px;
  padding: 8px 10px; box-shadow: var(--shadow);
  animation: heroFloat 5s ease-in-out infinite;
}
.hf-1 { top: -4%; left: 2%; animation-delay: 0s; transform: rotate(-6deg); }
.hf-2 { bottom: 6%; left: -4%; animation-delay: 1.4s; transform: rotate(5deg); }
.hf-3 { top: 32%; right: -3%; animation-delay: 2.6s; transform: rotate(-4deg); }
@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (max-width: 640px) { .hero-float { display: none; } .cc-mock { transform: none; } }

/* ================= Home v2: pain-point cards ================= */
.pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.pain-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elev);
  padding: 22px 22px 20px;
  border-top-width: 6px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-cyan { border-top-color: #6fe3e8; } .pc-pink { border-top-color: #ff92c2; }
.pc-green { border-top-color: #84e39a; } .pc-yellow { border-top-color: #ffd85e; }
.pc-indigo { border-top-color: #9db0ff; }
.pain-card-wide { grid-column: 1 / -1; }
.pain-emoji { font-size: 2rem; line-height: 1; }
.pain-quote { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.6; }
html[lang="bn"] .pain-quote { line-height: 1.8; }
.pain-relief {
  display: flex; gap: 9px; align-items: flex-start;
  color: var(--text-dim); font-size: 0.93rem; line-height: 1.6;
  border-top: 1px dashed var(--border); padding-top: 12px; margin-top: auto;
}
.pain-relief .pain-check {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-secondary) 20%, transparent);
  color: var(--brand-secondary); font-weight: 800; font-size: 0.75rem;
  display: grid; place-items: center; margin-top: 2px;
}

/* ================= Home v2: a-day-with timeline ================= */
.day { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { position: relative; max-width: 720px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 110px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(180deg, #6fe3e8, #ff92c2, #ffd85e, #84e39a);
  border-radius: 99px; opacity: 0.7;
}
.tl-item {
  display: grid; grid-template-columns: 84px 52px 1fr;
  gap: 0 14px; align-items: start; padding: 16px 0;
}
.tl-time { font-size: 0.82rem; font-weight: 700; color: var(--text-dim); text-align: right; padding-top: 14px; }
.tl-dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem;
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--border);
  background: var(--bg-elev-2); position: relative; z-index: 1;
}
.td-cyan { background: #6fe3e8; } .td-pink { background: #ff92c2; }
.td-yellow { background: #ffd85e; } .td-green { background: #84e39a; }
.tl-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 16px 20px;
}
.tl-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tl-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
html[lang="bn"] .tl-card p { line-height: 1.8; }
@media (max-width: 620px) {
  .timeline::before { left: 25px; }
  .tl-item { grid-template-columns: 52px 1fr; }
  .tl-time { display: none; }
}

/* ================= Home v2: steps with connector ================= */
.steps-v2 { position: relative; counter-reset: none; }
@media (min-width: 721px) {
  .steps-v2::before {
    content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 3px;
    background: linear-gradient(90deg, #6fe3e8, #ff92c2, #ffd85e);
    border-radius: 99px; opacity: 0.6;
  }
}
.steps-v2 li { position: relative; z-index: 1; }
.steps-v2 .step-num { border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--border); color: #08131f; }
.sn-1 { background: #6fe3e8; } .sn-2 { background: #ff92c2; } .sn-3 { background: #ffd85e; }
