/* Cinematic IR layers — full-bleed photography & Dogecoin rail */

.ir-cinematic-band {
  position: relative;
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ir-cinematic-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.94) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.ir-cinematic-band > * {
  position: relative;
  z-index: 1;
}

/* SPA section backgrounds — cinematic SpaceX IR photography */
body.mandate-active #root section.ir-bg-launch {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.94)),
    url('https://images.unsplash.com/photo-1541182424269-3764a44c25f2?w=2400&q=90') !important;
  background-size: cover !important;
  background-position: center 30% !important;
}

body.mandate-active #root section.ir-bg-orbit {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.96)),
    url('https://images.unsplash.com/photo-1457364887197-9150188c107b?w=2400&q=90') !important;
  background-size: cover !important;
  background-position: center center !important;
}

body.mandate-active #root section.ir-bg-starlink {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.96)),
    url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?w=2400&q=90') !important;
  background-size: cover !important;
  background-position: center center !important;
}

body.mandate-active #root section.ir-bg-mars {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.97)),
    url('https://images.unsplash.com/photo-1614728894747-a83421e2cb74?w=2400&q=90') !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Static support pages — same IR photography as SPA */
.support-hero.ir-bg-orbit {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.96)),
    url('https://images.unsplash.com/photo-1457364887197-9150188c107b?w=2400&q=90');
  background-size: cover;
  background-position: center center;
}

.support-hero.ir-bg-starlink {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.96)),
    url('https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?w=2400&q=90');
  background-size: cover;
  background-position: center center;
}

/* Flagship Doge → AI → SPCX band */
#mandate-doge-pipeline {
  padding: 5rem 1.25rem 4.5rem;
  margin: 0;
  max-width: none;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.94)),
    url('https://images.unsplash.com/photo-1516849841032-87cbac4d88f7?w=2400&q=90');
  background-size: cover;
  background-position: center 40%;
  background-attachment: scroll;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}

#mandate-doge-pipeline .pipeline-inner {
  max-width: 72rem;
  margin: 0 auto;
}

#mandate-doge-pipeline .pipeline-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b4b4be;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

#mandate-doge-pipeline h2 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
  text-align: left;
}

#mandate-doge-pipeline .pipeline-lead {
  color: #d8d8e0;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

/* Visual flow diagram */
.doge-pipeline-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
}

.pipeline-node {
  background: rgba(8, 8, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  padding: 1.35rem 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.pipeline-node:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.pipeline-node .node-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pipeline-node.doge-node {
  border-color: rgba(196, 163, 90, 0.45);
  box-shadow: 0 0 24px rgba(196, 163, 90, 0.08);
}

.pipeline-node.ai-node {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.06);
}

.pipeline-node.spcx-node {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.1);
}

.pipeline-node h4 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.pipeline-node p {
  font-size: 0.78rem;
  color: #b4b4be;
  margin: 0;
  line-height: 1.45;
}

.pipeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #9494a0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 2.5rem;
}

.pipeline-connector .connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  position: relative;
  overflow: hidden;
}

.pipeline-connector .connector-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: pipeline-pulse 2.2s ease-in-out infinite;
}

.pipeline-connector .connector-arrow {
  font-size: 1rem;
  color: #d8d8e0;
}

@keyframes pipeline-pulse {
  0% { left: -60%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.pipeline-elon {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid #fff;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  max-width: 52rem;
}

.pipeline-elon blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e8e8ef;
  font-style: italic;
}

.pipeline-elon .attribution {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.pipeline-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Live data meta bar */
.spcx-live-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4b4be;
}

.spcx-live-meta .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6ee7a0;
  font-weight: 700;
}

.spcx-live-meta .live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a0;
  animation: mandate-pulse 1.5s infinite;
}

.spcx-live-meta.offline .live-pill {
  color: #9494a0;
}

.spcx-live-meta.offline .live-pill .dot {
  background: #9494a0;
  animation: none;
}

.buy-page .buy-hero-cinematic {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--site-header-h) + 3rem) 1.5rem 4rem;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.9)),
    url('https://images.unsplash.com/photo-1516849841032-87cbac4d88f7?w=1920&q=85');
  background-size: cover;
  background-position: center;
}

.buy-page .buy-hero-cinematic .hero-content {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

/* Chart section polish */
#mandate-chart-section {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.97)),
    url('https://images.unsplash.com/photo-1454789549361-9489e852c8e5?w=2400&q=90');
  background-size: cover;
  background-position: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: none;
  position: relative;
  z-index: 1;
}

#mandate-chart-section .chart-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

#mandate-chart-section h2 {
  text-align: left;
}

#mandate-chart-section .mandate-sub {
  text-align: left;
  margin-left: 0;
}

@media (max-width: 900px) {
  .doge-pipeline-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline-connector {
    flex-direction: row;
    padding: 0.5rem 0;
    min-width: auto;
  }

  .pipeline-connector .connector-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.35), transparent);
  }

  .pipeline-connector .connector-line::after {
    width: 100%;
    height: 40%;
    left: 0;
    top: -40%;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    animation: pipeline-pulse-v 2.2s ease-in-out infinite;
  }

  @keyframes pipeline-pulse-v {
    0% { top: -40%; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 140%; opacity: 0; }
  }
}
