/* Center Diplomat — technology landing pages 2026
   `/pro` and `/engineering`. Kept separate from homepage CSS. */

.cd-tech-page {
  background: #fff;
  color: var(--cd-ink, #1c1b19);
  font-family: 'Proxima Nova Regular', Arial, sans-serif;
}

.cd-tech-main {
  overflow: hidden;
}

.cd-tech-main .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}

.cd-tech-main h1,
.cd-tech-main h2,
.cd-tech-main h3 {
  font-family: 'Neumann', Georgia, serif;
  color: var(--cd-ink, #1c1b19);
}

.cd-tech-main h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.3;
  letter-spacing: -.035em;
  font-weight: 800;
}

.cd-tech-main h2 {
  margin: 0;
  margin-bottom: 25px;
  font-size: clamp(31px, 3.5vw, 50px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 750;
}

.cd-tech-main h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.22;
}

.cd-tech-main p,
.cd-tech-main li {
  font-size: 17px;
  line-height: 1.65;
}

.cd-tech-main p {
  color: var(--cd-muted, #665f56);
}

.cd-tech-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cd-brand-2, #b20000);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cd-tech-eyebrow--light {
  color: #f4d693;
}

.cd-tech-hero {
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.40) 100%),
    url('/assets/tpl/img/scr-1-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}

.cd-tech-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(141,25,25,.12);
}

.cd-tech-hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 48px;
  align-items: center;
}

.cd-tech-hero__grid::before,
.cd-tech-hero__grid::after,
.container.cd-tech-split::before,
.container.cd-tech-split::after,
.container.cd-tech-final__inner::before,
.container.cd-tech-final__inner::after {
  content: none !important;
  display: none !important;
}

.cd-tech-hero__copy > p {
  max-width: 760px;
}

.cd-tech-hero__lead {
  margin: 24px 0 8px;
  font-size: clamp(20px, 2vw, 25px) !important;
  line-height: 1.48 !important;
  color: #2d3640 !important;
}

.cd-tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cd-tech-trial {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--cd-accent, #cd981a);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 30px rgba(24,52,78,.06);
}

.cd-tech-trial strong {
  color: var(--cd-brand-2, #b20000);
}

.cd-tech-trial span {
  color: var(--cd-muted, #665f56);
}

.cd-tech-cloud {
  position: absolute;
  z-index: 1;
  width: 420px;
  height: 210px;
  opacity: .25;
  background: url('/assets/tpl/img/cloud.png') center / contain no-repeat;
  pointer-events: none;
}

.cd-tech-cloud--1 {
  top: 5%;
  left: -140px;
  animation: cdTechCloudOne 24s ease-in-out infinite alternate;
}

.cd-tech-cloud--2 {
  right: -160px;
  bottom: 2%;
  animation: cdTechCloudTwo 30s ease-in-out infinite alternate;
}

@keyframes cdTechCloudOne {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(100px,16px,0); }
}

@keyframes cdTechCloudTwo {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-120px,-10px,0); }
}

.cd-tech-hero__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-tech-hero__visual--boy img {
  position: relative;
  z-index: 2;
  max-width: min(100%, 520px);
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(37, 51, 63, .16));
}

.cd-tech-code-card {
  position: absolute;
  z-index: 4;
  padding: 13px 17px;
  border: 1px solid rgba(141,25,25,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 42px rgba(24,52,78,.12);
  color: #333;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.cd-tech-code-card--top { top: 70px; right: 0; }
.cd-tech-code-card--bottom { bottom: 58px; left: 0; }

.cd-engineering-console {
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid rgba(141,25,25,.18);
  border-radius: 24px;
  background: #211f1d;
  box-shadow: 0 30px 80px rgba(35,29,23,.20);
  transform: rotate(1.4deg);
}

.cd-engineering-console__top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cd-engineering-console__top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #caa058;
}

.cd-engineering-console__body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 38px;
}

.cd-engineering-console__body span,
.cd-engineering-console__body strong {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #efe8d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
  letter-spacing: .08em;
}

.cd-engineering-console__body strong {
  grid-column: 1 / -1;
  border-color: #d2a244;
  color: #f3cf83;
  font-size: 21px;
}

.cd-tech-section {
  position: relative;
  padding: 96px 0;
}

