/* ---------- Tokens ---------- */
:root {
<<<<<<< Updated upstream
  --bg: #0a0a0a;
  --fg: #f2f2ee;
  --muted: #8a8a84;
  --line: #1f1f1d;
  --accent: #8b5cf6;       /* Claude Code purple */
  --accent-ink: #f2f2ee;   /* legible on purple */
  --danger: #ff6b6b;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
=======
  --bg: #f4f1eb;
  --fg: #1a1a1a;
  --muted: #6b6560;
  --line: #d4d0c8;
  --accent: #d4380d;
  --accent-ink: #f4f1eb;
  --danger: #c0392b;
  --success: #2d7d46;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
>>>>>>> Stashed changes

  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 10vw, 96px);
  --radius: 0;
  --max: 1440px;

  /* animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 10px 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  text-decoration: none; z-index: 100; font-family: var(--sans);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--muted); font-family: var(--sans); }
.tag { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--sans); }
.tag::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--accent); margin-right: 4px; transform: translateY(1px);
  border-radius: 50%;
}

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad-x);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: inherit;
  min-width: 0; font-family: var(--sans);
}
.brand .mark {
  width: 22px; height: 22px; background: var(--accent); position: relative; flex-shrink: 0;
}
.brand .mark::after {
  content: ">_"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--accent-ink); font-size: 11px; font-weight: 800;
  font-family: var(--sans);
}
.brand .wm {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .wm em { font-style: normal; background: var(--accent); color: var(--accent-ink); padding: 2px 4px; font-weight: 800; }

nav .center {
  display: flex; gap: 28px; justify-self: center;
  font-size: 13px; font-family: var(--sans);
}
nav .center a { text-decoration: none; color: var(--muted); transition: color .15s ease; }
nav .center a:hover, nav .center a:focus-visible { color: var(--fg); }
nav .right { display: flex; gap: 12px; justify-self: end; align-items: center; }

.lang { display: inline-flex; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.lang button {
  background: transparent; color: var(--muted); border: 0; padding: 6px 10px;
  cursor: pointer; transition: color .15s ease, background .15s ease;
}
.lang button.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 0; }

.cta {
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  padding: 8px 14px; font: 700 12px/1 var(--sans);
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.cta.ghost { background: transparent; color: var(--fg); }
.cta:hover, .cta:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta:active { transform: translateY(1px); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  grid-auto-flow: row; gap: 4px; width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  padding: 0; place-items: center; grid-template-rows: repeat(3, 2px);
  justify-self: end;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--fg); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: var(--nav-h, 52px) 0 0 0;
  z-index: 45;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 24px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  text-decoration: none; color: var(--fg);
  font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer .drawer-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 60px); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.hero h1 {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(48px, 9vw, 148px); line-height: 0.95; margin: 16px 0 0;
}
.hero h1 .hl { background: var(--accent); color: var(--accent-ink); padding: 0 0.1em; display: inline-block; }
.hero h1 .strike { position: relative; color: var(--muted); }
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 50%;
  height: 0.09em; background: currentColor;
}
.hero .lede {
  color: var(--muted); font-size: clamp(14px, 1.6vw, 16px);
  max-width: 46ch; margin-top: 18px;
}
.hero .meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.hero .meta b {
  color: var(--accent); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  font-family: var(--sans); display: block;
}
.hero .meta span {
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--sans);
}
.hero .actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* hero stats — right column */
.hero-stats {
  display: grid; gap: clamp(16px, 2vw, 24px);
  padding-top: clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
}
.hero-stats b {
  color: var(--accent); font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  font-family: var(--sans);
}
.hero-stats span {
  color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* hero diff — inline code comparison, no terminal chrome */
.hero-diff {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.diff-header {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.diff-arrow { color: var(--accent); font-weight: 700; }
.diff-body { padding: 16px 18px 20px; font-family: var(--mono); font-size: 12px; }
.diff-body .l { display: flex; gap: 12px; padding: 2px 0; white-space: nowrap; }
.diff-body .l.spacer { margin-top: 14px; }
.diff-body .l .n { color: var(--line); width: 18px; text-align: right; flex-shrink: 0; }
.diff-body .c { color: var(--muted); }
.diff-body .del { color: var(--danger); background: rgba(212,56,13,0.08); }
.diff-body .add { color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }

/* ---------- Sections shared ---------- */
section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  font-family: var(--sans);
}
.eyebrow b { display: none; }
.h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.03em; line-height: 1.05;
  margin: 16px 0 0; max-width: 20ch;
}
.sub { color: var(--muted); max-width: 60ch; margin-top: 16px; }

/* what we do */
.what-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 72px); align-items: start;
}
.what-grid .actions { margin-top: 28px; }
.what-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.what-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.what-row:hover { background: rgba(0,0,0,0.02); }
.what-row .num { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.what-row h3 {
  font-family: var(--sans); font-size: clamp(16px, 1.8vw, 20px);
  margin: 0; font-weight: 700; letter-spacing: -0.01em;
}
.what-row p { color: var(--muted); margin: 6px 0 0; font-size: 14px; max-width: 58ch; }
.what-row .tags {
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  align-self: center; white-space: nowrap; font-family: var(--mono);
}

/* process */
.proc {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 48px; border-top: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  padding: 28px 24px 40px; min-height: 260px; position: relative;
  transition: background .15s ease;
}
.step:hover { background: rgba(0,0,0,0.02); }
.step:last-child { border-right: 0; }
.step .no {
  font-size: clamp(14px, 1.5vw, 16px); font-weight: 700;
  font-family: var(--sans); color: var(--line); letter-spacing: -0.01em;
  text-transform: uppercase;
}
.step.active .no { color: var(--accent); }
.step h4 { margin: 6px 0 10px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }
.step .diff {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
}
.step .diff .a { color: var(--accent); font-weight: 600; }
.step .diff .d { color: var(--danger); }

/* services */
.svc {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 48px; border: 1px solid var(--line);
}
.svc > article {
  padding: 28px; border-right: 1px solid var(--line); min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
  transition: background .15s ease;
}
.svc > article:hover { background: rgba(0,0,0,0.02); }
.svc > article:last-child { border-right: 0; }
.svc h4 {
  font-family: var(--sans); font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em; margin: 16px 0 12px; font-weight: 700;
}
.svc p { color: var(--muted); font-size: 13px; margin: 0; }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 12px; color: var(--muted); font-family: var(--sans); }
.svc ul li { padding: 6px 0; border-top: 1px dashed var(--line); }
.svc ul li::before { content: "+ "; color: var(--accent); font-weight: 700; }
.svc .price {
  font-family: var(--sans); color: var(--accent); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 18px; font-weight: 600;
}

