/* --------------------------------------------- */
/* DICE & SCREEN FEATURES PAGE - VISION V1       */
/* --------------------------------------------- */

:root {
  --dns-bronze: #cb9b4c;
  --dns-deep-shadow: #141313;
  --dns-warm-black: #1f1914;
  --dns-cyan: #5c8899;
  --dns-soft-sand: #f5e6c2;
  --dns-glow-gold: rgba(203, 155, 76, 0.35);
  --dns-glow-cyan: rgba(92, 136, 153, 0.35);
  --dns-shadow-black: rgba(0, 0, 0, 0.45);
  --dns-space-xl: 6rem;
  --dns-space-l: 4rem;
  --dns-space-m: 2.5rem;
  --dns-space-s: 1.5rem;
}

body.features-page {
  margin: 0;
  color: var(--dns-soft-sand);
  background:
    radial-gradient(circle at 14% 17%, rgba(203, 155, 76, 0.2), transparent 36%),
    radial-gradient(circle at 84% 10%, rgba(92, 136, 153, 0.2), transparent 42%),
    radial-gradient(circle at 50% 78%, rgba(151, 97, 46, 0.2), transparent 48%),
    linear-gradient(180deg, var(--dns-deep-shadow) 0%, #1b1511 42%, #100d0b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.features-page::before,
body.features-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.features-page::before {
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    125deg,
    rgba(255, 227, 173, 0.35) 0,
    rgba(255, 227, 173, 0.35) 1px,
    transparent 1px,
    transparent 14px
  );
}

body.features-page::after {
  inset: -6%;
  opacity: 0.35;
  background:
    radial-gradient(circle at 50% 14%, rgba(203, 155, 76, 0.12), transparent 40%),
    radial-gradient(circle at 50% 24%, rgba(203, 155, 76, 0.08), transparent 48%);
  animation: features-ambient-parallax 16s ease-in-out infinite alternate;
}

.features-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px 22px var(--dns-space-l);
}

.features-hero,
.features-section {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(203, 155, 76, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 239, 206, 0.11), rgba(255, 239, 206, 0.03) 48%),
    radial-gradient(circle at 50% -40%, rgba(203, 155, 76, 0.1), transparent 58%),
    rgba(27, 21, 16, 0.86);
  box-shadow:
    0 14px 34px var(--dns-shadow-black),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.features-hero::after,
.features-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 243, 215, 0.08), rgba(255, 243, 215, 0) 35%),
    radial-gradient(circle at 50% 140%, rgba(0, 0, 0, 0.2), transparent 58%);
}

.features-hero {
  text-align: center;
  padding: 44px 28px 36px;
  animation: features-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.features-kicker-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(180px, 26vw, 300px);
  margin: 0 auto 10px;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 16px rgba(203, 155, 76, 0.26));
  animation: features-logo-breathe 4.4s ease-in-out infinite;
}

.features-title {
  position: relative;
  z-index: 1;
  margin: 10px 0 10px;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  line-height: 1.1;
  color: #f3dca7;
  text-shadow:
    0 0 20px var(--dns-glow-gold),
    0 0 9px rgba(203, 155, 76, 0.25);
}

.features-intro {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 62ch;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e8d7b3;
}

.features-hero-actions,
.features-cta-actions {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.features-section {
  margin-top: var(--dns-space-m);
  padding: 30px 26px;
  animation: features-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.features-section:nth-of-type(2) { animation-delay: 0.08s; }
.features-section:nth-of-type(3) { animation-delay: 0.16s; }
.features-section:nth-of-type(4) { animation-delay: 0.24s; }
.features-section:nth-of-type(5) { animation-delay: 0.32s; }
.features-section:nth-of-type(6) { animation-delay: 0.4s; }
.features-section:nth-of-type(7) { animation-delay: 0.48s; }
.features-section:nth-of-type(8) { animation-delay: 0.56s; }

.features-section h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: #f6e5bf;
}

.features-section p {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 0.9rem auto 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.03rem;
  line-height: 1.55;
  color: #e4d2ad;
}

.pillar-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: center;
}

.pillar-card-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.pillar-card-reverse .pillar-image {
  order: 2;
}

.pillar-card-reverse .pillar-copy {
  order: 1;
}

.pillar-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.45);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pillar-copy {
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.26);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.08), rgba(255, 239, 206, 0.02)),
    rgba(31, 23, 17, 0.78);
  padding: 1.6rem;
}

