/* ==========================================================================
   NEXORA AI — public marketing site
   ========================================================================== */

.site { background: var(--surface); color: var(--text); font-size: 16px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site h1, .site h2, .site h3 { letter-spacing: -.03em; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 70px; display: flex; align-items: center; transition: background .25s, border-color .25s, box-shadow .25s; border-bottom: 1px solid transparent; }
.site-header .container { display: flex; align-items: center; gap: 28px; }
.site-header .sidebar-brand { padding: 0; height: auto; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 520; color: var(--text-2); }
.site-nav a:hover { color: var(--text); background: var(--hover); }
.site-header .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.site-header .login { font-size: 14.5px; font-weight: 560; color: var(--text-2); }
.site-header.on-dark:not(.is-scrolled) .brand-name, .site-header.on-dark:not(.is-scrolled) .site-nav a, .site-header.on-dark:not(.is-scrolled) .login { color: rgba(255, 255, 255, .86); }
.site-header.on-dark:not(.is-scrolled) .brand-name small { color: rgba(255, 255, 255, .55); }
.site-header.on-dark:not(.is-scrolled) .site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header.is-scrolled, .site-header.solid { background: color-mix(in oklab, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--border); }
.nav-burger { display: none; }
.mobile-nav { display: none; }

/* ---------- Buttons on dark ---------- */
.btn-glass { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .18); box-shadow: none; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-xl { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 110px; color: #e6f3ee;
  background: radial-gradient(900px 560px at 15% -10%, color-mix(in oklab, var(--brand) 42%, transparent), transparent 60%),
              radial-gradient(760px 520px at 100% 20%, rgba(14, 165, 233, .22), transparent 60%),
              radial-gradient(600px 400px at 60% 120%, rgba(99, 102, 241, .22), transparent 60%), var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 550; color: #d9f5e6; }
.hero-badge .pill { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.045em; font-weight: 760; margin-top: 22px; }
.grad-text { background: linear-gradient(95deg, #86efac 0%, #5eead4 45%, #93c5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(230, 243, 238, .76); margin-top: 22px; max-width: 590px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: rgba(230, 243, 238, .6); }
.hero-trust .icon { width: 16px; height: 16px; color: #4ade80; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .mock-chat { max-width: 440px; animation: rise .8s var(--ease) both; }
.mock-msg { animation: pop .5s var(--ease) both; }
.mock-body > :nth-child(1) { animation-delay: .35s; } .mock-body > :nth-child(2) { animation-delay: 1.1s; } .mock-body > :nth-child(3) { animation-delay: 1.6s; } .mock-body > :nth-child(4) { animation-delay: 2.3s; } .mock-body > :nth-child(5) { animation-delay: 3s; }
.float-card { position: absolute; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); font-size: 12.5px; animation: floaty 6s ease-in-out infinite; }
.float-card.api { left: -56px; bottom: -44px; width: 236px; background: #0b1220; color: #cfe3f5; border: 1px solid #1f2b3e; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; animation-delay: -2s; }
.float-card.api .k { color: #7fd1ff; } .float-card.api .s { color: #a5e3a1; } .float-card.api .n { color: #f6c177; }
.float-card.handover { right: -26px; top: 18px; display: flex; align-items: center; gap: 10px; }
.float-card .dot-live { flex-shrink: 0; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section.tint { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 740; margin-top: 12px; }
.section-head p { font-size: 17.5px; color: var(--text-3); margin-top: 16px; line-height: 1.6; }

/* Channels strip */
.channels { padding: 36px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.channels-title { margin: 0 0 20px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--text-3); }
/* One sliding row: the track holds two identical halves and moves by exactly one half, so it loops without a jump. */
.marquee { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track .channel-pill { margin-right: 14px; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
.channel-pill { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14.5px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-xs); }
.channel-pill .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); }
.channel-pill .ic .icon { width: 15px; height: 15px; }
.channel-pill .ic.messenger { background: linear-gradient(135deg, #0866ff, #a334fa); } .channel-pill .ic.whatsapp { background: #25d366; } .channel-pill .ic.code { background: #6938ef; } .channel-pill .ic.message-circle { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.channel-pill .badge { margin-left: 2px; }
.partners { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: .75; }
.partners img { height: 30px; width: auto; filter: grayscale(1); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { position: relative; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--brand) 12%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
.feature:hover::after { opacity: 1; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), color-mix(in oklab, var(--brand) 45%, #0ea5e9)); box-shadow: 0 10px 22px -8px color-mix(in oklab, var(--brand) 70%, transparent); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-top: 20px; font-weight: 680; display: flex; align-items: center; gap: 8px; }
.feature p { color: var(--text-3); margin-top: 10px; line-height: 1.6; font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; border-top: 2px dashed var(--border-strong); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { position: relative; width: 58px; height: 58px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--brand); color: var(--brand-600); box-shadow: 0 0 0 8px var(--surface-2); }
.step-num .icon { width: 24px; height: 24px; }
.step-num b { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }
.step h3 { font-size: 20px; margin-top: 22px; }
.step p { color: var(--text-3); margin-top: 10px; line-height: 1.6; }

/* Developer section */
.dev { background: #070b14; color: #cbd6e2; overflow: hidden; }
.dev::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(99, 102, 241, .18), transparent 60%), radial-gradient(600px 400px at 0% 100%, color-mix(in oklab, var(--brand) 18%, transparent), transparent 60%); pointer-events: none; }
.dev .container { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.dev h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 740; margin-top: 12px; }
.dev p.lead { color: #93a3b8; font-size: 17px; line-height: 1.6; margin-top: 16px; }
.dev .eyebrow { color: #86efac; }
.dev-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.dev-points div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #cbd6e2; }
.dev-points .icon { color: #4ade80; width: 18px; height: 18px; margin-top: 3px; }
.code-card { border-radius: 18px; border: 1px solid #1c2636; background: #0b1220; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid #1c2636; }
.code-tabs button { background: none; border: 0; color: #7c8ba1; font: 600 13px var(--font); padding: 10px 14px; border-bottom: 2px solid transparent; cursor: pointer; }
.code-tabs button.is-active { color: #fff; border-bottom-color: var(--brand); }
.code-tabs .dots { display: flex; gap: 6px; margin-right: 10px; padding-left: 6px; }
.code-tabs .dots i { width: 10px; height: 10px; border-radius: 50%; background: #28344a; }
.code-card pre { margin: 0; padding: 20px 22px; font-size: 13px; line-height: 1.7; color: #d7e0ea; overflow-x: auto; min-height: 250px; }
.code-card .response { border-top: 1px solid #1c2636; background: #081019; }
.code-card .response-head { display: flex; justify-content: space-between; padding: 10px 20px 0; font-size: 12px; color: #6c7a90; font-family: var(--mono); }
.code-card .response pre { min-height: 0; color: #a5e3a1; }

/* Stats */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-big { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.stat-big strong { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 760; letter-spacing: -.04em; background: linear-gradient(95deg, var(--ink), var(--brand-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big span { color: var(--text-3); font-size: 14.5px; display: block; margin-top: 6px; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry { padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.industry:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.industry .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
.industry h3 { font-size: 16px; margin-top: 14px; }
.industry p { color: var(--text-3); font-size: 14px; margin-top: 6px; line-height: 1.55; }
.industry .badge { height: auto; min-height: 22px; padding: 4px 9px; white-space: normal; text-align: left; }

/* Pricing */
.billing-toggle { display: inline-flex; margin: 0 auto 36px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 30px 60px -24px color-mix(in oklab, var(--brand) 45%, transparent); transform: translateY(-8px); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card h3 { font-size: 18px; }
.price-card .desc { color: var(--text-3); font-size: 14px; margin-top: 6px; min-height: 42px; }
.price-card .amount { margin-top: 18px; font-size: 40px; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.price-card .amount small { font-size: 15px; font-weight: 550; color: var(--text-3); letter-spacing: 0; }
.price-card .credits { margin-top: 8px; font-size: 13.5px; color: var(--brand-700); font-weight: 600; min-height: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.price-card li .icon { width: 18px; height: 18px; color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-2); }
.compare thead th { font-size: 15px; color: var(--text); }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote .who strong { display: block; color: var(--text); }
.quote .who span { color: var(--text-3); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 620; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; transition: transform .25s var(--ease), background .2s; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--brand-50); color: var(--brand-600); }
.faq-item p { padding: 0 22px 22px; color: var(--text-3); line-height: 1.7; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 20% 0%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(14, 165, 233, .35), transparent 60%), var(--ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); font-weight: 760; line-height: 1.1; max-width: 760px; margin: 0 auto; }
.cta-band p { color: rgba(255, 255, 255, .75); font-size: 17.5px; margin-top: 16px; }
.cta-band .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(230, 243, 238, .7); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: rgba(255,255,255,.55); }
.site-footer p.about { margin-top: 16px; font-size: 14.5px; line-height: 1.7; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 650; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(230, 243, 238, .7); font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.socials .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }

/* Page hero (inner pages) */
.page-hero { padding: 140px 0 56px; background: radial-gradient(700px 300px at 50% 0%, var(--brand-50), transparent 70%), var(--surface); border-bottom: 1px solid var(--border); text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 760; letter-spacing: -.04em; }
.page-hero p { color: var(--text-3); font-size: 18px; margin-top: 14px; }

/* Prose (markdown) */
.prose { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; margin-top: 2em; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin-top: 1.6em; color: var(--text); scroll-margin-top: 90px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose pre { position: relative; background: #0b1220; color: #d7e0ea; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; border: 1px solid #1c2636; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose pre .copy-btn { position: absolute; top: 10px; right: 10px; background: #172033; color: #b6c3d4; border: 1px solid #253248; height: 26px; padding: 0 10px; border-radius: 7px; font: 550 12px var(--font); cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy-btn { opacity: 1; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 13px; color: var(--text); background: var(--surface-2); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose hr { margin: 2.2em 0; }

/* Docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; padding-top: 110px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-nav h5 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); margin: 22px 0 8px; }
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); }
.docs-nav a:hover { background: var(--hover); color: var(--text); }
.docs-nav a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.docs-main h1 { font-size: 36px; font-weight: 760; letter-spacing: -.035em; }
.docs-main .lede { font-size: 18px; color: var(--text-3); margin-top: 10px; }
.docs-toc { position: sticky; top: 96px; align-self: start; font-size: 13.5px; }
.docs-toc h5 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); margin-bottom: 10px; }
.docs-toc a { display: block; padding: 5px 0; color: var(--text-3); }
.docs-toc a:hover { color: var(--text); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.docs-pager a { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.docs-pager a:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.docs-pager small { display: block; color: var(--text-3); font-size: 12.5px; }
.docs-pager .next { text-align: right; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.contact-card + .contact-card { margin-top: 12px; }

/* Live demo */
.demo-hero { padding-bottom: 48px; }
.demo-hero .eyebrow .dot-live { margin-right: 2px; }
.demo-hero p { max-width: 720px; margin-left: auto; margin-right: auto; }
.demo-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.demo-pills span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.demo-pills .icon { color: var(--brand); }
.demo-section { padding-top: 56px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
.demo-block + .demo-block { margin-top: 34px; }
.demo-step { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.demo-step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; }
.demo-group + .demo-group { margin-top: 14px; }
.demo-group-title { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.demo-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-prompt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; text-align: left; }
.demo-prompt .icon { color: var(--brand); opacity: .55; transition: opacity .15s, transform .15s; }
.demo-prompt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-50); transform: translateY(-1px); }
.demo-prompt:hover:not(:disabled) .icon { opacity: 1; transform: translateX(2px); }
.demo-prompt:disabled { opacity: .5; cursor: not-allowed; }
.demo-knows { padding: 6px 18px 16px; }
.demo-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 -18px 6px; padding: 0 14px; }
.demo-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.demo-tabs button small { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
.demo-tabs button.is-active { color: var(--text); border-bottom-color: var(--brand); }
.demo-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.demo-row:last-child { border-bottom: 0; }
.demo-row-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex-shrink: 0; }
.demo-row-main { flex: 1; min-width: 0; color: var(--text); }
.demo-row-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.demo-row-side em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.demo-row-side em.ok { background: var(--green-bg); color: var(--green); }
.demo-row-side em.no { background: var(--red-bg); color: var(--red); }
.demo-knows-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-3); }
.demo-industries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.demo-industries span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

.demo-chat-wrap { position: sticky; top: 96px; }
.demo-chat { display: flex; flex-direction: column; height: min(680px, calc(100vh - 120px)); min-height: 520px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 70%, #0ea5e9)); color: #fff; }
.demo-chat-head strong { display: block; font-size: 15.5px; }
.demo-chat-head span { font-size: 12.5px; opacity: .9; display: inline-flex; align-items: center; gap: 6px; }
.demo-chat-head > div { flex: 1; min-width: 0; }
.demo-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.demo-reset { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.demo-reset:hover { background: rgba(255, 255, 255, .28); }
.demo-chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.demo-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.demo-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.demo-msg.customer { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.demo-msg.system { align-self: center; max-width: 92%; background: transparent; color: var(--text-3); font-size: 13px; text-align: center; padding: 4px 8px; }
.demo-msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.demo-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); opacity: .4; animation: demo-dot 1.2s infinite ease-in-out; }
.demo-msg.typing i:nth-child(2) { animation-delay: .15s; }
.demo-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes demo-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }
.demo-sources { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 92%; margin: -2px 0 6px 2px; }
.demo-sources-label { font-size: 11.5px; color: var(--text-3); }
.demo-source { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); border: 1px solid color-mix(in oklab, var(--brand) 20%, transparent); }
.demo-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.demo-chat-input input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font: inherit; font-size: 14.5px; color: var(--text); }
.demo-chat-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.demo-chat-input .btn { width: 44px; height: 44px; border-radius: 12px; }
.demo-chat-input.is-busy .btn { opacity: .6; pointer-events: none; }
.demo-chat-foot { padding: 0 12px 10px; background: var(--surface); text-align: center; font-size: 11.5px; color: var(--text-3); }
.demo-cta h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 740; letter-spacing: -.02em; }

@media (max-width: 960px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .demo-chat-wrap { position: static; order: -1; }
  .demo-chat { height: 560px; min-height: 0; }
}
@media (max-width: 560px) {
  .demo-chat { height: 520px; border-radius: 18px; }
  .demo-row-side em { display: none; }
  .demo-prompt { font-size: 13.5px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card.featured { transform: none; }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 960px) {
  .site-nav, .site-header .login { display: none; }
  .nav-burger { display: inline-flex; }
  .site-header.on-dark:not(.is-scrolled) .nav-burger { color: #fff; }
  .mobile-nav.is-open { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 70px 0 auto 0; z-index: 49; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .mobile-nav a { padding: 12px; border-radius: 10px; color: var(--text); font-weight: 560; }
  .hero { padding: 120px 0 80px; }
  .hero .container, .dev .container, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .float-card.api { left: 0; bottom: -30px; }
  .float-card.handover { right: 0; }
  .feature-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; padding-top: 96px; }
  .docs-nav { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .feature-grid, .quote-grid, .pricing-grid, .stats-band { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .industry { padding: 16px; }
  .industry h3 { font-size: 15px; }
  .industry p { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 22px; }
  .float-card { display: none; }
  .site-header .actions .btn:not(.nav-burger) { display: none; }
}

/* ---------- Print: CMS pages (like the setup guide) save cleanly as PDF ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  .site-header, .mobile-nav, .site-footer, .toasts, .modal, .no-print, .prose pre .copy-btn { display: none !important; }
  body.site { background: #fff; }
  .page-hero { padding: 0 0 14px; background: none; border-bottom: 2px solid var(--brand); text-align: left; }
  .page-hero h1 { font-size: 24pt; }
  .page-hero p { font-size: 12pt; margin-top: 6px; }
  .section { padding: 18px 0 0 !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .prose { font-size: 11pt; line-height: 1.6; color: #1d2733; }
  .prose h2 { font-size: 16pt; margin-top: 1.3em; break-after: avoid; }
  .prose h3 { font-size: 13pt; break-after: avoid; }
  .prose table { display: table; }
  .prose table, .prose blockquote, .prose pre, .prose li { break-inside: avoid; }
  .prose a { color: inherit; text-decoration: none; }
}

/* ---------- Language switch (EN | বাংলা) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.lang-switch a { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1; color: var(--text-3); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--brand); color: #fff; }
.site-header.on-dark:not(.is-scrolled) .lang-switch { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); }
.site-header.on-dark:not(.is-scrolled) .lang-switch a:not(.is-active) { color: rgba(255, 255, 255, .8); }
@media (max-width: 1200px) {
  .site-header .container { gap: 18px; }
  .site-nav a { padding: 8px 9px; font-size: 14px; }
}
/* Here the full menu already fills the header, so the logo drops its tagline rather than push the links onto two lines. */
@media (min-width: 961px) and (max-width: 1200px) {
  .site-header .brand-tagline { display: none; }
}
/* Phones: the tagline shares the row with the language switch and the menu button. It takes the width that is
   left (padding, mark, switch and button come to about 250px) and never pushes the button off-screen.
   After the 1200px block on purpose — that one sets the header gap too. */
@media (max-width: 640px) {
  .site-header .container { gap: 10px; }
  .site-header .brand-name .brand-tagline { font-size: 9px; letter-spacing: .12em; max-width: calc(100vw - 250px); }
}
@media print { .lang-switch { display: none !important; } }
