:root {
  color-scheme: light dark;
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --accent: #8b5cf6;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --container: 1080px;
  --gutter: 24px;
  --focus: #f59e0b;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1222;
    --surface: #111827;
    --surface-muted: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: rgba(241, 245, 249, 0.1);
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --accent: #a78bfa;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

button,
input,
textarea {
  font: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: none;
}

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section--band {
  background: var(--surface-muted);
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

@media (max-width: 900px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Flat labels */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Secondary column in split heroes (no border) */
.hero-aside {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

/* Cards: flat — tint, no heavy border */
.card {
  border-radius: var(--radius);
  background: var(--surface-muted);
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: background-color 0.25s var(--ease-out);
}

.card:hover {
  background: color-mix(in srgb, var(--surface-muted) 85%, var(--primary) 15%);
}

.card-body {
  padding: 22px 24px;
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.card ul {
  margin: 12px 0 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.card li {
  margin: 6px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface-muted) 70%, var(--text) 30%);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0c1222;
  }

  .btn-primary:hover {
    color: #0c1222;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 12px 0 14px 0;
  font-weight: 800;
}

.h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  font-weight: 800;
}

.lead {
  font-size: 17px;
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  [data-reveal].is-inview {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s var(--ease-out);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

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

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .brand-img {
  width: 100px;
  height: auto;
  max-height: 36px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  border: none;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--surface-muted);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}

.nav-toggle:hover {
  background: color-mix(in srgb, var(--surface-muted) 80%, var(--text) 20%);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px;
    gap: 4px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px) 0;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  order: 0;
}

@media (max-width: 900px) {
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

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

/* Flat metrics — no boxes */
.metric-list {
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.metric-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.metric-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-list li>div {
  min-width: 0;
}

.metric-list strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.metric-list li>div>span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--primary);
  flex-shrink: 0;
}

/* Simple list section (replaces image tiles) */
.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s var(--ease-out);
}

.simple-list li:hover {
  padding-left: 6px;
}

.simple-list li:last-child {
  border-bottom: none;
}

.simple-list .sl-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.simple-list .sl-desc {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 640px) {
  .simple-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .simple-list .sl-desc {
    text-align: left;
  }
}

/* Process steps — flat, left accent only */
.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
}

.step h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* CTA band */
.cta-band {
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: clamp(28px, 5vw, 40px);
  transition: background-color 0.25s var(--ease-out);
}

.cta-band:hover {
  background: color-mix(in srgb, var(--surface-muted) 90%, var(--accent) 10%);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

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

.footer-grid a {
  color: var(--muted);
}

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

.fineprint {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Forms */
.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--surface-muted);
  color: var(--text);
  transition: box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
  background: var(--surface);
}

@media (prefers-color-scheme: dark) {

  .field input:focus,
  .field textarea:focus {
    background: var(--surface-muted);
  }
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

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

  .btn {
    transition: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 16px;
}

.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mt-lg {
  margin-top: 28px;
}