.cd-tech-section--soft {
  background: var(--cd-soft, #f7f3ea);
}

.cd-tech-section--dark {
  background: var(--cd-brand, #8d1919);
  color: #fff;
}

.cd-tech-section--dark h2,
.cd-tech-section--dark p {
  color: #fff !important;
}

.cd-tech-section-head {
  max-width: 820px;
  margin-bottom: 44px;
}

.cd-tech-section-head > p {
  margin-top: 18px;
  max-width: 760px;
}

.cd-tech-cards {
  display: grid;
  gap: 18px;
}

.cd-tech-cards--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cd-tech-cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

.cd-tech-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid #e4e1da;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24,52,78,.06);
}

.cd-tech-card__n {
  display: block;
  margin-bottom: 28px;
  color: var(--cd-accent-dark, #a8780d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.cd-tech-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cdroute;
}

.cd-tech-route li {
  position: relative;
  min-height: 180px;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24,52,78,.06);
  counter-increment: cdroute;
}

.cd-tech-route li::before {
  content: "0" counter(cdroute);
  display: block;
  margin-bottom: 22px;
  color: var(--cd-brand-2, #b20000);
  font-weight: 800;
  letter-spacing: .08em;
}

.cd-tech-route strong,
.cd-tech-route span {
  display: block;
}

.cd-tech-route strong {
  margin-bottom: 8px;
  font-size: 19px;
}

.cd-tech-route span {
  color: var(--cd-muted, #665f56);
}

.cd-tech-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 70px;
  align-items: center;
}

.cd-tech-proof {
  padding: 30px;
  border-left: 4px solid var(--cd-accent, #cd981a);
  border-radius: 0 20px 20px 0;
  background: var(--cd-soft, #f7f3ea);
}

.cd-tech-checks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cd-tech-checks li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--cd-muted, #665f56);
}

.cd-tech-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cd-brand-2, #b20000);
  font-weight: 900;
}

.cd-tech-lab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cd-tech-lab-list span {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.cd-tech-package {
  background:
    radial-gradient(circle at 100% 0%, rgba(205,152,26,.15), transparent 42%),
    #fff;
}

.cd-tech-package__box {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 50px;
  padding: 46px;
  border: 1px solid #eadfca;
  border-radius: 26px;
  background: #fbf7ef;
  box-shadow: 0 20px 55px rgba(70,50,28,.08);
}

.cd-tech-lead-sm {
  font-size: 20px !important;
  line-height: 1.55 !important;
  color: #333 !important;
}

.cd-tech-package__aside {
  padding: 26px;
  border-radius: 18px;
  background: #fff;
}

.cd-tech-package__aside > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cd-brand, #8d1919);
  font-size: 19px;
}

.cd-tech-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  border-radius: 22px;
  background: #211f1d;
}

.cd-tech-next span {
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
}

.cd-tech-next b {
  color: #d9ad55;
  font-size: 22px;
}

.cd-tech-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.cd-tech-compare article {
  padding: 34px;
  border: 1px solid #e4e1da;
  border-radius: 22px;
  background: #fff;
}

.cd-tech-compare__accent {
  border-color: rgba(141,25,25,.25) !important;
  background: #fbf7ef !important;
}

.cd-tech-compare__label {
  margin-bottom: 22px;
  color: var(--cd-brand-2, #b20000);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cd-tech-compare__arrow {
  align-self: center;
  color: var(--cd-accent-dark, #a8780d);
  font-size: 28px;
}

.cd-tech-compare a {
  color: var(--cd-brand, #8d1919);
  font-weight: 700;
}

.cd-tech-faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.cd-tech-faq details {
  overflow: hidden;
  border: 1px solid #e3ddd2;
  border-radius: 16px;
  background: #fff;
}

.cd-tech-faq summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--cd-ink, #1c1b19);
  font-size: 18px;
  font-weight: 750;
}

.cd-tech-faq details p {
  margin: 0;
  padding: 0 24px 22px;
}

.cd-tech-final {
  padding: 72px 0;
  background: var(--cd-brand, #8d1919);
}

.cd-tech-final__inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.cd-tech-final h2,
.cd-tech-final p {
  color: #fff !important;
}

.cd-tech-final p {
  max-width: 680px;
}

.cd-btn--light {
  background: #fff;
  color: var(--cd-brand, #8d1919) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

/* Homepage technology block enhancement */
.cd-home-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.cd-home-tech-card {
  padding: 30px;
  border: 1px solid #e4e1da;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24,52,78,.06);
}

.cd-home-tech-card--accent {
  background: #fbf7ef;
  border-color: #eadfca;
}

.cd-home-tech-card__tag {
  margin-bottom: 18px;
  color: var(--cd-brand-2, #b20000);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cd-home-tech-package {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 22px 26px;
  border-left: 3px solid var(--cd-accent, #cd981a);
  background: #fff;
}

.cd-home-tech-package strong {
  font-size: 18px;
}

.cd-home-tech-package span {
  color: var(--cd-muted, #665f56);
}

.cd-home-tech-package div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.cd-home-tech-package a {
  color: var(--cd-brand, #8d1919);
  font-weight: 750;
}

@media (max-width: 991px) {
  .cd-tech-hero {
    min-height: 0;
    padding: 72px 0;
  }

  .cd-tech-hero__grid,
  .cd-tech-split,
  .cd-tech-package__box {
    grid-template-columns: 1fr;
  }

  .cd-tech-hero__visual {
    min-height: 380px;
  }

  .cd-tech-hero__visual--boy img {
    max-height: 430px;
  }

  .cd-tech-cards--4,
  .cd-tech-cards--3,
  .cd-tech-route {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .cd-tech-compare {
    grid-template-columns: 1fr;
  }

  .cd-tech-compare__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .cd-home-tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cd-tech-main .container {
    width: min(100% - 28px, 1180px);
  }

  .cd-tech-main h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.10;
  }

  .cd-tech-main h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.14;
  }

  .cd-tech-main p,
  .cd-tech-main li {
    font-size: 16px;
  }

  .cd-tech-hero {
    padding: 54px 0;
  }

  .cd-tech-hero__grid {
    gap: 24px;
  }

  .cd-tech-hero__visual {
    min-height: 300px;
  }

  .cd-tech-code-card {
    font-size: 11px;
  }

  .cd-tech-code-card--top { top: 28px; right: 0; }
  .cd-tech-code-card--bottom { bottom: 22px; left: 0; }

  .cd-engineering-console__body {
    padding: 22px;
  }

  .cd-engineering-console__body span,
  .cd-engineering-console__body strong {
    padding: 12px;
    font-size: 12px;
  }

  .cd-tech-section {
    padding: 66px 0;
  }

  .cd-tech-cards--4,
  .cd-tech-cards--3,
  .cd-tech-route {
    grid-template-columns: 1fr;
  }

  .cd-tech-package__box {
    padding: 26px 20px;
  }

  .cd-tech-final__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cd-tech-final__inner .cd-btn {
    width: 100%;
  }

  .cd-tech-actions .cd-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-tech-cloud {
    animation: none !important;
  }
}