/* Nobojagoron — shared styles. Light pages with deep-green hero bands; follows dark mode. */
:root {
  --green: #0E9F6E;
  --green-2: #12B981;
  --green-deep: #087A54;
  --forest: #06402D;
  --night: #041F16;
  --sun: #F5B800;
  --sun-2: #FFD54A;
  --bg: #FBFCFA;
  --surface: #FFFFFF;
  --line: #E3E9E5;
  --text: #0E1A14;
  --muted: #56635C;
  --soft: #EEF7F2;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(6, 64, 45, .05), 0 18px 50px rgba(6, 64, 45, .09);
  --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07100C; --surface: #0F1914; --line: #1C2A23; --text: #EAF3EE; --muted: #9DAEA5; --soft: #0E2219;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 50px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif; font-size: 18px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

/* ---------- Header (sits on the dark hero, turns solid on scroll) ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, border-color .3s, color .3s; color: #fff; border-bottom: 1px solid transparent; }
.top.solid, .top.light { background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--text); border-color: var(--line);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; opacity: .78; font-size: 16px; font-weight: 500; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.nav .cta { opacity: 1; padding: 9px 18px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 600; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 16px; font: inherit; font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, 0, 0, 1), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: linear-gradient(135deg, var(--sun-2), var(--sun)); color: #2B1E00; box-shadow: 0 14px 34px rgba(245, 184, 0, .32); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 14px 34px rgba(14, 159, 110, .3); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Dark hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #0B6B4A 0%, var(--forest) 38%, var(--night) 100%);
  padding: 150px 0 120px;
}
.hero::before { /* sunrise glow */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, .45) 0%, rgba(245, 184, 0, .14) 35%, transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
.hero::after { /* fine grain of light rays */
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .35;
  background: repeating-conic-gradient(from 200deg at 88% -8%, rgba(255, 255, 255, .06) 0 2deg, transparent 2deg 9deg);
  -webkit-mask-image: radial-gradient(70% 80% at 88% 0%, #000, transparent 70%); mask-image: radial-gradient(70% 80% at 88% 0%, #000, transparent 70%);
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .85; } }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); line-height: 1.08; margin: 0 0 26px; font-weight: 700; letter-spacing: -.5px; }
.hero h1 .sun { background: linear-gradient(100deg, var(--sun-2), var(--sun) 60%, #FF9F1C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.2vw, 23px); color: rgba(255, 255, 255, .78); max-width: 44ch; margin: 0 0 38px; }
.hero .note { color: rgba(255, 255, 255, .6); font-size: 15px; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 56px; } .hero { padding: 120px 0 80px; } }
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }

/* Big sunrise mark (company hero) */
.sunrise { justify-self: center; width: min(420px, 80vw); aspect-ratio: 1; position: relative; }
.sunrise svg { width: 100%; height: 100%; overflow: visible; }
.sunrise .disc { transform-origin: 50% 62%; animation: sunup 1.8s cubic-bezier(.2, 0, 0, 1) both; }
.sunrise .ray { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s ease-out forwards; }
.sunrise .ray:nth-child(2) { animation-delay: 1.0s } .sunrise .ray:nth-child(3) { animation-delay: 1.1s }
.sunrise .ray:nth-child(4) { animation-delay: 1.2s } .sunrise .ray:nth-child(5) { animation-delay: 1.3s } .sunrise .ray:nth-child(6) { animation-delay: 1.4s }
@keyframes sunup { from { transform: translateY(26%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Live phone demo (keyboard page) */
.device {
  justify-self: center; width: min(340px, 86vw); border-radius: 44px; padding: 12px; position: relative;
  background: linear-gradient(160deg, #1E2B25, #0B1410); box-shadow: 0 50px 100px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: hover 8s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translateY(-14px); } }
.screen { border-radius: 34px; overflow: hidden; background: #F4F6F4; color: #0E1A14; }
.screen .bar { display: flex; justify-content: space-between; padding: 12px 22px 6px; font: 600 12px Inter, sans-serif; color: #56635C; }
.chat { padding: 14px 16px 10px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.bubble.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bubble.out { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.field { margin: 0 12px 10px; background: #fff; border-radius: 22px; padding: 10px 16px; min-height: 44px; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--green); }
.field .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--green); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb { background: #E9EDEA; padding: 8px 6px 12px; }
.sugg { display: grid; grid-template-columns: 1fr 1.3fr 1fr; text-align: center; font-size: 14px; color: #56635C; padding: 4px 0 8px; }
.sugg b { color: #0E1A14; }
.keys { display: grid; gap: 6px; }
.row { display: flex; gap: 5px; justify-content: center; }
.row span { flex: 1; max-width: 27px; height: 36px; border-radius: 7px; background: #fff; box-shadow: 0 1px 0 #C7CFCA; display: grid; place-items: center; font: 500 14px Inter, sans-serif; color: #26332D; transition: background .1s, transform .1s; }
.row span.on { background: var(--green); color: #fff; transform: translateY(1px); }
.row .wide { max-width: none; flex: 5; }
.row .act { max-width: 40px; background: #D3DAD5; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
@media (max-width: 600px) { section { padding: 68px 0; } }
.h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.2; margin: 0 0 16px; font-weight: 700; letter-spacing: -.3px; }
.sub { color: var(--muted); font-size: 20px; max-width: 56ch; margin: 0 0 52px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }

/* Numbers strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -60px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stats div { background: var(--surface); padding: 26px 22px; }
.stats b { display: block; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--green); }
.stats span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2, 0, 0, 1), box-shadow .3s;
}
.tile:hover { transform: translateY(-5px); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
.tile h3 { margin: 18px 0 8px; font-size: 23px; line-height: 1.35; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }
.tile.dark { background: linear-gradient(150deg, var(--green-deep), var(--forest) 70%, var(--night)); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255, 255, 255, .78); }
.tile.dark::after { content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, .45), transparent 70%); }
@media (max-width: 920px) { .tile, .tile.w3, .tile.w4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; } }
.ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--green-2), var(--green-deep)); }
.ic.sun { background: linear-gradient(140deg, var(--sun-2), #E0A100); color: #2B1E00; }
.ic.glass { background: rgba(255, 255, 255, .12); }
.ic svg { width: 26px; height: 26px; }
.demo { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 17px; }
.demo code { font: 500 15px Inter, sans-serif; background: var(--soft); color: var(--green-deep); padding: 6px 12px; border-radius: 10px; }
.tile.dark .demo code { background: rgba(255, 255, 255, .1); color: #fff; }
.demo .arrow { color: var(--muted); }
.quote { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 16px; line-height: 1.6; position: relative; z-index: 1; }

/* Product (company page) */
.product { display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product .copy { padding: 56px; }
.product .copy h3 { font-size: clamp(32px, 3.6vw, 44px); margin: 22px 0 12px; line-height: 1.2; }
.product .copy p { color: var(--muted); margin: 0; }
.product .art { position: relative; overflow: hidden; display: grid; place-items: end center; padding: 48px 40px 0;
  background: radial-gradient(120% 90% at 85% 0%, #0B6B4A 0%, var(--forest) 45%, var(--night) 100%); }
.product .art::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, .5), transparent 70%); }
.product .art img { width: min(300px, 80%); border-radius: 30px 30px 0 0; position: relative; box-shadow: 0 -10px 60px rgba(0, 0, 0, .4); }
@media (max-width: 920px) { .product { grid-template-columns: 1fr; } .product .copy { padding: 34px; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; }
.ticks li { padding-left: 34px; position: relative; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Screenshot rail */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 22px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots img { border-radius: 26px; box-shadow: var(--shadow); scroll-snap-align: start; }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps .tile::before { counter-increment: s; content: counter(s, bengali); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--soft); color: var(--green); font-size: 26px; font-weight: 700; }

/* Dark band */
.band { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: 36px; padding: 72px 56px;
  background: radial-gradient(120% 120% at 90% 0%, #0B6B4A 0%, var(--forest) 45%, var(--night) 100%); }
.band::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 184, 0, .45), transparent 68%); }
.band h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 14px; line-height: 1.2; }
.band p { margin: 0 0 32px; font-size: 20px; color: rgba(255, 255, 255, .8); max-width: 50ch; }
@media (max-width: 600px) { .band { padding: 44px 24px; border-radius: 28px; } }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--green); font-size: 28px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Legal pages ---------- */
.doc-hero { background: radial-gradient(120% 120% at 90% 0%, #0B6B4A 0%, var(--forest) 45%, var(--night) 100%); color: #fff; padding: 140px 0 70px; }
.doc-hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.15; margin: 0 0 10px; }
.doc-hero p { margin: 0; color: rgba(255, 255, 255, .72); }
.doc-hero .langs { display: flex; gap: 20px; margin-top: 24px; }
.doc-hero .langs a { color: var(--sun-2); font-weight: 600; text-decoration: none; }
.doc { max-width: 800px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h2 { font-size: 26px; margin: 46px 0 10px; line-height: 1.35; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc a { color: var(--green); }
.summary { border-radius: var(--radius); padding: 26px 28px; margin: 0 0 30px; background: var(--soft); border: 1px solid var(--line); }
.summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .doc td, .doc th { border: 0; padding: 2px 0; } .doc tr:first-child { display: none; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 72px 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 60px; color: var(--muted); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
footer .brand { color: var(--text); font-size: 18px; }
footer .brand img { width: 30px; height: 30px; }
footer .links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, 0, 0, 1), transform .8s cubic-bezier(.2, 0, 0, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .device, .sunrise .disc, .sunrise .ray { animation: none; stroke-dashoffset: 0; }
}
