:root {
  --bg: oklch(98.5% 0.004 250);
  --surface: oklch(100% 0 0);
  --fg: oklch(25.6% 0.015 244.3);
  --muted: oklch(49% 0.018 248);
  --border: oklch(90.5% 0.008 250);
  --accent: oklch(69.0% 0.115 186.1);
  --brand-navy: oklch(29.3% 0.081 261.9);
  --brand-gold: oklch(72.8% 0.095 83.2);
  --brand-violet: oklch(66.4% 0.080 280.7);
  --status-info: oklch(80.3% 0.110 230.0);
  --status-danger: oklch(63.3% 0.158 22.7);
  --teal-soft: oklch(94% 0.035 186);
  --navy-soft: oklch(95% 0.018 262);
  --gold-soft: oklch(95% 0.035 83);
  --shadow: 0 22px 60px oklch(29.3% 0.081 261.9 / 0.11);
  --radius: 14px;
  --font-display: "Aptos Display", "Söhne", "Avenir Next", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(circle at 16% 4%, oklch(94% 0.036 186 / 0.72), transparent 28rem),
    linear-gradient(180deg, var(--bg), oklch(96.5% 0.006 250));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid oklch(100% 0 0 / 0.48);
  background: oklch(98.5% 0.004 250 / 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img { width: 38px; height: 38px; }

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: oklch(34% 0.02 248);
  font-size: 14px;
}

.nav-links a { padding-block: 8px; }
.nav-links a:hover { color: var(--brand-navy); }

.language {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--brand-navy);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.language:hover { border-color: var(--accent); }

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-navy);
  cursor: pointer;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

main { overflow: hidden; }

/* ─── Layout ─── */
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

/* ─── Hero ─── */
.hero {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-interior {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
}

h1, h2, h3 {
  margin: 0;
  color: var(--brand-navy);
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: pretty;
}

h1 { max-width: 12ch; font-size: clamp(48px, 8vw, 92px); }
h2 { max-width: 13ch; font-size: clamp(36px, 5vw, 62px); }
h3 { font-size: 23px; line-height: 1.18; }

.hero-interior h1 { font-size: clamp(40px, 5vw, 68px); }

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: oklch(37% 0.02 248);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ─── Buttons ─── */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--surface);
  color: var(--brand-navy);
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: oklch(78% 0.06 186);
}

.button.primary {
  border-color: transparent;
  background: var(--brand-navy);
  color: white;
  box-shadow: 0 14px 30px oklch(29.3% 0.081 261.9 / 0.22);
}

.button.primary:hover {
  background: color-mix(in oklch, var(--brand-navy), var(--accent) 22%);
}

/* ─── Proof pills ─── */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.proof-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: oklch(100% 0 0 / 0.72);
  color: var(--muted);
  font-size: 13px;
}

/* ─── Visual panel ─── */
.visual-panel {
  position: relative;
  min-height: 620px;
  border: 1px solid oklch(100% 0 0 / 0.6);
  border-radius: 32px;
  padding: 18px;
  background: linear-gradient(145deg, oklch(100% 0 0 / 0.64), oklch(93% 0.02 250 / 0.8));
  box-shadow: var(--shadow);
}

.hero-image {
  height: 330px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--brand-navy);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.mission-card {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 280px;
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: 24px;
  padding: 24px;
  background: oklch(100% 0 0 / 0.9);
  box-shadow: 0 24px 52px oklch(29.3% 0.081 261.9 / 0.14);
  backdrop-filter: blur(18px);
}

.mission-card .label,
.metric .label,
.service-card .label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-card p {
  margin: 12px 0 0;
  color: oklch(30% 0.02 248);
  font-size: 18px;
  line-height: 1.55;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

/* ─── Section heading ─── */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ─── Service cards ─── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.8) inset;
}

.service-card.featured {
  background: var(--brand-navy);
  color: white;
  box-shadow: var(--shadow);
}

.service-card.featured h3,
.service-card.featured .label { color: white; }

.service-card.featured p,
.service-card.featured li { color: oklch(88% 0.012 250); }

.service-card h3 { margin-top: 18px; }

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

.service-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 24px 0 0;
  color: oklch(39% 0.02 248);
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
}

.service-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card.featured li::before { background: var(--accent); }

/* ─── Workflow band ─── */
.workflow-band {
  background: var(--brand-navy);
  color: white;
}

.workflow-band .section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.workflow-band h2,
.workflow-band h3 { color: white; }

.workflow-band .eyebrow { color: var(--accent); }

.workflow-copy p {
  margin: 22px 0 0;
  color: oklch(86% 0.012 250);
  font-size: 18px;
}

.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tab-button {
  min-height: 44px;
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: oklch(90% 0.012 250);
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--brand-navy);
  font-weight: 800;
}

.workflow-demo {
  border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: 22px;
  background: oklch(22% 0.045 262);
  overflow: hidden;
  box-shadow: 0 24px 70px oklch(0% 0 0 / 0.24);
}

.demo-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
  color: oklch(76% 0.018 250);
  font-family: var(--font-mono);
  font-size: 12px;
}

.demo-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  padding: 20px;
}

