/* ─────────────────────────────────────────
   ECH8 PAGE — HERO (MOBILE FIRST)
───────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: -80px;
  padding-top: 80px;
  box-sizing: border-box;
}

/* Background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/ship.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.0) 100%
  );
  z-index: 1;
}

/* Mobile: stack title on top of p, both at bottom */
.text-div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px 40px;
  width: 100%;
  box-sizing: border-box;
}

.text-div h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5em, 12vw, 5em);
  font-weight: 400;
  color: white;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1;
}

.text-div p {
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin: 0;
  max-width: 400px;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .text-div {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 30vw;
    padding: 0 5vw 25vh;
  }

  .text-div h1 {
    font-size: clamp(2em, 8vw, 6em);
    flex-shrink: 0;
  }

  .text-div p {
    font-size: clamp(0.85em, 1.3vw, 1.05em);
    max-width: clamp(200px, 32vw, 440px);
  }
}

/* ─────────────────────────────────────────
   ABOUT ECH8 SECTION
───────────────────────────────────────── */

.about-ech8 {
  position: relative;
  min-height: 100vh;
  background: #031d49;;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-ech8-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 60px 24px 80px;
  box-sizing: border-box;
}

/* ── Halfmoons + fire image wrapper ── */
.halfmoons-div {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.halfmoons-div > img {
  position: absolute;
  width: 110%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* ── Fire image ── */
.fire-img-div {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.fire-img-div img {
  width: 75%;
  max-width: 700px;
  border-radius: 20px;
  display: block;
}

/* ── Text ── */
.about-ech8-text-div {
  max-width: 680px;
  text-align: center;
}

.about-ech8-text-div p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(.9em, 1.4vw, 1em);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin: 0;
  margin-top: -50px;
  font-weight: 300;
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .about-ech8-div {
    padding: 80px 60px;
    gap: 60px;
  }

  .fire-img-div img {
    width: 75%;
    max-width: 750px;
  }
}

/* ─────────────────────────────────────────
   PILLARS SECTION — MOBILE FIRST
───────────────────────────────────────── */

.pillars {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to right, #3a1a5a 0%, #0f1f4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

/* Outer wrapper — flex gives height for absolutely positioned bg image */
.pillars-div {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile: hide bg image */
.pillars-div > img {
  display: none;
}

.pillars-content-div {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.pillars-content-div > h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4em, 4vw, 2.2em);
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: -40px 0 0 0;
  text-align: center;
  align-self: center;
  width: 100%;
}

/* Mobile: single column */
.pillars-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Individual pillars */
.pillar1-div,
.pillar2-div,
.pillar3-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.pillar1-div > img,
.pillar2-div > img,
.pillar3-div > img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Banner title divs */
.pillar1-title-div,
.pillar2-title-div,
.pillar3-title-div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* discovery-bg.svg is intrinsically larger, constrain separately */
.pillar1-title-div img {
  width: 180px;
  height: 44px;
  object-fit: fill;
  display: block;
}

.pillar2-title-div img,
.pillar3-title-div img {
  width: 220px;
  height: 44px;
  object-fit: fill;
  display: block;
}

.pillar1-title-div h3,
.pillar2-title-div h3,
.pillar3-title-div h3 {
  position: absolute;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8em;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.pillar1-div p,
.pillar2-div p,
.pillar3-div p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin: 0;
  max-width: 280px;
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .pillars {
    padding: 60px;
  }

  .pillars-div > img {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    object-fit: fill;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
  }

  .pillars-content-div {
    padding: 60px 40px;
    gap: 60px;
  }

  .pillars-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .pillar1-div > img,
  .pillar2-div > img,
  .pillar3-div > img {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    object-fit: contain;
  }

  .pillar1-title-div h3,
  .pillar2-title-div h3,
  .pillar3-title-div h3 {
    font-size: clamp(0.7em, 1.2vw, 0.9em);
  }

  .pillar1-div p,
  .pillar2-div p,
  .pillar3-div p {
    font-size: clamp(0.9em, 1.3vw, 1.05em);
  }
}


/* ─────────────────────────────────────────
   GDC SECTION — MOBILE FIRST
───────────────────────────────────────── */

.gdc {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gdc-div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 24px;
  box-sizing: border-box;
  max-width: 1000px;
  text-align: center;
}

.gdc-div h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8em, 7vw, 3.2em);
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}

.gdc-div p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.85em, 1.3vw, 1em);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0;
  max-width: 760px;
  font-weight: 300;
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .gdc-div {
    gap: 48px;
    padding: 80px 60px;
  }
}


/* ─────────────────────────────────────────
   CONNECT SECTION — MOBILE FIRST
───────────────────────────────────────── */

.connect {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #3a1a5a 0%, #1a1a4a 40%, #0f1f4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 24px;
  box-sizing: border-box;
  max-width: 900px;
  text-align: center;
}

.connect-div h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.8em, 6vw, 3em);
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.connect-div p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.9em, 1.4vw, 1.05em);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0;
  font-weight: 300;
}

.connect-div p a {
  color: #e060a0;
  text-decoration: none;
  font-weight: 400;
}

.connect-div p a:hover {
  text-decoration: underline;
}

.steam-button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(220, 220, 230, 0.88);
  border: none;
  border-radius: 50px;
  padding: 14px 36px 14px 14px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
  text-decoration: none;
}

.steam-button:hover {
  background: rgba(255, 255, 255, 1);
}

.steam-button img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .connect-div {
    gap: 52px;
    padding: 80px 60px;
  }
}