/* NINOX Digital Systems — site styles */

:root {
  --ink: #0a0e1a;
  --ink-2: #131a2c;
  --ink-3: #1e273f;
  --violet: #7800fe;
  --violet-light: #a45cff;
  --paper: #ffffff;
  --paper-2: #f5f6f9;
  --rule: #dfe3ec;
  --rule-dark: #2a344e;
  --text: #1a2234;
  --text-muted: #5b6579;
  --text-on-dark: #c8cfdd;

  --font-display: Syne, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.site-header__logo { display: inline-flex; align-items: center; flex: none; }
.site-header__logo img { width: 132px; height: auto; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-on-dark);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
}
.nav a:hover { color: #fff; background: var(--ink-3); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--violet); }

.nav__cta {
  margin-left: 10px;
  background: var(--violet) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 11px 18px !important;
}
.nav__cta:hover { background: var(--violet-light) !important; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 20px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--rule-dark); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--violet-light); }
  .nav__cta { margin: 14px 0 0; text-align: center; border-bottom: 0 !important; border-radius: 4px; }
}

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}
.eyebrow--on-dark { color: var(--violet-light); }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}
.lede--on-dark { color: var(--text-on-dark); }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-light); color: #fff; }
.btn--ghost { border-color: var(--rule-dark); color: #fff; }
.btn--ghost:hover { border-color: var(--violet-light); color: #fff; background: var(--ink-2); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 0; }

.section { padding: clamp(60px, 7vw, 100px) 0; }
.section--tight { padding: clamp(44px, 5vw, 70px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--rule { border-top: 1px solid var(--rule); }

.section__head { max-width: 62ch; margin-bottom: clamp(36px, 4vw, 54px); }
.section__head p { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(64px, 8vw, 118px) 0 clamp(56px, 6vw, 86px);
  border-bottom: 1px solid var(--rule-dark);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 70% at 75% 25%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 25%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero__sub { max-width: 60ch; }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}
.trust-line span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--violet-light);
}

/* Interior page hero */
.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(50px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--rule-dark);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { margin-bottom: 0; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--violet-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 20px;
}

.card-grid--two { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--violet);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
}
a.card:hover { border-color: var(--violet); border-top-color: var(--violet); color: inherit; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 20px; }
.card__more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--violet);
}
a.card:hover .card__more { color: var(--ink); }

/* ---------- Numbered steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}

.steps li {
  padding: 28px 24px 30px 0;
  border-right: 1px solid var(--rule-dark);
  margin: 0;
}
.steps li:last-child { border-right: 0; }
.steps li:not(:first-child) { padding-left: 24px; }

.steps__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--violet-light);
  display: block;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { font-size: 0.93rem; margin: 0; }

@media (max-width: 720px) {
  .steps li { border-right: 0; border-bottom: 1px solid var(--rule-dark); padding-left: 0 !important; }
  .steps li:last-child { border-bottom: 0; }
}

/* ---------- Ordered method list (methodology page) ---------- */

.method {
  list-style: none;
  counter-reset: method;
  padding: 0;
  margin: 0;
}

.method > li {
  counter-increment: method;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px 24px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.method > li::before {
  content: counter(method, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--violet);
  line-height: 1.2;
}
.method h3 { margin-bottom: 10px; }
.method p:last-child, .method ul:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .method > li { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Point list (why NINOX) ---------- */

.points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.points li { margin: 0; padding-left: 20px; border-left: 3px solid var(--violet); }
.points h3 { font-size: 1.12rem; margin-bottom: 8px; }
.points p { margin: 0; font-size: 0.97rem; color: var(--text-muted); }
.section--dark .points p { color: var(--text-on-dark); }

/* ---------- Check list ---------- */

.checklist { list-style: none; padding: 0; margin: 0 0 1.1em; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--violet);
}

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.split--sidebar { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split--sidebar { grid-template-columns: 1fr; } }

/* ---------- Data / fact tables ---------- */

.fact-table { width: 100%; border-collapse: collapse; margin: 0 0 1.1em; font-size: 0.97rem; }
.fact-table th, .fact-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fact-table th { font-weight: 600; color: var(--text-muted); width: 36%; font-family: var(--font-body); }
.fact-table td { color: var(--ink); }
.fact-table code { font-family: var(--font-mono); font-size: 0.93em; }

.pending {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ---------- Federal snapshot (dark) ---------- */

.snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.snapshot div { background: var(--ink); padding: 24px 22px; }
.snapshot dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 8px;
}
.snapshot dd { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 600; }
.snapshot dd small { display: block; font-weight: 400; font-size: 0.86rem; color: var(--text-on-dark); margin-top: 4px; }

/* ---------- Callout ---------- */

.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--violet);
  padding: 24px 26px;
}
.callout :last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: 10px; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: var(--text-on-dark); padding: clamp(56px, 6vw, 84px) 0; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 54ch; }

/* ---------- Contact form ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.form .req { color: var(--violet); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); }
.form textarea { min-height: 150px; resize: vertical; }
.form__hint { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

.contact-direct { margin: 0; }
.contact-direct dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.contact-direct dd { margin: 0 0 18px; font-size: 1.02rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(48px, 5vw, 70px) 0 32px;
  font-size: 0.94rem;
}
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer address { font-style: normal; line-height: 1.7; }

.site-footer__bottom {
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.site-footer__bottom nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Prose (policy pages) ---------- */

.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }

.updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
