:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --card: #1b1d20;
  --accent: #f2c94c;
  --accent-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --line: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --shell: 1240px;
  --prose: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 4%, rgba(242, 201, 76, .08), transparent 26%), linear-gradient(180deg, #0b0c0d 0%, #101214 48%, #0b0c0d 100%);
  content: "";
  pointer-events: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p, ul, ol { margin: 0 0 1.25em; }
ul, ol { padding-inline-start: 1.35em; }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 4.75rem); font-weight: 800; }
h2 { margin-bottom: .65em; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h3 { margin-bottom: .55em; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; transform: translateY(-160%); background: var(--accent); color: #111; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 70px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(11,12,13,.88); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--text); font-size: 1.75rem; font-weight: 900; letter-spacing: -.08em; line-height: 1; text-decoration: none; }
.wordmark::after { color: var(--accent); content: "."; }
.primary-navigation { display: flex; align-items: center; gap: 24px; }
.site-menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-menu a { display: flex; min-height: 44px; align-items: center; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-menu a:hover, .site-menu .current-menu-item > a { color: var(--text); background: var(--card); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-size: .88rem; font-weight: 700; }
.menu-toggle__icon { display: grid; gap: 4px; }
.menu-toggle__icon i { display: block; width: 18px; height: 2px; background: currentColor; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #11120f; font-weight: 850; line-height: 1.2; text-decoration: none; box-shadow: 0 10px 30px rgba(242,201,76,.12); }
.button:hover { background: var(--focus); color: #11120f; transform: translateY(-1px); }
.button--secondary { border-color: var(--line); background: transparent; color: var(--text); box-shadow: none; }
.button--secondary:hover { border-color: var(--accent); background: var(--card); color: var(--accent); }
.button--small { min-height: 44px; padding: 9px 18px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.site-main { min-height: 60vh; }
.hero { padding: 92px 0 44px; text-align: center; }
.hero__copy { width: min(100%, 920px); margin-inline: auto; }
.hero__lead { width: min(100%, 820px); margin: 26px auto 0; color: #d8d9d5; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.eyebrow { display: inline-block; margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero-media, .wide-media { width: min(calc(100% - 48px), var(--shell)); margin: 48px auto 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.hero-media { aspect-ratio: 16 / 9; }
.hero-media img, .wide-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: center; }
.hero-media--pending { display: none; }

.section { padding: 96px 0; border-top: 1px solid rgba(255,255,255,.055); }
.section--compact { padding-block: 64px; }
.section--soft { background: var(--bg-soft); }
.section--closing { background: linear-gradient(135deg, rgba(242,201,76,.11), rgba(20,22,24,.88)); }
.section__head { width: min(100%, var(--prose)); margin: 0 auto 40px; }
.section__head > p:last-child { margin-bottom: 0; color: var(--muted); }
.prose { width: min(100%, var(--prose)); margin-inline: auto; }
.prose > *:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.prose-layout, .archive-layout, .not-found { padding-block: 96px; }
.not-found { text-align: center; }
.not-found p { max-width: 620px; margin: 20px auto 28px; color: var(--muted); }

.snapshot-grid, .task-grid, .feature-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.snapshot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.snapshot-card, .task-card, .feature-card, .related-card, .step-card, .archive-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.snapshot-card span { display: block; color: var(--muted); font-size: .78rem; }
.snapshot-card strong { display: block; margin-top: 4px; color: var(--text); font-size: 1rem; }
.task-card, .related-card { position: relative; }
.task-card a, .related-card a { text-decoration: none; }
.task-card a::after, .related-card a::after { position: absolute; inset: 0; content: ""; }
.task-card p, .feature-card p, .related-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.feature-card h3, .task-card h3, .related-card h3 { font-size: 1.25rem; }
.feature-card--wide { grid-column: span 2; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(40px, 7vw, 96px); }
.split--reverse > :first-child { order: 2; }
.split__media { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__copy > :last-child { margin-bottom: 0; }

.table-wrap { width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { color: var(--accent); font-size: .86rem; }
tr:last-child td { border-bottom: 0; }

.steps { display: grid; gap: 14px; margin: 30px 0; counter-reset: steps; }
.step-card { display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: 18px; counter-increment: steps; }
.step-card::before { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent); color: #111; content: counter(steps, bengali); font-weight: 900; }
.step-card p { margin-bottom: 0; color: var(--muted); }

.notice { width: min(100%, var(--prose)); margin: 32px auto; padding: 22px 24px; border: 1px solid #4a4531; border-inline-start: 4px solid var(--warning); border-radius: 12px; background: var(--notice); }
.notice > :last-child { margin-bottom: 0; }
.faq-list { display: grid; width: min(100%, var(--prose)); margin-inline: auto; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq-list summary { min-height: 60px; padding: 17px 52px 17px 20px; cursor: pointer; color: var(--text); font-weight: 800; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 15px; right: 18px; color: var(--accent); content: "+"; font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }

.anchor-nav { display: flex; width: min(100%, var(--prose)); flex-wrap: wrap; gap: 10px; margin: 0 auto 48px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.anchor-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--text); font-size: .9rem; text-decoration: none; }
.anchor-nav a:hover { color: var(--accent); }
.update-line { color: var(--muted); font-size: .85rem; }

.site-footer { border-top: 1px solid rgba(242,201,76,.45); background: #090a0b; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 64px; padding-block: 64px; }
.site-footer .wordmark { display: inline-block; margin-bottom: 20px; }
.site-footer p { font-size: .9rem; }
.footer-heading { margin-bottom: 18px; font-size: 1rem; color: var(--text); letter-spacing: 0; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; }
.footer-menu a:hover { color: var(--accent); }
.footer-email { color: var(--text); font-weight: 700; }
.site-footer__bottom { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.site-footer__bottom p { margin: 0; }

.archive-header { margin-bottom: 40px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-card h2 { font-size: 1.5rem; }
.archive-card h2 a { color: var(--text); text-decoration: none; }

@media (max-width: 1023px) {
  .menu-toggle { display: flex; }
  .primary-navigation { position: fixed; top: 70px; right: 24px; left: 24px; display: none; max-height: calc(100vh - 92px); padding: 18px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: #111315; box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .site-menu { display: grid; gap: 4px; }
  .site-menu a { padding-inline: 16px; }
  .nav-cta { width: 100%; margin-top: 12px; }
  .snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: initial; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header, .site-header__inner { min-height: 60px; }
  .primary-navigation { top: 60px; right: 16px; left: 16px; }
  .hero { padding: 56px 0 28px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .hero-media, .wide-media { width: calc(100% - 32px); margin-top: 32px; border-radius: 12px; }
  .hero-media { aspect-ratio: 4 / 5; }
  .hero-media img { object-position: center; }
  .section { padding: 56px 0; }
  .section--compact { padding-block: 44px; }
  .section__head { margin-bottom: 28px; }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .snapshot-card { padding: 16px; }
  .task-grid, .feature-grid, .related-grid, .archive-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: auto; }
  .split { gap: 30px; }
  .split__media { border-radius: 12px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 5px 0; border: 0; }
  .table-wrap td::before { display: block; color: var(--accent); content: attr(data-label); font-size: .78rem; font-weight: 800; }
  .step-card { grid-template-columns: 44px 1fr; padding: 18px; }
  .step-card::before { width: 40px; height: 40px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
