/* =============================================================================
   Nexalytixs — nexalytixs.com
   Dependency-free stylesheet. No build step, no framework.
   ============================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink-000: #08090b;
  --ink-050: #0d0f13;
  --ink-100: #14171d;
  --ink-200: #1c2028;
  --ink-300: #272c36;
  --ink-400: #3a414f;

  --fog-100: #6f7684;
  --fog-200: #9aa1ae;
  --fog-300: #c4c9d2;
  --paper:   #eef0f4;

  --signal:      #c3f53c;
  --signal-dim:  rgba(195, 245, 60, 0.14);
  --signal-line: rgba(195, 245, 60, 0.32);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Fluid type — scales with viewport, no breakpoint jumps. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.28rem + 1.1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.55rem + 2.2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.6rem + 5vw, 5.4rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
  --radius: 3px;

  --rule: 1px solid var(--ink-300);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--ink-000);
  color: var(--fog-300);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection { background: var(--signal); color: var(--ink-000); }

/* ---------- Layout primitives ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), 1240px);
  margin-inline: auto;
}

.band { padding-block: clamp(4.5rem, 10vw, 9rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band + .band { border-top: var(--rule); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--signal);
  flex: none;
}

h1, h2, h3, h4 {
  color: var(--paper);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em; }

p { text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--fog-200); max-width: 52ch; line-height: 1.5; }
.prose { max-width: var(--measure); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--signal); color: var(--ink-000); }
.btn--primary:hover { background: var(--paper); }

.btn--ghost { border: 1px solid var(--ink-400); color: var(--paper); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--signal-dim);
  border-bottom: 1px solid var(--signal-line);
  font-size: var(--step--1);
  text-align: center;
  padding-block: 0.6rem;
}
.announce a { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--paper); }
.announce a:hover { color: var(--signal); }
.announce__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid var(--signal-line);
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--rule);
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead { background: var(--ink-000); }
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 66px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.brand__x { color: var(--signal); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: var(--step--1);
  color: var(--fog-200);
  transition: color 0.16s ease;
}
.nav__link:hover { color: var(--paper); }

.masthead__actions { display: flex; align-items: center; gap: 1.1rem; }

.lang {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink-300);
  border-radius: 2px;
  overflow: hidden;
}
.lang a { padding: 0.28rem 0.5rem; color: var(--fog-100); transition: all 0.16s ease; }
.lang a:hover { color: var(--paper); }
.lang a[aria-current="true"] { background: var(--ink-200); color: var(--signal); }

.burger { display: none; padding: 0.4rem; color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

/* Engineering-drawing grid — subtle, fades out rather than tiling to the edge. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 65% at 22% 18%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 22% 18%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { margin-block: 1.6rem 1.75rem; }
.hero h1 em {
  font-style: normal;
  color: var(--signal);
  /* Underline sits below the baseline without affecting line box height. */
  box-shadow: inset 0 -0.09em 0 var(--signal-line);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: var(--rule);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fog-100);
}
.hero__meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}

/* ---------- Console (hero visual) ---------- */
.console {
  border: var(--rule);
  border-radius: 6px;
  background: linear-gradient(168deg, var(--ink-100), var(--ink-050));
  box-shadow: 0 32px 70px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-bottom: var(--rule);
  background: rgba(0, 0, 0, 0.28);
}
.console__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-400); }
.console__path {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fog-100);
}

.console__body { padding: 1.4rem; display: grid; gap: 1rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  background: rgba(0, 0, 0, 0.22);
}
.stat__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog-100);
}
.stat__v {
  font-size: var(--step-2);
  color: var(--paper);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 0.2rem;
}
.stat__v--signal { color: var(--signal); }

.feed { display: grid; gap: 0.5rem; }
.feed__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: var(--rule);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
}
.feed__pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); flex: none;
}
.feed__when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fog-100);
  white-space: nowrap;
}

/* ---------- Marquee / trust strip ---------- */
.strip {
  border-block: var(--rule);
  padding-block: 1.5rem;
  background: var(--ink-050);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--fog-100);
}
.strip__label { color: var(--signal); text-transform: uppercase; letter-spacing: 0.15em; }

