/**
 * Phase 12H.2C — Cinematic hero, ecosystem, authority sections
 */

/* —— Section 1: Cinematic hero —— */
.eb-hero-cine {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--eb-nav-h));
  min-height: calc(100dvh - var(--eb-nav-h));
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  overflow: hidden;
}
.eb-hero-cine__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(124, 58, 237, 0.1), transparent 50%),
    linear-gradient(180deg, var(--eb-bg) 0%, rgba(248, 250, 252, 0.4) 100%);
  pointer-events: none;
}
[data-lp-theme="dark"] .eb-hero-cine__bg {
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(79, 70, 229, 0.15), transparent 50%),
    linear-gradient(180deg, var(--eb-bg) 0%, #030712 100%);
}
.eb-hero-cine__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .eb-hero-cine__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
.eb-hero-cine__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eb-primary);
  margin: 0 0 1rem;
}
.eb-hero-cine__title {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--eb-text);
}
.eb-hero-cine__lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  color: var(--eb-text-muted);
  margin: 0 0 1.5rem;
  max-width: 48ch;
}
.eb-hero-cine__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.eb-hero-cine__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eb-hero-cine__trust-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--eb-glass);
  border: 1px solid var(--eb-border);
  color: var(--eb-text-muted);
  backdrop-filter: blur(8px);
}

/* Ecosystem */
.eb-ecosystem {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1;
  min-height: 280px;
  contain: layout style;
}
.eb-ecosystem__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.eb-ecosystem__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--eb-primary), var(--eb-secondary));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 16px 48px var(--eb-glow-royal);
  z-index: 2;
}
.eb-ecosystem__core-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.eb-ecosystem__core-sub {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eb-ecosystem__orbit {
  position: absolute;
  inset: 0;
  animation: eb-orbit-spin 48s linear infinite;
}
.eb-ecosystem--gsap .eb-ecosystem__orbit {
  animation: none;
}
@keyframes eb-orbit-spin {
  to { transform: rotate(360deg); }
}
.eb-eco-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  margin-left: -44px;
  margin-top: -20px;
  transform: rotate(var(--eco-angle)) translateY(-140px) rotate(calc(-1 * var(--eco-angle)));
  text-align: center;
  z-index: 1;
}
.eb-eco-node__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--eb-card);
  border: 2px solid var(--eb-primary);
  box-shadow: 0 0 12px var(--eb-glow-royal);
}
.eb-eco-node__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--eb-text-muted);
  line-height: 1.2;
}
.eb-eco-node.is-active .eb-eco-node__dot {
  background: var(--eb-primary);
  transform: scale(1.2);
}
.eb-eco-node.is-active .eb-eco-node__label {
  color: var(--eb-primary);
}

@media (max-width: 1023px) {
  .eb-ecosystem__orbit { animation: none; }
  .eb-ecosystem {
    aspect-ratio: auto;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  .eb-ecosystem__svg,
  .eb-ecosystem__core { display: none; }
  .eb-ecosystem__orbit {
    position: static;
    display: contents;
  }
  .eb-eco-node {
    position: static;
    transform: none;
    width: auto;
    margin: 0;
    padding: 10px 12px;
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    box-shadow: var(--eb-shadow-sm);
  }
  .eb-eco-node__dot { display: inline-block; margin: 0 8px 0 0; vertical-align: middle; }
  .eb-eco-node__label { display: inline; font-size: 12px; }
}

/* —— Section 2: India strip —— */
.eb-india-strip {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  border-block: 1px solid var(--eb-border);
  background: var(--eb-glass);
  backdrop-filter: blur(12px);
}
.eb-india-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.eb-india-strip__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-primary);
  white-space: nowrap;
}
.eb-india-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.eb-india-strip__item {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--eb-card);
  border: 1px solid var(--eb-border);
  color: var(--eb-text);
  box-shadow: var(--eb-shadow-sm);
}

/* —— Section 3: Platform network (CSS pipeline — no SVG/CSS-var breakage) —— */
.eb-platform-net__stage {
  position: relative;
  margin-top: 2rem;
  padding: 2.25rem 1.25rem 2rem;
  border-radius: var(--eb-radius-xl);
  background: var(--eb-card);
  border: 1px solid var(--eb-border);
  box-shadow: var(--eb-shadow);
}
.eb-platform-net__track {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2.65rem;
  height: 2px;
  pointer-events: none;
}
.eb-platform-net__line {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 50%, #4f46e5 100%);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--eb-ease);
}
.eb-platform-net__stage.is-drawn .eb-platform-net__line {
  transform: scaleX(1);
}
.eb-platform-net__chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 0.5rem;
}
.eb-platform-net__chip {
  flex: 1 1 72px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
}
.eb-platform-net.is-drawn .eb-platform-net__chip {
  animation: eb-net-chip-in 0.45s var(--eb-ease) backwards;
  animation-delay: calc(var(--net-i, 0) * 0.08s);
}
@keyframes eb-net-chip-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.eb-platform-net__chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 0 0 4px color-mix(in srgb, #2563eb 18%, transparent);
  flex-shrink: 0;
}
.eb-platform-net__chip-label {
  margin-top: 0.65rem;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--eb-text);
}
@media (max-width: 720px) {
  .eb-platform-net__track { display: none; }
  .eb-platform-net__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 360px;
    margin: 0 auto;
  }
  .eb-platform-net__chip { max-width: none; }
}
@media (max-width: 400px) {
  .eb-platform-net__chips { grid-template-columns: 1fr; }
}

/* —— Section 4: Business flow —— */
.eb-biz-flow__track {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
  max-width: 520px;
}
.eb-biz-flow__track::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--eb-border);
}
.eb-biz-flow__step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 14px 0 14px 0;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.35s ease;
}
.eb-biz-flow__step.is-active {
  opacity: 1;
}
.eb-biz-flow__marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--eb-card);
  border: 2px solid var(--eb-border);
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.eb-biz-flow__step.is-active .eb-biz-flow__marker {
  border-color: var(--eb-primary);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.eb-biz-flow__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--eb-text);
}
@media (min-width: 900px) {
  .eb-biz-flow__track {
    max-width: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .eb-biz-flow__track::before {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    margin-top: -1px;
  }
  .eb-biz-flow__step {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }
  .eb-biz-flow__marker { margin-bottom: 8px; }
}

/* —— Section 5: Metrics —— */
.eb-authority-metrics__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .eb-authority-metrics__grid { grid-template-columns: repeat(4, 1fr); }
}
.eb-metric-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--eb-glass);
  backdrop-filter: blur(10px);
}
.eb-metric-card__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--eb-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.eb-metric-card__label {
  margin: 0.5rem 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--eb-text-muted);
}

/* —— Section 6: Payment ecosystem —— */
.eb-payment-eco__wrap {
  margin-top: 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--eb-radius-xl);
  background: linear-gradient(165deg, var(--eb-midnight) 0%, var(--eb-slate) 55%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
  text-align: center;
}
.eb-payment-eco__hub {
  margin-bottom: 1.75rem;
}
.eb-payment-eco__hub-label {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--eb-heading-on-dark);
  background: rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
}
.eb-payment-eco__gateways {
  max-width: 960px;
  margin: 0 auto;
}
.eb-payment-eco__gateways .mkt-payment-logos--tiles {
  margin-top: 0;
}

.lp-reduced-motion .eb-ecosystem__orbit,
.lp-reduced-motion .eb-eco-node,
.lp-reduced-motion .eb-platform-net__chip {
  animation: none !important;
  transition: none !important;
}
