/* =========================================================
   Homepage — defense-tech style aligned to mockup
   Hero + 3-column showcase + 4-column feature row
   ========================================================= */

/* ─── HERO: atmospheric background ─── */

.xc-defense-hero {
  position: relative;
  min-height: 760px;
  margin: 0 -200vw;
  padding: 100px 200vw 60px;
  background:
    /* Vignette */
    radial-gradient(ellipse at 65% 40%,
      rgba(74, 158, 255, 0.10) 0%,
      transparent 55%),
    radial-gradient(ellipse at 50% 100%,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 60%),
    /* Atmospheric blue overlay */
    linear-gradient(180deg,
      rgba(5, 11, 20, 0.88) 0%,
      rgba(5, 11, 20, 0.75) 45%,
      rgba(5, 11, 20, 0.95) 100%),
    /* Base */
    url("../assets/space-bg.png") center / cover no-repeat,
    #050b14;
  overflow: hidden;
}

/* Mountain ridges at bottom of hero */
.xc-defense-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 360px;
  background:
    url("../assets/mountain-ridges.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Drone silhouette overlay — positioned upper right area */
.xc-defense-hero::after {
  content: "";
  position: absolute;
  top: 180px;
  right: 14%;
  width: 480px;
  height: 144px;
  background:
    url("../assets/drone-silhouette.svg") center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.5px);
}

.xc-defense-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr) 200px;
  gap: 40px;
  align-items: center;
}

/* ─── HERO: Left column (text + CTA) ─── */

.xc-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--xc-accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.xc-hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--xc-text);
  margin: 0 0 18px;
}

.xc-hero-title .xc-blue {
  color: var(--xc-accent);
}

.xc-hero-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--xc-accent);
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: 1.4;
}

.xc-hero-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--xc-text-soft);
  max-width: 440px;
  margin: 0 0 28px;
}

/* Compliance badge row */
.xc-compliance-row {
  display: flex;
  gap: 24px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}

.xc-compliance-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.xc-compliance-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--xc-accent);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.xc-compliance-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.xc-compliance-badge-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xc-text);
  letter-spacing: 0.02em;
}

.xc-compliance-badge-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--xc-text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* CTA buttons — sharper edges, more "industrial" than rounded */
.xc-hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.xc-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.xc-hero-cta-primary {
  background: var(--xc-accent);
  color: #050b14 !important;
  border-color: var(--xc-accent);
}

.xc-hero-cta-primary:hover {
  background: var(--xc-accent-hi);
  border-color: var(--xc-accent-hi);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

.xc-hero-cta-ghost {
  background: transparent;
  color: var(--xc-text) !important;
  border-color: rgba(74, 158, 255, 0.45);
}

.xc-hero-cta-ghost:hover {
  background: rgba(74, 158, 255, 0.08);
  border-color: var(--xc-accent);
}

.xc-hero-cta::after {
  content: "  ›";
  font-weight: 400;
}

/* ─── HERO: Center column (product photo) ─── */

.xc-hero-product {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.xc-hero-product img {
  max-width: 100%;
  width: auto;
  height: auto;
  /* Soft-edge blending: radial mask fades the white background into the dark hero */
  mask-image: radial-gradient(ellipse 55% 60% at center,
    #000 35%,
    rgba(0, 0, 0, 0.85) 55%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at center,
    #000 35%,
    rgba(0, 0, 0, 0.85) 55%,
    rgba(0, 0, 0, 0.4) 75%,
    transparent 95%);
  /* Subtle multiply-on-dark to darken the white background bleed */
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 40px rgba(74, 158, 255, 0.15))
    brightness(0.92)
    contrast(1.08);
  transform: scale(1.05);
}

/* ─── HERO: Right column (feature icons) ─── */

.xc-hero-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 16px;
  border-left: 1px solid var(--xc-border);
}

.xc-hero-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xc-hero-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xc-hero-feature-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--xc-accent);
  stroke-width: 1.5;
}

.xc-hero-feature-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--xc-text);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ─── MID SECTION: 3-column showcase ─── */

.xc-showcase {
  max-width: 1400px;
  margin: 60px auto 40px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 24px;
}

.xc-showcase-block {
  background: linear-gradient(180deg,
    rgba(74, 158, 255, 0.04) 0%,
    rgba(10, 22, 34, 0.4) 100%);
  border: 1px solid var(--xc-border);
  border-radius: 4px;
  padding: 28px 26px;
  position: relative;
}

/* Corner accents — small L brackets in the corners */
.xc-showcase-block::before,
.xc-showcase-block::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--xc-accent);
}

.xc-showcase-block::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.xc-showcase-block::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.xc-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--xc-accent);
  text-transform: uppercase;
  margin: 0 0 22px;
}

/* Key features list (left block) */
.xc-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.xc-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.xc-feature-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xc-border);
  border-radius: 4px;
  background: rgba(74, 158, 255, 0.05);
}

.xc-feature-item-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--xc-accent);
  stroke-width: 1.5;
}

.xc-feature-item-text { flex: 1; }

.xc-feature-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--xc-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.xc-feature-item-desc {
  font-size: 0.82rem;
  color: var(--xc-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Platform icons row (center block) */
.xc-platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 26px;
}

.xc-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.xc-platform-icon {
  width: 46px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xc-platform-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--xc-text-soft);
  stroke-width: 1.3;
}

.xc-platform-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--xc-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Ecosystem callout in center block */
.xc-ecosystem {
  border-top: 1px solid var(--xc-border);
  padding-top: 18px;
  margin-top: 10px;
}

