/* ===== FEATURES PAGE — PREMIUM SHOWCASE (features.html only) ===== */

@import url("https://fonts.cdnfonts.com/css/minecraft-4");

/* --- Hero: cinematic background-image banner --- */
.feat-hero {
  padding-top: calc(var(--nav-h) + var(--announce-h));
  margin: 0;
  background: #060a14;
}

.feat-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(28rem, 80vh, 90vh);
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
  background-color: #060a14;
  background-image: url("../media/assets/hero-features-garden.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.feat-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(6, 10, 22, 0.62) 0%,
      rgba(8, 12, 26, 0.38) 42%,
      rgba(5, 8, 18, 0.58) 100%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 45%,
      rgba(4, 8, 20, 0.15) 0%,
      rgba(4, 6, 14, 0.45) 100%
    );
}

.feat-hero__copy {
  position: relative;
  z-index: 2;
  width: min(92%, 52rem);
  text-align: center;
  line-height: 1.45;
  pointer-events: none;
}

.feat-hero__eyebrow {
  font-size: clamp(0.625rem, 1.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 244, 239, 0.9);
  margin: 0 0 0.875rem;
  text-shadow:
    0 0 14px rgba(111, 136, 216, 0.35),
    0 2px 10px rgba(5, 8, 20, 0.9);
}

.feat-hero__title {
  font-family: "Minecraft", var(--font-display), sans-serif;
  font-size: clamp(1.85rem, 5.5vw, 3.75rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0.08em 0 #1a1f3d,
    0.08em 0.08em #1a1f3d,
    0 0.08em #1a1f3d,
    0.16em 0.16em 0 #0a0c18,
    0 0 28px rgba(111, 136, 216, 0.35),
    0 0 48px rgba(39, 51, 110, 0.2);
}

.feat-hero__lead {
  font-size: clamp(0.875rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(243, 244, 239, 0.92);
  margin: 1.125rem auto 0;
  max-width: 40rem;
  text-shadow:
    0 1px 12px rgba(5, 8, 20, 0.95),
    0 0 20px rgba(6, 10, 24, 0.6);
}

@media (max-width: 768px) {
  .feat-hero__visual {
    min-height: clamp(24rem, 72vh, 80vh);
    padding: 2rem 1rem;
  }

  .feat-hero__title {
    letter-spacing: 0.03em;
  }
}

@media (max-width: 480px) {
  .feat-hero__visual {
    min-height: clamp(22rem, 70vh, 78vh);
  }

  .feat-hero__copy {
    width: min(96%, 22rem);
  }

  .feat-hero__eyebrow {
    letter-spacing: 0.2em;
    margin-bottom: 0.625rem;
  }

  .feat-hero__lead {
    margin-top: 0.875rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .feat-hero__title {
    animation: featHeroTitleGlow 6s ease-in-out infinite alternate;
  }
}

@keyframes featHeroTitleGlow {
  from {
    text-shadow:
      0.08em 0 #1a1f3d,
      0.08em 0.08em #1a1f3d,
      0 0.08em #1a1f3d,
      0.16em 0.16em 0 #0a0c18,
      0 0 24px rgba(111, 136, 216, 0.28),
      0 0 40px rgba(39, 51, 110, 0.15);
  }
  to {
    text-shadow:
      0.08em 0 #1a1f3d,
      0.08em 0.08em #1a1f3d,
      0 0.08em #1a1f3d,
      0.16em 0.16em 0 #0a0c18,
      0 0 32px rgba(111, 136, 216, 0.45),
      0 0 56px rgba(53, 214, 208, 0.12);
  }
}

.feat-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.feat-section {
  padding: clamp(5.625rem, 8vw, 8.75rem) 0;
}

.feat-section--void { background: #0c0b0a; }
.feat-section--deepslate { background: #141312; }
.feat-section--stone { background: #1a1918; }

/* Split feature rows */
.feat-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .feat-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .feat-split--reverse .feat-split__media { order: 2; }
  .feat-split--reverse .feat-split__body { order: 1; }
}

.feat-split__media {
  min-width: 0;
}

.feat-split__media img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.feat-split__media--art img {
  width: 100%;
  max-width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .feat-split--reverse .feat-split__media--art img {
    margin-inline: 0 0 auto;
  }

  .feat-split:not(.feat-split--reverse) .feat-split__media--art img {
    margin-inline: auto 0;
  }
}

.feat-split__body {
  min-width: 0;
}

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: #f2f0e8;
}

.feat-body {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: #c8c6bc;
  max-width: 38rem;
}

.feat-body p {
  margin: 0 0 1rem;
}

.feat-body p:last-child {
  margin-bottom: 0;
}

.feat-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--folio-green-bright);
  text-decoration: none;
}

.feat-link:hover {
  text-decoration: underline;
}

/* Platform icon row */
.feat-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3836;
}

.feat-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b8b7ad;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feat-platforms img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.92;
  filter: grayscale(1) brightness(1.35);
}

