:root {
  --bg: #f6f7f9;
  --bg-alt: #eceff3;
  --surface: #ffffff;
  --text: #121a26;
  --muted: #536072;
  --line: #d9dee6;
  --accent: #0f7a6c;
  --accent-ink: #ffffff;
  --accent-soft: #dcf1ed;
  --hero-from: #0d1420;
  --hero-to: #12283a;
  --hero-text: #eef3f8;
  --hero-muted: #a9b7c8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111a;
    --bg-alt: #0f1722;
    --surface: #141e2b;
    --text: #e7edf4;
    --muted: #9aa8b9;
    --line: #233142;
    --accent: #3cc5b0;
    --accent-ink: #062520;
    --accent-soft: #123a35;
    --hero-from: #070b11;
    --hero-to: #0f2231;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--hero-from) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--hero-text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--hero-muted); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--hero-text); }
.site-header nav a.nav-cta { color: var(--hero-text); border: 1px solid rgba(255, 255, 255, .22); padding: 6px 14px; border-radius: 999px; }
.site-header nav a.nav-cta:hover { border-color: #5fd3bf; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(60, 197, 176, .18), transparent 60%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  padding: 96px 0 88px;
}
.hero .eyebrow { color: #5fd3bf; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; max-width: 18ch; margin-bottom: .45em; }
.hero .lede { color: var(--hero-muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero .btn-ghost { color: var(--hero-text); border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { border-color: #5fd3bf; }
.proof { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 0; color: var(--hero-muted); font-size: .95rem; }
.proof strong { color: var(--hero-text); }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .12s, background .12s, border-color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn-primary { background: #3cc5b0; color: #062520; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 7px 14px; font-size: .9rem; border-radius: 8px; }
.btn-large { padding: 14px 24px; font-size: 1.05rem; margin-top: 8px; word-break: break-all; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2, .contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); }
.meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-top: auto; }

.service .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.service .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 24px; margin: 6px 0; font-size: .94rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--text); color: var(--bg);
}
.steps h4 { font-size: 1rem; margin-bottom: .25em; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Products */
.product { display: flex; flex-direction: column; }
.product header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.product .links { display: flex; gap: 8px; margin-top: 14px; }
.more { margin-top: 48px; }
.more h3 { font-size: 1.1rem; }
.more ul { margin: 0; padding-left: 20px; color: var(--muted); }
.more li { margin: 6px 0; }
.more a { font-weight: 600; }

/* Work */
.work .card { display: flex; flex-direction: column; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.contact > div > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact { align-items: start; }
.hint-head { font-size: 1rem; margin-top: 1.4em; }
.alt-contact { margin-top: 1.2em; font-size: .95rem; }
.contact-form { display: grid; gap: 14px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .contact-form .row-2 { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form [aria-invalid="true"] { border-color: #d64545; }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: .6; cursor: progress; transform: none; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.form-status { margin: 0; font-size: .94rem; color: var(--muted); }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.error { color: #d64545; }

/* Footer */
.site-footer { background: var(--hero-from); color: var(--hero-muted); padding: 28px 0; font-size: .92rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--hero-muted); text-decoration: none; }
.foot a:hover { color: var(--hero-text); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--muted); }

/* Small screens */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 60px; }
  .section { padding: 64px 0; }
  .br-wide { display: none; }
}
