/* Public pages (pricing, help, legal): plain CSS, no build step. */
:root { --bg:#04060c; --panel:#0b1222; --line:rgb(148 163 184 / .16); --ink:#e2e8f0; --muted:#94a3b8; --cyan:#22d3ee; --violet:#8b5cf6; --orange:#fb923c; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: radial-gradient(ellipse at 50% -10%, #0b1530 0%, var(--bg) 55%) fixed; color: var(--ink);
    font: 16px/1.65 system-ui, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.site-head { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgb(4 6 12 / .78); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.site-head img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--cyan); }
.btn { display: inline-block; padding: 9px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
    background: linear-gradient(90deg, var(--cyan), var(--violet)); color: #04060c !important; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink) !important; }
main { padding: 48px 0 72px; }
.kicker { font: 600 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; }
h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 10px 0 14px; letter-spacing: .01em; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0; }
.doc { max-width: 820px; }
.doc p, .doc li { color: #cbd5e1; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
code { background: #0f1a30; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #cffafe; }
pre { background: #0a1322; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: #cffafe; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
.note { border-left: 3px solid var(--cyan); background: rgb(34 211 238 / .07); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.note.warn { border-color: var(--orange); background: rgb(251 146 60 / .08); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.card { background: linear-gradient(180deg, #0d1628, var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h2, .card h3 { margin-top: 0; }
.card.featured { border-color: rgb(34 211 238 / .55); box-shadow: 0 0 40px rgb(34 211 238 / .12); }
.price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.card li { padding: 4px 0; color: #cbd5e1; font-size: 15px; }
.card a.cover { text-decoration: none; color: inherit; display: block; }
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; }
table.simple th, table.simple td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--muted); }
@media print { .site-head, .site-foot { display: none; } body { background: #fff; color: #000; } .doc p, .doc li { color: #000; } }

/* ---------- Homepage ---------- */
main.full { padding: 0; }
.section { padding: 84px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgb(11 18 34 / .0), rgb(11 18 34 / .75) 20%, rgb(11 18 34 / .75) 80%, rgb(11 18 34 / 0)); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 10px 0 10px; line-height: 1.2; }
.grad { background: linear-gradient(90deg, #67e8f9, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin: 14px 0 18px; letter-spacing: -.01em; }
.hero .lead { font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { padding: 13px 24px; font-size: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "✓ "; color: var(--cyan); }

/* Hero visual: devices → cloud → panel, drawn in CSS */
.flow { position: relative; height: 430px; perspective: 1100px; }
.flow-stage { position: absolute; left: 50%; top: 0; width: 520px; height: 430px; margin-left: -260px; transform: rotateX(14deg) rotateY(-16deg); transform-style: preserve-3d; }
.node { position: absolute; border: 1px solid rgb(34 211 238 / .35); border-radius: 16px; background: linear-gradient(160deg, #0f1b33, #0a1222);
    box-shadow: 0 20px 50px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .06); padding: 12px 14px; font-size: 12px; }
.node b { display: block; font-size: 14px; color: #f1f5f9; }
.node small { color: var(--muted); }
.node .led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; margin-right: 6px; animation: blink 2s infinite; }
.dev1, .dev2, .dev3 { left: 0; width: 150px; height: 60px; }
.dev1 { top: 26px; } .dev2 { top: 185px; } .dev3 { top: 344px; }
.cloud { left: 190px; top: 150px; width: 120px; height: 130px; display: grid; place-items: center; text-align: center;
    border-color: rgb(167 139 250 / .55); box-shadow: 0 0 60px rgb(139 92 246 / .35), 0 20px 50px rgb(0 0 0 / .45); }
.cloud img { width: 62px; height: auto; display: block; margin: 0 auto 6px; }
.panel-node { left: 345px; top: 112px; width: 175px; }
.panel-node .row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.panel-node .row:last-child { border-bottom: 0; }
.ok { color: #34d399; } .late { color: var(--orange); }
.wires { position: absolute; inset: 0; width: 520px; height: 430px; overflow: visible; }
.wires path { stroke: rgb(34 211 238 / .55); stroke-width: 1.5; fill: none; }
.wires path.out { stroke: rgb(167 139 250 / .65); }
@keyframes blink { 50% { opacity: .35; } }
.floor { position: absolute; left: -20%; right: -20%; bottom: -40px; height: 240px; transform: rotateX(70deg);
    background-image: linear-gradient(rgb(34 211 238 / .14) 1px, transparent 1px), linear-gradient(90deg, rgb(34 211 238 / .14) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgb(11 18 34 / .6); }
.strip b { display: block; font-size: 16px; color: #f1f5f9; }
.strip span { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; left: 24px;
    font: 800 26px/1 ui-monospace, Consolas, monospace; color: transparent; -webkit-text-stroke: 1px #67e8f9; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: linear-gradient(180deg, #0d1628, #0a1120); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgb(34 211 238 / .45); transform: translateY(-3px); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px;
    background: linear-gradient(135deg, rgb(34 211 238 / .18), rgb(139 92 246 / .18)); border: 1px solid rgb(34 211 238 / .3); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: #a5b4c8; font-size: 15px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.compare .card li { padding: 6px 0 6px 26px; position: relative; }
.compare .card li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.tag { display: inline-block; font: 600 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; padding: 6px 10px; border-radius: 999px; border: 1px solid rgb(34 211 238 / .4); color: #a5f3fc; }
.tag.v { border-color: rgb(167 139 250 / .5); color: #ddd6fe; }

.dev { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.dev pre { margin: 0; font-size: 13px; box-shadow: 0 20px 60px rgb(0 0 0 / .4); }
.dev pre .k { color: #c4b5fd; } .dev pre .s { color: #86efac; } .dev pre .c { color: #64748b; }

.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 10px 0; background: rgb(11 18 34 / .6); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--cyan); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: #cbd5e1; }

.cta { text-align: center; border: 1px solid rgb(34 211 238 / .35); border-radius: 24px; padding: 56px 24px;
    background: radial-gradient(ellipse at 50% 0%, rgb(34 211 238 / .14), transparent 60%), linear-gradient(180deg, #0d1628, #0a1120); }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; }
.cta .hero-cta { justify-content: center; }

@media (max-width: 960px) {
    .hero .wrap, .dev, .compare { grid-template-columns: 1fr; }
    .features, .steps { grid-template-columns: 1fr 1fr; }
    .strip { grid-template-columns: 1fr 1fr; }
    .flow { height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 620px) {
    .features, .steps, .strip { grid-template-columns: 1fr; }
    .flow { display: none; }
    .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { .wires circle, .node .led { display: none; animation: none; } .feature { transition: none; } }
