:root {
  --bg: #FAFAF7;
  --bg-tint: #F3F3EF;
  --card: #FFFFFF;
  --text: #15151A;
  --muted: #5C5C66;
  --border: #E4E4E0;
  --accent: #0F766E;
  --accent-hover: #0B5E58;
  --accent-text: #FFFFFF;
  --chip: #F0F0EB;
  --radius: 12px;
  --section: 120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114;
    --bg-tint: #17171B;
    --card: #1B1B20;
    --text: #EDEDEA;
    --muted: #A1A1AA;
    --border: #2A2A30;
    --accent: #2DD4BF;
    --accent-hover: #5EEAD4;
    --accent-text: #0B1F1D;
    --chip: #232329;
  }
}

*, *::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-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 40px; max-width: 22ch; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(1120px + 40px); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; max-width: calc(1120px + 64px); } }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.center h2 { margin-left: auto; margin-right: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 650; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; font-size: 16px; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (min-width: 820px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang button {
  font: 500 12px var(--mono); padding: 6px 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-text);
  font-weight: 550; font-size: 16px; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 1px solid var(--accent);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted); }
.btn-small { padding: 7px 12px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; }
@media (min-width: 560px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: var(--section) 0; } }
.label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 900px) { .hero { padding: 104px 0 var(--section); } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 64px; } }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; max-width: 16ch; }
.lead { font-size: 1.1em; color: var(--muted); margin-top: 24px; max-width: 58ch; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 13px/1 var(--mono); padding: 7px 10px; border-radius: 6px;
  background: var(--chip); border: 1px solid var(--border); white-space: nowrap;
}
.chips-sm li { font-size: 12px; padding: 5px 8px; }
.stack-card .label { color: var(--muted); }
.avail { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); flex: none; }

/* Work */
.work-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .work-list { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.work { padding: 0; transition: border-color .15s; }
.work:hover { border-color: var(--muted); }
.work summary { list-style: none; cursor: pointer; padding: 28px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); }
.work summary::-webkit-details-marker { display: none; }
.work-meta { font-size: 12px; color: var(--muted); }
.work-title { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.more { font-size: 14px; color: var(--accent); font-weight: 550; margin-top: 4px; }
.more::after { content: " +"; }
.work[open] .more::after { content: " −"; }
.work-detail { margin: 0; padding: 0 28px 28px; border-top: 1px solid var(--border); padding-top: 20px; font-size: 15px; }
.work-detail dt { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 14px; }
.work-detail dt:first-child { margin-top: 0; }
.work-detail dd { margin: 4px 0 0; }
.work-detail dd.mono { font-size: 14px; }
.also { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.05em; line-height: 1.6; }
.quote figcaption { display: flex; flex-direction: column; font-size: 15px; }
.quote figcaption span { color: var(--muted); }

/* Services */
.service { display: flex; flex-direction: column; gap: 4px; }
.service h3 { font-size: 22px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.service p { color: var(--muted); }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid currentColor; padding: 3px 8px; border-radius: 999px; letter-spacing: 0; }
.badges { margin: 4px 0 20px; }
.badges li { color: var(--accent); }
.price { color: var(--text) !important; font-size: 15px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.price:empty { display: none; }
.example { margin: 0; font-size: 15px; }
.link { color: var(--accent); text-decoration: none; font-weight: 550; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Steps */
.steps { display: grid; gap: 32px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--border); padding-top: 20px; }
.num { display: block; font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Why */
.why { display: grid; gap: 32px; }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .why { grid-template-columns: repeat(5, 1fr); gap: 28px; } }
.why svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--muted); font-size: 16px; }

/* About */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 280px 1fr; gap: 64px; } }
.photo, .about img {
  width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; border-radius: 24px; object-fit: cover; object-position: top;
  background: var(--chip); border: 1px solid var(--border);
  display: grid; place-items: center; font: 600 56px var(--font); color: var(--muted); letter-spacing: -0.03em;
}
.about h2 { margin-bottom: 20px; }
.about p { max-width: 62ch; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 550; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 20px var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Final CTA */
.final { border-top: 1px solid var(--border); }
.final h2 { max-width: 20ch; margin-bottom: 0; font-size: clamp(30px, 4.5vw, 48px); }
.final .lead { margin-left: auto; margin-right: auto; }
.email-line { color: var(--muted); font-size: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .mono { font-size: 13px; }

/* Header on very small screens */
@media (max-width: 380px) {
  .brand { font-size: 15px; }
  .btn-small { padding: 7px 10px; font-size: 13px; }
}

/* Fade-in (only with JS and when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
.stack-card .chips + .label { margin-top: 20px; }
.quote-src { margin-top: 10px; font-size: 14px; align-self: flex-start; }
.quote figcaption .quote-src span { color: inherit; }
[data-upgrade-price] { white-space: pre-line; line-height: 1.7; }

/* Clients + numbers band */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; }
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0 0 28px; }
.clients .label { margin: 0; }
.client-names { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.client-names small { font-weight: 400; color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.stats span { font-size: 14px; color: var(--muted); }
.client-link { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
.client-link:hover { text-decoration-color: currentColor; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent, currentColor); border-bottom: 2px solid var(--accent, currentColor); transform: rotate(-45deg); }
