:root {
  --ink: oklch(18% .06 265);
  --navy: oklch(30% .08 260);
  --steel: oklch(56% .1 250);
  --mist: oklch(96% .005 250);
  --gold: oklch(78% .13 80);
  --background: oklch(99% .003 250);
  --foreground: var(--ink);
  --card: #fff;
  --secondary: var(--mist);
  --muted: oklch(45% .03 255);
  --border: oklch(90% .015 250);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.01em;
}

.brand span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.login {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease;
}

.nav a:hover,
.login:hover {
  color: var(--foreground);
}

.menu-link {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.menu-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 500;
  line-height: 1;
  transition: border-color .25s ease, background .25s ease, color .25s ease, filter .25s ease;
}

.btn-small {
  padding: 11px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--mist);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.btn:disabled {
  cursor: wait;
  opacity: .7;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-ghost.light {
  border-color: color-mix(in oklab, var(--mist) 30%, transparent);
  color: var(--mist);
}

.btn-ghost.light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
}

.hero-overlay {
  background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--ink) 85%, transparent), transparent);
}

.hero-content {
  padding: 96px 0 144px;
}

.hero-copy {
  max-width: 768px;
}

.eyebrow {
  margin: 0;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.gold,
.hero h1 em,
.dark h2 em {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
}

.hero h1 {
  margin-top: 20px;
  max-width: 860px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}

em {
  font-style: italic;
}

.lead {
  max-width: 672px;
  margin: 24px 0 0;
  color: color-mix(in oklab, var(--mist) 80%, transparent);
  font-size: 18px;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in oklab, var(--mist) 20%, transparent);
  padding: 8px 12px;
  color: color-mix(in oklab, var(--mist) 80%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chips svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--gold);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 672px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid color-mix(in oklab, var(--mist) 15%, transparent);
}

.stats dt {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
}

.stats dd {
  margin: 4px 0 0;
  color: color-mix(in oklab, var(--mist) 70%, transparent);
  font-size: 14px;
}

.section {
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
}

.section h2 {
  max-width: 650px;
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

.gold-rule {
  width: 48px;
  height: 2px;
  margin-top: 24px;
  background: var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card,
.client-grid article {
  background: var(--card);
}

.card {
  min-height: 220px;
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color .2s ease;
}

.card:hover {
  border-color: var(--foreground);
}

.icon {
  width: 24px;
  height: 24px;
  color: var(--steel);
}

.icon.small {
  width: 22px;
  height: 22px;
}

.card h3,
.client-grid h3,
.steps h3 {
  margin-top: 20px;
  font-size: 20px;
}

.card p,
.client-grid p,
.steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.muted {
  background: var(--secondary);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  font-size: 14px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid var(--border);
  background: var(--border);
}

.client-grid article {
  padding: 28px;
}

.process h2 {
  max-width: 690px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0;
  margin: 56px 0 0;
  list-style: none;
}

.steps span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
}

.steps hr {
  height: 1px;
  margin: 12px 0 0;
  border: 0;
  background: var(--border);
}

.dark {
  background: var(--ink);
  color: var(--mist);
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.dark-copy {
  max-width: 450px;
  margin: 20px 0 32px;
  color: color-mix(in oklab, var(--mist) 75%, transparent);
  line-height: 1.6;
}

.checks {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checks li {
  position: relative;
  border-top: 1px solid color-mix(in oklab, var(--mist) 15%, transparent);
  padding: 20px 0 0 32px;
  color: color-mix(in oklab, var(--mist) 90%, transparent);
  line-height: 1.5;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.cta {
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 0;
}

.cta h2 {
  max-width: 680px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
}

.footer {
  margin-top: 96px;
  background: var(--ink);
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0;
}

.footer-brand {
  font-size: 26px;
}

.footer p,
.footer li {
  color: color-mix(in oklab, var(--mist) 75%, transparent);
  font-size: 14px;
  line-height: 1.6;
}

.footer-about p {
  max-width: 470px;
  margin: 16px 0 0;
}

.footer-title {
  margin-bottom: 12px;
}

.footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer a:hover {
  color: var(--mist);
}

.footer-bottom {
  border-top: 1px solid color-mix(in oklab, var(--mist) 10%, transparent);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: color-mix(in oklab, var(--mist) 50%, transparent);
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
}

.legal-main {
  padding: 96px 0;
}

.legal-card {
  max-width: 920px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: clamp(28px, 5vw, 56px);
}

.legal-card h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.legal-card h2 {
  margin-top: 36px;
  font-size: clamp(24px, 3vw, 32px);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
}

.legal-back {
  display: inline-flex;
  margin-top: 32px;
  color: var(--foreground);
  font-weight: 500;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid color-mix(in oklab, var(--gold) 35%, var(--border));
  background: var(--background);
  box-shadow: 0 28px 90px color-mix(in oklab, var(--ink) 35%, transparent);
  padding: 36px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 28px;
  line-height: 1;
}

.modal-panel h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
}

.modal-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  color: var(--muted);
  font-size: 13px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 22%, transparent);
}

.lead-form textarea {
  resize: vertical;
}

.lead-form .consent-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
}

.lead-form .consent-label input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin-top: 1px;
  accent-color: var(--ink);
}

.lead-form .consent-label span {
  font-size: 12px;
  line-height: 1.45;
}

.lead-form .consent-label a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-form .btn {
  width: 100%;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .nav,
  .header-actions {
    display: none;
  }

  .menu-link {
    display: block;
  }

  .hero-content {
    padding: 72px 0 96px;
  }

  .split,
  .dark-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .client-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .stats,
  .client-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 18px;
  }

  .actions,
  .actions .btn,
  .cta .btn {
    width: 100%;
  }

  .footer-bottom .container {
    flex-direction: column;
  }

  .modal {
    padding: 16px;
  }

  .modal-panel {
    padding: 28px 20px 22px;
  }
}
