:root {
  --bg: #f8f8fb;
  --paper: #ffffff;
  --ink: #070914;
  --text: #151724;
  --muted: #4f5263;
  --soft: #8a8d9b;
  --purple: #5f2df3;
  --purple-dark: #481ac5;
  --purple-soft: #efe9ff;
  --line: rgba(7, 9, 20, 0.12);
  --shadow: 0 22px 70px rgba(45, 35, 90, 0.11);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(25, 25, 50, 0.08);
}

.nav {
  width: min(calc(100% - 96px), 1460px);
  min-height: 82px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-mark {
  display: grid;
  gap: 4px;
  width: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
}

.menu-mark span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-mark.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-mark.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-mark.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand img {
  display: none;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3.1vw, 54px);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-menu a {
  transition: color 160ms ease;
}

.nav-menu a:hover {
  color: var(--purple);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn::after,
.text-link::after {
  content: "→";
  margin-left: 16px;
  transition: transform 180ms ease;
}

.btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.btn:hover::after,
.text-link:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 14px 34px rgba(95, 45, 243, 0.28);
}

.btn-secondary {
  border-color: rgba(7, 9, 20, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: end;
  padding-top: 82px;
  background:
    linear-gradient(90deg, rgba(248, 248, 251, 0.98) 0%, rgba(248, 248, 251, 0.86) 34%, rgba(248, 248, 251, 0.22) 66%, rgba(248, 248, 251, 0.02) 100%),
    linear-gradient(180deg, rgba(248, 248, 251, 0) 62%, rgba(248, 248, 251, 0.95) 100%),
    url("assets/hero-summit-light.jpg") right center / cover no-repeat;
}

.hero-inner,
.section-shell,
.cta-band,
.site-footer {
  width: min(calc(100% - 96px), 1460px);
  margin-inline: auto;
}

.hero-inner {
  width: 100%;
  padding: 58px 48px 46px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3.4rem, 6.9vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h1 span,
h2 span {
  color: var(--purple);
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.04rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-capabilities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 78px;
}

.hero-capabilities article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 34px;
  border-left: 1px solid var(--line);
}

.hero-capabilities article:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-capabilities strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
}

.cap-icon,
.line-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--purple);
}

.cap-icon::before,
.cap-icon::after,
.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
}

.cap-automation::before,
.line-icon::before {
  inset: 5px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.cap-systems::before,
.cap-infra::before {
  left: 5px;
  right: 5px;
  top: 7px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 13px 0 -2px #fff, 0 13px 0 0 currentColor;
}

.cap-integration::before {
  width: 21px;
  height: 10px;
  left: 1px;
  top: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-45deg);
}

.cap-integration::after {
  width: 21px;
  height: 10px;
  right: 1px;
  top: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-45deg);
}

.cap-consulting::before {
  left: 8px;
  top: 6px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 40% 40% 50% 50%;
}

.cap-consulting::after {
  left: 13px;
  top: 13px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cap-data::before {
  inset: 6px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.cap-data::after {
  inset: 13px;
  background: currentColor;
  border-radius: 50%;
}

.section-shell {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-grid,
.why-grid,
.case-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.section-heading p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--purple);
  font-weight: 850;
}

.authority-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.capability,
.case-card {
  min-height: 230px;
  padding: 0 42px;
  border-left: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  margin-bottom: 26px;
  color: var(--purple);
  font-size: 2rem;
  line-height: 1;
}

.line-icon {
  margin-bottom: 28px;
}

.icon-stack::before {
  left: 5px;
  top: 7px;
  width: 24px;
  height: 12px;
  border: 2px solid currentColor;
  transform: skewY(-25deg);
  box-shadow: 0 9px 0 -2px #fff, 0 9px 0 0 currentColor;
}

.icon-growth::before {
  left: 3px;
  bottom: 4px;
  width: 26px;
  height: 24px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.icon-growth::after {
  right: 3px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.stat-card p,
.capability p,
.case-card p {
  color: var(--muted);
}

.case-highlight {
  background: linear-gradient(135deg, #fbfbff 0%, #f3efff 100%);
}

.case-grid {
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 34px 0 24px;
}

.case-metrics article {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.case-metrics article:first-child {
  border-left: 0;
  padding-left: 0;
}

.case-metrics strong {
  display: block;
  color: var(--purple);
  font-size: 2.1rem;
}

.case-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.testimonial {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 70px;
}

.testimonial > span {
  color: var(--purple);
  font-size: 6rem;
  line-height: 0.8;
}

.testimonial p {
  max-width: 440px;
  font-size: 1.12rem;
}

.testimonial footer {
  display: flex;
  grid-column: 2;
  gap: 16px;
  align-items: center;
}

.testimonial i {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.testimonial strong {
  display: block;
  color: var(--purple);
}

.testimonial small {
  color: var(--muted);
}

.capabilities .section-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.top-link {
  justify-self: end;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 0;
  margin-top: 20px;
}

.capability {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  min-height: 140px;
}

.why-grid {
  grid-template-columns: 0.72fr 1.08fr 0.7fr;
  align-items: center;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 34px;
}

.why-list span {
  display: flex;
  gap: 12px;
  color: var(--text);
}

.why-list span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
}

.why-image {
  width: 100%;
  aspect-ratio: 1.22;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.cta-band {
  display: grid;
  grid-template-columns: 88px 1fr 330px auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 58px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4efff, #ffffff);
  box-shadow: var(--shadow);
  padding: 24px 34px;
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #ffffff;
  font-size: 2rem;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

.cta-band p {
  margin: 0;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 68px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 950;
  font-size: 1.1rem;
}

.footer-brand span {
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--purple);
  border-bottom: 3px solid var(--purple);
}

.site-footer h3 {
  margin-top: 0;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  margin-bottom: 7px;
}

.site-footer a:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .nav {
    width: min(calc(100% - 40px), 1460px);
    grid-template-columns: 1fr auto;
  }

  .nav-menu {
    position: fixed;
    inset: 82px 20px auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px;
  }

  .hero-inner,
  .section-shell,
  .cta-band,
  .site-footer {
    width: min(calc(100% - 40px), 1460px);
  }

  .hero-capabilities,
  .authority-stats,
  .capability-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-grid,
  .case-grid,
  .why-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .testimonial {
    border-left: 0;
    padding-left: 0;
  }

  .why-image {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 68px;
  }

  .nav > .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 44px 20px 34px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.25rem);
  }

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

  .hero-capabilities,
  .authority-stats,
  .capability-grid,
  .case-metrics,
  .why-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-capabilities article,
  .stat-card,
  .capability,
  .case-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0;
  }

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

  .testimonial footer {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }
}

@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 {
    opacity: 1;
    transform: none;
  }
}
