/* ChatFlux24 — custom styles on top of Tailwind */
[x-cloak] { display: none !important; }
html[lang="bn"] body { font-family: 'Hind Siliguri', 'Inter', ui-sans-serif, system-ui, sans-serif; }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.35; }

.text-gradient { background: linear-gradient(90deg, #1d63ed, #0ec5f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bg { background: radial-gradient(1200px 500px at 70% -10%, #e6f4ff 0%, transparent 60%), radial-gradient(900px 500px at 0% 30%, #eef2ff 0%, transparent 55%), #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Phone mockup */
.phone { width: 100%; max-width: 360px; border-radius: 2.5rem; background: #0b1a33; padding: 10px; box-shadow: 0 30px 60px -20px rgba(11, 26, 51, .45); }
.phone-top { background: #fff; border-radius: 2rem 2rem 0 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef2f7; }
.phone-body { background: #f6f8fc; border-radius: 0 0 2rem 2rem; height: 460px; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.sim-msg { max-width: 82%; padding: 9px 13px; font-size: 13px; line-height: 1.45; border-radius: 18px; display: none; animation: pop .35s ease; }
.sim-msg.out { align-self: flex-end; background: linear-gradient(135deg, #1d63ed, #0ec5f2); color: #fff; border-bottom-right-radius: 6px; }
.sim-msg.in { align-self: flex-start; background: #fff; color: #0b1a33; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sim-typing { align-self: flex-start; background: #fff; border-radius: 16px; padding: 10px 12px; display: none; gap: 4px; }
.sim-typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; display: inline-block; animation: blink 1.2s infinite; }
.sim-typing span:nth-child(2) { animation-delay: .2s; } .sim-typing span:nth-child(3) { animation-delay: .4s; }
.sim-cards { display: none; gap: 8px; overflow: hidden; animation: pop .35s ease; }
.sim-card { width: 112px; flex-shrink: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sim-receipt { display: none; align-self: flex-start; width: 78%; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); animation: pop .35s ease; }
.shown.sim-msg, .shown.sim-receipt { display: block; }
.shown.sim-typing, .shown.sim-cards { display: flex; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.float-a { animation: floaty 5s ease-in-out infinite; }
.float-b { animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Brand marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: 0 2.5rem; display: flex; align-items: center; height: 56px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* WhatsApp pulse */
.wa-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 9999px; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: wa 2s infinite; }
@keyframes wa { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Prose for CMS pages */
.prose-cf h2, .prose-cf h3 { font-weight: 700; margin: 1.6em 0 .6em; color: #0b1a33; }
.prose-cf h2 { font-size: 1.5rem; } .prose-cf h3 { font-size: 1.2rem; }
.prose-cf p { margin: .8em 0; line-height: 1.85; color: #334155; }
.prose-cf ul, .prose-cf ol { margin: .8em 0 .8em 1.4em; color: #334155; line-height: 1.8; }
.prose-cf ul { list-style: disc; } .prose-cf ol { list-style: decimal; }
.prose-cf a { color: #1d63ed; text-decoration: underline; }

/* Forms */
.input { width: 100%; border-radius: .9rem; border: 1px solid #dbe2ec; background: #fff; padding: .65rem .9rem; font-size: .95rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: #5996fb; box-shadow: 0 0 0 4px rgba(29, 99, 237, .12); }
.label { display: block; font-size: .875rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .9rem; padding: .6rem 1.1rem; font-weight: 600; font-size: .925rem; transition: all .15s; }
.btn-primary { background: linear-gradient(90deg, #1d63ed, #0ec5f2); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 20px -8px rgba(29, 99, 237, .6); }
.btn-light { background: #fff; border: 1px solid #dbe2ec; color: #1e293b; }
.btn-light:hover { border-color: #8ebcff; color: #1650d4; }
.btn-danger { background: #fee2e2; color: #b91c1c; } .btn-danger:hover { background: #fecaca; }
.btn-sm { padding: .4rem .75rem; font-size: .8rem; border-radius: .7rem; }
.card { background: #fff; border: 1px solid #edf1f7; border-radius: 1.25rem; box-shadow: 0 1px 2px rgba(15, 40, 90, .04); }
.badge { display: inline-flex; align-items: center; gap: .25rem; border-radius: 9999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 600; }
.table-cf { width: 100%; font-size: .9rem; }
.table-cf th { text-align: left; font-weight: 600; color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: .75rem 1rem; background: #f8fafc; white-space: nowrap; }
.table-cf td { padding: .8rem 1rem; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.toggle { position: relative; width: 44px; height: 24px; border-radius: 9999px; background: #cbd5e1; transition: background .2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: #1d63ed; } .toggle.on::after { transform: translateX(20px); }
input[type=checkbox].switch { appearance: none; -webkit-appearance: none; width: 44px; height: 24px; border-radius: 9999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
input[type=checkbox].switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
input[type=checkbox].switch:checked { background: #1d63ed; } input[type=checkbox].switch:checked::after { transform: translateX(20px); }

/* Chat (inbox / playground) */
.bubble { max-width: 78%; padding: .6rem .9rem; border-radius: 1.1rem; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble-in { background: #fff; border: 1px solid #edf1f7; border-bottom-left-radius: .35rem; }
.bubble-ai { background: linear-gradient(135deg, #1d63ed, #0ec5f2); color: #fff; border-bottom-right-radius: .35rem; }
.bubble-human { background: #0b1a33; color: #fff; border-bottom-right-radius: .35rem; }
.bubble-system { background: #fef3c7; color: #92400e; border-bottom-right-radius: .35rem; }

@media print { .no-print { display: none !important; } body { background: #fff !important; } }
