/*
 * ব্র্যান্ড রং — লোগো ও অ্যাপের screenshot পাওয়ার পর শুধু এই ভেরিয়েবলগুলো মিলিয়ে নিন।
 */
:root {
  --bg: #0b1426;
  --bg-alt: #0e1a30;
  --surface: #13213b;
  --surface-2: #182a49;
  --border: rgba(173, 196, 235, 0.14);
  --border-strong: rgba(173, 196, 235, 0.26);
  --text: #eaf0fa;
  --muted: #a7b4cb;
  --accent: #4fc3f7;          /* অস্থায়ী — লোগোর অ্যাকসেন্ট রঙে বদলাবে */
  --accent-strong: #7ad3fa;
  --on-accent: #06111f;
  --beta: #f5c46b;
  --planned: #b9a6ff;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  /* Windows: Nirmala UI, Android/Linux: Noto Sans Bengali, macOS/iOS: Kohinoor/Bangla Sangam */
  --font: "Noto Sans Bengali", "Nirmala UI", "Hind Siliguri", "Kohinoor Bangla", "Bangla Sangam MN",
    "Vrinda", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  /* বাংলা কারচিহ্ন ও যুক্তবর্ণ যেন কেটে না যায় */
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.text-center { text-align: center; }
.justify-center { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- বাটন ও ট্যাগ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.55rem 1.3rem;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-sm { min-height: 40px; padding: 0.35rem 1rem; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn.is-disabled {
  background: var(--surface-2); color: var(--muted); border-color: var(--border); cursor: default;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 0.05rem 0.6rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; line-height: 1.7;
  background: rgba(79, 195, 247, 0.12); color: var(--accent-strong);
  border: 1px solid rgba(79, 195, 247, 0.25);
}
.tag-beta { background: rgba(245, 196, 107, 0.12); color: var(--beta); border-color: rgba(245, 196, 107, 0.3); }
.tag-planned { background: rgba(185, 166, 255, 0.12); color: var(--planned); border-color: rgba(185, 166, 255, 0.3); }
.tag-muted { background: transparent; color: var(--muted); border-color: var(--border-strong); }

.text-link { font-weight: 600; text-decoration: none; padding: 0.5rem 0.25rem; }
.text-link:hover { text-decoration: underline; }

.link-btn {
  background: none; border: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: none;
}
.link-btn:hover { color: var(--text); text-decoration: underline; }

/* ---------- হেডার ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 38, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.brand-name { font-weight: 700; font-size: 1.15rem; line-height: 1.5; }

.logo-slot { width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.logo-slot img { width: 36px; height: 36px; object-fit: contain; }
.logo-slot.is-placeholder,
.app-icon.is-placeholder {
  border: 1.5px dashed var(--border-strong); border-radius: 10px;
  color: var(--muted); font-size: 0.62rem; line-height: 1.2;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a:not(.btn) {
  display: block; padding: 0.45rem 0.85rem; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 861px) {
  .site-nav { display: flex; align-items: center; gap: 1rem; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.15rem; margin-bottom: 0.9rem; }
  .site-nav a:not(.btn) { padding: 0.7rem 0.75rem; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------- হিরো ---------- */
.hero {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79, 195, 247, 0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}
.eyebrow { color: var(--muted); font-weight: 600; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.35; letter-spacing: 0; margin-bottom: 0.6rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: #d3ddee; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 1.75rem 0 1rem; }
.hero-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- সেকশন ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); max-width: 60ch; margin-left: auto; margin-right: auto; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-strong); }

/* ---------- ফিচার ও গ্রিড ---------- */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.feature h3 { font-size: 1.2rem; color: var(--accent-strong); }
.feature p { color: #d3ddee; margin: 0; font-size: 0.95rem; }

/* কেন বাংলা কীবোর্ড বিশেষত্ব */
#why .feature-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* রীতি নিয়ন্ত্রণ */
.rules-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
.rules-visual { display: flex; justify-content: center; }
.rules-box { width: 100%; max-width: 400px; display: grid; gap: 1rem; padding: 2rem; background: var(--bg); }
.rules-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.rules-item:last-child { border: 0; padding: 0; }
.rules-label { color: var(--muted); font-size: 0.9rem; }
.rules-value { font-weight: 600; color: var(--accent); }

/* কার জন্য */
.audience-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.audience-item { text-align: center; font-weight: 600; padding: 1.25rem; }

/* কীভাবে ব্যবহার করবেন */
.how-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .how-grid { grid-template-columns: 1.5fr 1fr; } }
.steps-list { margin: 0; padding: 0 0 0 1.5rem; display: grid; gap: 1rem; }
.steps-list li { color: #d3ddee; }
.how-mouse h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.how-mouse p { margin: 0; font-weight: 600; color: var(--accent); }

/* অ্যাপস */
.app-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.app-card { display: flex; flex-direction: column; }
.app-card-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.app-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: var(--bg); }
.app-icon img { width: 48px; height: 48px; object-fit: contain; }
.app-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.app-card > p { color: #d3ddee; flex: 1; font-size: 0.95rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* স্ক্রিনশট */
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.shot img { width: 100%; height: auto; object-fit: contain; }
.shot-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shot-grid figure { margin: 0; }
.shot-grid figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; text-align: center; }

/* প্রিমিয়াম */
.premium-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 3rem; }
.premium-footer { padding: 3rem 2rem; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-strong); }
.planned-future { margin-bottom: 2rem; }
.planned-future h3 { font-size: 1.1rem; color: var(--planned); margin-bottom: 1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.premium-note { font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item summary { cursor: pointer; padding: 0.5rem 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.1rem; margin: 0; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.faq-answer p { margin: 0; color: #d3ddee; font-size: 0.95rem; }

/* রিলিজ */
.release-card { max-width: 800px; margin: 0 auto; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.5rem; }
.release-version { font-size: 1.3rem; font-weight: 700; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.release-head time { color: var(--muted); font-size: 0.95rem; }
.release-changes { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .release-changes { grid-template-columns: repeat(3, 1fr); } }
.release-changes h4 { font-size: 1rem; color: var(--accent-strong); margin-bottom: 0.6rem; }
.release-changes ul { margin: 0; padding-left: 1.2rem; color: #d3ddee; font-size: 0.9rem; }

/* ---------- ফুটার ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 4rem; background: var(--bg); }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-slogan { color: var(--muted); margin: 0.75rem 0 0; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-contact p { margin: 0; }
.footer-contact a { display: block; margin-top: 0.5rem; word-break: break-all; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0 2rem; }
.footer-bottom p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- মোডাল ---------- */
.modal {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); padding: 0; max-width: 500px; width: 90vw;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(3, 8, 18, 0.85); backdrop-filter: blur(4px); }
.modal-inner { padding: 2.5rem; position: relative; }
.modal h2 { margin-bottom: 1rem; color: var(--accent-strong); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 2rem; }

/* ফিডব্যাক ফর্ম */
.feedback-form { display: grid; gap: 1.25rem; }
.form-group { display: grid; gap: 0.5rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text); padding: 0.75rem; font: inherit; width: 100%;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.form-note { font-size: 0.82rem; color: var(--beta); background: rgba(245, 196, 107, 0.08); padding: 0.75rem; border-radius: 8px; border: 1px solid rgba(245, 196, 107, 0.2); }

/* ---------- লাইটবক্স ---------- */
.lightbox {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg); color: var(--text); padding: 1rem; max-width: min(96vw, 1600px); max-height: 94vh;
}
.lightbox::backdrop { background: rgba(3, 8, 18, 0.85); }
.lightbox img { max-width: 100%; max-height: calc(94vh - 6rem); width: auto; height: auto; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.lightbox-caption { text-align: center; color: var(--muted); margin: 0.75rem 0 0; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.lightbox-close {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer;
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found .code { font-size: 4rem; font-weight: 700; color: var(--accent); line-height: 1.3; margin: 0; }
