.page-sector-detail {
  --detail-accent: #d98245;
  --detail-accent-soft: #f2dfd1;
  --detail-ink: #20303a;
  --detail-deep: #29485a;
  --detail-symbol-a: #b85d2d;
  --detail-symbol-b: #e58b50;
  background: #f5f7f7;
  color: var(--detail-ink);
}

.page-sector-detail.detail-database {
  --detail-accent: #2f715f;
  --detail-accent-soft: #d5e9e1;
  --detail-deep: #173f34;
  --detail-symbol-a: #245548;
  --detail-symbol-b: #377b65;
}

.page-sector-detail.detail-software {
  --detail-accent: #3d515d;
  --detail-accent-soft: #d9e1e4;
  --detail-deep: #263942;
  --detail-symbol-a: #202e37;
  --detail-symbol-b: #40545f;
}

.page-sector-detail .topbar {
  background: rgba(255, 255, 255, 0.96);
}

.page-sector-detail .nav a[aria-current="location"] {
  color: var(--detail-accent);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--detail-accent-soft) 72%, transparent) 0 17%, transparent 17.2%),
    radial-gradient(circle at 4% 94%, rgba(217, 130, 69, 0.13) 0 14%, transparent 14.2%),
    linear-gradient(118deg, #f4f7f8 0%, #eef3f4 58%, #e8edef 100%);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.87fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  color: #58707d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-breadcrumb::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--detail-accent);
}

.detail-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6.15vw, 6.25rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.048em;
}

.detail-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #43545d;
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  line-height: 1.55;
}

.detail-hero .hero-actions {
  margin-top: 30px;
}

.detail-hero .btn-main {
  background: var(--detail-accent);
}

.detail-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 470px);
  aspect-ratio: 1;
  justify-self: end;
  color: #fff;
  border-radius: 45% 55% 48% 52% / 52% 40% 60% 48%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255,255,255,.17), transparent 31%),
    linear-gradient(135deg, var(--detail-symbol-a), var(--detail-symbol-b));
  box-shadow: 0 30px 60px rgba(35, 60, 74, 0.24);
  isolation: isolate;
}

.detail-visual::before,
.detail-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.detail-visual::after {
  inset: 23%;
}

.detail-visual svg {
  width: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-story {
  padding-top: 78px;
}

.detail-story .story-card {
  min-height: 255px;
}

.detail-story .story-card-dark {
  background: var(--detail-deep);
}

.detail-story .story-card h2 {
  max-width: 780px;
}

.detail-feature-stack {
  gap: 28px;
}

.detail-feature {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(39, 65, 79, 0.1);
  background: #fff;
  box-shadow: 0 18px 45px rgba(35, 60, 74, 0.08);
}

.detail-feature-copy .value-kicker {
  color: var(--detail-accent);
}

.detail-feature-copy h2 {
  font-size: clamp(2rem, 3.9vw, 3.55rem);
}

.detail-feature .bullets li::marker {
  color: var(--detail-accent);
}

.detail-feature-visual {
  position: relative;
  display: grid;
  align-content: center;
  gap: 13px;
  min-height: 315px;
  padding: clamp(30px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 32% 68% 54% 46% / 44% 39% 61% 56%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, var(--detail-symbol-a), var(--detail-symbol-b));
  box-shadow: 0 26px 56px color-mix(in srgb, var(--detail-deep) 24%, transparent);
}

.detail-feature-visual::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.detail-feature-visual-icon {
  place-items: center;
  align-content: center;
  isolation: isolate;
}

.detail-feature-visual-icon::after {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.detail-segment-icon {
  position: relative;
  z-index: 1;
  width: min(62%, 250px);
  height: auto;
  max-height: 230px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 16px 22px rgba(15, 34, 43, 0.34));
}

.detail-feature-visual-icon[data-segment="scope"]::after {
  border-radius: 50%;
}

.detail-feature-visual-icon[data-segment="quality"]::after {
  width: 92%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.detail-feature-visual-icon[data-segment="result"]::after {
  width: 92%;
  border-radius: 50%;
}

.detail-feature-visual-icon[data-segment="quality"] {
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
}

.detail-feature-visual-icon[data-segment="result"] {
  border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%;
}

.detail-feature-visual-icon[data-segment="quality"] .detail-segment-icon {
  width: min(56%, 230px);
}

.detail-feature-visual-icon[data-segment="result"] .detail-segment-icon {
  width: min(58%, 244px);
}

.detail-cta .cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 91% 10%, color-mix(in srgb, var(--detail-accent) 34%, transparent) 0 17%, transparent 17.2%),
    var(--detail-deep);
  box-shadow: 0 24px 46px rgba(30, 55, 69, 0.16);
}

.detail-cta .eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-cta .section-title {
  margin: 0;
  color: #fff;
}

.detail-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.detail-cta .btn-main {
  color: #fff;
  background: #e47b37;
  box-shadow: 0 12px 24px rgba(190, 86, 31, 0.24);
}

.detail-cta .btn-main:hover {
  background: #c9652c;
}

.detail-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.detail-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    width: min(78vw, 430px);
    justify-self: center;
  }

  .detail-cta .cta-shell {
    grid-template-columns: 1fr;
  }

  .detail-cta .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .detail-hero {
    min-height: 0;
    padding: 64px 0 48px;
  }

  .detail-hero-grid {
    gap: 42px;
  }

  .detail-hero h1 {
    font-size: clamp(2.85rem, 13.4vw, 4.15rem);
  }

  .detail-visual {
    width: min(90vw, 360px);
  }

  .detail-story {
    padding-top: 48px;
  }

  .detail-feature {
    min-height: 0;
  }

  .detail-feature-visual {
    min-height: 245px;
  }

  .detail-cta .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-cta .btn-main,
  .detail-cta .btn-ghost {
    width: 100%;
  }
}
