/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f5f5f4;
  --dark: #000000;
  --dark-2: #141414;
  --dark-line: #2a2a2a;
  --upwork: #14a800;
  --radius: 4px;
  --container: 1120px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section--center { text-align: center; }

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.label--light { color: #9a9a9a; }
.muted { color: var(--muted); }

.h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.h2--xl { font-size: clamp(34px, 5vw, 52px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font: 600 14px/1 var(--font);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2a2a2a; }
.btn--lg { padding: 16px 40px; }
.btn:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; height: 72px; gap: 40px; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--ink-2); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__cta-mobile { display: none; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--ink); transition: transform .25s, top .25s;
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 112px 0 104px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.pill__dot {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 10px; color: #fff;
}
.pill__dot--pink { background: #e8457c; }
.pill__dot--blue { background: #2f6bff; }
.pill__dot--green { background: var(--upwork); }
.hero__title {
  max-width: 820px;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.trusted {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 32px; margin-top: 40px;
}
.trusted .label { margin: 0; font-size: 11px; }
.trusted__logo { font-weight: 700; font-size: 16px; color: var(--ink-2); letter-spacing: -0.01em; }

/* ---------- Intro ---------- */
.intro__inner > * { max-width: 820px; }
.intro__text { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--ink); }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; }
.rating__brand { color: var(--upwork); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.stars { color: var(--ink); letter-spacing: 2px; }


/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 48px; margin-top: 56px; padding-bottom: 96px; }
.case:nth-child(even) { position: relative; top: 96px; }
.case__link { display: block; }
.case__media {
  background: var(--soft); border-radius: var(--radius);
  padding: 32px 0 0 32px; overflow: hidden; margin-bottom: 24px;
}
.browser {
  background: #fff; border-radius: 8px 0 0 0; overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.14);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.case__link:hover .browser { transform: translate(-8px, -8px); }
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #fafafa; border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6d6d6; }
.browser__bar span { margin-left: 10px; font-size: 11px; color: var(--muted); }
.browser img { width: 100%; aspect-ratio: 1200 / 833; object-fit: cover; object-position: top; }
.case__title { font-size: 22px; font-weight: 500; line-height: 1.35; max-width: 480px; }
.case__desc { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 480px; }
.case__tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags li { font-size: 12px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.case__visit {
  display: inline-flex; gap: 6px; margin-top: 20px;
  font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

.more {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 72px; flex-wrap: wrap;
}
.more__text { font-size: 22px; }

/* ---------- Clients ---------- */
.clients {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.clients li {
  padding: 28px 12px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: #5a5a5a; letter-spacing: -0.01em;
  transition: color .2s, background .2s;
}
.clients li:hover { color: var(--ink); background: var(--soft); }

/* ---------- Services (dark) ---------- */
.services { background: var(--dark); color: #fff; border-top: 0; }
.services__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  padding: 20px; border: 1px solid var(--dark-line); border-radius: 6px;
  background: var(--dark-2); transition: border-color .2s, transform .2s;
}
.service:hover { border-color: #555; transform: translateY(-2px); }
.service__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.service__icon {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 4px;
  border: 1px solid #fff; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.service__desc { font-size: 14px; color: #9a9a9a; margin-top: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; text-align: left; }
.stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); margin-top: 4px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 56px; }
.review {
  margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 0;
}
.review--offset { transform: translateY(-80px); }
.review__avatar {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 18px;
  border-radius: var(--radius) 0 0 var(--radius);
}
img.review__avatar { object-fit: cover; background: var(--soft); }
.review__body {
  margin-top: 32px;
  padding: 28px; border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: #fff;
}
.review__title { font-size: 18px; font-weight: 500; margin-bottom: 12px; line-height: 1.35; }
.review blockquote { margin: 0; color: var(--ink-2); font-size: 15px; }
.review__rating { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; }
.review__rating .rating__brand { font-size: 14px; }
.review figcaption { font-size: 14px; }
.review figcaption .muted { font-size: 12px; margin-left: 6px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__note { color: var(--muted); margin-top: 20px; max-width: 320px; }
.faq__note a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat;
}
.faq details p { padding: 0 32px 24px 0; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 80px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 28px; }
.footer__email { font-weight: 600; }
.footer__muted { color: #8a8a8a; font-size: 14px; margin-top: 12px; }
.footer__head { font-weight: 600; margin-bottom: 16px; }
.footer__grid a:not(.footer__email) { display: block; color: #9a9a9a; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer__grid a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--dark-line);
}
.footer__bottom .footer__muted { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.review--offset.reveal { transform: translateY(-64px); }
.review--offset.reveal.is-visible { transform: translateY(-80px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .review--offset.reveal { opacity: 1; transition: none; }
  .reveal:not(.review--offset) { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .services__grid, .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; }

  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0; }
  .cases, .reviews { grid-template-columns: 1fr; }
  .cases { gap: 56px; padding-bottom: 0; }
  .case:nth-child(even) { top: 0; }
  .review--offset, .review--offset.reveal, .review--offset.reveal.is-visible { transform: none; }
  .review { grid-template-columns: 48px 1fr; }
  .review__avatar { width: 48px; height: 48px; font-size: 15px; }
  .review__body { margin-top: 24px; padding: 20px; }
  .case__media { padding: 20px 0 0 20px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: 1fr; }
  .cta__inner { align-items: flex-start; }
  .cta__inner .btn { width: 100%; }
  .more .btn { width: 100%; }
}