/* Controls — three technical blocks */
.feat-controls-head {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  color: #f2f0e8;
}

.feat-controls-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feat-controls-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

.feat-control-panel {
  background: #232120;
  border: 1px solid #3a3836;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  min-height: clamp(160px, 18vw, 200px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease;
}

.feat-control-panel:hover {
  border-color: #4a4846;
}

.feat-control-panel__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  object-fit: contain;
  opacity: 0.95;
  filter: grayscale(1) brightness(1.4);
}

.feat-control-panel h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.625rem;
  color: #fff;
}

.feat-control-panel p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #b8b7ad;
}

/* Ray tracing cinematic band */
.feat-cinematic {
  position: relative;
  background: #0c0b0a;
  padding: clamp(5.625rem, 8vw, 8.75rem) 0;
}

.feat-cinematic__inner {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: end;
}

@media (min-width: 960px) {
  .feat-cinematic__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
  }
}

.feat-cinematic__media {
  min-width: 0;
  align-self: center;
}

.feat-cinematic__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 45%;
}

.feat-cinematic__body .feat-title {
  margin-bottom: 1rem;
}

.feat-cinematic__body .feat-body {
  max-width: 36rem;
}

/* Achievements + parental controls */
.feat-support-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feat-support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
  }
}

.feat-ui-panel {
  background: #232120;
  border: 1px solid #3a3836;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feat-ui-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  color: #fff;
}

.feat-ui-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #c8c6bc;
  max-width: 34rem;
}

/* Platform comparison table */
.feat-table-section {
  padding: clamp(4rem, 6vw, 6rem) 0;
  background: #141312;
}

.feat-table-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.feat-table-head .feat-title {
  margin-bottom: 0.75rem;
}

.feat-table-head .feat-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #b8b7ad;
  max-width: 42rem;
  margin: 0 auto;
}

.feat-table-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: #b8b7ad;
}

.feat-table-note a {
  color: var(--folio-green-bright);
  text-decoration: none;
}

.feat-table-note a:hover {
  text-decoration: underline;
}

/* Final CTA */
.feat-cta {
  text-align: center;
  padding: clamp(5rem, 8vw, 7.5rem) clamp(1rem, 3vw, 2rem);
  background: #1a1918;
}

.feat-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.875rem;
  color: #fff;
}

.feat-cta__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #c8c6bc;
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.feat-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Section divider — use sparingly on this page */
.feat-divider {
  height: 10px;
  background:
    linear-gradient(135deg, var(--folio-green) 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, var(--folio-green) 25%, transparent 25%) -5px 0,
    linear-gradient(45deg, var(--folio-green) 25%, transparent 25%),
    linear-gradient(315deg, var(--folio-green) 25%, #141312 25%);
  background-size: 10px 10px;
  background-color: #141312;
}

.feat-divider--stone {
  background-color: #1a1918;
  background-image:
    linear-gradient(135deg, #444 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, #444 25%, transparent 25%) -5px 0,
    linear-gradient(45deg, #444 25%, transparent 25%),
    linear-gradient(315deg, #444 25%, #1a1918 25%);
  background-size: 10px 10px;
}

@media (max-width: 959px) {
  .feat-split__media img,
  .feat-cinematic__media img {
    max-width: 100%;
  }

  .feat-split__media--art img {
    max-width: min(100%, 360px);
  }
}
