.tools-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 84% 16%, rgba(33, 111, 204, .58), transparent 28%), linear-gradient(125deg, #061526, #0b2a4a 72%);
  color: #fff;
}

nav a[aria-current="page"]::after {
  right: 0;
}

.tools-hero::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -260px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018);
}

.tools-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 70px;
  align-items: center;
  min-height: 590px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.tools-hero h1 {
  max-width: 790px;
  margin: 0 0 24px;
  font-size: clamp(52px, 6.3vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.tools-hero h1 em {
  color: var(--sky);
  font-style: normal;
}

.tools-hero p {
  max-width: 720px;
  margin: 0;
  color: #c6d7e8;
  font-size: 18px;
  line-height: 1.65;
}

.tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tools-hero-panel {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px rgba(0,0,0,.23);
}

.tools-panel-label {
  display: block;
  color: var(--sky);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tools-hero-panel > strong {
  display: block;
  margin: 10px 0 -6px;
  font-size: 86px;
  line-height: 1;
  letter-spacing: -.07em;
}

.tools-hero-panel > p {
  margin: 0 0 26px;
  color: #e3eff8;
  font-size: 15px;
}

.tools-hero-panel > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #c7d8e7;
  font-size: 13px;
}

.tools-hero-panel > div span {
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}

.tool-library {
  background: #f5f8fb;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-group-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 -2px;
  padding: 18px 21px;
  border-left: 4px solid #005eb8;
  background: #e8f2fa;
}

.tool-group-heading > div { display: flex; gap: 15px; align-items: center; }
.tool-group-heading img { width: 88px; height: 34px; object-fit: contain; }
.tool-group-heading span { color: #113a5c; font-size: 16px; font-weight: 900; }
.tool-group-heading a { color: #005eb8; font-size: 12px; font-weight: 900; text-decoration: none; }

.external-tool-resource {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 30px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #edf5f9);
  box-shadow: 0 14px 40px rgba(7,24,43,.06);
}

.external-tool-resource img { width: 145px; max-height: 64px; object-fit: contain; }
.external-tool-resource span { color: #60798b; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.external-tool-resource h3 { margin: 4px 0 7px; font-size: 25px; }
.external-tool-resource p { margin: 0; color: #607184; }
.external-tool-resource > a { color: #005eb8; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }

.tool-card {
  display: flex;
  min-height: 395px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 24, 43, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: #b4c9dd;
  box-shadow: 0 24px 55px rgba(7, 24, 43, .12);
}

.tool-card-featured {
  background: linear-gradient(145deg, #0a2340, #0e3f70);
  color: #fff;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.tool-status,
.tool-type {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tool-status {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ddf8e9;
  color: #1d6748;
}

.tool-type {
  color: #718295;
}

.tool-card-featured .tool-status {
  background: var(--lime);
  color: #173306;
}

.tool-card-featured .tool-type {
  color: #b9d3e7;
}

.tool-logo {
  width: 152px;
  height: 58px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: left center;
}

.eaton-tool-logo {
  width: 122px;
  height: 52px;
}

.cementex-tool-logo {
  width: 150px;
  height: 58px;
}

.electrafy-tool-logo {
  width: 154px;
  height: 58px;
}

.tool-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--sky);
  font-weight: 900;
  letter-spacing: .08em;
}

.tool-card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -.025em;
}

.tool-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tool-card-featured p {
  color: #c3d5e4;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.tool-tags span {
  padding: 6px 8px;
  border-radius: 4px;
  background: #eef3f7;
  color: #526a7e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card-featured .tool-tags span {
  background: rgba(255,255,255,.1);
  color: #d7e8f5;
}

.tool-card > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.tool-card-featured > a {
  border-color: rgba(255,255,255,.16);
  color: var(--sky);
}

.product-selector-section {
  background: #fff;
}

.selector-shell {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(380px, 1.07fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.selector-form {
  padding: 34px;
  background: #fff;
}

.selector-progress {
  display: flex;
  align-items: center;
  max-width: 230px;
  margin-bottom: 28px;
}

.selector-progress span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #b9c9d7;
  border-radius: 50%;
  color: #768899;
  font-size: 11px;
  font-weight: 850;
}

.selector-progress span.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.selector-progress i {
  flex: 1;
  height: 1px;
  background: #cdd8e2;
}

.selector-field {
  margin-bottom: 18px;
}

.selector-field label {
  display: block;
  margin-bottom: 7px;
  color: #23364a;
  font-size: 13px;
  font-weight: 800;
}

.selector-field select,
.selector-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #9fb1c0;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.selector-field textarea {
  min-height: 98px;
  resize: vertical;
}

.selector-field select:focus,
.selector-field textarea:focus,
.selector-form button:focus {
  outline: 3px solid #8dccf5;
  outline-offset: 2px;
}

.selector-form > button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.selector-form > button:hover {
  background: var(--blue-2);
}

.selector-result {
  position: relative;
  overflow: hidden;
  padding: 38px;
  background: radial-gradient(circle at 100% 0, #1b578b, transparent 35%), linear-gradient(145deg, #07182b, #0c2a48);
  color: #fff;
}

.selector-result-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.selector-result h3 {
  margin: 0 0 13px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.selector-result > p {
  color: #bdcfdf;
  line-height: 1.62;
}

.selection-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.selection-context span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #d6e6f2;
  font-size: 11px;
}

.selection-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.selection-line {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  background: rgba(255,255,255,.07);
}

.selection-line strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.selection-line span {
  display: block;
  color: #b8cddd;
  font-size: 13px;
  line-height: 1.45;
}

.selection-line a {
  display: inline-block;
  margin-top: 9px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.selection-confirm {
  margin-top: 18px;
  padding: 14px 15px;
  border-left: 3px solid var(--lime);
  background: rgba(255,255,255,.08);
  color: #d7e5f0;
  font-size: 13px;
  line-height: 1.55;
}

.selection-stale {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #ffd98a;
  border-radius: 5px;
  background: #5a4519;
  color: #fff1c9;
  font-size: 12px;
  font-weight: 750;
}

.product-selector-section .calculator-lead-slot {
  margin-bottom: 0;
}

.thermon-tool-logo {
  width: 160px;
  max-width: 72%;
  height: 62px;
  padding: 7px 12px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.lind-tool-logo {
  width: 176px;
  max-width: 78%;
  height: 62px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.tool-process {
  background: #eef3f7;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-grid article {
  padding: 25px;
  border-top: 3px solid var(--blue);
  background: #fff;
}

.process-grid article > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.process-grid h3 {
  margin: 17px 0 8px;
  font-size: 20px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.future-tools {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 30px;
  background: var(--navy);
  color: #fff;
}

.future-tools span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.future-tools h3 {
  margin: 8px 0 6px;
  font-size: 25px;
}

.future-tools p {
  max-width: 740px;
  margin: 0;
  color: #b7c9d8;
  font-size: 14px;
  line-height: 1.55;
}

.future-tools > strong {
  flex: 0 0 auto;
  color: var(--sky);
  font-size: 18px;
  line-height: 1.45;
  text-align: right;
}

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

  .tools-hero-grid {
    gap: 35px;
  }

  .tools-hero-panel {
    max-width: 500px;
  }

  .tool-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .external-tool-resource { grid-template-columns: 120px minmax(0, 1fr); }
  .external-tool-resource > a { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .tools-hero-grid {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .tools-hero h1 {
    font-size: 48px;
  }

  .tool-card-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .tool-group-heading, .external-tool-resource { display: flex; align-items: flex-start; flex-direction: column; }
  .tool-group-heading { margin-top: 6px; }
  .external-tool-resource img { width: 125px; }

  .selector-form,
  .selector-result {
    padding: 24px;
  }

  .future-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .future-tools > strong {
    text-align: left;
  }
}