/* cases */
.cases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.case {
  border: 1px solid var(--line); padding: 20px; position: relative; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.case:hover { border-color: var(--accent); transform: translateY(-2px); }
.case:first-child {
  grid-column: 1 / 3;
  min-height: 360px;
}
.case:first-child .case-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
}
.case .stack { display: flex; gap: 6px; flex-wrap: wrap; }
.case .stack span {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--line); padding: 2px 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.case .stack span.to { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.case h4 { font-family: var(--sans); font-size: 16px; margin: 18px 0 6px; font-weight: 700; }
.case p { color: var(--muted); font-size: 13px; margin: 0; }
.case .stat {
  font-family: var(--sans); font-size: clamp(36px, 4vw, 44px);
  letter-spacing: -0.03em; line-height: 1; color: var(--accent);
}
.case .stat small {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 6px;
}

/* marks */
.marks-eyebrow { margin-top: clamp(48px, 8vw, 72px); }
.marks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.mark-card {
  border: 1px solid var(--line); padding: 28px;
  display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center;
}
.mark-card .sq { aspect-ratio: 1/1; width: 100%; }
.mark-card h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 16px; }
.mark-card p { color: var(--muted); font-size: 13px; margin: 0; }
.mark-card .meta-line {
  font-size: 11px; color: var(--muted); margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.08em; word-break: break-all;
}

