:root {
  --bg: #fbfaff; --tint: #f4f1fe; --card: #fff; --line: #e4defa;
  --text: #1b1840; --soft: #4a4776; --muted: #6e6a94;
  --accent: #5b3bdf; --accent-dark: #4b2dc8; --violet: #8b5cf6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; } /* Lenis does the gliding itself */
body {
  font-family: "Segoe UI", -apple-system, Roboto, "Noto Sans Bengali", "Nirmala UI", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden;
}
html:lang(bn) body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
section { padding: 72px 0; }
section[id], #android { scroll-margin-top: 72px; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow-col { width: min(760px, 100% - 40px); }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.12; letter-spacing: -.02em; }
html:lang(bn) h1 { letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; text-align: center; margin-bottom: 36px; }
h3 { font-size: 1.15rem; line-height: 1.4; }
.tint { background: var(--tint); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav { margin-left: auto; display: flex; gap: 26px; }
nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: var(--accent); }
.lang { font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 16px; cursor: pointer; }
.lang:hover { background: var(--tint); }

/* hero */
.hero { text-align: center; padding: 72px 0 40px; background: radial-gradient(ellipse 70% 60% at 50% 0%, #e9e2ff 0%, transparent 70%); }
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--soft); max-width: 640px; margin: 20px auto 0; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 10px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; text-align: left; line-height: 1.3; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(75, 45, 200, .18); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-size: .75rem; opacity: .8; }
.btn b { font-size: 1rem; }
.btn.small { min-height: 42px; padding: 6px 16px; border-radius: 11px; margin-top: 12px; text-align: center; }
.btn.small b { font-size: .88rem; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 16px; }

/* phone <-> pc animation: file types fly in both directions */
.beam { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 46px; }
.dev { position: relative; border: 3px solid var(--text); background: var(--card); flex: none; }
.dev i { position: absolute; inset: 7px; border-radius: 4px; background: linear-gradient(160deg, #cfc3ff, #8b5cf6); }
.phone { width: 44px; height: 76px; border-radius: 11px; }
.pc { width: 112px; height: 74px; border-radius: 9px; }
.pc::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -11px; height: 6px; border-radius: 0 0 8px 8px; background: var(--text); }
.lanes { display: flex; flex-direction: column; gap: 14px; width: min(260px, 36vw); }
.track { position: relative; height: 24px; background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat; }
.track b { position: absolute; top: 3px; left: 0; width: 34px; height: 18px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 9px; line-height: 18px; opacity: 0; animation: fly 3s linear infinite; }
.track b:nth-child(2) { animation-delay: 1s; }
.track b:nth-child(3) { animation-delay: 2s; }
.track.back b { background: var(--violet); animation-direction: reverse; animation-delay: .5s; }
.track.back b:nth-child(2) { animation-delay: 1.5s; }
.track.back b:nth-child(3) { animation-delay: 2.5s; }
@keyframes fly { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 34px); opacity: 0; } }

