/* ---------- Tokens ---------- */
:root {
  --bg: #f4f4f5;
  --bg-elev: #fafafa;
  --surface: #ffffff;
  --surface-muted: #ededef;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-soft: #71717a;
  --accent: #18181b;
  --accent-contrast: #fafafa;
  --ring: rgba(24, 24, 27, 0.12);
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04),
    0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(24, 24, 27, 0.18),
    0 4px 10px -6px rgba(24, 24, 27, 0.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(
      1000px 600px at 85% -10%,
      rgba(24, 24, 27, 0.04),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 10%,
      rgba(24, 24, 27, 0.03),
      transparent 55%
    );
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}
p {
  margin: 0;
  color: var(--text-muted);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border-strong);
  display: inline-block;
}

.section__head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section__sub {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 58ch;
}
.section__head--center .section__sub {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--text);
}
.btn--full {
  width: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.nav__inner {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand__name,
.footer__brand span:last-child {
  font-family: "Hanken Grotesk", "Inter", ui-sans-serif, system-ui,
    -apple-system, sans-serif;
  text-transform: lowercase;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  display: inline-block;
  position: relative;
  box-shadow: inset 0 0 0 3px var(--bg);
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav__cta {
  display: flex;
}
.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 0.7rem;
  border-radius: 99px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang__item:hover {
  color: var(--text);
}
.lang__item.is-active {
  background: var(--text);
  color: var(--accent-contrast);
}
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-inline: auto;
}
.hero__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}
.hero__sub {
  margin: 1.25rem auto 2rem;
  max-width: 58ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.logos {
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* ---------- Features ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.95rem;
}

/* ---------- Pitch (problem + solution) ---------- */
.pitch {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.pitch__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pitch__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text-muted);
}
.pitch__list li {
  position: relative;
  padding-left: 1.6rem;
}
.pitch__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}
.pitch__list em {
  font-style: italic;
  color: var(--text);
}
.pitch__solution {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.pitch__lede {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0.6rem 0 1rem;
}

/* ---------- Service card outcome ---------- */
.card__outcome {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card__outcome strong {
  color: var(--text);
}
.cards--services {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---------- Process (How it works) ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step__num {
  display: inline-block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.step p {
  font-size: 0.95rem;
}

/* ---------- Closing CTA ---------- */
.cta {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cta__inner {
  background: var(--text);
  color: var(--accent-contrast);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  background-image: radial-gradient(
      600px 260px at 10% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(
      500px 240px at 100% 100%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    );
}
.cta .eyebrow {
  color: rgba(250, 250, 250, 0.6);
}
.cta .eyebrow::before {
  background: rgba(250, 250, 250, 0.3);
}
.cta .section__title {
  color: var(--accent-contrast);
  margin-inline: auto;
  max-width: 22ch;
}
.cta .section__sub {
  color: rgba(250, 250, 250, 0.75);
  margin-inline: auto;
}
.cta__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: var(--accent-contrast);
  color: var(--text);
}
.cta .btn--primary:hover {
  background: #fff;
}
.cta .btn--ghost {
  color: var(--accent-contrast);
  border-color: rgba(250, 250, 250, 0.25);
}
.cta .btn--ghost:hover {
  border-color: var(--accent-contrast);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- About ---------- */
.about__grid {
  max-width: 760px;
}
.commitments {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.commit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.commit:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.commit strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.commit p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .commitments { grid-template-columns: 1fr; }
}

/* ---------- Pricing (outcome-based) ---------- */
.pricing__example {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pricing__example h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0.4rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.pricing__math {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem 1.2rem;
  margin: 1.25rem 0 2rem;
  flex-wrap: wrap;
}
.math__num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}
.math__num--total {
  padding: 0.15em 0.65em;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 99px;
}
.math__op {
  color: var(--text-soft);
  font-size: 1.1rem;
  font-weight: 300;
}
.pricing__example-body {
  max-width: 60ch;
  margin: 0 auto 1.75rem;
}
.pricing__note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.pricing__note a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.pricing__note a:hover {
  border-color: var(--text);
}

/* ---------- Legacy plans (retained) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.plan:hover {
  border-color: var(--border-strong);
}
.plan--featured {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}
.plan__tag {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--text);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
}
.plan h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.plan__desc {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--text);
}
.period {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.plan__list li {
  position: relative;
  padding-left: 1.4rem;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--text);
}
.plan .btn {
  margin-top: auto;
}

/* ---------- Contact ---------- */
.form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}
.field input,
.field textarea {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    background 0.15s var(--ease);
  width: 100%;
  font-family: inherit;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--surface);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}
.form__note.is-ok {
  color: #166534;
}
.form__note.is-err {
  color: #991b1b;
}
.contact__fallback {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.contact__fallback a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.contact__fallback a:hover {
  border-color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.footer__copy {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__links a:hover {
  color: var(--text);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for sibling groups */
.cards .card:nth-child(1),
.steps .step:nth-child(1),
.plans .plan:nth-child(1) { transition-delay: 0ms; }

.cards .card:nth-child(2),
.steps .step:nth-child(2),
.plans .plan:nth-child(2) { transition-delay: 90ms; }

.cards .card:nth-child(3),
.steps .step:nth-child(3),
.plans .plan:nth-child(3) { transition-delay: 180ms; }

.cards .card:nth-child(4) { transition-delay: 270ms; }

/* Reset delay once visible so re-triggers feel instant */
.reveal:not(.is-visible) { transition-delay: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pitch__grid {
    grid-template-columns: 1fr;
  }
  .pitch__solution {
    position: static;
  }
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__right {
    gap: 0.5rem;
  }
  .lang {
    font-size: 0.72rem;
  }
  .lang__item {
    height: 24px;
    padding: 0 0.55rem;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav.is-open .nav__links a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a:last-child {
    border-bottom: 0;
  }
  .stats {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
