/* বাংলা হিরো কীবোর্ড — ওয়েবসাইটের স্টাইল (কোনো বাইরের ফন্ট/লাইব্রেরি নেই) */
:root {
  --bg: #F5F6FA; --card: #FFFFFF; --text: #111827; --muted: #5B6475; --border: #E5E7EB;
  --indigo: #4F46E5; --violet: #7C3AED; --amber: #FBBF24; --green: #059669; --red: #E11D2E;
  --soft: #EEF0FF; --shadow: 0 8px 28px rgba(79, 70, 229, .10);
  --radius: 22px; --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1020; --card: #1B1C33; --text: #F3F4F6; --muted: #A9AFD0; --border: #2D2F55; --soft: #25264A; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.8; font-size: 16.5px;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Kalpurush", "SolaimanLipi", "Nirmala UI", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); }
@media (prefers-color-scheme: dark) { a { color: #A5B4FC; } }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- নেভিগেশন ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 16, 32, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: #D6DAFF; text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-links .lang { border: 1px solid rgba(255,255,255,.3); }
.nav-links .cta { background: var(--amber); color: #3A2A00; }
.nav-links .cta:hover { background: #FCD34D; color: #3A2A00; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; align-items: stretch; background: #12132A; padding: 10px 14px 16px; margin: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- হিরো ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #1E1B4B 0%, #3730A3 55%, #7C3AED 100%); padding: 56px 0 120px; }
.hero .scene { position: absolute; inset: auto 0 0 0; height: 200px; pointer-events: none; }
.hero .scene svg { width: 100%; height: 100%; }
.sun { animation: rise 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.16); color: #E0E7FF; font-size: 13.5px; font-weight: 700; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(28px, 5.4vw, 46px); line-height: 1.3; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { margin: 0 0 20px; font-size: 18px; color: #D6DBFF; max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 16px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-play { background: var(--amber); color: #3A2A00; box-shadow: 0 8px 22px rgba(251, 191, 36, .35); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: min(100%, 310px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero { padding-top: 38px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; } .hero-logo img { width: 190px; }
}

/* ---------- সেকশন ---------- */
main { position: relative; }
section.block { padding: 54px 0 10px; }
.sec-head { text-align: center; max-width: 46em; margin: 0 auto 28px; }
.sec-head h2 { margin: 0 0 8px; font-size: clamp(24px, 4.2vw, 34px); line-height: 1.35; }
.sec-head p { margin: 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.feat .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); font-size: 24px; margin-bottom: 10px; }
.feat h3 { margin: 0 0 4px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- ডেমো ---------- */
.demo { display: grid; grid-template-columns: 1fr 400px; gap: 34px; align-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .demo .phone-col { order: -1; } }
.demo h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); }
.tips { padding-left: 0; list-style: none; margin: 16px 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 12px; align-items: flex-start; }
.tips b.n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-size: 14px; }
.theme-title { margin: 22px 0 8px; font-weight: 800; font-size: 17px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tchip i { width: 22px; height: 22px; border-radius: 50%; display: block; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.tchip[aria-pressed="true"] { border-color: var(--indigo); background: var(--soft); }
.tchip small { font-size: 11px; color: #B45309; font-weight: 800; }
.custom-box { margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--border); border-radius: 18px; }
.custom-box summary { cursor: pointer; font-weight: 800; }
.pickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.pickers label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.pickers input[type=color] { width: 44px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.small-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.phone-col { position: sticky; top: 76px; }
.phone { width: 100%; max-width: 400px; margin: 0 auto; border-radius: 38px; background: #0A0B14; padding: 10px; box-shadow: 0 30px 60px rgba(30, 27, 75, .35); }
.phone-inner { border-radius: 30px; overflow: hidden; background: #F3F4FA; }
.app-top { background: linear-gradient(135deg, #3730A3, #7C3AED); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.app-top img { width: 30px; height: 30px; border-radius: 50%; }
.app-top b { font-size: 15px; display: block; line-height: 1.2; } .app-top span { font-size: 11.5px; color: #D6DBFF; }
.screen-wrap { padding: 12px; }
.screen { min-height: 118px; max-height: 160px; overflow-y: auto; background: #fff; color: #111827; border: 2px solid #4F46E5; border-radius: 16px; padding: 12px 14px; font-size: 19px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.screen.empty::before { content: attr(data-ph); color: #9CA3AF; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: #0EA5E9; vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- কীবোর্ড ---------- */
.kb { --bgTop: #020617; --bgBottom: #0A1236; --keyTop: #18244A; --keyBottom: #0E1633; --a1: #2563EB; --a2: #7C3AED; --text: #F1F4F9;
  position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  background: linear-gradient(180deg, var(--bgTop), var(--bgBottom)); color: var(--text); padding: 8px 5px 10px; }
.kb-bar { display: flex; align-items: center; gap: 5px; height: 46px; padding: 3px 4px; border-radius: 24px; border: 1.5px solid var(--a1); box-shadow: 0 0 14px var(--a1a, rgba(37,99,235,.35)); background: linear-gradient(90deg, var(--keyTop), var(--keyBottom)); }
.kb-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--a1); display: grid; place-items: center; font-size: 18px; cursor: pointer; color: var(--text); background: transparent; font-family: inherit; padding: 0; }
.kb-sugs { flex: 1; display: flex; gap: 4px; min-width: 0; }
.kb-sug { flex: 1; min-width: 0; height: 36px; border-radius: 12px; border: 1px solid var(--a1b, rgba(255,255,255,.12)); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.kb-avro { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--a2); color: var(--a2); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.kb-avro.off { opacity: .45; } .kb-avro[hidden] { display: none; }
.kb-row { display: flex; gap: 4px; margin-top: 5px; padding: 2px; border-radius: 14px; }
.kb-row.alt { background: rgba(255,255,255,.045); border: 1px solid var(--a1b, rgba(255,255,255,.1)); }
.k { flex: 1 1 0; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 21px; color: var(--text); cursor: pointer; touch-action: none; background: transparent; border: 1px solid transparent; font-family: inherit; padding: 0; }
.k.b { background: linear-gradient(180deg, var(--keyTop), var(--keyBottom)); border-color: var(--a1b, rgba(255,255,255,.12)); }
.k.sp { font-size: 17px; } .k.mark { font-size: 20px; } .k.w2 { flex-grow: 1.6; } .k.w4 { flex-grow: 4.2; } .k.fn { border-color: var(--a1); background: linear-gradient(180deg, var(--keyTop), var(--keyBottom)); font-size: 16px; font-weight: 700; }
.k.on, .k:active { filter: brightness(1.35); transform: scale(.96); }
.k small { font-size: .75em; opacity: .7; }
.wheel { position: absolute; width: 200px; height: 200px; z-index: 20; pointer-events: none; display: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.wheel.show { display: block; }
.wheel svg { width: 100%; height: 100%; }
.wheel path { fill: rgba(16, 20, 44, .94); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.wheel path.sel { fill: #2F4FD0; }
.wheel text { fill: #E5E9FF; font-size: 17px; text-anchor: middle; dominant-baseline: central; font-family: inherit; }
.wheel .mid { fill: #F5F6FF; } .wheel .midt { fill: #111827; font-size: 22px; font-weight: 700; }
.emoji-pop { position: absolute; left: 6px; right: 6px; bottom: calc(100% - 52px); z-index: 25; display: none; flex-wrap: wrap; gap: 4px; padding: 8px; border-radius: 16px; background: rgba(8, 10, 28, .97); border: 1.5px solid var(--a1); }
.emoji-pop.show { display: flex; }
.emoji-pop button { font-size: 24px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.toast { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%) translateY(8px); background: #111827; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- তুলনা, ধাপ, FAQ ---------- */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .cmp { grid-template-columns: 1fr; } }
.cmp h3 { margin: 0 0 8px; } .cmp ul { margin: 0; padding-left: 20px; } .cmp li { margin: 5px 0; }
.cmp .new { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; border: 0; }
.cmp .new li::marker { color: var(--amber); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 34px; } .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #3A2A00; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 0 0 4px; font-size: 18px; } .step p { margin: 0; color: var(--muted); font-size: 15px; }
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 4px 16px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style-position: outside; }
details.faq[open] { border-color: var(--indigo); }
details.faq p { margin: 0 0 12px; color: var(--muted); }
.cta-band { margin-top: 54px; padding: 38px 0; color: #fff; text-align: center; background: linear-gradient(135deg, #3730A3, #7C3AED); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 32px); } .cta-band p { margin: 0 0 18px; color: #DDE1FF; }
.mission { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: #fff; border: 0; }
.mission p { color: #fff; }
.tier { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); margin-top: 10px; }
.tier.free { background: rgba(5,150,105,.09); border-color: rgba(5,150,105,.4); } .tier.paid { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.55); }
.tier b { display: block; }

/* ---------- ভেতরের পাতা (about / privacy) ---------- */
.page-hero { background: linear-gradient(180deg, #1E1B4B, #4338CA); color: #fff; padding: 46px 0 70px; }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 38px); line-height: 1.3; } .page-hero p { margin: 0; color: #D6DBFF; max-width: 40em; }
.crumbs { font-size: 13.5px; margin-bottom: 14px; color: #C7CCFF; } .crumbs a { color: #E0E7FF; }
.prose-wrap { margin-top: -36px; padding-bottom: 20px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 30px 0 8px; font-size: 22px; line-height: 1.4; scroll-margin-top: 80px; }
.prose h3 { margin: 18px 0 4px; font-size: 18px; }
.prose p, .prose li { color: var(--text); } .prose ul { padding-left: 22px; } .prose li { margin: 4px 0; }
.toc { background: var(--soft); border-radius: 16px; padding: 14px 18px; margin: 0 0 8px; }
.toc b { display: block; margin-bottom: 4px; } .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; } .toc li { margin: 2px 0; font-size: 15px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.notice { border-left: 4px solid var(--indigo); background: var(--soft); border-radius: 0 14px 14px 0; padding: 12px 16px; margin: 12px 0; }
table.t { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
table.t th, table.t td { border: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
table.t th { background: var(--soft); }
.tscroll { overflow-x: auto; }

footer.site { margin-top: 0; background: #0F1020; color: #B8BEE6; padding: 34px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer.site a { color: #D6DAFF; text-decoration: none; } footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; margin: 6px 0 0; padding: 0; } footer.site li { margin: 5px 0; }
footer.site .copy { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; }
.foot-brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 800; } .foot-brand img { width: 40px; height: 40px; border-radius: 50%; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sun, .hero-logo img { animation: none; } .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .caret { animation: none; } }
@media print { .nav, .hero .scene, .cta-band, footer.site .cols { display: none; } body { background: #fff; color: #000; } }
