:root {
  --bg: oklch(98.5% 0.005 250);
  --bg-elev: oklch(100% 0 0);
  --ink: oklch(22% 0.02 260);
  --ink-soft: oklch(45% 0.015 260);
  --ink-faint: oklch(62% 0.012 260);
  --line: oklch(90% 0.008 260);
  --line-strong: oklch(82% 0.01 260);
  --accent: oklch(58% 0.18 145);
  --accent-ink: oklch(22% 0.05 145);
  --accent-soft: oklch(94% 0.04 145);
  --warn: oklch(70% 0.16 70);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --shadow-1: 0 1px 0 oklch(0% 0 0 / 0.04), 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-2: 0 1px 0 oklch(0% 0 0 / 0.04), 0 12px 32px -16px oklch(20% 0.04 260 / 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: oklch(98.5% 0.005 250 / 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-name { font-size: 16px; }
.brand-suffix { color: var(--ink-faint); font-weight: 500; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg-elev);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 160ms var(--ease);
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-elev) !important;
  font-weight: 600;
}
.nav-cta:hover { background: oklch(15% 0.02 260); }

@media (max-width: 720px) {
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
}

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

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) var(--pad) clamp(48px, 8vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(58% 0.18 145 / 0.18);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  padding: 0 0.05em;
}

.lede {
  max-width: 60ch;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-elev);
}
.btn-primary:hover { background: oklch(14% 0.02 260); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats > div {
  padding: 4px 0;
}
.hero-stats dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Sections --------------------------------------------------------------- */

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--pad);
}

.section-head { margin-bottom: 44px; max-width: 60ch; }
.section-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Services --------------------------------------------------------------- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.service {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms var(--ease);
}
.service:hover { background: oklch(99% 0.005 250); }
.service-tag {
  display: inline-block;
  margin: 0 0 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .service { border-right: none; }
}

/* Process ---------------------------------------------------------------- */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 36px;
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.process-list h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.process-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

/* About ------------------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.about-copy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about-card {
  padding: 28px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.about-card h3 {
  margin: 0 0 18px;
  font-size: 13px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 500;
}
.about-card dl { margin: 0; display: grid; gap: 14px; }
.about-card dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.about-card dt {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}
.about-card dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
}

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

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  max-width: 760px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.optional { color: var(--ink-faint); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  font: inherit;
  color: var(--ink);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(58% 0.18 145 / 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--warn);
  box-shadow: 0 0 0 4px oklch(70% 0.16 70 / 0.18);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}
.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.form-note a { color: var(--accent-ink); text-underline-offset: 3px; }

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Terms ------------------------------------------------------------------ */

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 36px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}
.terms-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.terms-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.terms-grid a { color: var(--accent-ink); }

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

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
.foot-copy { margin: 0; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }

/* Reduce motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
