.page-hero {
  padding: 6rem 3rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(75, 204, 206, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(205, 220, 0, 0.09) 0%, transparent 55%);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  margin-bottom: 1.4rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.product-mockup {
  background: var(--dark-2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(75, 204, 206, 0.1);
}

.product-mockup::before {
  content: "Compact solid piece of substantial material. To stop something from moving. Rectangular space enclosed by streets. A plant with a deep tubular leaf. A container for pouring liquids. A baseball player who throws. Extent or level manifested. Academic credential. A musical tone. A justification explaining events.";
  position: absolute;
  inset: 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  pointer-events: none;
  overflow: hidden;
}

.product-logo-img {
  max-width: 280px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

.product-cards-img {
  max-width: 310px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.65));
}

.product-details h2 {
  margin-bottom: 1.4rem;
}

.product-details p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.spec-val {
  font-family: "Bangers", cursive;
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.spec-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  display: block;
  margin-top: 3px;
}

.spec-item:nth-child(1) .spec-val {
  color: var(--teal);
}

.spec-item:nth-child(2) .spec-val {
  color: var(--pink);
}

.spec-item:nth-child(3) .spec-val {
  color: var(--lime);
}

.spec-item:nth-child(4) .spec-val {
  color: var(--teal);
}

.product-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(16.6% + 35px);
  right: calc(16.6% + 35px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--pink), var(--lime));
  opacity: 0.3;
}

.step {
  text-align: center;
}

.step-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-family: "Bangers", cursive;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(0, 0, 0, 0.5);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.step:nth-child(1) .step-badge {
  background: var(--teal);
  color: var(--dark);
}

.step:nth-child(2) .step-badge {
  background: var(--pink);
  color: var(--white);
}

.step:nth-child(3) .step-badge {
  background: var(--lime);
  color: var(--dark);
}

.step h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.demo-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.flip-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.flip-wrap {
  perspective: 900px;
  cursor: pointer;
  flex-shrink: 0;
}

.flip-inner {
  width: 200px;
  height: 288px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 16px;
}

.flip-inner.flipped {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-front {
  background: transparent;
  box-shadow: 5px 10px 28px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-front img.card-back-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flip-front .click-hint {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Bangers", cursive;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow:
    2px 2px 0 #0d1012,
    -2px 2px 0 #0d1012,
    2px -2px 0 #0d1012,
    -2px -2px 0 #0d1012;
  pointer-events: none;
  animation: clickPulse 1.6s ease-in-out infinite;
}

@keyframes clickPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.flip-back {
  transform: rotateY(180deg);
  background: url("../images/blank-card.svg") center/100% 100% no-repeat;
  box-shadow: 5px 10px 28px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.fband {
  padding: 0.6rem 0.9rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-t {
  flex: 0 0 27%;
}

.fb-p {
  flex: 0 0 27%;
  color: var(--white);
}

.fb-l {
  flex: 0 0 26%;
}

.ffoot {
  flex: 0 0 20%;
  color: var(--white);
  font-family: "Bangers", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
}

.flip-wrap.revealed .ffoot {
  color: var(--lime);
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  animation: wordPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

@keyframes wordPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Progressive reveal: hidden definition bands ── */
.fband.def-hidden {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.fband.def-hidden::after {
  content: '— reveal —';
  position: absolute;
  inset: 23% 5% 10%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.fband.def-hidden:hover::after {
  color: rgba(0, 0, 0, 0.75);
}

@keyframes defReveal {
  0% {
    transform: scale(0.96);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fband.def-just-revealed {
  animation: defReveal 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* ffoot when word is still hidden — pulse to invite tap */
.ffoot.word-hidden {
  cursor: pointer;
  animation: footPulse 1.8s ease-in-out infinite;
}

@keyframes footPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.flip-hint-txt {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.game-explanation-img {
  display: block;
  max-width: 900px;
  width: 100%;
  height: auto;
  margin: 3.5rem auto 0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

.flat-ico {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.flat-ico-badge {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid #0d1012;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  padding: 14px;
}

.flat-ico-badge.b-t {
  background: var(--teal);
}

.flat-ico-badge.b-p {
  background: var(--pink);
}

.flat-ico-badge.b-l {
  background: var(--lime);
}

.coming-soon-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--dark-2);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
}

.cs-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.coming-soon-card h3 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: var(--dim);
}

.coming-soon-card p {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .steps::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 4rem 1.5rem 3rem;
  }

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

  .flip-row {
    flex-direction: column;
    align-items: center;
  }
}
