.itop-page [hidden] {
  display: none !important;
}

.itop-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 5vw;
  padding-top: 65px;
  padding-bottom: 75px;
}

.itop-hero > *,
.itop-feature > *,
.project-grid > * {
  min-width: 0;
}

.itop-hero h1 {
  font-size: clamp(34px, 4.1vw, 62px);
}

.itop-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}

.itop-actions .button {
  gap: 22px;
}

.cmdb-map {
  position: relative;
  margin: 0;
  padding: 24px;
  border: 1px solid #8bb4ff66;
  background: radial-gradient(ellipse at 50% 50%, #3676ec44, transparent 80%),
    radial-gradient(#9fbfff33 1px, transparent 1px), #0b2c75;
  background-size: auto, 18px 18px, auto;
  box-shadow: 14px 14px 0 #04143f55;
}

.cmdb-map-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  font: 0.75rem/1.7 monospace;
  color: #b8d1ff;
}

.cmdb-map-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 18px;
  padding: 28px 0;
}

.cmdb-map-nodes::before {
  content: "";
  position: absolute;
  top: 75px;
  bottom: 75px;
  left: 25%;
  right: 25%;
  border: 1px solid #b6d0ff88;
}

.map-node,
.map-center {
  position: relative;
  padding: 18px 12px;
  border: 1px solid #88b0f388;
  background: #0b2b76;
  text-align: center;
  overflow-wrap: anywhere;
}

.map-node {
  transition: background 0.2s, border-color 0.2s;
}

.map-node:hover {
  background: #1647ad;
  border-color: var(--green);
  text-decoration: none;
}

.node-symbol,
.map-node strong,
.map-node small {
  display: block;
}

.node-symbol {
  font-size: 26px;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 8px;
}

.map-node strong {
  font-size: 15px;
}

.map-node small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.875rem;
}

.map-center {
  grid-column: 1 / -1;
  width: 78%;
  justify-self: center;
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.map-center > span {
  display: block;
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
}

.map-center small {
  display: block;
  margin-top: 8px;
  font: 0.75rem/1.6 monospace;
}

.cmdb-map figcaption {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.itop-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.itop-topics b {
  color: var(--green);
  font: 0.875rem monospace;
  margin-right: 8px;
}

.itop-topics span {
  min-width: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.itop-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 45px;
  background: linear-gradient(125deg, #174bb8, #0b2b77);
  border: 1px solid #91b6ff55;
  border-top: 4px solid var(--green);
}

.itop-feature h2 {
  font-size: clamp(32px, 3.7vw, 52px);
}

.itop-feature p,
.itop-feature-list {
  color: #c7d8f9;
  font-size: 14px;
}

.itop-feature .itop-feature-lead {
  margin-top: 28px;
  font-size: 19px;
  color: white;
}

.itop-feature-list {
  padding-left: 18px;
}

.itop-feature-list li {
  padding: 5px 0;
}

.isms-workflow {
  align-self: center;
  background: #04174477;
  border: 1px solid #8bb4ff55;
  padding: 28px;
}

.isms-workflow ol {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.isms-workflow li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 25px;
}

.isms-workflow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 0;
  border-left: 1px solid #9fc1ff77;
}

.isms-workflow li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--green);
  color: var(--green);
  font: 0.875rem monospace;
}

.isms-workflow h3 {
  margin: 3px 0 9px;
  font-size: 20px;
}

.isms-workflow li p {
  margin: 0;
  font-size: 0.875rem;
}

.isms-workflow .workflow-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.itop-projects {
  padding-top: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff07, #ffffff02);
  transition: border-color 0.2s, background 0.2s;
}

.project-card:hover,
.project-card:focus-within {
  border-color: #b3ccff;
  background: #1646a5;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: #a6c5ff;
  font: 0.75rem/1.6 monospace;
}

.project-card-top > span:last-child {
  color: var(--green);
}

.project-card h3 {
  margin: 28px 0 16px;
  font-size: 26px;
}

.project-card > p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 20px;
}

.project-card .project-hook {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.project-card .project-tags {
  margin-top: auto;
  color: #9fbfff;
  font-size: 0.875rem;
}

.project-card > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--green);
}

.project-footnote {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.itop-approach {
  background: #061642;
}

@media (max-width: 1050px) {
  .itop-feature {
    gap: 30px;
    padding: 30px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itop-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .itop-hero,
  .itop-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .cmdb-map {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 550px) {
  .itop-hero {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .itop-topics {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    font-size: 0.875rem;
  }

  .itop-topics b {
    display: block;
    margin-bottom: 5px;
  }

  .itop-feature {
    padding: 25px 20px;
  }

  .isms-workflow {
    padding: 20px 16px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card {
    padding: 25px;
  }

  .cmdb-map {
    padding: 18px;
  }

  .cmdb-map-nodes {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-center {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-node,
  .project-card {
    transition: none;
  }
}
