/* ==========================================================================
   NEXUSSTATE LLC — corporate site stylesheet
   Palette: deep navy / warm off-white / muted gold accent
   No external dependencies. System font stacks with graceful fallbacks.
   ========================================================================== */

:root {
  --ink:        #0a1a2b;
  --ink-2:      #12293f;
  --ink-3:      #1c3a55;
  --navy-line:  rgba(255, 255, 255, 0.14);

  --paper:      #ffffff;
  --paper-2:    #f7f6f3;
  --paper-3:    #efede8;

  --text:       #16212b;
  --muted:      #5c6b78;
  --muted-2:    #8a97a2;
  --line:       #e2dfd9;

  --accent:     #a8813f;
  --accent-2:   #c9a55f;

  --container:  1180px;
  --radius:     3px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #e9edf1; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.section--dark .eyebrow { color: var(--accent-2); }

h1 { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 62px); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.005em; }

.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #b9c6d2; }
.measure { max-width: 68ch; }
.measure-narrow { max-width: 56ch; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.arrow-link {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.arrow-link:hover { color: var(--accent); }
.section--dark .arrow-link { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.wordmark .mark { font-size: 19px; letter-spacing: .16em; font-weight: 700; }
.wordmark .mark span { font-weight: 300; }
.wordmark .suffix { font-size: 10px; letter-spacing: .18em; color: var(--muted-2); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px; text-decoration: none; color: var(--muted);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn { padding: 11px 20px; font-size: 13px; }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; border-bottom-color: transparent; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px; cursor: pointer;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0a1a2b 0%, #102a41 55%, #0d2135 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 72% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 118px 0 104px; max-width: 860px; }
.hero h1 { color: #fff; }
.hero .lead { color: #c2cedb; margin-top: 26px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-line);
}
.hero-meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.hero-meta dd { margin: 0; font-size: 15px; color: #dbe4ec; }

.page-head { background: var(--ink); color: #fff; padding: 82px 0 74px; }
.page-head h1 { color: #fff; font-size: clamp(34px, 4.4vw, 50px); }
.page-head .lead { color: #b9c6d2; margin-top: 22px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px;
}
.section--paper2 .card { background: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .num {
  display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}

.card--dark { background: rgba(255,255,255,.04); border-color: var(--navy-line); }
.card--dark p { color: #b3c0cd; }

/* pillar list */
.pillars { border-top: 1px solid var(--line); }
.pillar {
  display: grid; grid-template-columns: 58px 1fr; gap: 26px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.pillar .idx { font-family: var(--serif); font-size: 15px; color: var(--accent); padding-top: 3px; letter-spacing: .08em; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; font-size: 16px; max-width: 74ch; }
.section--dark .pillars, .section--dark .pillar { border-color: var(--navy-line); }
.section--dark .pillar p { color: #b3c0cd; }

/* check list */
.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); font-size: 16px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 1px; background: var(--accent);
}
.section--dark .ticks li { color: #b9c6d2; }

/* fact table */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 17px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.facts th { width: 38%; font-weight: 600; color: var(--text); padding-right: 24px; }
.facts td { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .container { padding-top: 66px; padding-bottom: 66px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
input, select, textarea {
  font-family: inherit; font-size: 16px; color: var(--text);
  padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 148px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted-2); margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a9b7c4; padding: 68px 0 34px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer a { color: #a9b7c4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-word { color: #fff; font-size: 18px; letter-spacing: .16em; font-weight: 700; margin-bottom: 16px; }
.footer-word span { font-weight: 300; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--navy-line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #7f8f9d;
}
.disclaimer-strip { font-size: 12.5px; line-height: 1.7; color: #7f8f9d; margin-top: 26px; max-width: 92ch; }

/* ---------- misc ---------- */
.badge {
  display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px; color: var(--muted);
}
.section--dark .badge { border-color: var(--navy-line); color: #b9c6d2; }
.stack > * + * { margin-top: 18px; }

.notice {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 22px;
  color: var(--muted); font-size: 15.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .hero-inner { padding: 84px 0 72px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 28px 22px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 8px; }
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 4px; }
  .facts td { padding-top: 0; }
}
