/*
 * Figma v28 parity layer for the four Service pillar pages.
 * Loaded after the shared site stylesheet so these pages can follow the v28
 * component geometry without changing legacy and main-site page templates.
 */

.v28-service-pillar .container {
  box-sizing: border-box;
  width: min(100%, 1400px);
  padding-right: 32px;
  padding-left: 32px;
}

.v28-pillar-hero {
  min-height: 90vh;
  min-height: 90svh;
  background: #050f23;
}

.v28-pillar-hero-shade {
  background: linear-gradient(to top, rgba(5, 15, 35, 0.97) 0%, rgba(5, 15, 35, 0.65) 40%, rgba(5, 15, 35, 0.15) 75%, transparent 100%);
}

.v28-pillar-hero.has-video .v28-pillar-hero-shade {
  background:
    linear-gradient(to top, rgba(5, 15, 35, 0.97) 0%, rgba(5, 15, 35, 0.65) 40%, rgba(5, 15, 35, 0.15) 75%, transparent 100%),
    rgba(5, 15, 35, 0.45);
}

.v28-pillar-grid {
  opacity: 1;
  background-image:
    linear-gradient(rgba(3, 98, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 98, 230, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: none;
}

.v28-pillar-hero-inner {
  padding-top: 160px;
  padding-bottom: 80px;
}

.v28-pillar-back {
  display: flex;
  width: fit-content;
  gap: 8px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.v28-pillar-back svg {
  width: 16px;
  height: 16px;
}

.v28-pillar-badge {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 0;
  background: var(--pillar-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 16px;
  text-transform: none;
  backdrop-filter: none;
}

.v28-pillar-badge svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

.v28-pillar-title {
  max-width: none;
  color: #fff;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.v28-pillar-title .gradient,
.v28-pillar-deliver h2 span,
.v28-pillar-section-heading h2 span,
.v28-pillar-cta h2 span {
  background: linear-gradient(135deg, var(--pillar-color), #239bff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.v28-pillar-lead {
  max-width: 672px;
  margin-top: 32px;
  color: rgba(210, 228, 248, 0.88);
  font-size: 18px;
  line-height: 1.625;
}

.v28-pillar-actions {
  gap: 16px;
  margin-top: 40px;
}

.v28-pillar-actions .v28-pillar-primary,
.v28-pillar-actions .v28-pillar-secondary {
  width: auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 32px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.v28-pillar-actions .btn svg {
  width: 16px;
  height: 16px;
}

.v28-pillar-actions .v28-pillar-primary {
  background: linear-gradient(135deg, var(--pillar-color), #239bff);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--pillar-color) 33%, transparent);
}

.v28-pillar-actions .v28-pillar-primary:hover,
.v28-pillar-actions .v28-pillar-secondary:hover {
  transform: scale(1.04);
}

.v28-pillar-actions .v28-pillar-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.v28-pillar-stats .container {
  min-height: 0;
  gap: 24px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.v28-pillar-stat {
  display: block;
  padding: 0;
  border: 0;
  text-align: center;
}

.v28-pillar-stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 400;
  line-height: 40px;
}

.v28-pillar-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 20px;
  text-transform: none;
}

.v28-pillar-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.v28-pillar-deliver-grid {
  gap: 64px;
}

.v28-pillar-eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 16px;
}

.v28-pillar-deliver h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.v28-pillar-section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.v28-pillar-description {
  max-width: none;
  margin-top: 24px;
  color: #4a5e7a;
  font-size: 18px;
  line-height: 1.625;
}

.v28-pillar-use-grid {
  gap: 12px;
  margin-top: 40px;
}

.v28-pillar-use-grid li {
  min-height: 0;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(3, 98, 230, 0.12);
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: none;
}

.v28-pillar-use-grid li i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--pillar-color);
}

.v28-pillar-features {
  gap: 20px;
}

.v28-pillar-feature {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(3, 98, 230, 0.1);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(3, 98, 230, 0.06);
}

.v28-pillar-feature > span {
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border: 1px solid color-mix(in srgb, var(--pillar-color) 18.8%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--pillar-color) 9.4%, transparent);
}

.v28-pillar-feature svg {
  width: 16px;
  height: 16px;
}

.v28-pillar-feature h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.v28-pillar-feature p {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.625;
}

.v28-pillar-section-heading {
  max-width: none;
  margin-bottom: 48px;
}

.v28-pillar-section-heading .v28-pillar-eyebrow {
  margin-bottom: 12px;
}

.v28-example-grid {
  gap: 16px;
}

.v28-example-card {
  box-sizing: content-box;
  width: calc(100% - 4px);
  padding: 0;
  border-radius: 16px;
  box-shadow: none;
}

.v28-example-card.active {
  border-color: var(--pillar-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pillar-color) 12.5%, transparent);
}

.v28-example-card.reveal.in-view:hover {
  transform: scale(1.03);
}

.v28-example-card img {
  filter: grayscale(35%);
}

.v28-example-card.active img {
  filter: none;
}

.v28-example-card video {
  transition-duration: 300ms;
}

.v28-example-card-shade {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.5) 0%, transparent 60%);
}

