/* ==========================================================================
   2J Game — Obsidian Royale
   pages/home.css — homepage-only composition
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  background:
    radial-gradient(1000px 520px at 12% -5%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(800px 460px at 95% 25%, rgba(212, 175, 55, 0.09), transparent 66%),
    linear-gradient(180deg, #0B0B0D 0%, #0E0E11 55%, #0B0B0D 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  max-width: 62ch;
}

/* On mobile/tablet the mockup sits in normal document flow between the two
   copy blocks (see markup order), so it appears above the welcome-bonus
   badge without any extra CSS. The 1200px breakpoint below re-slots it
   into a side column via grid-template-areas. */
.hero__copy--lower {
  margin-top: 0;
}

.hero__title {
  margin-bottom: var(--space-20);
  font-size: var(--fs-h1);
  font-weight: 700;
}

.hero__title span {
  display: block;
}

.hero__title .hero__title-sub {
  font-family: var(--font-heading-alt);
  font-size: clamp(0.9rem, 0.7rem + 0.9vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: var(--space-12);
}

.hero__text {
  margin-bottom: var(--space-24);
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
}

.hero__text + .hero__text {
  font-size: var(--fs-base);
}

.hero__bonus {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  margin-bottom: var(--space-24);
  border-radius: var(--radius-full);
  background: rgba(20, 20, 22, 0.7);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-glow);
}

.hero__bonus-chip {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: #12100A;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.hero__bonus-text {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.hero__bonus-text strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--color-accent-bright);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.hero__urdu {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-neutral);
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  line-height: 2.5;
  color: var(--color-text-secondary);
  direction: rtl;
  text-align: right;
}

.hero__quickstats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-20) var(--space-32);
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border-neutral);
}

.hero__quickstat strong {
  display: block;
  font-family: var(--font-heading-alt);
  font-size: 1.5rem;
  color: var(--color-accent-bright);
  line-height: 1.2;
}

.hero__quickstat span {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--space-24);
}

/* --- OG banner showcase --------------------------------------------------- */

.og-banner {
  position: relative;
  display: block;
  padding: clamp(0.5rem, 0.35rem + 0.6vw, 0.85rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.16), rgba(12, 12, 14, 0.9) 55%);
  box-shadow: var(--shadow-card-lift), var(--shadow-glow);
  overflow: hidden;
}

.og-banner__frame {
  position: relative;
  display: block;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: #08080A;
}

.og-banner__frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.og-banner:hover .og-banner__frame img {
  transform: scale(1.02);
}

.og-banner__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.14) 48%, transparent 62%);
  background-size: 280% 100%;
  animation: foil-sweep 7.5s var(--ease-in-out) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.og-banner__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-8) var(--space-4);
}

.og-banner__caption p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  max-width: 52ch;
}

.og-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.og-highlight {
  padding: var(--space-16);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-neutral);
  text-align: center;
}

.og-highlight strong {
  display: block;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-lg);
  color: var(--color-accent-bright);
}

.og-highlight span {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --- Bonus band ---------------------------------------------------------- */

.bonus-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(212, 175, 55, 0.20), transparent 70%),
    linear-gradient(150deg, rgba(30, 26, 14, 0.95), rgba(9, 9, 11, 0.97));
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  box-shadow: var(--shadow-card-lift);
}

.bonus-band__grid {
  display: grid;
  gap: var(--space-32);
  align-items: center;
}

.bonus-band__amount {
  font-family: var(--font-heading-alt);
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-bright);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  margin-block: var(--space-8) var(--space-16);
}

.bonus-band__list {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-20);
}

.bonus-band__list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.bonus-band__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--gradient-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.bonus-tiers {
  display: grid;
  gap: var(--space-12);
}

.bonus-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(11, 11, 13, 0.6);
  border: 1px solid var(--color-border-neutral);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.bonus-tier:hover {
  border-color: var(--color-border-strong);
  transform: translateX(4px);
}

.bonus-tier__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.bonus-tier__note {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.bonus-tier__value {
  flex: none;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-accent-bright);
}

/* --- Responsible gaming --------------------------------------------------- */

.rg-grid {
  display: grid;
  gap: var(--space-24);
}

.rg-card {
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-neutral);
}

.rg-card h3 {
  margin-bottom: var(--space-12);
  font-family: var(--font-body);
  font-size: var(--fs-lg);
}

.rg-card p {
  font-size: var(--fs-sm);
}

/* --- Telegram section ----------------------------------------------------- */

.tg-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  border: 1px solid rgba(42, 171, 238, 0.28);
  background:
    radial-gradient(600px 280px at 15% 0%, rgba(42, 171, 238, 0.16), transparent 70%),
    linear-gradient(150deg, rgba(14, 24, 30, 0.95), rgba(9, 9, 11, 0.97));
}

.tg-section__grid {
  display: grid;
  gap: var(--space-24);
}

.tg-card {
  display: flex;
  gap: var(--space-16);
  padding: var(--space-20);
  border-radius: var(--radius-lg);
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid rgba(42, 171, 238, 0.2);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.tg-card:hover {
  border-color: rgba(42, 171, 238, 0.5);
  transform: translateY(-3px);
}

.tg-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #229ED9, #2AABEE);
  color: #04222E;
}

.tg-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tg-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  margin-bottom: 0.35rem;
}

.tg-card p {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

.tg-card__handle {
  font-size: var(--fs-xs);
  color: #7FD3F7;
  word-break: break-all;
}

/* --- Comparison / why-us table ------------------------------------------- */

.why-list {
  display: grid;
  gap: var(--space-16);
}

.why-item {
  display: flex;
  gap: var(--space-16);
  padding: var(--space-20);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-neutral);
}

.why-item__num {
  flex: none;
  font-family: var(--font-heading-alt);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-accent-dim);
  line-height: 1.2;
}

.why-item h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  margin-bottom: 0.35rem;
}

.why-item p {
  font-size: var(--fs-sm);
}

/* --- Responsive ----------------------------------------------------------- */

@media (min-width: 768px) {
  .og-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tg-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (min-width: 1200px) {
  /* Below 1200px the mockup sits in document flow between the two copy
     blocks (mobile request: "mockup above the welcome bonus badge"). At
     desktop width it moves back beside the text as a side column that
     spans both copy rows, via named grid areas. */
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      "copy-top    visual"
      "copy-bottom visual";
    gap: clamp(1.5rem, 0.6rem + 2.4vw, 3rem) clamp(2rem, 1rem + 3vw, 4.5rem);
  }

  .hero__copy--top {
    grid-area: copy-top;
  }

  .hero__copy--lower {
    grid-area: copy-bottom;
  }

  .hero__visual {
    grid-area: visual;
    padding-block: 0;
  }

  .mockup { max-width: 330px; }

  .rg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
