.tools-page {
  min-height: 100vh;
  color: var(--ink);
  background: #f4f7fb;
}

.tools-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: white;
  background: rgba(4, 18, 46, .82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.tools-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tools-nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.tools-nav nav > a:not(.button) {
  color: rgba(255,255,255,.7);
}

.tools-nav nav > a:not(.button):hover {
  color: white;
}

.tools-lang-switch {
  min-height: 34px;
  padding: 0 11px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font: 800 12px "DM Sans", sans-serif;
}

.tools-lang-switch:hover {
  color: white;
  background: rgba(255,255,255,.14);
}

.tools-hero {
  position: relative;
  overflow: hidden;
  padding: 145px 0 105px;
  color: white;
  background:
    linear-gradient(120deg, rgba(6,24,59,.99), rgba(7,36,83,.94)),
    radial-gradient(circle at 82% 22%, rgba(36,199,244,.28), transparent 34%);
}

.tools-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 62px 62px;
}

.tools-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 62px;
  align-items: center;
}

.tools-hero-copy h1 {
  margin: 0;
  font: 800 clamp(54px, 6vw, 84px)/.96 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.tools-hero-copy p {
  max-width: 560px;
  margin: 24px 0 30px;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  line-height: 1.7;
}

.tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.tools-hero-actions button {
  border: 0;
  cursor: pointer;
}

.tools-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tools-trust span {
  padding: 8px 11px;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
}

.app-shell {
  min-height: 650px;
  display: grid;
  grid-template-columns: 205px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 25px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 38px 100px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
}

.app-sidebar {
  padding: 22px 15px;
  border-right: 1px solid rgba(255,255,255,.1);
  background: rgba(4,18,46,.52);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font: 800 15px "Manrope", sans-serif;
}

.app-logo .brand-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 26px;
}

.app-sidebar button {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 0 13px;
  color: rgba(255,255,255,.62);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.app-sidebar button:hover,
.app-sidebar button.active {
  color: white;
  border-color: rgba(36,199,244,.22);
  background: rgba(36,107,254,.2);
}

.app-main {
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 85% 0%, rgba(36,199,244,.15), transparent 28%),
    linear-gradient(145deg, rgba(9,35,79,.92), rgba(5,17,43,.95));
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.app-topbar span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.app-topbar strong {
  font: 800 24px "Manrope", sans-serif;
}

.scan-button {
  min-height: 40px;
  padding: 0 17px;
  color: white;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 25px rgba(36,107,254,.26);
  cursor: pointer;
  font-weight: 800;
}

.health-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.health-score,
.scan-progress,
.metric-grid article,
.module-detail,
.findings article {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
}

.health-score {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 18px;
  text-align: center;
}

.health-score span,
.health-score small {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.health-score strong {
  margin: 8px 0;
  color: #73ddff;
  font: 800 52px/1 "Manrope", sans-serif;
}

.scan-progress {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
}

.scan-progress span {
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.scan-progress div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.scan-progress div span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), #3ce58b);
  transition: width .4s ease;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.metric-grid article {
  padding: 17px;
  border-radius: 15px;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.metric-grid strong {
  display: block;
  margin: 7px 0 4px;
  font: 800 26px "Manrope", sans-serif;
}

.module-detail {
  min-height: 150px;
  margin-bottom: 15px;
  padding: 24px;
  border-radius: 18px;
}

.module-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: #7fe2ff;
  border-radius: 999px;
  background: rgba(36,199,244,.12);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.module-detail h2 {
  max-width: 560px;
  margin: 0 0 10px;
  font: 800 25px/1.16 "Manrope", sans-serif;
}

.module-detail p {
  max-width: 610px;
  margin: 0;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
}

.findings {
  display: grid;
  gap: 10px;
}

.findings article {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 14px;
}

.finding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.finding-dot.warning { background: #f7b955; box-shadow: 0 0 0 5px rgba(247,185,85,.12); }
.finding-dot.info { background: #58ccff; box-shadow: 0 0 0 5px rgba(88,204,255,.12); }
.finding-dot.good { background: #3ce58b; box-shadow: 0 0 0 5px rgba(60,229,139,.12); }

.findings strong,
.findings small {
  display: block;
}

.findings strong {
  font-size: 13px;
}

.findings small {
  margin-top: 3px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.findings button {
  min-height: 32px;
  padding: 0 12px;
  color: white;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.module-section {
  background: var(--soft);
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-cards article {
  min-height: 225px;
  padding: 25px;
  border: 1px solid #e1e8f2;
  border-radius: 17px;
  background: white;
  box-shadow: 0 18px 44px rgba(12,50,100,.06);
}

.module-cards span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--blue);
  border-radius: 11px;
  background: #edf3ff;
  font-size: 11px;
  font-weight: 800;
}

.module-cards h3 {
  margin: 0 0 10px;
  font: 800 18px "Manrope", sans-serif;
}

.module-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.next-section {
  color: white;
  background: var(--navy);
}

.next-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.next-grid h2 {
  margin: 0;
  font: 800 clamp(36px, 4vw, 52px)/1.08 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.next-list {
  display: grid;
  gap: 15px;
}

.next-list article {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.next-list strong {
  font: 800 18px "Manrope", sans-serif;
}

.next-list span {
  max-width: 420px;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
}

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

  .app-shell {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .tools-nav nav > a:not(.button) {
    display: none;
  }

  .tools-hero {
    padding-top: 120px;
  }

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

  .app-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .app-logo {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .app-sidebar button {
    margin: 0;
  }

  .health-row,
  .metric-grid,
  .module-cards {
    grid-template-columns: 1fr;
  }

  .next-list article {
    display: block;
  }

  .next-list span {
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .tools-nav {
    height: 70px;
  }

  .tools-nav .button {
    display: none;
  }

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

  .tools-hero-actions .button,
  .tools-hero-actions button {
    width: 100%;
  }

  .app-main {
    padding: 16px;
  }

  .app-topbar,
  .findings article {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    display: grid;
  }

  .scan-button {
    width: 100%;
  }
}