.v28-example-card.active .v28-example-card-shade {
  background: color-mix(in srgb, var(--pillar-color) 12.5%, transparent);
}

.v28-example-card > strong {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 12px;
  overflow: hidden;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85), transparent);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v28-example-expand {
  color: #fff;
}

.v28-example-stage {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  border-radius: 16px;
  box-shadow: none;
}

.v28-example-stage-shade {
  display: none;
}

.v28-example-stage-copy {
  right: 0;
  bottom: 0;
  left: 0;
  align-items: flex-end;
  gap: 0;
  padding: 24px 32px;
  background: linear-gradient(to top, rgba(5, 15, 35, 0.92), transparent);
}

.v28-example-stage-copy p {
  min-width: 0;
  gap: 4px;
}

.v28-example-stage-copy strong {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}

.v28-example-stage-copy span {
  color: rgba(196, 220, 245, 0.7);
  font-size: 14px;
  letter-spacing: normal;
  line-height: 20px;
}

.v28-example-watch {
  min-width: 0;
  min-height: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--pillar-color);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: normal;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--pillar-color) 33%, transparent);
}

.v28-example-watch:hover {
  background: var(--pillar-color);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--pillar-color) 33%, transparent);
  transform: scale(1.04);
}

.v28-example-watch:active {
  transform: scale(0.97);
}

.v28-example-watch svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.v28-video-modal[open] {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.v28-video-modal::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.v28-video-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1024px;
  padding: 0;
}

.v28-video-modal video {
  width: 100%;
  max-height: 80vh;
  aspect-ratio: auto;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.v28-video-modal p {
  margin-top: 12px;
  padding: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.v28-video-modal-close {
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.v28-video-modal-close svg {
  width: 16px;
  height: 16px;
}

.v28-pillar-results .v28-pillar-section-heading {
  margin-bottom: 56px;
}

.v28-case-grid {
  gap: 24px;
}

.v28-case-card {
  border: 1px solid color-mix(in srgb, var(--pillar-color) 14.5%, transparent);
  border-radius: 16px;
  box-shadow: none;
}

.v28-case-media::after {
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.82) 0%, rgba(10, 22, 40, 0.1) 55%, transparent 100%);
}

.v28-case-media > strong {
  right: 16px;
  bottom: 12px;
  left: 16px;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.v28-case-body {
  display: block;
  padding: 16px 20px;
}

.v28-case-type {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 0;
  background: color-mix(in srgb, var(--pillar-color) 13.3%, transparent);
  color: rgba(196, 220, 245, 0.7);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 16px;
  text-transform: none;
}

.v28-case-body h3 {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-headline);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.375;
}

.v28-case-body > p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.625;
}