/* CTA */
.cta-section { padding: clamp(72px, 12vw, 120px) 0; border-top: 1px solid var(--line); }
.cta-section .wrap {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.cta-section h2 {
  font-family: var(--sans);
  font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.035em; line-height: 0.95; margin: 0;
}
.cta-section h2 .hl { background: var(--accent); color: var(--accent-ink); padding: 0 0.1em; }
.contact-meta {
  margin-top: 36px; display: grid; gap: 8px;
  color: var(--muted); font-size: 13px; font-family: var(--sans);
}
.contact-meta a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-meta a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.form { border: 1px solid var(--line); padding: clamp(20px, 3vw, 24px); background: rgba(0,0,0,0.02); }
.form label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 6px; font-family: var(--sans);
}
.form input, .form textarea, .form select {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg); font: inherit; padding: 10px 0; margin-bottom: 18px;
  border-radius: 0; font-family: var(--sans);
}
.form textarea { min-height: 80px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-bottom-color: var(--accent);
}
.form input.invalid, .form textarea.invalid {
  border-bottom-color: var(--danger);
}
.form button {
  width: 100%; padding: 14px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 800 13px/1 var(--sans);
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.form button:hover { background: var(--fg); color: var(--bg); }
.form button:disabled { opacity: 0.6; cursor: wait; }

/* footer */
footer {
  padding: 40px 0 60px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
footer .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 24px; align-items: center;
}
footer .version { justify-self: center; }
footer .cols { display: flex; gap: 28px; justify-self: end; flex-wrap: wrap; }
footer a { text-decoration: none; border-bottom: 1px solid transparent; }
footer a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- Responsive ---------- */

/* tablet */
@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
<<<<<<< Updated upstream
  .marks { grid-template-columns: 1fr; }
=======
  .hero-asymmetric { grid-template-columns: 1fr 1fr; }
  .hero-asymmetric .hero-diff { grid-column: 1 / -1; }
>>>>>>> Stashed changes
}

/* small tablet / large phone */
@media (max-width: 900px) {
  nav.top { grid-template-columns: 1fr auto; gap: 12px; }
  nav .center, nav .right { display: none; }
  .nav-toggle { display: grid; }

  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-asymmetric { grid-template-columns: 1fr; }
  .hero-stats { padding-top: 0; border-top: 0; }

  .what-grid { grid-template-columns: 1fr; gap: 40px; }
  .what-row { grid-template-columns: 48px 1fr; }
  .what-row .tags { grid-column: 2; padding-top: 4px; white-space: normal; }

  .svc { grid-template-columns: 1fr; }
  .svc > article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .svc > article:last-child { border-bottom: 0; }

  .cta-section .wrap { grid-template-columns: 1fr; gap: 40px; }

  .form-row { grid-template-columns: 1fr; }

  footer .wrap { grid-template-columns: 1fr; justify-items: start; gap: 24px; }
  footer .version, footer .cols { justify-self: start; }

  .trust-logos { gap: 16px 32px; }
  .trust-stats { gap: 24px; }

  .footer-brand, .footer-newsletter, .footer-social { justify-self: start; }
}

/* phone */
@media (max-width: 640px) {
  .cases { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding-bottom: 60px; }
  .step:last-child { border-bottom: 0; }

  .mark-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .mark-card .sq { max-width: 160px; }

  .hero .meta { grid-template-columns: 1fr; gap: 12px; }
  .hero .meta > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }

  .hero h1 .strike::after { height: 0.06em; }

  nav.top { padding: 12px var(--pad-x); }
  .brand .wm { font-size: 12px; }
}

/* very small phones */
@media (max-width: 380px) {
  .brand .wm { display: none; }
}

