/* naxca.io — one stylesheet, no build step. */

:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #0d1013;
  --ink-2: #2a2f35;
  --muted: #5d636a;
  --line: #dddbd3;
  --accent: #0b7d47;
  --accent-bright: #3ddc84;
  --dark: #0d1013;
  --dark-2: #161a1f;
  --dark-line: #2a3037;
  --dark-muted: #9aa3ab;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Small mono label above headings: "01 — Monitoring" */
.eyebrow {
  font: 500 .78rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn::after { content: "→"; transition: transform .15s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-sm::after { content: none; }
.on-dark .btn, .cta .btn { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }
.on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]:not(.btn) { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn, .nav .btn[aria-current] { color: #fff; }
.nav .login { padding-left: 28px; border-left: 1px solid var(--line); }

/* Omnia dropdown: hover/focus on desktop, always open in the mobile menu */
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: 100%; left: -16px; min-width: 190px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(13,16,19,.3);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub { margin-top: 10px; }
.sub a { padding: 9px 12px; border-radius: 8px; }
.sub a:hover { background: var(--bg); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .login { padding-left: 0; border-left: 0; }
  .has-sub { display: grid; }
  .has-sub > a::after { content: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; margin: 0; min-width: 0; }
  .sub a { border-radius: 0; padding: 12px 0; font-size: .98rem; color: var(--muted); }
  .has-sub::before { content: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.on-dark { background: var(--dark); color: #fff; }
.on-dark .muted, .on-dark .lead { color: var(--dark-muted); }
.on-dark .eyebrow { color: var(--accent-bright); }
.on-white { background: var(--surface); }
.rule { border-top: 1px solid var(--line); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,16,19,.96) 0%, rgba(13,16,19,.75) 45%, rgba(13,16,19,.2) 100%);
}
.hero .wrap { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(80px, 11vw, 150px); }
.hero h1 { max-width: 13em; }
.hero .lead { color: #d3d8dc; max-width: 34em; }
.hero-sub { padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(56px, 8vw, 100px); }

/* Proof strip under hero */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dark-line); position: relative; }
.proof div { padding: 26px 0 30px; border-right: 1px solid var(--dark-line); padding-right: 24px; }
.proof div + div { padding-left: 24px; }
.proof div:last-child { border-right: 0; }
.proof strong { display: block; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.proof span { color: var(--dark-muted); font-size: .93rem; }
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; }
  .proof div, .proof div + div { border-right: 0; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
  .proof div:last-child { border-bottom: 0; }
}

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .num { font: 500 .8rem/1 var(--mono); color: var(--muted); margin-bottom: 28px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; }
.on-dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.on-dark .card p, .on-dark .card .num { color: var(--dark-muted); }

/* Product cards on the home page */
.product {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(13,16,19,.35); }
.product img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.product .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product .tag { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.product p { color: var(--muted); font-size: .97rem; }
.product .more { margin-top: auto; font-weight: 600; font-size: .95rem; }
.product .more::after { content: " →"; }

/* Split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* Tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.on-dark .ticks li { border-color: var(--dark-line); }
.on-dark .ticks li::before { border-color: var(--accent-bright); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 28px 24px 0 0; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 500 .85rem/1 var(--mono); color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.on-dark .steps { border-color: var(--dark-line); }
.on-dark .steps li::before { color: var(--accent-bright); }
.on-dark .steps p { color: var(--dark-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
ol.steps { padding: 0; margin: 0; }

/* Partner logos */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logos li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; height: 96px; display: grid; place-items: center; padding: 14px; }
.logos img { max-height: 58px; width: auto; object-fit: contain; }
ul.logos { padding: 0; margin: 0; }
@media (max-width: 960px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* Figure with caption */
figure { margin: 0; }
figcaption { font: 400 .82rem/1.4 var(--mono); color: var(--muted); margin-top: 12px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart img { border-radius: 6px; }

/* Callout quote */
.callout { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; max-width: 22em; }
.callout em { font-style: normal; color: var(--accent); }
.on-dark .callout em { color: var(--accent-bright); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 20px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; filter: grayscale(1); }
.person h3 { margin-bottom: 2px; }
.person p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta { border-radius: calc(var(--radius) + 6px); background: var(--dark); color: #fff; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--dark-muted); margin: 0; }
.cta .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* Contact form */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-size: .92rem; font-weight: 550; }
.form label span.opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea, .form select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { font-size: .88rem; color: var(--muted); }
.notice { border-radius: 10px; padding: 14px 16px; font-size: .95rem; display: none; }
.notice.show { display: block; }
.notice.ok { background: #e3f5ea; color: #0b5a34; }
.notice.err { background: #fbe7e5; color: #8a1c12; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 26px; }
.contact-aside dd { margin: 8px 0 0; font-size: 1.05rem; }

/* Long-form text (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 72px 0 32px; }
main > .section-tight:last-child { padding-bottom: var(--section); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot .muted { color: var(--dark-muted); margin-top: 18px; font-size: .93rem; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot h2 { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dark-muted); margin-bottom: 8px; }
.foot nav a { text-decoration: none; color: #e7eaec; font-size: .95rem; }
.foot nav a:hover { color: var(--accent-bright); }
.legal { border-top: 1px solid var(--dark-line); margin-top: 56px; padding-top: 24px; font-size: .85rem; color: var(--dark-muted); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}

/* Product pillars on the home page: three columns joined to one platform bar */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.platform-bar {
  margin-top: 20px; border-radius: var(--radius); background: var(--dark); color: #fff;
  padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
}
.platform-bar strong { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-bright); margin-right: 8px; }
.platform-bar span { color: #d3d8dc; font-size: .95rem; }
.platform-bar a { margin-left: auto; color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.platform-bar a::after { content: " →"; }
@media (max-width: 860px) { .platform-bar a { margin-left: 0; } }

/* Module tag list inside product cards */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 0; list-style: none; }
.chips li { font: 500 .74rem/1 var(--mono); padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.on-dark .chips li { border-color: var(--dark-line); color: #d3d8dc; }

/* Pill used for "available by arrangement" */
.pill { display: inline-block; font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: #e3f5ea; color: #0b5a34; vertical-align: middle; }
.on-dark .pill { background: rgba(61,220,132,.14); color: var(--accent-bright); }

/* Omnia module sections */
.module { scroll-margin-top: 90px; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
@media (max-width: 860px) { .module { grid-template-columns: 1fr; } }
.module h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding-top: 14px; border-top: 1px solid var(--line); }
.feature-list strong { display: block; font-weight: 600; margin-bottom: 4px; }
.feature-list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* In-page jump links (Omnia) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .92rem; }
.jump a:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* Hero with the media on the right instead of behind the text (Media page) */
.hero-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split h1 { max-width: 11em; }
.hero-video video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) + 4px); background: var(--dark-2); }
.hero-video figcaption { color: var(--dark-muted); }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }
