:root {
  --ink: #283038;
  --ink-deep: #1f1235;
  --muted: #505a63;
  --purple: #725ee1;
  --purple-dark: #6048d0;
  --magenta: #b840a9;
  --tint: #f7f6fd;
  --line: #e3e0f2;
  --white: #ffffff;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffb000;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--ink-deep);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 10px 0;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  width: 95%;
  max-width: var(--container);
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo {
  width: 35px;
  height: 35px;
  margin-right: 8px;
  object-fit: contain;
}

.company-name {
  color: #333f48;
  font-size: 1.2rem;
  font-weight: 700;
}

.navbar-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}

.navbar-menu a {
  position: relative;
  padding: 4px 8px;
  color: #333f48;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-menu a:hover {
  color: var(--purple);
  font-weight: 700;
}

.mobile-menu,
.mobile-menu-toggle {
  display: none;
}

main {
  overflow: hidden;
}

.testing-hero {
  position: relative;
  display: flex;
  min-height: 700px;
  align-items: center;
  overflow: hidden;
  padding: 10rem 2rem 7rem;
  background: url('/images/contact-hero-bg.webp') no-repeat center center / cover;
}

.testing-hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.79) 52%, rgba(255, 255, 255, 0.36) 100%);
  content: '';
}

.testing-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.testing-hero__content h1 {
  max-width: 860px;
  margin: 1.1rem 0 1.5rem;
  color: var(--ink-deep);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.08;
}

.testing-hero__copy {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.08rem;
}