.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 18px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--soft); }
.pill svg { width: 18px; height: 18px; color: #1f9d55; flex: none; }

/* both directions */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ways article { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 14px 34px rgba(60, 40, 160, .08); }
.route { font-size: 1.7rem; font-weight: 700; margin-bottom: 16px; }
.route i { font-style: normal; color: var(--violet); padding: 0 6px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 6px 0 6px 30px; color: var(--soft); }
.ticks li::before { content: "\2713"; position: absolute; left: 2px; color: #1f9d55; font-weight: 700; }
.center { text-align: center; font-size: 1.5rem; margin: 56px 0 22px; }
.types { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.types li { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 8px; text-align: center; font-weight: 600; font-size: .95rem; }
.types b { display: grid; place-items: center; width: 52px; height: 58px; border-radius: 10px; background: var(--c); color: #fff; font-size: .85rem; }

/* Microsoft Store: trust, and how to find it */
.trust { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.trust h2 { text-align: left; margin-bottom: 14px; }
.trust p { color: var(--soft); }
.find { margin: 18px 0 24px 20px; color: var(--soft); }
.find li { padding: 3px 0 3px 6px; }
.find li::marker { color: var(--accent); font-weight: 700; }
.listing { background: #36305a; border-radius: 18px; padding: 16px; box-shadow: 0 24px 60px rgba(40, 25, 110, .25); }
.listing img { width: 100%; border-radius: 8px; }
.promises { margin-top: 20px; }

/* roadmap */
.roadmap { list-style: none; display: grid; gap: 14px; }
.roadmap li { background: var(--card); border: 2px dashed #b9a9f5; border-radius: 16px; padding: 18px 22px; }
.roadmap li.done { border: 1px solid var(--line); }
.roadmap p { color: var(--soft); margin-top: 4px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 2px 12px; margin-bottom: 8px; background: var(--tint); color: var(--accent); }
.done .tag { background: #ddf7e7; color: #137a41; }

/* screenshots */
.showcase { padding: 24px 0 48px; }
.frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 60px rgba(60, 40, 160, .16); }
.frame.narrow { max-width: 780px; margin: 44px auto 0; }
.frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f4f1fe; }
.watch { text-align: center; }

/* steps and features */
.steps, .cards { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.steps li, .cards li, .downloads article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p, .cards p { color: var(--soft); margin-top: 8px; font-size: .97rem; }
.cards svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--accent); margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; margin-top: 52px; }
.split h3 { font-size: 1.5rem; margin-bottom: 10px; }
.split p { color: var(--soft); }

/* download */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.downloads article { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.downloads h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.downloads h3 svg { width: 28px; height: 28px; color: var(--accent); }
.downloads p { color: var(--soft); }
.downloads .req { font-size: .88rem; color: var(--muted); }
.downloads .btn { margin-top: auto; }
.downloads .hint { font-size: .88rem; }

/* install guide */
.guide { margin-top: 72px; }
.guide h2 { margin-bottom: 12px; }
.guide .sub { text-align: center; color: var(--soft); max-width: 660px; margin: 0 auto 32px; }
.guide ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guide li { counter-increment: s; display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.guide li h3::before { content: counter(s) ". "; color: var(--accent); }
html:lang(bn) .guide li h3::before { content: counter(s, bengali) ". "; }
.guide li p { color: var(--soft); font-size: .95rem; margin-top: 6px; }
/* simple drawings of what the phone shows (not real screenshots) */
.mock { background: var(--tint); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .78rem; line-height: 1.4; min-height: 124px; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.m-title { font-weight: 700; }
.m-file { background: var(--card); border: 2px solid var(--accent); border-radius: 8px; padding: 8px 10px; font-weight: 600; color: var(--accent); }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--card); border-radius: 8px; padding: 8px 10px; }
.m-switch { flex: none; width: 30px; height: 17px; border-radius: 99px; background: var(--accent); position: relative; }
.m-switch::after { content: ""; position: absolute; width: 13px; height: 13px; right: 2px; top: 2px; border-radius: 50%; background: #fff; }
.m-text { color: var(--soft); }
.m-btns { display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: var(--muted); }
.m-btns.center { justify-content: center; }
.m-btns b { background: var(--accent); color: #fff; border-radius: 99px; padding: 5px 14px; }
.m-qr { width: 56px; height: 56px; margin: 0 auto; border: 3px solid var(--text); border-radius: 6px; background: conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 14px 14px; }
.note { margin-top: 20px; background: #fff6e5; border: 1px solid #f5d9a3; border-radius: 16px; padding: 20px 24px; }
.note p { margin-top: 6px; color: var(--soft); }

/* faq + footer */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 20px; }
details p { padding: 0 20px 18px; color: var(--soft); }
footer { padding: 40px 0; border-top: 1px solid var(--line); text-align: center; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot .fine { margin: 0; }

/* light entrances while scrolling: motion.js adds these classes, then takes them away again */
.reveal { opacity: 0; translate: 0 18px; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity .6s ease var(--delay, 0ms), translate .6s ease var(--delay, 0ms); }
@media print { .reveal { opacity: 1; translate: 0 0; } }

@media (max-width: 900px) {
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr; gap: 28px; }
  nav { gap: 16px; }
  .guide ol, .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 52px 0; }
  .hero { padding: 44px 0 28px; }
  .showcase { padding: 16px 0 32px; }
  .steps, .cards, .downloads, .ways { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; max-width: 360px; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .guide li { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .track b { animation: none; }
  .track b:nth-child(2) { opacity: 1; left: calc(50% - 17px); }
}