.inbox-list,
.ai-output {
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: 16px;
  background: oklch(18% 0.04 262);
  padding: 16px;
}

.inbox-item {
  border-bottom: 1px solid oklch(100% 0 0 / 0.1);
  padding: 12px 0;
}

.inbox-item:first-child { padding-top: 0; }
.inbox-item:last-child { border-bottom: 0; padding-bottom: 0; }

.inbox-item strong {
  display: block;
  color: white;
  font-size: 14px;
}

.inbox-item span,
.ai-output p {
  color: oklch(75% 0.018 250);
  font-size: 13px;
}

.ai-output h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.output-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.output-line {
  border-radius: 12px;
  padding: 12px;
  background: oklch(100% 0 0 / 0.08);
  color: oklch(90% 0.012 250);
  font-size: 14px;
}

/* ─── Process grid ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-card {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  overflow: hidden;
}

.process-card::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.process-card h3 { font-size: 21px; }

.process-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ─── Trust section ─── */
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.trust-image {
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--brand-navy);
  box-shadow: var(--shadow);
}

.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-panel { display: grid; gap: 14px; }

.trust-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}

.trust-item strong {
  display: block;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.trust-item span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

/* ─── CTA / Contact ─── */
.cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 30px;
  border: 1px solid oklch(100% 0 0 / 0.55);
  border-radius: 30px;
  padding: 38px;
  background:
    linear-gradient(145deg, var(--brand-navy), oklch(23% 0.052 270)),
    var(--brand-navy);
  color: white;
  box-shadow: var(--shadow);
}

.cta h2 { max-width: 12ch; color: white; }

.cta p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: oklch(88% 0.012 250);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 20px;
  padding: 18px;
  background: oklch(100% 0 0 / 0.08);
}

.field { display: grid; gap: 6px; }

.field label {
  color: oklch(88% 0.012 250);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: 12px;
  padding: 12px 13px;
  background: oklch(100% 0 0 / 0.96);
  color: var(--fg);
  outline: none;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(69% 0.115 186 / 0.22);
}

.form-status {
  min-height: 22px;
  color: oklch(90% 0.012 250);
  font-size: 13px;
}

.contact-form-status {
  min-height: 22px;
  font-size: 13px;
  border-radius: 8px;
  padding: 0;
}
.contact-form-status.is-pending {
  color: var(--muted);
}
.contact-form-status.is-error {
  color: oklch(50% 0.18 27);
  background: oklch(97% 0.02 27);
  border: 1px solid oklch(80% 0.08 27);
  padding: 10px 14px;
}
.contact-form-status.is-success {
  color: oklch(38% 0.12 150);
  background: oklch(97% 0.02 150);
  border: 1px solid oklch(80% 0.07 150);
  padding: 10px 14px;
}

.contact-recaptcha {
  margin-bottom: 4px;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--surface);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--brand-navy); }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open { display: flex; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; }

  .hero,
  .section-heading,
  .workflow-band .section,
  .trust-layout,
  .cta { grid-template-columns: 1fr; }

  .hero { padding-top: 48px; }
  .visual-panel { min-height: 560px; }

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

  .contact-shell { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav, .section, .hero, .cta, .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand-text span { display: none; }
  .section { padding: 68px 0; }

  h1 { max-width: 9ch; }

  .hero-actions, .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button { width: 100%; }

  .visual-panel {
    min-height: auto;
    padding: 12px;
    border-radius: 22px;
  }

  .hero-image {
    height: 220px;
    border-radius: 16px;
  }

  .mission-card {
    position: relative;
    inset: auto;
    margin: -34px 12px 0;
  }

  .metrics-row,
  .service-grid,
  .process-grid,
  .demo-body { grid-template-columns: 1fr; }

  .service-card,
  .process-card { min-height: auto; }

  .trust-image { min-height: 320px; }

  .cta {
    margin-bottom: 40px;
    padding: 24px;
    border-radius: 22px;
  }
}

/* ─── Contact page components ─── */
.page-panel {
  border: 1px solid oklch(100% 0 0 / 0.62);
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(145deg, oklch(100% 0 0 / 0.72), oklch(94% 0.02 250 / 0.82));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  align-content: start;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: oklch(100% 0 0 / 0.92);
  backdrop-filter: blur(14px);
}
.summary-card span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.summary-card strong {
  display: block;
  margin-top: 7px;
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.78fr);
  gap: 30px;
  align-items: start;
}
.contact-shell > div > .lead { font-size: 17px; margin-top: 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tip-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}
.tip-card .label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tip-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.2;
}
.tip-card p { margin: 0; color: var(--muted); font-size: 14px; }

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--brand-navy);
  cursor: pointer;
}

/* ─── Prose (legal / long-form content) ─── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.prose h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0 0 0.25rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 2.5rem 0 0.5rem; color: var(--brand-navy); }
.prose h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 2rem 0 0.4rem; }
.prose p { margin: 0 0 1rem; color: var(--muted); line-height: 1.75; }
.prose p:first-of-type { color: var(--fg); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose em { color: var(--muted); font-size: 0.9rem; }

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