:root {
  --navy-900: #0B1F3A; --navy-800: #12294B; --navy-700: #1B3A66; --navy-100: #E6ECF5; --navy-50: #F2F5FA;
  --teal-500: #14B8A6; --teal-700: #0F766E; --grey-50: #F5F7FA; --grey-200: #D5DBE3; --grey-600: #566273; --ink: #14202E;
  --radius: 10px; --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 24px; color: var(--navy-900); letter-spacing: -.3px; }
h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy-900); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.primary { background: var(--teal-500); color: var(--navy-900); }
.btn.primary:hover { background: #2CCCB9; }
.btn.ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }

.nav { position: sticky; top: 0; z-index: 10; background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; }
.brand b { font-weight: 650; }
.brand.small { font-size: 15px; gap: 8px; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { color: #C9D4E5; text-decoration: none; font-size: 15px; }
.links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang button { background: transparent; color: #C9D4E5; border: 1px solid rgba(255,255,255,.25); padding: 3px 9px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; }
.lang button[aria-pressed=true] { background: #fff; color: var(--navy-900); }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #1B3A66 0%, transparent 60%), var(--navy-900); color: #fff; padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal-500); font-weight: 700; letter-spacing: .6px; font-size: 13px; text-transform: uppercase; margin: 0 0 14px; }
.lead { color: #C9D4E5; font-size: 18px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: #C9D4E5; font-size: 14px; }
.hero-points li::before { content: "✓ "; color: var(--teal-500); font-weight: 700; }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); display: block; }
.hero-shot figcaption { font-size: 12px; color: #93A3BA; margin-top: 10px; text-align: right; }

.band { background: var(--navy-800); color: #fff; padding: 36px 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trio h3 { color: var(--teal-500); font-size: 20px; }
.trio p { margin: 0; color: #C9D4E5; font-size: 15px; }

.section { padding: 84px 0; }
.section.alt { background: var(--grey-50); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 24px; position: relative; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p, .card p { margin: 0; color: var(--grey-600); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--teal-500); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-500); box-shadow: inset 0 0 0 5px #fff, 0 0 0 1px var(--teal-500); }
.fine { font-size: 13px; color: var(--grey-600); border-left: 3px solid var(--grey-200); padding-left: 12px; }
.diagram { background: var(--navy-50); border-radius: 16px; padding: 28px; }
.dg-outer { border: 2px dashed var(--navy-700); border-radius: 14px; padding: 18px; position: relative; }
.dg-outer > span { position: absolute; top: -12px; left: 16px; background: var(--navy-50); padding: 0 8px; color: var(--navy-700); font-weight: 700; font-size: 13px; }
.dg-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.dg-node { background: #fff; border: 1px solid var(--grey-200); border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--navy-900); }
.dg-node.core { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.dg-arrow { color: var(--teal-700); font-weight: 700; }
.dg-chip { background: #fff; border: 1px solid var(--teal-500); color: var(--teal-700); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.dg-cloud { text-align: center; margin: 16px 0 0; color: var(--grey-600); font-size: 13px; }
.dg-cloud::before { content: "☁ ✕  "; color: #B42318; }

#faq details { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
#faq summary { cursor: pointer; font-weight: 600; color: var(--navy-900); }
#faq details p { margin: 10px 0 0; color: var(--grey-600); }

.contact { background: var(--navy-900); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: #C9D4E5; }
.form { background: #fff; color: var(--ink); border-radius: 14px; padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-900); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: 8px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy-700); outline: none; box-shadow: 0 0 0 3px rgba(27, 58, 102, .15); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--grey-600); }
.form .consent input { width: auto; margin-top: 4px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 14px; color: var(--teal-700); min-height: 1.2em; }
.form-status.error { color: #B42318; }
.hp { position: absolute; left: -9999px; }

.foot { background: #071528; color: #93A3BA; padding: 24px 0; font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { color: #fff; }

@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .steps, .grid, .trio { grid-template-columns: 1fr; }
  .links { display: none; }
  .form .two { grid-template-columns: 1fr; }
}

/* ---- Feature pages: animated flow, icons, integration ---- */
.section-lead { color: var(--grey-600); margin: -12px 0 28px; max-width: 760px; }
.steps4 { grid-template-columns: repeat(4, 1fr); }
.flow { display: grid; grid-template-columns: .8fr 32px 1fr 32px 1fr 32px 1.7fr; align-items: center; gap: 0; background: var(--navy-900); border-radius: 14px; padding: 28px; margin-bottom: 28px; min-height: 190px; }
.fl-stage { position: relative; display: grid; place-items: center; min-height: 130px; }
.fl-doc, .fl-page { background: #fff; border-radius: 6px; padding: 10px 9px; display: grid; gap: 6px; width: 70px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.fl-doc { position: absolute; }
.fl-doc.d2 { transform: translate(10px, -10px) rotate(4deg); opacity: .8; }
.fl-doc.d3 { transform: translate(-10px, 8px) rotate(-5deg); opacity: .65; }
.fl-doc i, .fl-page i { display: block; height: 5px; border-radius: 3px; background: var(--grey-200); }
.fl-doc i.s { width: 60%; }
.fl-page { width: 110px; position: relative; overflow: hidden; }
.fl-page i.hl { background: var(--grey-200); }
.fl-scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--teal-500); box-shadow: 0 0 10px var(--teal-500); top: 0; }
.fl-pipe { height: 2px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.fl-pipe span { position: absolute; top: 0; left: -30%; width: 30%; height: 2px; background: var(--teal-500); }
.fl-rev { gap: 7px; display: grid; }
.fl-field { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border-left: 3px solid var(--teal-500); border-radius: 4px; padding: 5px 8px; width: 120px; }
.fl-field b { flex: 1; height: 5px; background: rgba(255,255,255,.35); border-radius: 3px; }
.fl-field em { font-style: normal; font-size: 12px; color: var(--teal-500); font-weight: 700; }
.fl-field.warn { border-color: #F5B544; } .fl-field.warn em { color: #F5B544; }
.fl-out pre { margin: 0; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #CFFAF3; background: rgba(255,255,255,.06); padding: 10px 12px; border-radius: 6px; white-space: pre; overflow: hidden; }
.fcard { border-top-width: 3px; }
.ficon { width: 34px; height: 34px; color: var(--teal-700); margin-bottom: 10px; }
.fmt { margin-top: 20px; }
.fmt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fmt-tabs button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--grey-200); background: #fff; cursor: pointer; color: var(--navy-900); }
.fmt-tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.fmt-out { margin: 0 0 8px; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; background: var(--navy-900); color: #CFFAF3; padding: 16px; border-radius: 10px; overflow-x: auto; min-height: 120px; }
.api { background: var(--navy-50); border: 1px solid var(--grey-200); border-radius: 14px; padding: 28px; display: grid; gap: 20px; }
.api-row { display: flex; align-items: center; gap: 10px; }
.api-box { background: #fff; border: 1px solid var(--grey-200); border-radius: 8px; padding: 10px 12px; font-weight: 600; color: var(--navy-900); font-size: 14px; }
.api-box.core { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.api-line { flex: 1; height: 2px; background: var(--grey-200); position: relative; overflow: hidden; }
.api-line i { position: absolute; top: 0; left: -30%; width: 30%; height: 2px; background: var(--teal-500); }
.api-res { display: grid; gap: 10px; }
.api-card { background: #fff; border-radius: 8px; padding: 10px 12px; border-left: 4px solid var(--teal-500); font-size: 14px; }
.api-card.warn { border-color: #F5B544; }
.api-card b { font-family: ui-monospace, Menlo, Consolas, monospace; margin-right: 6px; }
.api-note { margin: 0; font-size: 13px; color: var(--grey-600); }

/* Motion only when allowed (script adds .anim unless reduced motion is requested). */
.anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .fl-scan { animation: nx-scan 2.4s ease-in-out infinite; }
  .fl-pipe span, .api-line i { animation: nx-flow 1.8s linear infinite; }
  .fl-page i.hl.a { animation: nx-hl 2.4s .6s infinite; }
  .fl-page i.hl.b { animation: nx-hl 2.4s 1.1s infinite; }
  .fl-page i.hl.c { animation: nx-hl 2.4s 1.6s infinite; }
  .fl-doc { animation: nx-bob 3s ease-in-out infinite; }
  .fl-field { animation: nx-in 3.6s ease infinite; }
  .fl-field:nth-child(2) { animation-delay: .3s; } .fl-field:nth-child(3) { animation-delay: .6s; } .fl-field:nth-child(4) { animation-delay: .9s; }
  .fl-out pre { animation: nx-type 3.6s steps(28) infinite; }
  .fcard:hover .ficon .an-pulse, .fcard.in .ficon .an-pulse { animation: nx-pulse 1.6s ease-in-out 2; }
  .fcard:hover .ficon .an-scan, .fcard.in .ficon .an-scan { animation: nx-iscan 1.4s ease-in-out 2; }
  .fcard:hover .ficon .an-slide, .fcard.in .ficon .an-slide { animation: nx-islide 1.2s ease-in-out 2; }
  .fcard:hover .ficon .an-dash { animation: nx-dash 1s linear infinite; }
  .fcard:hover .ficon .an-spin, .fcard.in .ficon .an-spin { transform-origin: 12px 12px; animation: nx-spin 1.6s ease-in-out 1; }
  .fcard .ficon .an-draw { stroke-dasharray: 30; }
  .fcard.in .ficon .an-draw, .fcard:hover .ficon .an-draw { animation: nx-draw 1s ease forwards; }
}
@keyframes nx-scan { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
@keyframes nx-flow { to { left: 100%; } }
@keyframes nx-hl { 0%, 15% { background: var(--grey-200); } 30%, 80% { background: var(--teal-500); } 100% { background: var(--grey-200); } }
@keyframes nx-bob { 50% { margin-top: -6px; } }
@keyframes nx-in { 0% { opacity: 0; transform: translateX(-8px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes nx-type { 0% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes nx-pulse { 50% { opacity: .3; } }
@keyframes nx-iscan { 0% { transform: translateY(-5px); } 50% { transform: translateY(5px); } 100% { transform: none; } }
@keyframes nx-islide { 50% { transform: translateX(3px); } }
@keyframes nx-dash { to { stroke-dashoffset: -10; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .steps4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .fl-pipe { width: 2px; height: 22px; justify-self: center; }
  .fl-pipe span { width: 2px; height: 30%; left: 0; top: -30%; animation-name: nx-flowv; }
}
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; } }
@keyframes nx-flowv { to { top: 100%; } }
.hosted { margin-top: 32px; background: var(--navy-50); border: 1px solid var(--grey-200); border-left: 4px solid var(--teal-500); border-radius: 12px; padding: 24px; }
.regions-label { margin: 18px 0 8px; font-size: 14px; font-weight: 600; color: var(--navy-900); }
.regions { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.regions li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--grey-200); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--navy-900); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 0 rgba(20,184,166,.6); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: nx-live 2s ease-out infinite; } }
@keyframes nx-live { 0% { box-shadow: 0 0 0 0 rgba(20,184,166,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(20,184,166,0); } }