/* ---------- Section heading ---------- */
.head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head h2 { margin-block: 1.1rem 1.1rem; }
.head p { color: var(--fog-200); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Capability grid (deliberately uneven) ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--ink-300);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.cap {
  grid-column: span 2;
  background: var(--ink-000);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 210px;
  transition: background-color 0.2s ease;
}
.cap:hover { background: var(--ink-050); }

/* First two run wider — breaks the equal-card default. */
.cap--wide { grid-column: span 3; }

.cap__no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--signal);
}
.cap h3 { margin-bottom: 0.15rem; }
.cap p { font-size: 0.92rem; color: var(--fog-200); }
.cap__tags {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--fog-100);
  border: 1px solid var(--ink-300);
  border-radius: 2px;
  padding: 0.18rem 0.45rem;
}

/* ---------- Product feature ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.product__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--signal-line);
  background: var(--signal-dim);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.product h2 { margin-block: 1.4rem 1.25rem; }

.checks { display: grid; gap: 0.85rem; margin-block: 1.75rem; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; }
.check__mark { color: var(--signal); flex: none; margin-top: 0.15rem; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--ink-300);
  border-block: var(--rule);
}
.step {
  background: var(--ink-000);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: background-color 0.2s ease;
}
.step:hover { background: var(--ink-050); }
.step__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.88rem; color: var(--fog-100); }

/* ---------- Roster ---------- */
/* Fixed 3 columns so the six roles resolve to a clean 3x2 with no orphan cell. */
.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-300);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.role {
  background: var(--ink-000);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}
.role:hover { background: var(--ink-050); }
.role__k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--signal);
}
.role h3 { font-size: 1rem; }
.role p { font-size: 0.86rem; color: var(--fog-100); }

/* ---------- Agnostic pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.pillar { border-top: 2px solid var(--signal); padding-top: 1.1rem; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.9rem; color: var(--fog-200); }

/* ---------- Regions ---------- */
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--ink-300);
  border-block: var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.region {
  background: var(--ink-000);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  text-align: center;
}
.region__k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-100);
  margin-bottom: 0.4rem;
}
.region__v { color: var(--paper); font-size: 1.02rem; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact h2 { margin-block: 1.1rem 1.25rem; }
.lede--sm { font-size: var(--step-0); }
.form--spaced { margin-top: 2rem; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog-100);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--ink-050);
  border: var(--rule);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--ink-100);
}
.field textarea { resize: vertical; min-height: 118px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form__note { font-size: 0.8rem; color: var(--fog-100); }

.form__status { font-size: 0.9rem; padding: 0.75rem 0; }
.form__status[data-state="ok"] { color: var(--signal); }
.form__status[data-state="error"] { color: #ff8f8f; }

/* Honeypot — hidden from humans, visible to naive bots. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact__aside { display: grid; gap: 1.75rem; }
.detail { border-left: 2px solid var(--ink-300); padding-left: 1.1rem; }
.detail__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fog-100);
  margin-bottom: 0.3rem;
}
.detail__v { color: var(--paper); }
.detail__v a:hover { color: var(--signal); }

/* ---------- Footer ---------- */
.foot { border-top: var(--rule); background: var(--ink-050); }
.foot__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.foot__blurb { color: var(--fog-100); font-size: 0.92rem; max-width: 38ch; margin-top: 1rem; }
.foot h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-100);
  margin-bottom: 1rem;
  font-weight: 400;
}
.foot ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.foot li a { font-size: 0.92rem; color: var(--fog-200); }
.foot li a:hover { color: var(--signal); }

.foot__legal {
  border-top: var(--rule);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--fog-100);
}
.foot__reg { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid,
  .product,
  .contact { grid-template-columns: 1fr; }
  .cap, .cap--wide { grid-column: span 3; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: block; }
  .masthead__inner { height: 58px; }
  .cap, .cap--wide { grid-column: span 6; }
  .roster { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .field__row { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }

  .nav.is-open {
    display: flex;
    position: absolute;
    inset: 58px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-050);
    border-bottom: var(--rule);
    padding: 0.5rem 0;
  }
  .nav.is-open .nav__link {
    padding: 0.85rem var(--gutter);
    border-top: var(--rule);
  }
}

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --fog-100: #a9b0bd; --fog-200: #d2d7e0; --rule: 1px solid var(--ink-400); }
}

@media print {
  .masthead, .announce, .hero::before { display: none; }
  body { background: #fff; color: #000; }
}
