/* ==========================================================================
   ComeGame App — Homepage styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, #F7F9FF 0%, #FBFCFF 62%, var(--color-bg) 100%);
}
/* Mobile-first stacking order: eyebrow -> mockup -> quick download CTA -> copy.
   Desktop switches to a two-column layout via named grid areas, with the
   mobile-only CTA hidden since the full CTA row already sits beside the mockup. */
.hero__grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    gap: var(--space-8) var(--space-12);
    grid-template-areas:
      "eyebrow mockup"
      "copy    mockup";
  }
  .hero__eyebrow { grid-area: eyebrow; align-self: end; }
  .mockup { grid-area: mockup; align-self: center; }
  .hero__mobile-cta { display: none; }
  .hero__copy { grid-area: copy; }
}

.hero__copy h1 { margin-bottom: var(--space-5); }
.hero__copy .lead { margin-bottom: var(--space-6); max-width: 56ch; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}

.hero__cta { margin-bottom: var(--space-4); }

/* Trust strip under the CTA */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 560px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item { display: flex; align-items: center; gap: 0.6rem; }
.trust-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--gradient-primary-soft);
  border: 1px solid rgba(123, 47, 247, 0.14);
  color: var(--color-royal-purple);
}
.trust-item__icon svg { width: 19px; height: 19px; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--color-text-primary);
}
.trust-item span { font-size: 0.7rem; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   Bonus strip
   -------------------------------------------------------------------------- */
.bonus-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-band);
  color: #fff;
}
.bonus-strip::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(110, 140, 255, 0.6), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(181, 123, 255, 0.5), transparent 45%),
    radial-gradient(circle at 50% 10%, rgba(45, 91, 255, 0.4), transparent 40%);
  animation: aurora-drift 18s var(--ease-inout) infinite alternate;
}
.bonus-strip__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 900px) {
  .bonus-strip__inner { grid-template-columns: auto 1fr auto; text-align: left; gap: var(--space-8); }
}
.bonus-strip__figure {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: var(--fw-extra);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #FFFFFF 0%, #D9E2FF 45%, #F0DBFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}
.bonus-strip__figure small {
  display: block;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.72);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.4rem;
}
.bonus-strip__copy h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: var(--space-2); }
.bonus-strip__copy p { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; font-size: var(--fs-sm); }
.bonus-strip .btn-row { justify-content: center; }
@media (min-width: 900px) { .bonus-strip .btn-row { justify-content: flex-end; } }
.bonus-strip .btn--primary {
  background-image: linear-gradient(135deg, #FFFFFF 0%, #E9EDFF 100%);
  color: var(--color-ink-deep);
}
.bonus-strip .btn--primary:hover { color: var(--color-royal-purple); }

/* --------------------------------------------------------------------------
   OG / promo banner section
   -------------------------------------------------------------------------- */
.og-banner__frame {
  position: relative;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #12142B 0%, #241A4D 55%, #3B1F63 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-float), 0 0 70px rgba(94, 69, 251, 0.18);
}
@media (min-width: 900px) {
  .og-banner__frame { grid-template-columns: 1.05fr 0.95fr; }
}
.og-banner__media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}
.og-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out);
}
.og-banner__frame:hover .og-banner__media img { transform: scale(1.07); }
.og-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 43, 0) 55%, rgba(18, 20, 43, 0.85) 100%);
}
@media (min-width: 900px) {
  .og-banner__media::after {
    background: linear-gradient(90deg, rgba(18, 20, 43, 0) 45%, rgba(18, 20, 43, 0.9) 100%);
  }
}
.og-banner__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3rem);
  color: #fff;
}
.og-banner__body .eyebrow {
  color: #C9D4FF;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}
.og-banner__body h2 { color: #fff; margin-bottom: var(--space-3); }
.og-banner__body p { color: rgba(255, 255, 255, 0.78); }
.og-banner__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  gap: 0.55rem;
}
.og-banner__list li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
}
.og-banner__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6E8CFF, #B57BFF);
  box-shadow: 0 0 12px rgba(181, 123, 255, 0.8);
}
.og-banner__body .btn--outline {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.og-banner__body .btn--outline:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: #fff; }
.og-banner__meta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Screenshot slider
   -------------------------------------------------------------------------- */
.shots {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, #EDF1FC 100%);
}
.shots__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.shots__head .section-head { margin-bottom: 0; }

.slider-nav { display: flex; gap: 0.6rem; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-mixed);
}
.slider-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.shots__viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Let card shadows breathe without creating page-level overflow */
  padding: var(--space-4) 2px var(--space-6);
  margin-inline: -2px;
}
.shots__viewport::-webkit-scrollbar { display: none; }

.shots__track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
}

.shot {
  position: relative;
  flex: none;
  width: clamp(190px, 52vw, 236px);
  scroll-snap-align: center;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(155deg, #2A2D45 0%, #14162B 45%, #23263E 100%);
  box-shadow: 0 20px 44px rgba(18, 20, 43, 0.2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
@media (min-width: 768px) { .shot { width: 246px; } }
.shot:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 62px rgba(18, 20, 43, 0.28), var(--shadow-glow-purple);
}
.shot__screen {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0B0D1F;
  aspect-ratio: 1280 / 2690;
}
.shot__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  white-space: nowrap;
  background: rgba(11, 13, 31, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

.shots__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: var(--space-5);
}
.shots__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border-strong);
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.shots__dots button.is-active { width: 28px; border-radius: var(--radius-pill); background: var(--gradient-primary); }

.shots__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  text-align: center;
}
.shots__foot p { margin: 0; font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Split feature rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
  .split--reverse .split__media { order: -1; }
}
.split__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-primary-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.split__media img { width: 100%; height: auto; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
}
.mini-grid img { border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }

/* --------------------------------------------------------------------------
   Keyword / topic cloud block
   -------------------------------------------------------------------------- */
.topic-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.topic h3 { font-size: var(--fs-base); margin-bottom: var(--space-2); }
.topic p { font-size: var(--fs-sm); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Comparison / highlight table wrapper
   -------------------------------------------------------------------------- */
.highlight-band {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-card);
}
