:root {
  --ink: #2f2634;
  --ink-soft: #665a6c;
  --paper: #fcfafd;
  --surface: #ffffff;
  --muted: #f5eef7;
  --line: #e7dce9;
  --brand: #8f3f8b;
  --brand-dark: #642960;
  --copper: #f05a28;
  --gold: #ff8a2a;
  --deep-violet: #2f1a38;
  --shadow: 0 18px 48px rgba(47, 26, 56, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

p,
h1,
h2,
h3,
dl,
dd,
ol {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background: rgba(47, 26, 56, 0.34);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(47, 26, 56, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.brand-logo {
  width: auto;
  height: 44px;
  max-width: min(276px, calc(100vw - 148px));
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  margin-left: 6px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.language-switch a {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switch a.is-active {
  color: var(--ink);
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--deep-violet);
  padding: 126px 24px 76px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-business-central-api.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(47, 26, 56, 0.9) 0%, rgba(47, 26, 56, 0.68) 42%, rgba(47, 26, 56, 0.22) 100%),
    linear-gradient(0deg, rgba(47, 26, 56, 0.36), rgba(47, 26, 56, 0.07));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b36f;
}

h1 {
  max-width: 720px;
  margin-top: 14px;
  font-size: 4rem;
  line-height: 1.04;
  font-weight: 800;
}

.hero-text {
  max-width: 650px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.button:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.58);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.intro-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 30px 0;
}

.intro-grid > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 680px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-facts div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf7;
}

.quick-facts dt {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.quick-facts dd {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 0;
}

h2 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.proof-list p {
  color: var(--ink-soft);
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 64px 58px 1fr;
  align-items: start;
  min-height: 330px;
  padding: 26px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(47, 26, 56, 0.06);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff1ed;
  color: var(--brand-dark);
  font-weight: 800;
  border: 1px solid #ffc2aa;
}

.service-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.service-card p {
  margin-top: 0;
  color: var(--ink-soft);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaf4 100%);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(47, 26, 56, 0.08);
}

.profile-photo {
  width: clamp(210px, 24vw, 300px);
  aspect-ratio: 1;
  justify-self: center;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 8px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(47, 26, 56, 0.16);
}

.profile-copy {
  max-width: 720px;
}

.profile-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-soft);
}

.profile-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.profile-points span {
  display: grid;
  align-items: center;
  min-height: 62px;
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.approach-layout,
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1fr);
  gap: 56px;
  align-items: start;
}

.steps {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 112px;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
}

.steps h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.steps p {
  margin-top: 7px;
  color: var(--ink-soft);
}

.proof-section {
  background: var(--surface);
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list p {
  position: relative;
  min-height: 56px;
  padding: 14px 16px 14px 46px;
  border-left: 4px solid var(--gold);
  background: #fbfaf4;
}

.proof-list p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.contact-section {
  background: var(--muted);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 38px;
  align-items: start;
  padding: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(47, 26, 56, 0.08);
}

.contact-main p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-soft);
}

.contact-email {
  display: inline-block;
  color: var(--brand-dark);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-info {
  display: grid;
  gap: 22px;
}

.contact-info h3 {
  color: var(--ink);
  font-size: 1.15rem;
}

.contact-info ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.contact-info li::marker {
  color: var(--brand);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-meta p {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  border-radius: 8px;
  background: #fbfaf4;
  border: 1px solid var(--line);
}

.contact-meta strong {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-meta span {
  color: var(--ink-soft);
}

.site-footer {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 24px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-legal {
  display: block;
  text-align: center;
}

.site-footer a,
.footer-contact a {
  font-weight: 700;
  color: var(--brand);
  overflow-wrap: anywhere;
}

.site-footer a:hover,
.footer-contact a:hover {
  color: var(--brand-dark);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.footer-contact > * + *::before {
  content: "|";
  margin-right: 8px;
  color: var(--ink-soft);
  font-weight: 400;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(47, 26, 56, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.back-to-top span {
  font-size: 1.45rem;
  line-height: 1;
}

@media (max-width: 1100px) {
  .site-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding-left: 11px;
    padding-right: 11px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .service-card {
    padding: 22px;
  }

  .profile-card {
    gap: 34px;
  }

  .approach-layout,
  .proof-grid {
    gap: 38px;
  }

  .footer-contact {
    max-width: 900px;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 8px;
    background: rgba(47, 26, 56, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-header.nav-open {
    background: rgba(47, 26, 56, 0.98);
  }

  .site-nav a {
    width: 100%;
  }

  .language-switch {
    width: 100%;
    margin-left: 0;
  }

  .language-switch a {
    justify-content: center;
    width: 50%;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 20px 56px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(47, 26, 56, 0.92) 0%, rgba(47, 26, 56, 0.78) 58%, rgba(47, 26, 56, 0.46) 100%),
      linear-gradient(0deg, rgba(47, 26, 56, 0.42), rgba(47, 26, 56, 0.14));
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-inner {
    width: min(100% - 40px, var(--max));
  }

  .intro-grid,
  .approach-layout,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 260px;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  .quick-facts,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    grid-template-rows: auto;
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 18px;
  }

  .service-card p {
    margin-top: 12px;
  }

  .approach-layout,
  .proof-grid {
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand-logo {
    height: 40px;
  }

  .hero {
    min-height: 82svh;
    padding-top: 104px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(47, 26, 56, 0.94) 0%, rgba(47, 26, 56, 0.84) 64%, rgba(47, 26, 56, 0.58) 100%),
      linear-gradient(0deg, rgba(47, 26, 56, 0.46), rgba(47, 26, 56, 0.18));
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-points {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 24px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
    font-weight: 700;
  }

  .footer-contact > * + *::before {
    content: none;
  }
}

@media (max-width: 560px) {
  .brand {
    padding: 5px 8px;
  }

  .brand-logo {
    height: 38px;
    max-width: min(212px, calc(100vw - 128px));
  }

  .hero {
    min-height: 84svh;
    padding: 100px 18px 48px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner {
    width: min(100% - 32px, var(--max));
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .profile-photo {
    max-width: 220px;
  }

  .steps li {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .proof-list p {
    padding-right: 14px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    height: 34px;
    max-width: min(184px, calc(100vw - 116px));
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .button {
    padding-left: 14px;
    padding-right: 14px;
  }
}