.testing-hero__emphasis {
  max-width: 800px;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.testing-hero__brand {
  position: absolute;
  right: 7%;
  bottom: -3rem;
  z-index: 1;
  width: 300px;
  height: 300px;
  opacity: 0.055;
}

.testing-hero__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  color: var(--purple);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow--hero {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(114, 94, 225, 0.2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.55rem;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button--primary {
  background: linear-gradient(90deg, var(--magenta), #9b4cff);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(114, 94, 225, 0.22);
}

.button--primary:hover {
  background: linear-gradient(90deg, #9a3598, #843ed6);
  transform: translateY(-1px);
}

.button--secondary {
  border-color: var(--purple);
  background: rgba(255, 255, 255, 0.65);
  color: var(--purple);
}

.button--secondary:hover {
  background: rgba(114, 94, 225, 0.1);
}

.section {
  padding: 6.5rem 2rem;
}

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

.section--tint {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-heading--left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin-top: 0.65rem;
  color: var(--ink-deep);
  font-size: 2.65rem;
  line-height: 1.18;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.problem-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.problem-card {
  min-height: 255px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(31, 18, 53, 0.055);
}

.card-number {
  display: block;
  margin-bottom: 2.6rem;
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
}

.problem-card h3,
.pillar h3 {
  margin-bottom: 0.7rem;
  color: var(--ink-deep);
  font-size: 1.15rem;
}

.problem-card p,
.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

.solution-intro {
  margin-bottom: 3rem;
  text-align: center;
}

.solution-intro .section-heading {
  margin-bottom: 1.4rem;
}

.solution-intro > p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.04rem;
}

.pillar {
  padding: 2rem 2rem 2.25rem;
  border-top: 3px solid var(--purple);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(31, 18, 53, 0.06);
}

.pillar-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(114, 94, 225, 0.1);
  color: var(--purple);
  flex: 0 0 auto;
}

.pillar-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.solution-close {
  margin-top: 2.5rem;
  color: var(--ink-deep);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.approach-section {
  position: relative;
  padding-top: 4.75rem;
  padding-bottom: 4.25rem;
  background: linear-gradient(135deg, #4424a7 0%, #735ee1 52%, #9b4cff 100%);
  color: var(--white);
}

.approach-section::before {
  position: absolute;
  inset: 0;
  background: url('/images/about-hero-bg.webp') no-repeat center / cover;
  content: '';
  opacity: 0.14;
}

.approach-section .section-inner {
  position: relative;
}

.section-heading--light h2,
.section-heading--light > p:last-child:not(.eyebrow) {
  color: var(--white);
}

.section-heading--light > p:last-child:not(.eyebrow) {
  opacity: 0.86;
}

.section-heading--light .eyebrow {
  color: #e7e1ff;
}

.approach-section .section-heading {
  margin-bottom: 2.25rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.workflow-step {
  position: relative;
  min-height: 190px;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
}

.workflow-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.78rem;
  z-index: 2;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid rgba(255, 255, 255, 0.75);
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  content: '';
  transform: translateY(-50%) rotate(45deg);
}

.workflow-number {
  display: block;
  margin-bottom: 2rem;
  color: #e7e1ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.workflow-step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.workflow-step p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
}

.loop-callout {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}

.section--deliverables {
  background: #f7f6fd;
}

.deliverables-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 6rem;
  align-items: center;
}

.deliverables-layout .section-heading {
  margin-bottom: 0;
}

.deliverables-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #d8d4eb;
  border-left: 1px solid #d8d4eb;
  list-style: none;
}

.deliverables-list li {
  position: relative;
  min-height: 72px;
  padding: 1.35rem 1.4rem 1.2rem 3.25rem;
  border-right: 1px solid #d8d4eb;
  border-bottom: 1px solid #d8d4eb;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.deliverables-list li::before {
  position: absolute;
  top: 1.25rem;
  left: 1.4rem;
  color: #9277ff;
  content: '→';
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  text-align: center;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.final-cta__mark {
  width: 48px;
  height: 48px;
  margin-bottom: 1.3rem;
  object-fit: contain;
}

.final-cta h2 {
  margin-bottom: 1.25rem;
  color: var(--ink-deep);
  font-size: 3rem;
  line-height: 1.18;
}

.final-cta p {
  max-width: 700px;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  padding: 2rem 1rem;
  background: var(--ink-deep);
  color: var(--white);
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  max-width: var(--container);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-column a {
  color: var(--white);
  text-decoration: none;
}

.footer-column a:hover {
  color: #ddd;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #bbb;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1000px) {
  .testing-hero__content h1 {
    font-size: 3.2rem;
  }

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

  .workflow-step:not(:last-child)::after {
    display: none;
  }

  .deliverables-layout {
    gap: 3.5rem;
  }
}

@media (max-width: 800px) {
  .navbar {
    padding: 1.25rem;
  }

  .navbar-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.5rem;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: none;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    list-style: none;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }

  .mobile-menu li:not(.mobile-menu-header) {
    margin: 1.5rem 0;
  }

  .mobile-menu li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--ink);
    font-size: 1.125rem;
    text-decoration: none;
  }

  .navbar.mobile-open > .mobile-menu-toggle {
    visibility: hidden;
  }

  .testing-hero {
    min-height: 660px;
    padding: 8.5rem 1.5rem 5rem;
  }

  .testing-hero::before {
    background: rgba(255, 255, 255, 0.82);
  }

  .testing-hero__content h1 {
    font-size: 2.8rem;
  }

  .testing-hero__copy {
    font-size: 1rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 2.2rem;
  }

  .problem-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 1.6rem;
  }

  .deliverables-layout {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step {
    min-height: 185px;
  }

  .loop-callout {
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .testing-hero {
    min-height: auto;
    padding: 8rem 1.1rem 4.5rem;
  }

  .testing-hero__content h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .section {
    padding: 4.25rem 1.1rem;
  }

  .section-heading {
    margin-bottom: 2.4rem;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 1.9rem;
  }

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

  .workflow-step {
    min-height: auto;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 1.15rem;
  }

  .workflow-number {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    padding-top: 0.15rem;
  }

  .workflow-step h3 {
    margin-bottom: 0.35rem;
  }

  .deliverables-list {
    grid-template-columns: 1fr;
  }

  .deliverables-list li {
    min-height: 88px;
  }

  .final-cta {
    padding: 5rem 1.1rem;
  }

  .footer-columns {
    justify-content: center;
  }
}