.xc-ecosystem-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--xc-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.xc-ecosystem h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xc-text);
  margin: 0 0 6px;
}

.xc-ecosystem p {
  font-size: 0.85rem;
  color: var(--xc-text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.xc-ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--xc-accent) !important;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 6px 12px;
  border: 1px solid var(--xc-border-hi);
  border-radius: 3px;
}

.xc-ecosystem-link:hover {
  background: rgba(74, 158, 255, 0.1);
}

/* System diagram (right block) */
.xc-sysdiag {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  align-items: center;
  font-size: 0.7rem;
}

.xc-sysdiag-col-label {
  grid-column: span 1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--xc-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.xc-sysdiag-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xc-sysdiag-node {
  background: rgba(74, 158, 255, 0.04);
  border: 1px solid var(--xc-border);
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--xc-text-soft);
  text-align: center;
}

.xc-sysdiag-center {
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid var(--xc-border-hi);
  border-radius: 4px;
  padding: 12px 10px;
  text-align: center;
}

.xc-sysdiag-center-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xc-text);
  margin-bottom: 2px;
}

.xc-sysdiag-center-sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--xc-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.xc-sysdiag-center-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

.xc-sysdiag-pill {
  background: rgba(74, 158, 255, 0.12);
  border: 1px solid var(--xc-border);
  padding: 5px 4px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--xc-text);
  letter-spacing: 0.04em;
}

.xc-sysdiag-pill-sub {
  font-size: 0.54rem;
  color: var(--xc-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* ─── BOTTOM SECTION: 4-column feature row ─── */

.xc-trust-row {
  max-width: 1400px;
  margin: 40px auto 60px;
  padding: 40px 48px 0;
  border-top: 1px solid var(--xc-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.xc-trust-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xc-trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xc-trust-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--xc-accent);
  stroke-width: 1.5;
}

.xc-trust-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--xc-text);
  text-transform: uppercase;
}

.xc-trust-desc {
  font-size: 0.84rem;
  color: var(--xc-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── Mobile ─── */

@media (max-width: 1100px) {
  .xc-defense-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .xc-hero-product { order: 2; min-height: 320px; }
  .xc-hero-features {
    order: 3;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--xc-border);
    padding: 24px 0 0;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .xc-hero-feature { flex: 1 1 calc(50% - 14px); min-width: 140px; }
  .xc-defense-hero::after {
    right: 5%;
    width: 280px;
    height: 90px;
    top: 100px;
  }

  .xc-showcase { grid-template-columns: 1fr; }
  .xc-trust-row { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .xc-defense-hero {
    min-height: auto;
    padding: 80px 0 40px;
  }
  .xc-defense-hero-inner { padding: 0 20px; }
  .xc-hero-title { font-size: 2.4rem; }
  .xc-hero-tagline { font-size: 0.95rem; }
  .xc-defense-hero::after { display: none; }
  .xc-showcase { padding: 0 20px; }
  .xc-trust-row { grid-template-columns: 1fr; padding: 32px 20px 0; }
  .xc-platforms { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .xc-platform-label { font-size: 0.58rem; }
  .xc-compliance-row { gap: 16px; }
  .xc-sysdiag { font-size: 0.6rem; gap: 6px; }
}


/* ===== FINAL FIX: use one real hero background and move it upward ===== */
.xc-defense-hero{
  background:
    linear-gradient(90deg,
      rgba(2,8,18,.98) 0%,
      rgba(2,8,18,.88) 35%,
      rgba(2,8,18,.45) 62%,
      rgba(2,8,18,.88) 100%),
    linear-gradient(180deg,
      rgba(2,8,18,.28) 0%,
      rgba(2,8,18,.52) 52%,
      rgba(2,8,18,.96) 100%),
    url('../assets/desert-uav-clean-hero.png') center -230px / cover no-repeat !important;
}

/* Remove old drone/mountain pseudo-background layers that created the weird horizontal band */
.xc-defense-hero::before,
.xc-defense-hero::after{
  display:none !important;
  content:none !important;
  background:none !important;
}

/* Keep content above background */
.xc-defense-hero-inner{
  position:relative;
  z-index:2;
}

/* Product remains main foreground object */
.xc-hero-product img,
.xc-hero-product .xc-product-img,
.xc-defense-hero img{
  position:relative;
  z-index:3;
}



/* ===== SparkNavi Blue product page cinematic background ===== */

.xc-prod-hero,
.xc-product-hero,
.md-content:has(.xc-prod-hero) .xc-prod-hero,
.md-content:has(.xc-product-hero) .xc-product-hero {
  position: relative !important;
  background:
    linear-gradient(90deg,
      rgba(2,8,18,.96) 0%,
      rgba(2,8,18,.82) 38%,
      rgba(2,8,18,.40) 68%,
      rgba(2,8,18,.88) 100%),
    linear-gradient(180deg,
      rgba(2,8,18,.20) 0%,
      rgba(2,8,18,.50) 55%,
      rgba(2,8,18,.96) 100%),
    url('../assets/product-blue-uav-mountain-bg.png') center center / cover no-repeat !important;
  overflow: hidden !important;
}

.xc-prod-hero::before,
.xc-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 38%, rgba(70,140,255,.15), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35));
  pointer-events: none;
  z-index: 0;
}

.xc-prod-hero::after,
.xc-product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80,150,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,150,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .28;
  pointer-events: none;
  z-index: 1;
}

.xc-prod-hero > *,
.xc-product-hero > * {
  position: relative;
  z-index: 2;
}
