:root {
  /* starfield black — used only inside the hero */
  --page-bg: #0a0710;
  --page-bg-mid: #140b14;
  /* dark maroon — the whole band below the hero */
  --band-bg: #201119;
  --hairline: rgba(255, 255, 255, 0.14);
}

html {
  background: var(--band-bg);
}

body {
  background-color: var(--band-bg);
  background-image: none;
}

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.2vw, 2rem);
}

/* Hero scene ------------------------------------------------------ */

.hero-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* the black-to-maroon gradient now lives inside the hero only, so it
     ends exactly where the solid maroon band starts */
  background-image: linear-gradient(
    180deg,
    var(--page-bg) 0%,
    var(--page-bg-mid) 55%,
    var(--band-bg) 100%
  );
}

/* tsParticles renders its canvas here; keep it inside the hero box */
#tsparticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#tsparticles canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Blend the bottom of the scene into the flat page colour */
.hero-scene::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 220px;
  background: linear-gradient(
    to bottom,
    rgba(10, 7, 16, 0) 0%,
    rgba(10, 7, 16, 0.72) 55%,
    var(--band-bg) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  /* vertical only — the .page gutters must survive */
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: 54rem;
  margin: 0 auto;
}

/* Hero title uses the same two-tone brand as the header:
   white "CLEO", accent "Redux" */
.hero-copy h1 em {
  font-style: normal;
  color: #e9720a;
}

/* Sections -------------------------------------------------------- */

.sections {
  padding-bottom: 3.5rem;
}

.showcase {
  margin-top: 2.75rem;
}

.section-head {
  margin-bottom: 1.15rem;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 56rem;
  margin: 0 auto;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--hairline);
}

.section-lead {
  margin: 0.6rem auto 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.55;
}

.section-lead code {
  padding: 0 0.25em;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95em;
}

.section-foot {
  margin: 1rem auto 0;
  max-width: 78ch;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

.section-foot a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
}

.section-foot a:hover {
  color: #fff;
}

/* Footer — same bar treatment as the sticky header --------------- */

footer {
  background: rgba(8, 8, 12, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 575.98px) {
  .hero-inner {
    padding-top: 1.75rem;
    padding-bottom: 2.75rem;
  }

  .hero-scene::after {
    height: 150px;
  }

  .showcase {
    margin-top: 2rem;
  }

  .section-title {
    gap: 0.7rem;
    font-size: 1.05rem;
  }

  .section-lead {
    margin-top: 0.5rem;
  }
}
