:root {
  --bg: hsl(0, 0%, 98%);
  --muted: hsl(0, 0%, 41%);
  --text: hsl(0, 0%, 8%);
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Epilogue', sans-serif;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.header {
  position: relative;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__logo {
  width: 84px;
  height: auto;
}

.nav__toggle {
  display: none;
}

.nav__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__close {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  color: var(--muted);
  transition: color 150ms ease;
}

.nav__link:hover {
  color: var(--text);
}

.dropdown {
  position: relative;
}

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 150ms ease;
}

.dropdown__toggle[aria-expanded="true"],
.dropdown__toggle:hover {
  color: var(--text);
}

.dropdown__arrow {
  transition: transform 150ms ease;
}

.dropdown__toggle[aria-expanded="true"] .dropdown__arrow {
  transform: rotate(180deg);
}

.dropdown__menu {
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 200px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 10px;
  z-index: 10;
}

.dropdown__menu--right {
  left: auto;
  right: 0;
}

.dropdown__menu a {
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 150ms ease, color 150ms ease;
}

.dropdown__menu a:hover {
  background: var(--bg);
  color: var(--text);
}

.nav__auth {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__auth-link {
  color: var(--muted);
  transition: color 150ms ease;
}

.nav__auth-link:hover {
  color: var(--text);
}

.nav__auth-button {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--muted);
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.nav__auth-button:hover {
  color: var(--text);
  border-color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.nav__backdrop {
  display: none;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px;
  margin-bottom: 52px;
}

.hero__grid {
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero__image {
  order: 2;
  justify-self: end;
}

.hero__image img {
  width: min(480px, 100%);
}

.hero__content {
  order: 1;
  max-width: 520px;
  display: grid;
  gap: 26px;
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(2.75rem, 3vw + 1.5rem, 4.25rem);
  line-height: 1.05;
}

.hero__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.hero__cta {
  display: inline-block;
  width: fit-content;
  padding: 14px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  border: 2px solid var(--text);
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.hero__cta:hover {
  background: transparent;
  color: var(--text);
}

.hero__clients {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 32px);
  flex-wrap: wrap;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  gap: 40px;
  margin-bottom: 52px;
  scroll-margin-top: 96px;
}

.section__header {
  max-width: 760px;
}

.section__header h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 2vw + 1.2rem, 2.8rem);
}

.section__lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.feature-card__icon {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section--alt {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.section__split {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.section__copy {
  display: grid;
  gap: 16px;
}

.section__copy h2 {
  margin: 6px 0 4px;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem);
}

.section__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.bullet-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.bullet-list li {
  line-height: 1.5;
}

.section__panel {
  background: linear-gradient(135deg, #fff, #f6f6f6);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat {
  display: grid;
  gap: 2px;
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
}

.stat__label {
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.testimonial__quote {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.testimonial__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__name {
  margin: 0;
  font-weight: 700;
}

.testimonial__role {
  margin: 0;
  color: var(--muted);
}

.section--cta {
  padding-bottom: 72px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav__auth-button--light {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}

.nav__auth-button--light:hover {
  background: var(--text);
  color: var(--bg);
}

.section__panel--list h3 {
  margin: 0 0 10px;
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.role-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.role-list li:last-child {
  border-bottom: none;
}

.role-location {
  color: var(--muted);
  font-weight: 600;
}

.leadership {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.leader {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.leader__photo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.leader__name {
  margin: 0;
  font-weight: 700;
}

.leader__role {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.blog-card__tag {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.blog-card h3 {
  margin: 0;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-card__link {
  color: var(--text);
  font-weight: 700;
}

.values {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.value {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.value h3 {
  margin: 0 0 6px;
}

.value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.attribution {
  margin: 0;
  padding: 60px 16px 80px;
  background: #0a0a0a;
  color: #f6f6f6;
  display: grid;
  gap: 24px;
}

.attribution a {
  color: inherit;
}

.footer__brand,
.footer__links,
.footer__content {
  display: grid;
  gap: 16px;
}

.footer__content {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.footer__brand img {
  width: 90px;
  height: auto;
}

.footer__brand p {
  color: #d9d9d9;
  max-width: 420px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer__social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 150ms ease, transform 150ms ease;
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: #f6f6f6;
}

.footer__logo {
  filter: brightness(0) invert(1);
}

.footer__links {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.footer__links h4 {
  margin: 0 0 10px;
}

.footer__links a {
  display: block;
  color: #d9d9d9;
  margin-bottom: 8px;
}

.footer__credit {
  margin: 0 auto;
  max-width: 1120px;
  color: #b3b3b3;
}

@media (max-width: 899px) {
  .nav {
    padding: 20px 16px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    background: #fff;
    padding: 24px 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 220ms ease;
    overflow-y: auto;
  }

  body.menu-open .nav__menu {
    transform: translateX(0);
  }

  .nav__close {
    display: inline-flex;
    align-self: flex-end;
    margin-bottom: -12px;
  }

  .nav__links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav__auth {
    width: 100%;
    flex-direction: column;
  }

  .nav__auth-link,
  .nav__auth-button {
    width: 100%;
    text-align: center;
  }

  .nav__auth-button {
    border-width: 2px;
    padding: 14px 20px;
  }

  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    display: block;
  }

  body.menu-open .nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown__menu {
    position: static;
    display: grid;
    gap: 4px;
    padding: 10px 0 0 14px;
    box-shadow: none;
  }

  .dropdown__menu a {
    padding: 8px 0;
  }

  .hero {
    padding-top: 8px;
    padding-bottom: 72px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__image {
    order: 1;
    justify-self: center;
  }

  .hero__image img {
    width: 100%;
    max-width: 480px;
  }

  .hero__content {
    order: 2;
    text-align: center;
    justify-items: center;
  }

  .hero__content h1 {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }

  .hero__cta {
    width: 100%;
    text-align: center;
  }

  .hero__clients {
    justify-content: center;
  }

  .section {
    padding: 28px 16px;
    margin-bottom: 40px;
  }

  .section__header {
    text-align: center;
    justify-items: center;
  }

  .section__split {
    grid-template-columns: 1fr;
  }

  .testimonial-grid,
  .blog-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }
}
