/* ==========================================================================
   ComeGame App — comeapps.net
   pages/home.css — homepage-only layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Asymmetric split hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--gradient-hero);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.4vw), 0 100%);
}

/* Mobile-first source order: top (headline/lead) -> stage (mockup) ->
   bottom (bonus + CTAs + trust). Desktop reassembles into the asymmetric
   split via grid-template-areas so the stage still spans the full right
   column while the text stays a single left column. */
.hero__inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  gap: clamp(1.75rem, 4.5vw, 2.75rem);
}

.hero__col--top,
.hero__col--bottom { min-width: 0; }

.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero__glow--a {
  top: -18%;
  left: -12%;
  width: 46vw;
  min-width: 300px;
  aspect-ratio: 1;
  background: var(--gradient-glow-purple);
  animation: float-y 12s ease-in-out infinite;
}

.hero__glow--b {
  right: -14%;
  bottom: -22%;
  width: 42vw;
  min-width: 280px;
  aspect-ratio: 1;
  background: var(--gradient-glow);
  animation: float-y 15s ease-in-out infinite 1.5s;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
}

.hero__title span { display: inline; }

.hero__lead {
  max-width: 56ch;
  margin-bottom: 1.6rem;
  font-size: var(--fs-lead);
}

.hero__bonus {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.hero__bonus b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__bonus small {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Compact variant — sits directly under the phone mockup, so it reads as a
   supporting note rather than a second hero headline. */
.hero__bonus--sm {
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.85rem;
}

.hero__bonus--sm b {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
}

.hero__bonus--sm small {
  font-size: 0.7rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-strong);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.hero__meta b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   2. Hero device stage — phone mockup + orbiting game cards
   -------------------------------------------------------------------------- */

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 430px;
  padding-block: 1.5rem;
}

.hero__stage-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--color-border-strong);
  transform: translate(-50%, -50%);
  animation: spin-slow 46s linear infinite;
  pointer-events: none;
}

.hero__stage-ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 247, 0.12);
}

@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero__stage-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(380px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.2), transparent 66%);
  filter: blur(24px);
  transform: translate(-50%, -50%);
  animation: halo-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes halo-pulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.09); }
}

.hero__phone {
  position: relative;
  z-index: 3;
  animation: float-y 7s ease-in-out infinite;
}

/* Floating game chips around the phone */
.hero__chip {
  position: absolute;
  z-index: 4;
  width: clamp(76px, 19vw, 108px);
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 16px 38px rgba(60, 20, 130, 0.24);
}

.hero__chip img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

.hero__chip--1 {
  top: 8%;
  left: 2%;
  transform: rotate(-8deg);
  animation: float-y 6.4s ease-in-out infinite;
}

.hero__chip--2 {
  top: 34%;
  right: 0%;
  transform: rotate(6deg);
  animation: float-y 7.8s ease-in-out infinite 0.8s;
}

.hero__chip--3 {
  bottom: 9%;
  left: 0%;
  transform: rotate(4deg);
  animation: float-y 8.6s ease-in-out infinite 1.4s;
}

/* Floating "payout" glass pill */
.hero__pill {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 15%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(216, 207, 242, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: float-y 6.8s ease-in-out infinite 0.4s;
}

.hero__pill-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 158, 106, 0.14);
  color: var(--color-success);
}

.hero__pill-dot svg { width: 15px; height: 15px; }

.hero__pill b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.hero__pill span { font-size: 0.68rem; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   3. Bonus / promo panel
   -------------------------------------------------------------------------- */

.bonus-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.9rem, 4.5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-deep);
  box-shadow: var(--shadow-lift);
  color: rgba(255, 255, 255, 0.86);
  align-items: center;
}

.bonus-panel::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, 0.24), transparent 55%),
    radial-gradient(ellipse at 88% 88%, rgba(255, 176, 32, 0.32), transparent 55%);
  animation: og-drift 20s ease-in-out infinite alternate;
}

.bonus-panel h2 { color: #fff; }

.bonus-panel__amount {
  display: block;
  margin: 0.6rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, #ffd166 0%, #ffb020 42%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 40px rgba(255, 160, 32, 0.28);
}

.bonus-panel p { color: rgba(255, 255, 255, 0.82); }

.bonus-panel__terms {
  margin-top: 1.35rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.62);
}

.bonus-panel__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bonus-tile {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.bonus-tile:hover { background: rgba(255, 255, 255, 0.19); transform: translateY(-4px); }

.bonus-tile b {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.bonus-tile span { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.76); line-height: 1.55; }

/* --------------------------------------------------------------------------
   4. Screenshot showcase section
   -------------------------------------------------------------------------- */

.shots-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shots-section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(245, 240, 255, 0) 0%, rgba(243, 235, 255, 0.9) 45%, rgba(252, 251, 255, 0) 100%);
}

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .bonus-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
      "top    stage"
      "bottom stage";
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  .hero__col--top { grid-area: top; }
  .hero__col--bottom { grid-area: bottom; align-self: end; }
  .hero__stage { grid-area: stage; align-self: center; min-height: 560px; }

  .bonus-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

@media (min-width: 1200px) {
  .hero__stage { min-height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stage-ring,
  .hero__stage-halo,
  .hero__glow--a,
  .hero__glow--b,
  .hero__phone,
  .hero__chip,
  .hero__pill,
  .bonus-panel::before { animation: none !important; }
}
