/* Sifat.cloud website. Colours follow the panel's light and dark themes. */

:root {
  --bg: #fafaf9;
  --bg-alt: #f4f4f2;
  --card: #ffffff;
  --field: #f0f0ee;
  --text: #1a1b1f;
  --muted: #5f6168;
  --line: #e6e5e1;
  --accent: #5b63e6;
  --accent-2: #4fa8e8;
  --accent-soft: #5b63e612;
  --good: #1f8a5f;
  --good-soft: #1f8a5f14;
  --warn: #a8701c;
  --warn-soft: #e9b44c22;
  --gold: #5cc9a7;
  --mesh-1: #b9bbff;
  --mesh-2: #a9dcff;
  --mesh-3: #b6eedb;
  --brand-dot: #c34424;
  --shadow: 0 1px 2px #1d243308, 0 12px 32px -14px #1d24331f;
  --shadow-lg: 0 30px 80px -32px #1d243333, 0 8px 24px -14px #1d24331a;
  --console-bg: #1f1e1d;
  --console-text: #ecebe7;
  --console-accent: #8f96ff;
  --console-accent-2: #6cc4f5;
  --radius: 20px;
  --font-body: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

html[lang="bn"] {
  --font-body: "Hind Siliguri", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-head: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --font-display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #262624;
    --bg-alt: #1f1e1d;
    --card: #30302e;
    --field: #3a3936;
    --text: #faf9f5;
    --muted: #a6a39b;
    --line: #3e3d39;
    --accent: #d97757;
    --accent-2: #e8a17e;
    --accent-soft: #d977571f;
    --good: #74d6a8;
    --good-soft: #74d6a816;
    --warn: #e9c46a;
    --warn-soft: #e9c46a18;
    --gold: #e8c07e;
    --mesh-1: #4a4945;
    --mesh-2: #3f3e3a;
    --mesh-3: #3a4a40;
    --brand-dot: #d97757;
    --shadow: 0 1px 2px #0005, 0 12px 32px -14px #0009;
    --shadow-lg: 0 30px 80px -30px #000c, 0 8px 24px -12px #0008;
    --console-bg: #1f1e1d; --console-accent: #d97757; --console-accent-2: #e8a17e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #262624;
  --bg-alt: #1f1e1d;
  --card: #30302e;
  --field: #3a3936;
  --text: #faf9f5;
  --muted: #a6a39b;
  --line: #3e3d39;
  --accent: #d97757;
  --accent-2: #e8a17e;
  --accent-soft: #d977571f;
  --good: #74d6a8;
  --good-soft: #74d6a816;
  --warn: #e9c46a;
  --warn-soft: #e9c46a18;
  --gold: #e8c07e;
  --mesh-1: #4a4945;
  --mesh-2: #3f3e3a;
  --mesh-3: #3a4a40;
  --brand-dot: #d97757;
  --shadow: 0 1px 2px #0005, 0 12px 32px -14px #0009;
  --shadow-lg: 0 30px 80px -30px #000c, 0 8px 24px -12px #0008;
  --console-bg: #1f1e1d; --console-accent: #d97757; --console-accent-2: #e8a17e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
html[lang="bn"] body { font-size: 18px; line-height: 1.75; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.center { text-align: center; display: grid; justify-items: center; gap: 14px; margin-top: 36px; }
.center-text { text-align: center; margin-top: 16px; }
.icon { flex: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* Scroll progress */
.scroll-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold)); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.nav-inner { width: min(1180px, 100% - 48px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 2px; color: var(--text); }
.wordmark { height: 30px; width: auto; color: var(--text); overflow: visible; }
.wm-dot { fill: var(--brand-dot); }
.brand-tld { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-left: 2px; transform: translateY(5px); }
.brand:hover .wm-dot { animation: dot-bounce .6s var(--ease); }
@keyframes dot-bounce { 40% { transform: translateY(-6px); } }
.wm-dot { transform-box: fill-box; transform-origin: center; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: var(--field); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.lang:hover { border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle, .menu-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; overflow: hidden; }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-8deg); }
.theme-toggle span { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.theme-moon { transform: translateY(30px) rotate(-90deg); opacity: 0; }
:root[data-theme="dark"] .theme-sun { transform: translateY(-30px) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-moon { transform: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { transform: translateY(-30px) rotate(90deg); opacity: 0; }
  :root:not([data-theme="light"]) .theme-moon { transform: none; opacity: 1; }
}
.menu-toggle { display: none; }

/* Buttons */
.btn { --bx: 0px; --by: 0px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s; transform: translate(var(--bx), var(--by)); white-space: nowrap; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { border-color: var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--accent); color: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 70% 40%, #000 0%, transparent 70%); opacity: .55; }
.glow { position: absolute; width: 640px; height: 640px; right: 4%; top: 50%; transform: translate(var(--gx, 0px), calc(-50% + var(--gy, 0px))); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%); filter: blur(10px); transition: transform .8s var(--ease); }

.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; color: var(--muted); transition: border-color .2s, color .2s; }
.badge:hover { border-color: var(--accent); color: var(--text); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
.badge-pct { font-weight: 700; color: var(--accent); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-title { margin: 26px 0 22px; font-size: clamp(40px, 4.4vw, 64px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
html[lang="bn"] .hero-title { font-weight: 700; line-height: 1.22; font-size: clamp(36px, 3.9vw, 56px); }
.hero-line { display: block; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; }
.js .word > span { transform: translateY(110%); animation: word-up 1s var(--ease) forwards; animation-delay: calc(.08s * var(--i) + .1s); }
@keyframes word-up { to { transform: none; } }
.hero-accent { position: relative; color: var(--accent); width: fit-content; }
.scribble { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.scribble path { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; vector-effect: non-scaling-stroke; }
.js .scribble path { animation: draw 1.1s var(--ease) 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .scribble path { stroke-dashoffset: 0; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; }
html[lang="bn"] .hero-lead { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero-note .icon { color: var(--good); }

/* Hero visual */
.hero-visual { position: relative; perspective: 1200px; padding: 30px 10px; }
.console { position: relative; background: var(--console-bg); color: var(--console-text); border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px #ffffff10 inset; overflow: hidden; transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 4deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
.console::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 0%), color-mix(in srgb, var(--console-accent) 14%, transparent), transparent 45%); pointer-events: none; }
.console-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid #ffffff12; }
.console-top span { width: 11px; height: 11px; border-radius: 50%; background: #ffffff22; }
.console-top span:nth-child(1) { background: #ff5f57; }
.console-top span:nth-child(2) { background: #febc2e; }
.console-top span:nth-child(3) { background: #28c840; }
.console-top b { margin-left: 10px; font: 500 13px var(--font-mono); color: #ffffff80; }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 22px 6px; font: 500 12.5px var(--font-mono); color: #ffffff70; }
.stages li[data-stage] { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; transition: color .4s; }
.stage-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--console-bg); border: 2px solid #ffffff30; transition: border-color .4s, background-color .4s, box-shadow .4s; }
.stages li.on { color: #fff; }
.stages li.on .stage-dot { border-color: var(--console-accent); background: var(--console-accent); box-shadow: 0 0 16px var(--console-accent); }
.stages li.on:last-of-type .stage-dot { border-color: #74d6a8; background: #74d6a8; box-shadow: 0 0 16px #74d6a8; }
.stage-track { position: absolute; left: calc(22px + 12.5%); right: calc(22px + 12.5%); top: 24px; height: 2px; background: #ffffff1a; border-radius: 2px; }
.stage-track i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--console-accent), var(--console-accent-2), #74d6a8); transition: transform .6s var(--ease); border-radius: 2px; }
.console-body { padding: 14px 22px 24px; font: 400 14px/1.9 var(--font-mono); min-height: 248px; }
.cl { display: flex; gap: 12px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.cl.show { opacity: 1; transform: none; }
.cl-mark { width: 14px; flex: none; text-align: center; color: #ffffff60; }
.cl-cmd .cl-mark { color: var(--console-accent); }
.cl-cmd .cl-text { color: #fff; }
.cl-info .cl-text { color: #ffffffa8; }
.cl-ok .cl-mark { color: #74d6a8; }
.cl-live .cl-mark { color: #74d6a8; animation: blink 1.4s infinite; }
.cl-live .cl-text { color: #74d6a8; font-weight: 500; }
html[lang="bn"] .console-body { font-family: var(--font-mono), "Hind Siliguri", sans-serif; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--console-accent); vertical-align: middle; animation: blink 1s steps(1) infinite; margin-left: 26px; }
@keyframes blink { 50% { opacity: 0; } }

.float { position: absolute; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13.5px; animation: bob 7s ease-in-out infinite; }
.float b { display: block; font-weight: 600; font-size: 14px; }
.float small { color: var(--muted); font-size: 12.5px; }
.float-a { width: 200px; left: -40px; bottom: -58px; animation-delay: -2s; }
.float-b { display: flex; gap: 10px; align-items: center; right: -26px; top: 2px; }
.float-c { display: flex; gap: 10px; align-items: center; right: -22px; bottom: -30px; animation-delay: -4s; }
.float-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.float-metric { display: flex; justify-content: space-between; margin: 6px 0 2px; color: var(--muted); font-size: 12.5px; }
.float-metric b { font-size: 13px; color: var(--text); display: inline; }
.float-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.float-icon-good { background: var(--good-soft); color: var(--good); }
.spark { width: 100%; height: 34px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: d .8s var(--ease); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; animation: ping-good 2s infinite; flex: none; }
@keyframes ping-good { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }


/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 48px 0 8px; }
.stat { padding: 22px 24px; border-left: 2px solid var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.stat > span { color: var(--muted); font-size: 15px; }
.stats-note { grid-column: 1 / -1; font-size: 13px; padding-left: 26px; }

/* Sections */
.section { position: relative; padding: 110px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font: 600 13px var(--font-body); color: var(--accent); margin-bottom: 16px; }
html[lang="bn"] .eyebrow { font-size: 14.5px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-head h2, .page-title { font-size: clamp(32px, 3.8vw, 52px); font-weight: 720; }
.section-head .lead, .lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 680px; }
.sub-title { font-size: 28px; margin: 24px 0 24px; }

/* Cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, -100%) var(--my, -100%), var(--accent-soft), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card[data-spot]:hover::before { opacity: 1; }
.card[data-spot]:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; }
.feature-wide { grid-column: span 1; }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .4s var(--ease); }
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature .tags { margin-top: 16px; }
html[lang="bn"] .feature p { font-size: 16.5px; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-live { background: var(--good-soft); color: var(--good); }
.chip-live .chip-dot { animation: ping-good 2s infinite; }
.chip-building { background: var(--warn-soft); color: var(--warn); }
.chip-planned { background: var(--field); color: var(--muted); }

/* Architecture */
.arch { padding-top: 40px; }
.flow { position: relative; margin-bottom: 28px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--console-bg); overflow: hidden; }
.flow ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.flow li { position: relative; display: flex; justify-content: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: calc(50% + 70px); right: calc(-50% + 70px); height: 2px; background: repeating-linear-gradient(90deg, #ffffff40 0 6px, transparent 6px 12px); }
.flow-node { position: relative; z-index: 1; padding: 10px 16px; border-radius: 12px; border: 1px solid #ffffff22; background: #ffffff08; font: 500 14px var(--font-mono); color: #e9e7e1; white-space: nowrap; }
.flow li:last-child .flow-node { border-color: #74d6a866; color: #74d6a8; }
.flow-packet { position: absolute; top: 50%; left: 0; width: 70px; height: 4px; margin-top: -2px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--console-accent), #74d6a8); box-shadow: 0 0 18px var(--console-accent); animation: packet 3.6s cubic-bezier(.6, .1, .3, .9) infinite; }
@keyframes packet { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(calc(min(1180px, 100vw - 48px) - 70px)); opacity: 0; } }
.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.layer-head { display: flex; align-items: center; gap: 14px; }
.layer-head .feature-icon { width: 42px; height: 42px; border-radius: 12px; }
.layer h3 { font-size: 20px; }
.layer p { color: var(--muted); font-size: 15.5px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); font: 500 12.5px var(--font-mono); color: var(--muted); }

/* How it works */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-line { position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); border-radius: 2px; }
.steps-line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold)); border-radius: 2px; }
.step { position: relative; display: grid; gap: 22px; }
.step-num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font: 700 22px var(--font-head); color: var(--accent); box-shadow: var(--shadow); transition: background-color .5s, color .5s, transform .5s var(--ease); }
.step.lit .step-num { background: var(--accent); color: #fff; transform: scale(1.06); border-color: var(--accent); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Easy */
.easy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.easy-copy { position: sticky; top: 120px; }
.easy-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.easy-point { padding: 26px; }
.easy-check { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--good-soft); color: var(--good); margin-bottom: 16px; }
.easy-point h3 { font-size: 19px; margin-bottom: 8px; }
.easy-point p { color: var(--muted); font-size: 15.5px; }

/* Bangladesh */
.bd { overflow: hidden; }
.bd-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #006a4e1c 0%, transparent 60%); pointer-events: none; }
.bd-glow::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #f42a4114 0%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.25); } }
.bd-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.bd-card { padding: 32px; }
.bd-card h3 { font-size: 22px; margin-bottom: 20px; }
.bd-card li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--line); }
.bd-card li:first-child { border-top: 0; }
.li-icon { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.li-bad { background: var(--accent-soft); color: var(--accent); }
.li-good { background: var(--good-soft); color: var(--good); }
.bd-solution { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.bd-arrow { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.js .bd-arrow.in { animation: nudge 2.4s ease-in-out infinite 1s; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.bd-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--accent) 60%, transparent); }
.plan-featured::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold)); }
.plan-soon { align-self: flex-start; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); margin-bottom: 18px; }
.plan h3 { font-size: 24px; }
.plan-for { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 2.5em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price span { font-size: 26px; color: var(--muted); }
.plan-price b { font: 700 44px var(--font-head); color: var(--muted); opacity: .5; }
.plan ul { display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.plan li .icon { color: var(--good); }

/* Progress */
.progress-card { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 40px 44px; }
.progress-card-full { grid-template-columns: 1fr; }
.updated-line { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.ring { position: relative; width: var(--size); height: var(--size); }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--field); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 50%, transparent)); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font: 750 44px var(--font-head); line-height: 1; letter-spacing: -0.03em; }
.ring[style*="220"] .ring-label b { font-size: 56px; }
.ring-label small { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.progress-bars { display: grid; gap: 18px; }
.pbar-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pbar-num { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--field); font: 700 13px var(--font-head); color: var(--muted); }
.pbar-title { font-weight: 600; font-size: 16px; }
.pbar-head b { margin-left: auto; font-family: var(--font-head); font-size: 16px; }
.pbar-track { position: relative; height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; }
.pbar-track i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold)); transition: transform 1.4s var(--ease); }
.pbar-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff55, transparent); transform: translateX(-100%); animation: sheen 2.8s ease-in-out infinite 1.6s; }
@keyframes sheen { to { transform: translateX(100%); } }

.progress-hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-top: 20px; }
.hero-progress { padding-bottom: 30px; }
.page-title { margin-top: 4px; }
.legend-row { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }

.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phase { padding: 30px; }
.phase-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.phase-num { font: 600 13px var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
html[lang="bn"] .phase-num { font-family: var(--font-body); letter-spacing: 0; font-size: 15px; }
.phase h3 { font-size: 23px; margin-bottom: 8px; }
.phase-meter { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.phase-meter .pbar-track { flex: 1; }
.phase-meter b { font: 700 18px var(--font-head); min-width: 52px; text-align: right; }
.phase-count { margin: 8px 0 14px; }
.phase-done { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.phase-done .pbar-track i { background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 60%, #fff)); }
.phase-next { padding: 34px; background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--accent) 6%, var(--card))); }
.pitems { display: grid; gap: 2px; }
.pitems-cols { grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 16px; }
.pitem { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15.5px; }
.pitem-icon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.pitem-done .pitem-icon, .legend-done .pitem-icon { background: var(--good-soft); color: var(--good); }
.pitem-doing .pitem-icon, .legend-doing .pitem-icon { background: var(--warn-soft); }
.pitem-todo .pitem-icon, .legend-todo .pitem-icon { background: var(--field); }
.pitem-todo > span:last-child { color: var(--muted); }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--warn); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hollow { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); opacity: .6; }

.timeline { position: relative; padding-left: 30px; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 2px; }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item:first-child .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-item time { font: 600 15px var(--font-head); color: var(--accent); }
.tl-item ul { margin-top: 8px; display: grid; gap: 6px; }
.tl-item li { position: relative; padding-left: 18px; color: var(--muted); }
.tl-item li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 17.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--field); transition: transform .35s var(--ease), background-color .25s, color .25s; flex: none; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 22px 22px; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 76px 32px; border-radius: 28px; background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); color: var(--text); display: grid; justify-items: center; gap: 18px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 760px; }
.cta p { color: var(--muted); max-width: 560px; font-size: 18px; }
.cta .btn { margin-top: 10px; }
.cta-glow { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 120%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 50% 120%, #000, transparent 70%); }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 14px; max-width: 320px; }
.footer h3 { font: 600 14px var(--font-body); color: var(--muted); margin-bottom: 14px; }
.footer-grid > div:not(:first-child) { display: grid; gap: 10px; align-content: start; }
.footer-grid a:not(.brand) { color: var(--text); font-size: 15.5px; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer-built { display: inline-flex; align-items: center; gap: 8px; }

/* 404 */
.nf { position: relative; min-height: 70vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.nf-inner { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 80px 0; }
.nf-code { font: 800 140px/1 var(--font-head); background: linear-gradient(100deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ---- Design 3: framed page, weight-contrast headline, drawn step cards ---- */
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 0; pointer-events: none; }
body::before { left: max(12px, calc(50% - 620px)); }
body::after { right: max(12px, calc(50% - 620px)); }
main > section + section, .footer { border-top: 1px solid var(--line); }
main > .section::after { content: "+"; position: absolute; top: -12px; left: max(4px, calc(50% - 628px)); font: 300 18px/1 var(--font-mono); color: var(--muted); opacity: .6; }

.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 12.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="bn"] .kicker { font: 600 14px var(--font-body); letter-spacing: .02em; text-transform: none; }
.kicker i { font-style: normal; opacity: .6; }
.hero-title { font-weight: 330; letter-spacing: -0.04em; }
html[lang="bn"] .hero-title { font-weight: 360; letter-spacing: 0; }
.word.is-strong > span { font-weight: 760; }
.hero-accent { color: var(--text); }
.hero-accent .word.is-strong > span { color: var(--accent); }
.hero-copy .badge { margin-top: 26px; }
.console { transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); box-shadow: 0 50px 100px -30px color-mix(in srgb, var(--text) 45%, transparent), 0 0 0 1px #ffffff12 inset; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--text) 35%, transparent); display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--text); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hero { padding-bottom: 96px; }

.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }
.section-head h2 { font-weight: 650; letter-spacing: -0.03em; }
html[lang="bn"] .section-head h2 { font-weight: 650; letter-spacing: 0; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { padding: 16px 16px 24px; }
.step-card h3 { font-size: 19px; margin: 4px 8px 8px; }
.step-card > p:last-child { color: var(--muted); font-size: 15px; margin: 0 8px; }
.step-label { margin: 18px 8px 0; font: 700 12.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
html[lang="bn"] .step-label { font: 700 14px var(--font-body); letter-spacing: 0; text-transform: none; }
.art { height: 150px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); padding: 14px; display: grid; align-content: center; gap: 8px; font: 500 12.5px var(--font-mono); overflow: hidden; position: relative; }
.art-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.art-row b { font-weight: 600; } .art-row em { margin-left: auto; font-style: normal; color: var(--muted); }
.art-row.is-on { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); } .art-row.is-on .art-gh, .art-row.is-on em { color: var(--good); }
.art-gh { display: grid; color: var(--muted); }
.art-detect div { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.art-detect span { color: var(--muted); } .art-detect b { font-weight: 600; color: var(--accent); }
.art-bar { height: 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.art-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: fill-bar 3.2s var(--ease) infinite; }
@keyframes fill-bar { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.art-steps { display: flex; justify-content: space-between; color: var(--muted); }
.art-live { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 8px; border-radius: 9px; background: var(--card); border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); color: var(--good); }
.art-ops > svg { width: 100%; height: 70px; } .art-ops > svg path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
.reveal.in .art-ops > svg path { animation: draw 2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.art-alert { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }

.faq-wrap { max-width: 780px; }
.faq-item { background: var(--bg-alt); border-color: transparent; border-radius: 14px; }
.faq-item summary { font-size: 16.5px; }
.faq-icon { background: transparent; color: var(--accent); }

.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 120px 0 140px; text-align: center; }
.cta-band .cta { background: none; border: 0; box-shadow: none; padding: 0; position: relative; }
.cta-sun { position: absolute; left: 50%; bottom: -380px; width: 900px; height: 600px; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(ellipse at center, color-mix(in srgb, #ffd666 70%, transparent) 0%, color-mix(in srgb, #ffe9a8 40%, transparent) 35%, transparent 68%); filter: blur(8px); animation: breathe-sun 7s ease-in-out infinite; }
@keyframes breathe-sun { 50% { transform: translateX(-50%) scale(1.06); } }
.cta-display { font-family: var(--font-display); font-weight: 340; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.02em; color: color-mix(in srgb, var(--text) 70%, transparent); display: grid; }
html[lang="bn"] .cta-display { line-height: 1.25; letter-spacing: 0; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 18px auto 26px; font-size: 17px; }
.doodle { position: absolute; left: max(0px, calc(50% - 470px)); top: -10px; width: 110px; height: 110px; overflow: visible; }
.doodle path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.reveal.in .doodle path { animation: draw 1.6s var(--ease) .3s forwards; }
.reveal.in .doodle path + path { animation-delay: 1.6s; }

/* Narrow screens: the panel is desktop-first, but the site must still read on a phone. */
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: grid; }
  .nav-actions .btn-small { display: none; }
  .hero-grid, .easy-grid, .faq-grid, .progress-hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .easy-copy { position: static; }
  .feature-grid, .plan-grid, .layer-grid { grid-template-columns: 1fr 1fr; }
  .flow ol { grid-template-columns: 1fr; gap: 10px; }
  .flow li:not(:last-child)::after, .flow-packet { display: none; }
  .steps, .step-grid { grid-template-columns: 1fr 1fr; }
  body::before, body::after, main > .section::after, .doodle { display: none; }
  .steps-line { display: none; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-grid, .plan-grid, .layer-grid, .steps, .step-grid, .easy-points, .phase-grid, .pitems-cols, .footer-grid { grid-template-columns: 1fr; }
  .bd-grid { grid-template-columns: 1fr; }
  .bd-arrow { transform: rotate(90deg); justify-self: center; }
  .progress-card { grid-template-columns: 1fr; justify-items: center; padding: 28px 22px; }
  .progress-bars { width: 100%; }
  .float-a { left: -6px; bottom: -20px; }
  .float-b { right: -6px; }
  .float-c { display: none; }
  .brand-tld, .lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .word > span { transform: none; }
}
