/* NEXUS ADI marketing site. Brand: DM Sans; deep blue #0056A7, bright blue #1578F7, violet #6D4AFF. */
:root {
  --ink: #14161a;
  --ink-2: #3b4150;
  --muted: #5f6677;
  --line: #e3e5ee;
  --bg: #ffffff;
  --bg-soft: #f3f2fa;
  --bg-dark: #0d0f14;
  --bg-dark-2: #161a22;
  --brand: #0056a7;
  --brand-2: #1578f7;
  --violet: #6d4aff;
  --approve: #12805c;
  --review: #9a6700;
  --hold: #b4540a;
  --block: #c22f2f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.grad { background: linear-gradient(90deg, var(--brand-2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: 0.14em; font-size: 1.05rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .tm { font-size: 0.6em; vertical-align: super; letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.dark .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.soft { background: var(--bg-soft); }
.dark { background: radial-gradient(1200px 500px at 85% -10%, rgba(109, 74, 255, 0.35), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(21, 120, 247, 0.28), transparent 60%), var(--bg-dark); color: #e9ecf3; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: #b6bdcc; }
.hero { padding: 96px 0 88px; }
.hero h1 { max-width: 900px; }
.section-head { max-width: 780px; margin-bottom: 44px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.dark .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(21, 120, 247, 0.12), rgba(109, 74, 255, 0.16)); color: var(--brand-2); margin-bottom: 14px; font-weight: 700; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--brand-2), var(--violet)); transform: rotate(45deg); }
.dark .list li { color: #c9cfdb; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

/* Dispositions */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.pill.approve { background: rgba(18, 128, 92, 0.12); color: var(--approve); }
.pill.review { background: rgba(154, 103, 0, 0.13); color: var(--review); }
.pill.hold { background: rgba(180, 84, 10, 0.13); color: var(--hold); }
.pill.block { background: rgba(194, 47, 47, 0.12); color: var(--block); }
.dark .pill.approve { color: #5fd3a6; } .dark .pill.review { color: #f2c45a; } .dark .pill.hold { color: #f6a35c; } .dark .pill.block { color: #ff8a8a; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--violet)); }

/* Code */
pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
pre { background: #0f1218; color: #d7deea; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; margin: 0; border: 1px solid rgba(255, 255, 255, 0.08); }
code { font-size: 0.9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
.k { color: #8fb8ff; } .s { color: #a5e3b4; } .c { color: #7c8597; } .n { color: #f2c45a; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }

/* Chips (integrations) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.dark .chip { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: #d6dbe6; }

/* Figure (product flow) */
.figure { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.dark .figure { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }

/* Decision card (hero visual) */
.decision { font-size: 0.92rem; }
.decision .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.decision .row:last-child { border-bottom: 0; }
.decision .k2 { color: #9aa3b5; }
.decision .v2 { color: #fff; text-align: right; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 0.98rem; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(21, 120, 247, 0.35); border-color: var(--brand-2); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.notice.ok { background: rgba(18, 128, 92, 0.1); color: var(--approve); }
.notice.err { background: rgba(194, 47, 47, 0.08); color: var(--block); }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal p { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--bg-dark); color: #9aa3b5; padding: 56px 0 36px; font-size: 0.92rem; }
.site-footer a { color: #c9cfdb; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .logo { color: #fff; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px; font-size: 0.8rem; line-height: 1.55; }

@media (max-width: 980px) {
  .g3, .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
/* Header: tighten links on mid-size screens, then switch to the Menu button before labels can wrap. */
@media (max-width: 1280px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 0.92rem; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; font-size: 0.95rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  th, td { padding: 10px 8px; }
}
.dark code { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dark pre code { background: none; }

/* Real logo artwork */
.logo img { height: 46px; width: auto; display: block; }
.site-footer .logo img { height: 42px; }

/* Product screenshots */
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(16, 24, 40, 0.18); background: #fff; }
.shot::before { content: ""; display: block; height: 26px; background: #f1f2f6 radial-gradient(circle at 16px 13px, #ff5f57 4px, transparent 5px), radial-gradient(circle at 32px 13px, #febc2e 4px, transparent 5px), radial-gradient(circle at 48px 13px, #28c840 4px, transparent 5px); background-color: #f1f2f6; border-bottom: 1px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.dark .shot { border-color: rgba(255, 255, 255, 0.12); }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.dark figcaption { color: #9aa3b5; }
.shot-wide { margin-top: 40px; }

/* Brand graphics */
.art { margin: 0; border-radius: 18px; overflow: hidden; }
.art img { display: block; width: 100%; height: auto; }
.hero.has-bg { position: relative; overflow: hidden; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; background: var(--hero-bg) center / cover no-repeat; opacity: 0.18; }
.hero.has-bg > .wrap { position: relative; }

/* Ask NEXUS: public product assistant */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: 15px; }
.ask-open { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 12px 18px; font: 600 15px/1 "DM Sans", system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--violet)); box-shadow: 0 8px 24px rgba(21, 120, 247, 0.35); cursor: pointer; }
.ask-open:hover { filter: brightness(1.06); }
.ask-dot { width: 9px; height: 9px; border-radius: 50%; background: #7ef0c4; box-shadow: 0 0 0 3px rgba(126, 240, 196, 0.25); }
.ask.is-open .ask-open { display: none; }
.ask-panel { width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22); overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #0b1a33, #1d1640); }
.ask-head div { display: flex; flex-direction: column; line-height: 1.25; }
.ask-head span { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.ask-x { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.ask-x:hover { background: rgba(255, 255, 255, 0.12); }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.ask-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ask-msg p { margin: 0 0 0.55em; }
.ask-msg p:last-child { margin-bottom: 0; }
.ask-msg ul, .ask-msg ol { margin: 0.2em 0 0.55em; padding-left: 1.25em; }
.ask-msg li { margin: 0.15em 0; }
.ask-msg code { font-size: 0.88em; background: rgba(20, 22, 26, 0.06); padding: 1px 5px; border-radius: 5px; }
.ask-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ask-msg.me { align-self: flex-end; background: var(--brand-2); color: #fff; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { border: 1px solid #cfd8f5; background: #fff; color: var(--brand); border-radius: 999px; padding: 7px 12px; font: 500 13.5px/1.2 "DM Sans", system-ui, sans-serif; cursor: pointer; text-align: left; }
.ask-chips button:hover { border-color: var(--brand-2); }
.ask-err { color: var(--block); }
.ask-typing { display: flex; gap: 4px; padding: 4px 0; }
.ask-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa3b5; animation: ask-b 1s infinite ease-in-out; }
.ask-typing span:nth-child(2) { animation-delay: 0.15s; }
.ask-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-b { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ask-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ask-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 15px/1.4 "DM Sans", system-ui, sans-serif; color: var(--ink); max-height: 120px; }
.ask-form textarea:focus { outline: 2px solid rgba(21, 120, 247, 0.35); border-color: var(--brand-2); }
.ask-form button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; color: #fff; background: var(--brand-2); font-size: 18px; cursor: pointer; }
.ask-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); background: #fff; }
@media (max-width: 640px) {
  .ask { right: 12px; bottom: 12px; }
  .ask.is-open { left: 0; right: 0; bottom: 0; }
  .ask-panel { width: 100%; height: 85vh; border-radius: 18px 18px 0 0; }
}
@media print { .ask { display: none; } }