/* landscape phones — shrink hero */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .hero { padding: 32px 0; }
  .hero h1 { font-size: clamp(40px, 7vw, 72px); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Form improvements ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-group {
  position: relative;
}
.form-error {
  display: block;
  font-size: 11px;
  color: var(--danger);
  min-height: 16px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.form-error.has-error {
  opacity: 1;
  transform: translateY(0);
}
.form-count {
  position: absolute;
  right: 0;
  bottom: -18px;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
}
.form-status.success {
  color: var(--success);
  font-weight: 600;
}
.form-status.error {
  color: var(--danger);
}

/* form success overlay */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.form-success.show {
  display: flex;
}
.form-success .checkmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  animation: checkPop 0.4s var(--ease-spring);
}
.form-success .checkmark svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.4s 0.2s forwards;
}
.form-success h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.form-success p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

@keyframes checkPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-bar .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  align-items: center;
}
.trust-logo {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--line);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  user-select: none;
}
.trust-logo:hover {
  color: var(--muted);
}
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-stats > div {
  text-align: center;
}
.trust-stats b {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  font-family: var(--sans);
  line-height: 1;
}
.trust-stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Services icon ---------- */
.svc-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
}
.svc-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.svc-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  margin-top: 12px;
}
.svc-link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Process timeline ---------- */
.proc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
/* connecting line */
.proc::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.proc::after {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 12px);
  width: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1;
  transition: width 1.5s var(--ease-out);
}
.proc.animate::after {
  width: calc(75% - 24px);
}
.step {
  border-right: 1px solid var(--line);
  padding: 28px 24px 40px;
  min-height: 260px;
  position: relative;
  transition: background .15s ease;
}
.step:last-child { border-right: 0; }
.step .no {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  font-family: var(--sans);
  color: var(--line);
  text-transform: uppercase;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.step.active .no {
  color: var(--accent);
  border-color: var(--accent);
}
.step:hover .no {
  border-color: var(--accent);
  color: var(--accent);
}
.step h4 { margin: 6px 0 10px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }
.step .diff {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}
.step .diff .a { color: var(--accent); font-weight: 600; }
.step .diff .d { color: var(--danger); }

/* ---------- Hero code diff animation ---------- */
.diff-body .add {
  position: relative;
  overflow: hidden;
}
.diff-body .add::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(212,56,13,0.15));
  transition: width 0.8s var(--ease-out);
}
.hero-diff.animated .diff-body .add::after {
  width: 100%;
}
.diff-body .add .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  opacity: 0;
}
.hero-diff.animated .diff-body .add:last-child .cursor {
  opacity: 1;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 11px;
}
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-newsletter span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.newsletter-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
}
.newsletter-form input {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: 12px/1 var(--sans);
  color: var(--fg);
  width: 180px;
  outline: 0;
}
.newsletter-form input::placeholder {
  color: color-mix(in oklab, var(--muted) 60%, transparent);
}
.newsletter-form button {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter-form button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.footer-social {
  display: flex;
  gap: 16px;
  justify-self: end;
}
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}
.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Micro-interactions ---------- */
/* CTA scale on hover */
.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
  z-index: -1;
}
.cta:hover::before {
  transform: scaleX(1);
}
.cta:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Nav link underline slide */
nav .center a {
  position: relative;
}
nav .center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}
nav .center a:hover::after {
  width: 100%;
}

/* Input animated border */
.form input,
.form textarea {
  position: relative;
}
.form input::after,
.form textarea::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
  z-index: 1;
}
.form input:focus::after,
.form textarea:focus::after {
  width: 100%;
}

/* Case card enhanced hover */
.case {
  position: relative;
}
.case::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.case:hover::before {
  border-color: var(--accent);
}

/* What row hover enhancement */
.what-row {
  position: relative;
}
.what-row::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}
.what-row:hover::before {
  transform: scaleY(1);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal > *,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
  .proc::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  nav.top, .nav-drawer, .cta, .form button { display: none; }
  body { background: #fff; color: #000; }
  section { border-color: #ccc; }
}
