/* Capabilities Hero overrides */
.cap-hero .hero-inner {
  padding: 80px 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.cap-hero .hero-inner>div:first-child {
  flex: 0 0 60% !important;
  max-width: 60% !important;
}

.cap-hero .hero-visual {
  flex: 0 0 40% !important;
  max-width: 40% !important;
  width: 100% !important;
  position: relative;
  z-index: 2;
}

.cap-eyebrow-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  background: var(--teal-bg);
  border: 1.5px solid var(--teal-line);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.65s 0.12s forwards;
}

.cap-hero .hero-h1 {
  margin-bottom: 0;
}

/* Global Data Pipeline Card */
.gdp-card {
  background: var(--navy);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(12, 28, 53, 0.18), 0 2px 8px rgba(12, 28, 53, 0.06);
}

.gdp-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gdp-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.gdp-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}

.gdp-panel {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 80px;
  transition: background 0.3s;
}

.gdp-panel:hover {
  background: rgba(255, 255, 255, 0.07);
}

.gdp-panel-wide {
  grid-column: span 2;
  min-height: 110px;
}

.gdp-panel-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
}

.gdp-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--teal-deep);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.gdp-bar-bright {
  background: var(--teal);
  opacity: 0.85;
}

.gdp-panel:hover .gdp-bar {
  opacity: 1;
}

.gdp-bar-bottom {
  margin-left: auto;
}

/* Wave SVG */
.gdp-wave-container {
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gdp-wave {
  width: 100%;
  height: 60%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Vertical scan line animation */
.gdp-wave-container::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--teal), transparent);
  opacity: 0.4;
  animation: scanLine 4s ease-in-out infinite;
}

@keyframes scanLine {

  0%,
  100% {
    left: 5%;
  }

  50% {
    left: 95%;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .cap-hero .hero-inner {
    text-align: center;
    flex-direction: column;
    gap: 48px;
    padding: 40px 0 60px;
  }

  .cap-hero .hero-inner>div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .cap-hero .hero-visual {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto;
  }

  .cap-eyebrow-pill {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .gdp-body {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px;
  }

  .gdp-panel-wide {
    grid-column: span 2;
  }

  .gdp-panel {
    min-height: 60px;
  }

  .cap-hero .hero-h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
}

/* ═══ ALL OUR CAPABILITIES ═══ */
.allcap-heading {
  text-align: center;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 48px;
}

.allcap-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.allcap-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(12, 28, 53, 0.06);
}

/* Tabs */
.allcap-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.allcap-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  position: relative;
  font-family: var(--font-main);
}

.allcap-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--border);
}

.allcap-tab:hover {
  background: var(--snow);
}

.allcap-tab.active {
  border-left-color: var(--teal);
  background: var(--snow);
}

.allcap-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--snow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.25s;
}

.allcap-tab.active .allcap-tab-icon {
  background: var(--teal-bg);
  color: var(--teal);
}

.allcap-tab-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.allcap-tab-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Content Panels */
.allcap-content {
  padding: 48px;
  position: relative;
  min-height: 420px;
}

.allcap-panel {
  display: none;
  animation: capFadeIn 0.35s ease forwards;
}

.allcap-panel.active {
  display: block;
}

@keyframes capFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.allcap-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.allcap-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.allcap-panel-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.allcap-panel-desc {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.allcap-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  margin-bottom: 40px;
}

.allcap-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.55;
}

.allcap-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-bg);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.allcap-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(0, 184, 169, 0.25);
}

.allcap-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 184, 169, 0.35);
}

.allcap-cta span {
  font-size: 18px;
  transition: transform 0.25s;
}

.allcap-cta:hover span {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1120px) {
  .allcap-wrap {
    grid-template-columns: 260px 1fr;
  }

  .allcap-content {
    padding: 36px;
  }

  .allcap-checks {
    gap: 14px 28px;
  }
}

@media (max-width: 768px) {
  .allcap-wrap {
    grid-template-columns: 1fr;
  }

  .allcap-tabs {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .allcap-tab {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 20px;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
  }

  .allcap-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .allcap-tab:not(:last-child)::after {
    display: none;
  }

  .allcap-tab-sub {
    display: none;
  }

  .allcap-content {
    padding: 32px 24px;
  }

  .allcap-checks {
    grid-template-columns: 1fr;
  }
}