/* ═════════ SOLUTIONS · SECTION 2 · THE FOUR GROUPS (stacking panels) ═════════
   On desktop every panel sticks under the nav and the next one slides
   over it; solutions.js shrinks and darkens the panel underneath.      */
.so-section2 {
  position: relative;
  padding: 20px 0 120px;
}

.so2-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.so2-panel {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  height: clamp(560px, calc(100vh - var(--nav-h) - 40px), 680px);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(20, 99, 243, 0.16), transparent 70%),
    linear-gradient(170deg, #0B1329, #060A16 70%);
  box-shadow: var(--highlight), 0 -30px 60px -30px rgba(0, 0, 0, 0.8);
  transform-origin: center top;
  overflow: hidden;
}

.so2-panel:nth-child(2) { background: radial-gradient(70% 60% at 100% 0%, rgba(20, 99, 243, 0.16), transparent 70%), linear-gradient(170deg, #0B1329, #060A16 70%); }
.so2-panel:nth-child(3) { background: radial-gradient(70% 60% at 0% 100%, rgba(20, 99, 243, 0.18), transparent 70%), linear-gradient(170deg, #0B1329, #060A16 70%); }
.so2-panel:nth-child(4) { background: radial-gradient(70% 60% at 100% 100%, rgba(20, 99, 243, 0.18), transparent 70%), linear-gradient(170deg, #0B1329, #060A16 70%); }

/* darkens the panel when the next one covers it (opacity driven by solutions.js) */
.so2-shade {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

/* ─── left: group info ─── */
.so2-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.so2-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.so2-num { color: var(--blue-light); }
.so2-count { color: var(--text-dim); }

.so2-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 22px 0 16px;
  background-image: linear-gradient(180deg, #FFFFFF 35%, #A9B4CC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.so2-intro {
  color: var(--text-dim);
  max-width: 420px;
}

.so2-proof {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text);
}

.so2-proof span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.so2-vis {
  flex: 1;
  min-height: 130px;
  margin-top: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.so2-vis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── right: the solutions in this group ─── */
.so2-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  min-height: 0;
}

.so2-list li {
  flex: 1;
  display: flex;
  border-bottom: 1px solid var(--border);
}

.so2-item {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 44px 1fr 40px;
  align-content: center;
  align-items: start;
  gap: 14px;
  padding: 14px 12px;
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.4s var(--ease);
}

.so2-i {
  align-self: start;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: color 0.3s;
}

.so2-t {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.so2-t b {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  transition: transform 0.45s var(--ease), color 0.3s;
}

.so2-t small {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 440px;
}

/* small tags, only in groups with few solutions (.is-rich) */
.so2-tags {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-style: normal;
}

.so2-list.is-rich .so2-tags {
  display: flex;
}

.so2-tags i {
  font-style: normal;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

.so2-list.is-rich .so2-t b {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.so2-go {
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background 0.3s, border-color 0.3s, transform 0.45s var(--ease);
}

[dir="rtl"] .so2-go svg {
  transform: scaleX(-1);
}

.so2-item:hover {
  background: rgba(20, 99, 243, 0.07);
}

.so2-item:hover .so2-t b {
  transform: translateX(6px);
  color: var(--blue-soft);
}

[dir="rtl"] .so2-item:hover .so2-t b {
  transform: translateX(-6px);
}

.so2-item:hover .so2-i {
  color: var(--blue-light);
}

.so2-item:hover .so2-go {
  background: var(--blue);
  border-color: var(--blue);
  transform: rotate(-45deg);
}

[dir="rtl"] .so2-item:hover .so2-go {
  transform: rotate(45deg);
}

/* ZERP early-access row (Software panel) */
.so2-item--soon {
  background: linear-gradient(100deg, rgba(20, 99, 243, 0.12), transparent 70%);
}

.so2-list.is-rich .so2-item--soon .so2-t b {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.so2-live {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
  animation: mk-blink 1.6s steps(2) infinite;
}

.so2-item--soon .so2-go {
  background: var(--blue);
  border-color: var(--blue);
}

/* tablets and phones: normal cards, no stacking */
@media (max-width: 900px) {
  .so-section2 { padding-bottom: 90px; }
  .so2-stack { gap: 20px; }
  .so2-panel {
    position: relative;
    top: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 20px;
    border-radius: 22px;
  }
  .so2-vis { flex: none; height: 190px; }
  .so2-item { grid-template-columns: 30px 1fr 36px; gap: 10px; padding: 16px 4px; }
  .so2-go { width: 36px; height: 36px; }
  .so2-list.is-rich .so2-t b { font-size: 1.3rem; }
}
