/* ============================================================
   NUL Systems / Delphi Insights — site stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --navy:   #1F2A44;
  --navy-2: #16203a;
  --blue:   #2E5C8A;
  --blue-h: #24496e;
  --sand:   #F3EEE6;
  --light:  #EDF1F6;
  --ink:    #2A2A2A;
  --grey:   #5A5A5A;
  --line:   #D8DEE7;
  --white:  #ffffff;
  --serif:  'Hanken Grotesk', system-ui, sans-serif;
  --sans:   'Hanken Grotesk', system-ui, sans-serif;
  --maxw:   1180px;
  --pad:    clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--light { background: var(--light); }
.section--sand  { background: var(--sand); }
.section--navy  { background: var(--navy); color: #e8ecf3; }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.section--navy .eyebrow { color: #8fb3d6; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--grey); line-height: 1.6; }
.section--navy p.lead { color: #b9c3d4; }
.body-copy p { margin-bottom: 1.1rem; max-width: 60ch; }
.body-copy p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .98rem; padding: .9rem 1.7rem; border-radius: 6px;
  background: var(--blue); color: #fff; border: 1.5px solid var(--blue);
  transition: background .2s ease, transform .12s ease;
  cursor: pointer;
}
.btn:hover { background: var(--blue-h); border-color: var(--blue-h); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .85rem; padding-bottom: .85rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand a { color: #fff; display: flex; flex-direction: column; gap: 4px; }
.brand .brand-logo { display: block; height: 48px; width: auto; }
.brand .mark { font-family: var(--sans); font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.brand .sub  { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8fb3d6; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: #cfd6e2; font-size: .93rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { padding: .62rem 1.15rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% -8%, rgba(46,92,138,.42), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(4rem, 11vw, 8rem); padding-bottom: clamp(4rem, 11vw, 8rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lead { margin-top: 1.5rem; max-width: 54ch; }
.hero .btn { margin-top: 2.2rem; }
.hero--page .wrap { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }

/* ---------- generic blocks ---------- */
.measure { max-width: 64ch; }
.stack-gap > * + * { margin-top: 1.1rem; }

/* ---------- capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.9rem 1.6rem; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,42,68,.1); }
.card .num { font-family: var(--sans); font-size: .9rem; color: var(--blue); font-weight: 700; letter-spacing: .05em; }
.card h3 { margin: .55rem 0 .6rem; }
.card p { color: var(--grey); font-size: .97rem; margin: 0; }

/* ---------- layer blocks ---------- */
.layers { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.layer {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.9rem 2rem; display: grid; grid-template-columns: 92px 1fr; gap: 1.4rem; align-items: start;
}
.layer .lnum {
  font-family: var(--sans); font-size: 2.2rem; font-weight: 700;
  color: var(--blue); line-height: 1; letter-spacing: -.02em;
}
.layer h3 { margin-bottom: .5rem; }
.layer p { color: var(--grey); margin: 0; max-width: 64ch; }

/* ---------- comparison table ---------- */
.cmp { margin-top: 2.4rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cmp th, .cmp td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--navy); color: #fff; font-family: var(--sans); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { background: var(--light); font-weight: 600; color: var(--navy); width: 26%; }
.cmp td:last-child { color: var(--navy); font-weight: 500; }

/* ---------- two-column with photo ---------- */
.split { display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.split--photo-left  { grid-template-columns: 380px 1fr; }
.split--photo-right { grid-template-columns: 1fr 420px; }
.portrait {
  border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(31,42,68,.16);
  background: var(--sand);
}
.portrait img { width: 100%; height: auto; }

/* ---------- industry / buyer chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font-size: .9rem; font-weight: 500; color: var(--navy);
}
.section--light .chip { background: #fff; }

/* ---------- cta band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto; }
.cta-band .btn { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #aeb7c7; padding: 3.2rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: #aeb7c7; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand .mark { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.footer-brand .footer-logo { display: block; height: 44px; width: auto; margin-bottom: .3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: #8b94a6;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: .5rem var(--pad) 1.2rem; display: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 0; width: 100%; }
  .nav-links .nav-cta { margin-top: .5rem; }
  .cards { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: .5rem; }
  .layer .lnum { font-size: 2rem; }
  .split--photo-left, .split--photo-right { grid-template-columns: 1fr; }
  .split--photo-left .portrait, .split--photo-right .portrait { max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cmp { overflow-x: auto; }
}

/* ---------- legal pages ---------- */
.legal-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); color: #e8ecf3; }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-hero .eyebrow { color: #8fb3d6; }
.legal-hero .meta { margin-top: 1.1rem; color: #b9c3d4; font-size: .92rem; letter-spacing: .02em; }
.legal-hero .meta strong { color: #e8ecf3; font-weight: 600; }

.legal-body { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background: var(--white); }
.legal-body .wrap { max-width: 780px; }
.legal-body .callout {
  border-left: 3px solid var(--blue);
  background: var(--light);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0 2rem;
  font-size: .98rem;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}
.legal-body .callout strong { color: var(--navy); }
.legal-body h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  color: var(--navy);
  margin: 2.4rem 0 .8rem;
  padding-top: .4rem;
  letter-spacing: -.01em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: .01em;
  margin: 1.6rem 0 .5rem;
  text-transform: none;
}
.legal-body p { margin-bottom: 1rem; color: var(--ink); }
.legal-body ul { margin: .4rem 0 1.2rem 1.3rem; }
.legal-body ul li { margin-bottom: .4rem; padding-left: .2rem; }
.legal-body strong { color: var(--navy); font-weight: 600; }
.legal-body a { border-bottom: 1px solid var(--line); }
.legal-body a:hover { border-bottom-color: var(--blue); }
.legal-body .end-rule {
  margin: 2.6rem 0 0;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  font-style: italic;
}
.legal-body .contact-block {
  background: var(--sand);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  border-radius: 4px;
}
.legal-body .contact-block p { margin-bottom: .35rem; }
.legal-body .contact-block p:last-child { margin-bottom: 0; }
