/**
 * Phase 12H.2D — Feature universe, BOS, pillars, module map, industries, scale
 */

.eb-glass-card {
  background: var(--eb-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--eb-border);
  box-shadow: var(--eb-shadow-sm);
}

/* —— Feature universe —— */
.eb-universe { margin-top: 2rem; }
.eb-universe__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.eb-universe__cat {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--eb-border);
  background: var(--eb-card);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--eb-text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.eb-universe__cat:hover,
.eb-universe__cat.is-active {
  color: var(--cat-color, var(--eb-primary));
  border-color: color-mix(in srgb, var(--cat-color, var(--eb-primary)) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color, var(--eb-primary)) 25%, transparent);
}
.eb-universe__cat.is-active { background: var(--eb-card); }
.eb-universe__cat:focus-visible {
  outline: 2px solid var(--eb-primary);
  outline-offset: 2px;
}
.eb-universe__stage {
  position: relative;
  min-height: 320px;
  padding: 1.5rem;
  overflow: hidden;
  contain: layout style;
}
.eb-universe__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.eb-universe__cluster {
  position: absolute;
  inset: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--eb-ease), visibility 0.35s;
}
.eb-universe__cluster.is-active {
  opacity: 1;
  visibility: visible;
}

@keyframes eb-universe-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eb-universe__cluster.is-entering {
  animation: eb-universe-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.eb-universe.is-tab-changing .eb-universe__hub {
  transform: translate(-50%, -50%) scale(1.04);
  transition: transform 0.35s ease;
}

.eb-universe__cluster[hidden] { display: none; }
.eb-universe__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--cat-color), var(--eb-secondary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--cat-color) 35%, transparent);
  z-index: 2;
}
.eb-universe__hub small {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eb-universe__node {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 88px;
  text-align: center;
  text-decoration: none;
  z-index: 1;
  transition: transform 0.2s var(--eb-ease);
}
.eb-universe__node:hover { transform: translate(-50%, -50%) scale(1.06); }
.eb-universe__node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--node-color, var(--eb-primary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node-color) 20%, transparent);
}
.eb-universe__node-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--eb-text);
}

/* —— BOS flow —— */
.eb-bos__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 2rem;
}
.eb-bos__step {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.eb-bos__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--eb-radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--eb-heading-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.2), inset -1px -1px 4px rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, opacity 0.35s ease;
}
.eb-bos__step:not(.is-active) .eb-bos__node {
  opacity: 0.55;
}
.eb-bos__step.is-active .eb-bos__node {
  border-color: var(--eb-primary);
  background: rgba(37, 99, 235, 0.22);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}
.eb-bos__link {
  width: 20px;
  height: 2px;
  margin: 0 4px;
  background: linear-gradient(90deg, var(--eb-primary), var(--eb-secondary));
  opacity: 0.5;
}
@media (max-width: 768px) {
  .eb-bos__track { flex-direction: column; align-items: stretch; }
  .eb-bos__step { flex-direction: column; }
  .eb-bos__link {
    width: 2px;
    height: 16px;
    margin: 4px auto;
  }
  .eb-bos__node { width: 100%; }
}

/* —— Pillars —— */
.eb-pillars__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .eb-pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .eb-pillars__grid { grid-template-columns: repeat(3, 1fr); } }
.eb-pillar-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--eb-radius-lg);
  text-decoration: none;
  color: inherit;
  min-height: 200px;
  border-top: 3px solid var(--pillar-color, var(--eb-primary));
  transition: transform 0.25s var(--eb-ease), box-shadow 0.25s;
}
.eb-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eb-shadow);
}
.eb-pillar-card__icon {
  color: var(--pillar-color, var(--eb-primary));
  margin-bottom: 1rem;
}
.eb-pillar-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eb-text);
}
.eb-pillar-card__desc {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: var(--eb-text-muted);
  line-height: 1.5;
}
.eb-pillar-card__cta {
  margin-top: 1rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--pillar-color, var(--eb-primary));
}

/* —— Module map —— */
.eb-modmap__stage {
  position: relative;
  margin-top: 2rem;
  aspect-ratio: 16 / 10;
  max-height: 480px;
  min-height: 280px;
  border-radius: var(--eb-radius-xl);
  background: var(--eb-card);
  border: 1px solid var(--eb-border);
  box-shadow: var(--eb-shadow);
  overflow: hidden;
}
.eb-modmap__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.eb-modmap__line {
  stroke: rgba(37, 99, 235, 0.15);
  stroke-width: 0.35;
  transition: stroke 0.25s, stroke-width 0.25s;
}
.eb-modmap__line.is-lit {
  stroke: rgba(37, 99, 235, 0.55);
  stroke-width: 0.55;
}
.eb-modmap__node {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--eb-border);
  background: var(--eb-glass);
  backdrop-filter: blur(8px);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  color: var(--eb-text);
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eb-modmap__node:hover,
.eb-modmap__node.is-active,
.eb-modmap__node:focus-visible {
  border-color: var(--eb-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
  transform: translate(-50%, -50%) scale(1.05);
}
@media (max-width: 640px) {
  .eb-modmap__node { font-size: 9px; padding: 6px 8px; max-width: 48%; }
}

/* —— Industry tiles —— */
.eb-india-ready__grid {
  display: grid;
  gap: 12px;
  margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .eb-india-ready__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .eb-india-ready__grid { grid-template-columns: repeat(3, 1fr); } }
.eb-industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1rem;
  border-radius: var(--eb-radius);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.eb-industry-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--eb-shadow);
}
.eb-industry-tile__glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--eb-bg);
  border: 1px solid var(--eb-border);
  color: var(--eb-primary);
  box-shadow: 4px 4px 10px rgba(15, 23, 42, 0.06), -2px -2px 8px rgba(255, 255, 255, 0.8);
}
.eb-industry-tile__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--eb-text);
}

/* —— Scale journey —— */
.eb-scale__path {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .eb-scale__path {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
.eb-scale__tier {
  position: relative;
  display: block;
  padding: 1.5rem 1.25rem;
  border-radius: var(--eb-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--eb-ease);
}
.eb-scale__tier:hover { transform: translateY(-4px); }
.eb-scale__step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.2);
  color: var(--eb-heading-on-dark);
  margin-bottom: 10px;
}
.eb-scale__name {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eb-heading-on-dark);
}
.eb-scale__price {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--eb-accent);
}
.eb-scale__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--eb-text-dual);
}
.eb-scale__arrow {
  display: none;
}
@media (min-width: 900px) {
  .eb-scale__arrow {
    display: block;
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--eb-text-soft);
    font-size: 18px;
    z-index: 2;
  }
  .eb-scale__tier:last-child .eb-scale__arrow { display: none; }
}

.lp-reduced-motion .eb-universe__cluster,
.lp-reduced-motion .eb-bos__node,
.lp-reduced-motion .eb-pillar-card,
.lp-reduced-motion .eb-modmap__node {
  transition: none;
}