.v28-case-link {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 0;
  color: rgba(196, 220, 245, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  opacity: 0;
  transform: none;
}

.v28-case-link svg {
  width: 12px;
  height: 12px;
}

.v28-pillar-suite {
  padding-top: 64px;
  padding-bottom: 64px;
}

.v28-pillar-suite .v28-pillar-eyebrow {
  margin-bottom: 24px;
  color: #64748b;
}

.v28-suite-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.v28-suite-links a {
  display: inline-flex;
  min-height: 0;
  padding: 12px 24px;
  border: 1.5px solid rgba(3, 98, 230, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #0362e6;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.v28-suite-links a:hover {
  border-color: #0362e6;
  background: #0362e6;
  color: #fff;
  box-shadow: none;
  transform: scale(1.04);
}

.v28-pillar-cta {
  padding-top: 96px;
  padding-bottom: 96px;
  background: linear-gradient(160deg, #050d1e 0%, #0b1a34 100%);
}

.v28-pillar-cta .container {
  max-width: 800px;
}

.v28-pillar-cta .v28-pillar-eyebrow {
  margin-bottom: 16px;
  color: var(--pillar-color);
}

.v28-pillar-cta h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.95;
}

.v28-pillar-cta .container > p:not(.v28-pillar-eyebrow) {
  max-width: none;
  margin: 0 0 40px;
  color: rgba(196, 220, 245, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.v28-pillar-cta .v28-pillar-primary {
  width: auto;
  min-height: 0;
  gap: 12px;
  padding: 20px 40px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pillar-color), #239bff);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--pillar-color) 33%, transparent);
}

.v28-pillar-cta .v28-pillar-primary:hover {
  background: linear-gradient(135deg, var(--pillar-color), #239bff);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--pillar-color) 33%, transparent);
  transform: scale(1.04);
}

.v28-pillar-cta .v28-pillar-primary svg {
  width: 20px;
  height: 20px;
}

.v28-page-progress {
  z-index: 200;
  background: transparent;
}

.v28-page-progress span {
  background: linear-gradient(90deg, #0362e6 0%, #239bff 60%, #60c4ff 100%);
  box-shadow: 0 0 8px rgba(3, 98, 230, 0.6);
}

.v28-back-to-top {
  right: 24px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border: 0;
  background: linear-gradient(135deg, #0362e6, #239bff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(3, 98, 230, 0.45);
}

.v28-back-to-top:hover {
  box-shadow: 0 6px 28px rgba(3, 98, 230, 0.6);
  transform: scale(1.12);
}

.v28-back-to-top svg {
  width: 16px;
  height: 16px;
}

.v28-service-pillar ~ .float-cta {
  right: 24px;
  bottom: 24px;
  left: auto;
  gap: 8px;
}

.v28-service-pillar ~ .float-cta .btn {
  flex: 0 0 auto;
  gap: 10px;
  min-height: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0362e6, #239bff);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: 0 4px 24px rgba(3, 98, 230, 0.45), 0 1px 4px rgba(0, 0, 0, 0.15);
}

.v28-service-pillar ~ .float-cta .btn::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.v28-service-pillar ~ .float-cta .btn svg {
  width: 16px;
  height: 16px;
}

.v28-service-pillar ~ .float-cta .btn:hover {
  box-shadow: 0 6px 32px rgba(3, 98, 230, 0.55);
  transform: scale(1.04);
}

.v28-service-pillar ~ .float-cta .float-dismiss {
  width: 32px;
  height: 32px;
}

.v28-service-pillar ~ .site-footer .container {
  box-sizing: border-box;
  width: min(100%, 1400px);
  padding-right: 32px;
  padding-left: 32px;
}

.nav-service-link {
  gap: 4px;
  font-weight: 500;
  line-height: 20px;
}

@media (min-width: 921px) {
  .nav-service-dropdown {
    top: calc(100% + 16px);
    width: 280px;
    padding: 8px 8px 0;
    border: 1px solid rgba(3, 98, 230, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(3, 98, 230, 0.14);
  }

  .nav-service-dropdown::before {
    height: 24px;
  }

  .nav-service-dropdown-list {
    gap: 0;
  }

  .nav-service-dropdown-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .nav-service-dropdown-item > span:first-child {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(3, 98, 230, 0.08);
    color: #0362e6;
  }

  .nav-service-dropdown-item svg {
    width: 16px;
    height: 16px;
  }

  .nav-service-dropdown-item > span:last-child {
    gap: 2px;
  }

  .nav-service-dropdown-item strong {
    color: #0a1628;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.5px;
  }

  .nav-service-dropdown-item small {
    color: #94a3b8;
    font-size: 12px;
    line-height: 16px;
    white-space: normal;
  }

  .nav-service-dropdown-item.active {
    background: transparent;
    color: inherit;
  }

  .nav-service-dropdown-item.active > span:first-child {
    background: rgba(3, 98, 230, 0.08);
    color: #0362e6;
  }

  .nav-service-dropdown-item:hover,
  .nav-service-dropdown-item:focus-visible {
    background: rgba(3, 98, 230, 0.05);
  }

  .nav-service-dropdown-item:hover > span:first-child,
  .nav-service-dropdown-item:focus-visible > span:first-child {
    background: rgba(3, 98, 230, 0.08);
    color: #0362e6;
  }

  .nav-service-view-all {
    justify-content: center;
    gap: 6px;
    margin: 0 -8px;
    padding: 12px 0;
    border-top: 1px solid rgba(3, 98, 230, 0.08);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }
}

@media (min-width: 768px) {
  .v28-service-pillar ~ .site-footer .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 64px;
  }
}

@media (max-width: 1023px) {
  .v28-pillar-deliver-grid {
    grid-template-columns: 1fr;
  }

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

  .v28-case-grid {
    grid-template-columns: 1fr;
  }

  .v28-case-card:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .v28-pillar-title {
    font-size: 3.5rem;
  }

  .v28-pillar-actions {
    display: flex;
  }

  .v28-pillar-actions .btn {
    width: auto;
    padding: 16px 32px;
    font-size: 14px;
  }

  .v28-pillar-stats .container,
  .v28-pillar-stats.is-three .container {
    min-height: 0;
  }

  .v28-pillar-stat {
    padding: 0;
  }

  .v28-pillar-deliver h2,
  .v28-pillar-section-heading h2 {
    font-size: 2rem;
  }

  .v28-pillar-description {
    font-size: 18px;
  }

  .v28-pillar-use-grid li,
  .v28-pillar-feature h3,
  .v28-pillar-feature p {
    font-size: 14px;
  }

  .v28-pillar-feature {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
  }

  .v28-pillar-feature > span {
    width: 32px;
    height: 32px;
  }

  .v28-pillar-section-heading {
    margin-bottom: 48px;
  }

  .v28-example-card > strong {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .v28-example-stage {
    margin-top: 24px;
    border-radius: 16px;
  }

  .v28-example-stage-copy {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px 32px;
  }

  .v28-example-stage-copy strong {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  }

  .v28-example-stage-copy span {
    font-size: 14px;
  }

  .v28-video-modal {
    width: 100vw;
  }

  .v28-video-modal-panel {
    padding: 0;
  }

  .v28-video-modal-close {
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
  }

  .v28-case-body h3 {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
  }

  .v28-case-link {
    opacity: 0;
  }

  .v28-pillar-cta {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .v28-pillar-cta h2 {
    font-size: 2.5rem;
  }

  .v28-pillar-cta .container > p:not(.v28-pillar-eyebrow) {
    font-size: 18px;
  }

  .v28-pillar-cta .v28-pillar-primary {
    width: auto;
    padding: 20px 40px;
    font-size: 16px;
  }

  .v28-service-pillar ~ .float-cta {
    right: 24px;
    bottom: 24px;
    left: auto;
  }

  body[data-page="serviceDetail"] .v7-chat-shell {
    right: auto;
    bottom: 24px;
    left: 16px;
  }

  .v28-back-to-top {
    right: 24px;
    bottom: 96px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v28-back-to-top:hover,
  .v28-service-pillar ~ .float-cta .btn:hover {
    transform: none;
  }
}
