/* ================================================
   SECTION / BACKDROP
================================================ */
.platform-diagram {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.platform-diagram::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,41,60,0.26) 0%, transparent 65%),
    linear-gradient(180deg, var(--vapor-mid) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
  pointer-events: none;
}

.diagram-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.diagram-logo {
  width: 164px;
  margin-bottom: 44px;
}

.diagram-logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* ================================================
   TIER 1 — PILLAR COLUMNS (repeater)
================================================ */
.tier-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1000px;
}

.pillar {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 14px 16px;

  /* Derived from the single picked --pillar-color.
     Fallback for browsers without color-mix() support: */
  background: var(--pillar-color);
}

@supports (background: color-mix(in srgb, red, blue)) {
  .pillar {
    --pillar-dark:  color-mix(in srgb, var(--pillar-color) 75%, black 25%);
    --pillar-light: color-mix(in srgb, var(--pillar-color) 55%, white 45%);
    --pillar-top:   color-mix(in srgb, var(--pillar-color) 45%, white 55%);
    background: linear-gradient(180deg, var(--pillar-top) 0%, #fff 35%);
  }

  .pillar-pill {
    background: linear-gradient(90deg, var(--pillar-dark) 0%, var(--pillar-light) 100%);
  }
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--lightgray);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 60%);
  pointer-events: none;
}

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.pillar-icon {
  width: 72px;
  margin: -20px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.pillar-header {
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
}

.pillar-items {
  list-style: none;
  padding: 0 10px;
}

.pillar-items li + li {
  margin-top: 16px;
}

.pillar-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--pillar-color); /* color-mix() override above when supported */
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  transition: filter 0.15s;
}

.pillar-pill:hover {
  filter: brightness(1.2);
  color: #fff;
}

.pillar-pill:hover .pillar-pill-icon {
  transform: translateX(-3px);
}

.pillar-pill-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.pillar-pill-icon img {
  width: 12px;
  height: 12px;
  display: block;
}

.pillar-pill span.pillar-pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================
   TIER 2 — AI DEFENSE AGENTS
================================================ */
.tier-aida {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.15);
}

.aida-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--black);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 20px;
  border-radius: 100px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.18);
  transition: box-shadow 0.15s;
}

.aida-pill:hover {
  background: #fff;
  color: var(--black);
  font-weight: 400;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.aida-icons {
  flex-wrap: nowrap;
  justify-content: space-evenly;
  width: 100%;
}

@keyframes aidaBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: no-preference) {
  .tier-aida.is-hovering .aida-icon {
    animation: aidaBob 0.9s ease-in-out infinite;
  }

  .aida-icons--left .aida-icon:nth-child(1)  { animation-delay: 0s; }
  .aida-icons--left .aida-icon:nth-child(2)  { animation-delay: 0.08s; }
  .aida-icons--left .aida-icon:nth-child(3)  { animation-delay: 0.16s; }
  .aida-icons--left .aida-icon:nth-child(4)  { animation-delay: 0.24s; }
  .aida-icons--left .aida-icon:nth-child(5)  { animation-delay: 0.32s; }
  .aida-icons--left .aida-icon:nth-child(6)  { animation-delay: 0.40s; }
  .aida-icons--right .aida-icon:nth-child(1) { animation-delay: 0.48s; }
  .aida-icons--right .aida-icon:nth-child(2) { animation-delay: 0.56s; }
  .aida-icons--right .aida-icon:nth-child(3) { animation-delay: 0.64s; }
  .aida-icons--right .aida-icon:nth-child(4) { animation-delay: 0.72s; }
  .aida-icons--right .aida-icon:nth-child(5) { animation-delay: 0.80s; }
  .aida-icons--right .aida-icon:nth-child(6) { animation-delay: 0.88s; }
}

.aida-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(0,41,60,0.30);
  border-radius: 50%;
  background: #fff;
  padding: 7px;
}

.aida-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ================================================
   TIER 3–5 — STACKED BARS (repeater)
================================================ */
.tier-bar {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin-top: 10px;
  border-radius: 10px;
  padding: 9px 28px;
  text-align: center;
  font-size: 15px;
/*   font-weight: 600; */
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  overflow: hidden;
  background: rgba(0,40,60,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tier-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(0,40,60,0.5) 0%, rgba(0,72,100,0.55) 50%, rgba(0,40,60,0.5) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

a.tier-bar:hover::before {
  opacity: 1;
}

a.tier-bar:hover,
a.tier-bar:visited,
a.tier-bar:focus {
  color: rgba(255,255,255,0.92);
/*   font-weight: 600; */
}

.tier-bar-label {
  position: relative;
  z-index: 1;
}

/* ================================================
   TIER 6 — KNOWBE4 PLATFORM BASE
================================================ */
.tier-platform {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
  background: linear-gradient(100deg, var(--vermillion) 0%, #8a3350 55%, var(--indigo) 100%);
  border-radius: 10px;
  padding: 18px 28px;
  text-align: center;
  font-size: 22px;
/*   font-weight: 600; */
  color: rgba(255,255,255,0.97);
}

/* ================================================
   RISE-IN ANIMATION
================================================ */
@keyframes riseUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .diagram-logo,
  .pillar,
  .tier-aida,
  .tier-bar,
  .tier-platform {
    opacity: 0;
  }

  .diagram-logo    { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0s both; }
  .pillar:nth-child(1) { animation: riseUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
  .pillar:nth-child(2) { animation: riseUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
  .pillar:nth-child(3) { animation: riseUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
  .tier-aida       { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
  .tier-bar:nth-of-type(1) { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both; }
  .tier-bar:nth-of-type(2) { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both; }
  .tier-bar:nth-of-type(3) { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both; }
  .tier-bar:nth-of-type(n+4) { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both; }
  .tier-platform   { animation: riseUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both; }
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 767px) {
  .tier-columns {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 10px;
  }

  .tier-aida,
  .tier-bar,
  .tier-platform {
    max-width: 380px;
  }

  .aida-icons--left,
  .aida-icons--right { display: none; }
  .tier-aida { grid-template-columns: 1fr; }

  .tier-platform { font-size: 18px; }
}
