:root {
  --bg: #070b14;
  --bg2: #0b1220;
  --card: #0f1828;
  --line: #1c2a40;
  --text: #e6edf7;
  --muted: #94a3b8;
  --blue: #60a5fa;
  --green: #34d399;
  --pink: #f472b6;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .9em; }
code { background: #15213a; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { background: #0a1322; border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; margin: 10px 0 18px; }
pre code { background: none; border: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
section { padding: 96px 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.grad { background: linear-gradient(90deg, #93c5fd, #34d399 33%, #f472b6 66%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.note, .sub { color: var(--muted); font-size: .9rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 20, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.wordmark span { color: var(--blue); }
.wordmark:hover { text-decoration: none; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a { color: var(--muted); font-size: .95rem; }
.navlinks a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; }
.btn:hover { text-decoration: none; border-color: #2b3f5f; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); border-color: transparent; color: #fff; box-shadow: 0 8px 30px rgba(59, 130, 246, .35); }
.btn-primary:hover { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; background: radial-gradient(900px 500px at 50% -10%, rgba(59, 130, 246, .22), transparent 70%), radial-gradient(600px 400px at 85% 20%, rgba(52, 211, 153, .1), transparent 70%); }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--muted); font-size: .85rem; }
.pill b { color: var(--green); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 850; margin-top: 22px; }
.lede { max-width: 760px; margin: 22px auto 0; color: var(--muted); font-size: 1.15rem; }
.lede strong { color: var(--text); }
.hero .cta-row { justify-content: center; }
.checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-inline-end: 7px; }
.shot-wrap { margin-top: 56px; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(96, 165, 250, .08); }

/* Sections */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #0b1220; font-weight: 800; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

.showcase { padding-top: 0; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.showcase-grid.reverse > div { order: 2; }
.showcase-grid p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #0b1220; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

.install { background: var(--bg2); border-block: 1px solid var(--line); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.platform h3 { font-size: 1.25rem; }
.platform p { margin-top: 6px; }
.req { max-width: 820px; margin: 56px auto 0; }
.req h3 { margin: 26px 0 8px; }
.req ul { padding-inline-start: 20px; color: var(--muted); }
.req li { margin: 6px 0; }
.req li strong { color: var(--text); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); margin-top: 10px; }

.final { text-align: center; padding-top: 40px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.mcp { background: radial-gradient(700px 420px at 90% 10%, rgba(244, 114, 182, .12), transparent 70%), var(--bg2); border-block: 1px solid var(--line); }
.mcp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.mcp-grid > div > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }
.mcp-grid strong { color: var(--text); }
.mcp-points { list-style: none; margin: 20px 0 6px; display: grid; gap: 10px; color: var(--muted); }
.mcp-points b { color: var(--text); }
.mcp-points li::before { content: "✓"; color: var(--pink); font-weight: 800; margin-inline-end: 8px; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.chat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.bubble { justify-self: end; max-width: 92%; background: #1d2b47; border: 1px solid #2b3f5f; border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: .95rem; }
.tools { width: 100%; margin-top: 18px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: .92rem; }
.tools caption { text-align: start; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding-bottom: 8px; }
.tools td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tools td:first-child { white-space: nowrap; }

/* Data-flow diagram */
.flow { margin: 40px auto 0; max-width: 820px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.flow svg { width: 100%; height: auto; }
.flow figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.flow .edge { fill: none; stroke: #2b3f5f; stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.flow .node rect { fill: #0b1220; stroke: #2b3f5f; stroke-width: 1.5; }
.flow .node text { fill: var(--text); font: 600 15px ui-monospace, Consolas, monospace; text-anchor: middle; }
.flow .node .m { fill: var(--green); font-size: 11px; }
.flow .n1 rect { stroke: var(--blue); animation: pulse 2.4s ease-in-out infinite; }
.flow .tag { fill: var(--pink); font: 600 12px ui-monospace, Consolas, monospace; text-anchor: middle; }
.flow .dot { fill: var(--blue); filter: drop-shadow(0 0 6px #60a5fa); }
.flow .d3, .flow .d4 { fill: var(--pink); filter: drop-shadow(0 0 6px #f472b6); }
@keyframes dash { to { stroke-dashoffset: -12; } }
@keyframes pulse { 50% { stroke: #93c5fd; filter: drop-shadow(0 0 8px rgba(96, 165, 250, .7)); } }

/* Animations (only with JS, and never with reduced motion) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(96, 165, 250, .22); } }
.hero h1, .hero .lede, .hero .cta-row, .hero .checks, .hero .shot-wrap { animation: rise .7s ease-out both; }
.hero .lede { animation-delay: .1s; }
.hero .cta-row { animation-delay: .2s; }
.hero .checks { animation-delay: .3s; }
.hero .shot-wrap { animation-delay: .4s; }
.hero .shot { animation: glow 6s ease-in-out 1.2s infinite; }
.grad { background-size: 200% auto; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .chat .bubble { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .chat.in .bubble { opacity: 1; transform: none; }
.js .chat.in .bubble:nth-of-type(2) { transition-delay: .5s; }
.js .chat.in .bubble:nth-of-type(3) { transition-delay: 1.1s; }
.js .chat.in .bubble:nth-of-type(4) { transition-delay: 1.7s; }
.feature, .step, .platform { transition: border-color .2s, transform .2s; }
.feature:hover, .step:hover, .platform:hover { border-color: #2b3f5f; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .chat .bubble { opacity: 1; transform: none; }
  .flow .dot { display: none; }
}

/* Language selector */
.lang { position: relative; display: inline-flex; align-items: center; }
.lang svg { position: absolute; inset-inline-start: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; font-family: inherit; font-size: .9rem; font-weight: 500; line-height: 1; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .55em 2em .55em 2.1em; cursor: pointer; }
.lang select:hover { border-color: #2b3f5f; }
[dir="rtl"] .lang select { padding: .55em 2.1em .55em 2em; }
.lang::after { content: ""; position: absolute; inset-inline-end: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* RTL and non-Latin scripts */
pre, .flow svg { direction: ltr; text-align: left; }
code, .wordmark { direction: ltr; unicode-bidi: isolate; }
:lang(hi) h1, :lang(hi) h2, :lang(bn) h1, :lang(bn) h2, :lang(ar) h1, :lang(ar) h2, :lang(ur) h1, :lang(ur) h2 { line-height: 1.35; letter-spacing: 0; }
:lang(ar) *, :lang(ur) *, :lang(hi) .eyebrow, :lang(bn) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0 !important; }

@media (max-width: 900px) {
  .mcp-grid { grid-template-columns: 1fr; }
  .features, .steps, .platforms { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .showcase-grid.reverse > div { order: 0; }
  .navlinks a:not([aria-label]) { display: none; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .features, .steps, .platforms { grid-template-columns: 1fr; }
}