.pillar-copy h2 {
  margin-top: 0.5rem;
  text-align: left;
  font-size: 1.45rem;
}

.pillar-copy p {
  margin-top: 0.6rem;
  text-align: left;
  font-size: 1rem;
}

.pillar-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(203, 155, 76, 0.58);
  background: rgba(203, 155, 76, 0.14);
  color: #f3dca7;
  font-size: 1.15rem;
}

.matrix-grid {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.matrix-card {
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.28);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.09), rgba(255, 239, 206, 0.02)),
    rgba(30, 23, 18, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 1.45rem;
}

.matrix-card h3 {
  margin: 0;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #f5e3bc;
}

.matrix-card ul {
  margin: 0.72rem 0 0;
  padding-left: 1rem;
}

.matrix-card li {
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
  color: #e4d2ad;
  line-height: 1.55;
}

.showcase-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.52);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(203, 155, 76, 0.22);
  animation: showcase-float 6s ease-in-out infinite;
}

.showcase-claim {
  margin-top: 0.95rem;
  font-family: 'Cinzel', serif;
  font-size: 1.22rem;
  color: #f1ddb4;
}

.upcoming-section p {
  max-width: 70ch;
}

.upcoming-list {
  position: relative;
  z-index: 1;
  margin: 1rem auto 0;
  max-width: 76ch;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.upcoming-list li {
  border-radius: 12px;
  border: 1px solid rgba(203, 155, 76, 0.28);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.09), rgba(255, 239, 206, 0.02)),
    rgba(30, 23, 18, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  color: #e4d2ad;
}

.upcoming-list strong {
  color: #f5e3bc;
}

.dice-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
  transition:
    transform 0.16s ease-out,
    background-color 0.16s ease-out,
    opacity 0.16s ease-out,
    box-shadow 0.16s ease-out,
    color 0.16s ease-out;
}

.dice-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.dice-btn:focus-visible {
  outline: 2px solid rgba(245, 230, 194, 0.95);
  outline-offset: 3px;
}

.dice-btn-primary {
  border: 1px solid rgba(203, 155, 76, 0.7);
  color: #141313;
  background: linear-gradient(180deg, #ddb46e, #cb9b4c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 0 rgba(203, 155, 76, 0);
}

.dice-btn-primary:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px var(--dns-glow-gold);
}

.dice-btn-secondary {
  border: 1.5px solid rgba(92, 136, 153, 0.8);
  color: #b8d5df;
  background: rgba(20, 20, 19, 0.2);
}

.dice-btn-secondary:hover {
  background: rgba(92, 136, 153, 0.12);
  box-shadow: 0 0 14px var(--dns-glow-cyan);
}

.dice-btn-tertiary {
  border: 0;
  padding: 6px 2px;
  border-radius: 0;
  color: var(--dns-soft-sand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.92;
}

.dice-btn-tertiary:hover {
  color: #f4d79a;
  opacity: 1;
  transform: translateY(-1px);
}

.dice-screen-home-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--dns-space-s);
  margin-bottom: 36px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.dice-screen-home-footer-board {
  min-width: min(520px, calc(100vw - 32px));
  max-width: 920px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(203, 155, 76, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 239, 206, 0.08), rgba(255, 239, 206, 0.02)),
    rgba(25, 19, 15, 0.86);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dice-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dice-footer-logo {
  width: 68px;
  height: auto;
  object-fit: contain;
}

.dice-footer-brand p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e6d6b5;
}

.dice-footer-nav,
.dice-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}

.dice-screen-home-footer-board a {
  color: #f4e3bc;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
}

.dice-screen-home-footer-board a:hover {
  color: #fff2d5;
  text-decoration: underline;
}

@keyframes features-ambient-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

@keyframes features-logo-breathe {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 16px rgba(203, 155, 76, 0.22));
  }
  50% {
    transform: scale(1.02);
    filter:
      drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 20px rgba(203, 155, 76, 0.3));
  }
}

@keyframes showcase-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes features-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .pillar-card,
  .pillar-card-reverse {
    grid-template-columns: 1fr;
  }

  .pillar-card-reverse .pillar-image,
  .pillar-card-reverse .pillar-copy {
    order: unset;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .dice-screen-home-footer-board {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dice-footer-brand {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .features-main {
    padding: 114px 16px 52px;
  }

  .features-hero,
  .features-section {
    padding: 24px 16px;
  }

  .features-section {
    margin-top: var(--dns-space-s);
  }

  .features-title {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
