/* =========================================================
   Home page polish (scoped)
   Keep homepage-specific styling here.
   Theme-safe for dark and light mode.
   ========================================================= */

.csx-home.csx-container{
  padding-top: 18px;
}

/* =========================================================
   Banner (status)
   ========================================================= */

.csx-home__banner{
  text-align: center;
  margin: 0 auto 18px auto;
}

.csx-home__banner-icon{
  font-size: 34px;
  opacity: .92;
  margin-bottom: 10px;
  color: rgba(0,255,136,.85);
  text-shadow: 0 0 14px rgba(0,255,136,.16);
}

.csx-home__banner-title{
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* =========================================================
   Hero
   ========================================================= */

.csx-home__hero{
  position: relative;
  overflow: hidden;
  animation: csxFadeInHome .35s ease both;
}

@keyframes csxFadeInHome{
  from{
    opacity: 0;
    transform: translateY(6px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.csx-home__hero::before{
  content: "";
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 260px;
  background: radial-gradient(circle at 30% 40%, rgba(0,255,136,.18), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
}

.csx-home__hero::after{
  content: "";
  position: absolute;
  inset: auto -120px -140px -120px;
  height: 260px;
  background: radial-gradient(circle at 70% 30%, rgba(0,255,136,.12), transparent 62%);
  pointer-events: none;
}

html[data-theme="light"] .csx-home__hero::before{
  background: radial-gradient(circle at 30% 40%, rgba(0,255,136,.12), transparent 62%);
}

html[data-theme="light"] .csx-home__hero::after{
  background: radial-gradient(circle at 70% 30%, rgba(0,255,136,.09), transparent 65%);
}

.csx-home__title{
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: .35rem !important;
}

.csx-home__subtitle{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1rem !important;
  line-height: 1.45;
}

/* =========================================================
   Hero CTA polish
   ========================================================= */

.csx-home__hero .csx-btn{
  min-width: 220px;
}

@media (max-width: 575.98px){
  .csx-home__hero .csx-btn{
    width: 100%;
    min-width: 0;
  }
}

.csx-home__hero .csx-btn--primary{
  box-shadow: 0 14px 34px rgba(0,255,136,.10);
}

.csx-home__hero .csx-btn--primary:hover{
  box-shadow: 0 18px 44px rgba(0,255,136,.14);
}

/* =========================================================
   Feature icons
   ========================================================= */

.csx-home__icon{
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  background: rgba(0,255,136,.10);
  border: 1px solid rgba(0,255,136,.18);
  box-shadow: 0 12px 28px rgba(0,255,136,.08);
}

.csx-home__icon i{
  font-size: 28px;
  color: rgba(0,255,136,.90);
}

html[data-theme="light"] .csx-home__icon{
  background: rgba(0,255,136,.08);
}

/* =========================================================
   General homepage card motion
   ========================================================= */

.csx-home .csx-card{
  transition: transform .18s ease, box-shadow .18s ease;
}

.csx-home .csx-card:hover{
  transform: translateY(-3px);
}

/* =========================================================
   Home sections spacing
   ========================================================= */

.csx-home__updates{
  margin-top: 18px;
}

.csx-home__cta{
  margin-top: 18px;
  margin-bottom: 18px;
}

/* =========================================================
   Platform Development section
   New public-facing updates block
   ========================================================= */

.csx-home__updates.mt-5{
  margin-top: 3rem !important;
}

.csx-home__updates.mt-5 h2{
  margin-bottom: 1rem !important;
}

.csx-home__updates.mt-5 .csx-home__subtitle{
  max-width: 760px;
  margin-bottom: 1.5rem !important;
}

.csx-home__updates.mt-5 .row{
  align-items: stretch;
}

.csx-home__updates.mt-5 .col-md-6{
  display: flex;
}

.csx-home__updates.mt-5 .col-md-6 > .csx-card{
  width: 100%;
}

.csx-home__updates.mt-5 .csx-card{
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.csx-home__updates.mt-5 .csx-card:hover{
  transform: translateY(-4px);
}

.csx-home__updates.mt-5 h3{
  margin-bottom: .5rem;
  line-height: 1.3;
}

.csx-home__updates.mt-5 p{
  margin-bottom: 0;
  line-height: 1.55;
}

/* =========================================================
   CTA section refinement
   ========================================================= */

.csx-home__cta h2{
  margin-bottom: 1rem !important;
}

.csx-home__cta .csx-home__subtitle{
  max-width: 720px;
}

.csx-home__cta .csx-btn{
  min-width: 240px;
}

@media (max-width: 575.98px){
  .csx-home__cta .csx-btn{
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Small responsive polish
   ========================================================= */

@media (max-width: 767.98px){
  .csx-home__title{
    line-height: 1.08;
  }

  .csx-home__banner-icon{
    font-size: 30px;
  }

  .csx-home__icon{
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .csx-home__icon i{
    font-size: 24px;
  }

  .csx-home__updates.mt-5{
    margin-top: 2rem !important;
  }
}
