:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --blue: #2f6bff;
  --blue-ink: #1f4fd1;
  --blue-wash: #e9f0ff;
  --amber: #f2a71b;
  --amber-wash: #fff5e1;
  --ink: #101828;
  --muted: #5b6577;
  --line: #dfe4ec;
  --surface: #ffffff;
  --background: #f5f7fb;
  --ok: #1a7f5a;
  --ok-wash: #e4f6ee;
  --warn: #b45309;
  --warn-wash: #fff4e5;
  --radius: 6px;
  --pill: 999px;
  --font:
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-ink);
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header: a dark bar, the wordmark on the left, the menu and one pill button on the right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.button) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button)[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: var(--pill);
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

/* Buttons: pills. The one in the header is the only bright thing on the dark bar. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.button:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button.secondary:hover {
  background: var(--navy);
  color: #fff;
}

.site-header .button {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy-deep);
  padding: 0.6rem 1.15rem;
}

.site-header .button:hover {
  background: #ffbe45;
  border-color: #ffbe45;
  color: var(--navy-deep);
}

/* Hero: dark, left-aligned, with the figures that matter and a ledger beside them. */
.hero {
  background:
    linear-gradient(135deg, rgba(47, 107, 255, 0.22), transparent 55%),
    var(--navy-deep);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 1rem;
}

.hero .eyebrow {
  color: var(--amber);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 44rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-facts span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* The ledger beside the hero: a dark card, monospace figures, amber for what is due. */
.ledger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(6px);
}

.ledger-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ledger th,
.ledger td {
  text-align: left;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ledger th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.ledger td.num,
.ledger th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.ledger tr:last-child td {
  border-bottom: 0;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tag.due {
  background: var(--amber);
  color: var(--navy-deep);
}

/* Light tags on the inner pages' mock screens. */
.pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--blue-wash);
  color: var(--blue-ink);
}

.pill.warn {
  background: var(--amber-wash);
  color: var(--warn);
}

/* Mock screens on the inner pages: light, square, a navy header row. */
.screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  font-size: 0.9rem;
  overflow: hidden;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  background: var(--navy);
  color: #fff;
}

.screen-title .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.screen table {
  width: 100%;
  border-collapse: collapse;
}

.screen th,
.screen td {
  text-align: left;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.screen th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--background);
}

.screen tr:last-child td {
  border-bottom: 0;
}

.screen td.num,
.screen th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.6rem;
  padding-left: 1rem;
  border-left: 4px solid var(--blue);
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 2.25rem;
  padding-left: calc(1rem + 4px);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards: flat, square-cornered, a blue rule along the top. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card .icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Steps: a numbered timeline. */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  padding-bottom: 1.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.steps h3 {
  margin: 0.55rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Feature rows on the features page. */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row.flip > :first-child {
  order: 2;
}

.feature-row h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.feature-row p {
  color: var(--muted);
}

.feature-row ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-row li::marker {
  color: var(--blue);
}

/* Data tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

table.data tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--blue-wash);
  color: var(--blue-ink);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

pre {
  background: var(--navy-deep);
  color: #e6edf7;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Callouts */
.callout {
  border-left: 4px solid var(--blue);
  background: var(--blue-wash);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--blue-ink);
}

.callout.note {
  border-left-color: var(--amber);
  background: var(--amber-wash);
  color: var(--warn);
}

/* Closing band */
.cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-left: 8px solid var(--amber);
}

.cta h2 {
  color: #fff;
  border-left: 0;
  padding-left: 0;
  margin: 0 0 0.25rem;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta .button {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy-deep);
}

.cta .button:hover {
  background: #ffbe45;
  border-color: #ffbe45;
}

/* Inner page headers */
.page-header {
  padding: 4rem 0 2.5rem;
  background: var(--navy-deep);
  color: #fff;
}

.page-header .eyebrow {
  color: var(--amber);
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.78);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 3px solid var(--blue-wash);
  border-color: var(--blue);
}

.form .button {
  justify-self: start;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container,
  .grid.three,
  .grid.two,
  .feature-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .feature-row.flip > :first-child {
    order: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .button {
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
