/* Home page only */
.gg-home {
  padding: 0;
}

/* Headings / copy */
.gg-home-h2,
.gg-home-h3,
.gg-home-hero__title {
  font-family: var(--gg-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gg-home-h2 {
  font-size: clamp(22px, 2.2vw, 34px);
  margin: 0 0 14px;
}

.gg-home-h3 {
  font-size: 18px;
  margin: 12px 0 6px;
}

.gg-home-p {
  font-family: var(--gg-font-body);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0;
}

.gg-home-p--dim {
  color: rgba(255, 255, 255, 0.72);
}

.gg-home-center {
  text-align: center;
}

/* CTA */
.gg-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;

  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.35);

  font-family: var(--gg-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 18px rgba(255, 122, 24, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gg-home-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 122, 24, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 22px rgba(255, 122, 24, 0.35);
}

.gg-home-cta--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.35);
}

/* HERO */
.gg-home-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gg-home-hero__media,
.gg-home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-home-hero__video {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.gg-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 380px at 50% 0%,
      rgba(39, 244, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(5, 8, 22, 0.35), rgba(5, 8, 22, 0.92));
}

.gg-home-hero__content {
  position: relative;
  z-index: 2;

  min-height: clamp(520px, 70vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: center; /* horizontal center */
  text-align: center;

  gap: 16px;
  padding: 0 16px;
}

.gg-home-hero__title {
  font-size: clamp(30px, 3.4vw, 56px);
  margin: 0 0 12px;
}

.gg-home-hero__subtitle {
  font-family: var(--gg-font-body);
  max-width: 62ch;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.gg-home-hero__note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
}

/* Sections */
.gg-home-section {
  padding: 56px 0;
}

/* =========================================================
   WHAT IS GRIDGAMES – 2 column section
   ========================================================= */

.gg-home-info {
  padding: clamp(36px, 6vw, 72px) 0;
}

.gg-home-info__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 96px); /* MORE breathing room */
  align-items: center;
}

/* Left: keep video card feel */
.gg-home-info__left {
  min-width: 0;
}

/* Right: copy block */
.gg-home-info__right {
  min-width: 0;
}

.gg-home-info__title {
  margin: 0 0 10px;
  font-family: var(--gg-font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gg-home-info__copy {
  margin: 0 0 16px;
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.gg-home-embed {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.gg-home-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.gg-home-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA: reuse header svg-swap button but scale for this section */
.gg-home-info__cta .gg-cta-svg__img {
  height: clamp(52px, 5.2vw, 78px);
  margin-top: 36px;
}

/* =========================================================
   How it works
   ========================================================= */

.gg-home-how {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 14px 42px rgba(0, 0, 0, 0.45);
}

.gg-home-how::before,
.gg-home-how::after {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 14px 42px rgba(0, 0, 0, 0.45);
}

.gg-home-how::before {
  top: 0;
}

.gg-home-how::after {
  bottom: 0;
}

.gg-home-how__title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--gg-font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 34px);
}

/* One solid row across */
.gg-home-how__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;

  width: 100%;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 20px;

  /* "solid row" look that matches your neon/dark theme */
  background: radial-gradient(
      900px 240px at 15% 10%,
      rgba(39, 244, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 240px at 85% 10%,
      rgba(255, 122, 24, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 11, 31, 0.55), rgba(5, 8, 22, 0.65));

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* Step blocks */
.gg-home-how__step {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gg-home-how__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: none;
}

.gg-home-how__glyph {
  font-size: 26px;
  line-height: 1;
}

.gg-home-how__stepTitle {
  margin: 0 0 8px;
  font-family: var(--gg-font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 18px;
}

.gg-home-how__stepText {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* Arrow separators */
.gg-home-how__sep {
  display: grid;
  place-items: center;
}

.gg-home-how__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: #000; /* black fill */
  color: #fff; /* white arrow */

  font-size: 22px;
  line-height: 1;

  border: 2px solid rgba(255, 120, 24, 0.95);
  box-shadow: 0 0 12px rgba(255, 120, 24, 0.45), 0 0 24px rgba(255, 80, 0, 0.25);

  transition: transform 140ms ease, box-shadow 140ms ease;
}

/* CTA */
.gg-home-how__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.gg-home-how__ctaTitle {
  margin: 0;
  font-family: var(--gg-font-ui);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   WHY GRIDGAMES – cards section
   ========================================================= */
.gg-home-cards {
  margin-bottom: clamp(28px, 4vw, 56px);
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
}
.gg-home-card .gg-home-h3,
.gg-home-card .gg-home-p {
  margin-left: auto;
  margin-right: auto;
}

.gg-home-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      700px 240px at 50% 0%,
      rgba(39, 244, 255, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 11, 31, 0.72), rgba(5, 8, 22, 0.82));
  padding: 14px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.4);
}

.gg-home-card__img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Center the bottom CTA block under the why-cards */
.gg-home-why__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: 0; /* spacing is controlled by .gg-home-cards margin-bottom now */
}

.gg-home-why__bottom .gg-cta-svg {
  margin-top: 6px;
}

.gg-home-why__grid {
  margin-bottom: clamp(36px, 6vw, 72px);
}

.gg-home-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ============================
   CUSTOMER REVIEWS
   ============================ */

.gg-reviews {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;

  /* Use your existing style language: dark + subtle neon */
  background: radial-gradient(
      1200px 520px at 20% 15%,
      rgba(39, 244, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      1200px 520px at 80% 80%,
      rgba(255, 122, 24, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(6, 8, 20, 0.88), rgba(6, 8, 20, 0.92));
}

.gg-reviews__header {
  text-align: center;
  margin-bottom: 26px;
}

.gg-reviews__title {
  margin: 0 0 10px;
  font-family: var(--gg-font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 38px);
}

.gg-reviews__meta {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
}

.gg-reviews__viewport {
  overflow: hidden;
  width: 100%;
}

/* ============================
   PARTIAL STAR (4.8 / 5)
   ============================ */

.gg-reviews__stars {
  display: inline-flex;
  gap: 4px;
  font-size: 18px;
  line-height: 1;
}

.gg-star {
  position: relative;
  color: rgba(255, 255, 255, 0.35); /* empty star base */
}

/* Fully filled stars (1–4) */
.gg-reviews__stars .gg-star:not(.gg-star--partial) {
  color: #fff;
}

/* Partially filled star (last one) */
.gg-star--partial {
  color: rgba(255, 255, 255, 0.35); /* base */
}

.gg-star--partial::before {
  content: "★";
  position: absolute;
  inset: 0;
  width: 80%; /* 4.8 = 80% of the star */
  overflow: hidden;
  color: #fff;
}

/* =========================================
   MAIN AVERAGE STAR RATING – GOLD + FIRE
   ========================================= */

.gg-stars-48 .gg-star:not(.gg-star--partial),
.gg-stars-48 .gg-star--partial::before {
  color: #ffd56a; /* warm gold */

  text-shadow: 0 0 6px rgba(255, 213, 106, 0.65),
    /* inner gold glow */ 0 0 14px rgba(255, 140, 40, 0.85),
    /* fiery orange halo */ 0 0 28px rgba(255, 80, 0, 0.55); /* outer fire glow */
}

.gg-reviews {
  --gg-rev-nav: 44px; /* button size */
  --gg-rev-gap: 12px; /* space from edge */
  --gg-rev-gutter: calc(var(--gg-rev-nav) + var(--gg-rev-gap));
}

/* Slightly dim the unfilled portion of the partial star */
.gg-stars-48 .gg-star--partial {
  color: rgba(255, 255, 255, 0.25);
}

/* Clip anything that would otherwise create page overflow */
.gg-reviews__frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;

  /* Always reserve enough room for buttons */
  padding-inline: var(--gg-rev-gutter);

  /* Ensures arrows can’t create horizontal scroll even if positioned oddly */
  overflow: clip; /* modern */
  /* fallback if needed:
  overflow: hidden;
  */
}
.gg-reviews__track {
  display: grid;
  grid-auto-flow: column;
  box-sizing: border-box;
  /* 3 cards, 2 gaps of 22px => 44px total gap */
  grid-auto-columns: calc((100% - 44px) / 3);

  gap: 22px;
  transition: transform 260ms ease;
  will-change: transform;
}

.gg-reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255, 120, 24, 0.85);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 120, 24, 0.25), 0 0 26px rgba(255, 80, 0, 0.16);
  width: var(--gg-rev-nav);
  height: var(--gg-rev-nav);
  max-width: var(--gg-rev-nav);
}

.gg-reviews__nav--prev {
  left: var(--gg-rev-gap);
}
.gg-reviews__nav--next {
  right: var(--gg-rev-gap);
}

/* Cards */
.gg-reviewCard {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: radial-gradient(
      520px 220px at 20% 0%,
      rgba(39, 244, 255, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 11, 31, 0.55), rgba(5, 8, 22, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  min-height: 220px;
}

.gg-reviewCard__stars {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
}

.gg-reviewCard__rating {
  letter-spacing: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.gg-reviewCard__who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.gg-reviewCard__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-family: var(--gg-font-ui);
}

.gg-reviewCard__name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.gg-reviewCard__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 14px;
}

.gg-reviewCard__source {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

/* Dots */
.gg-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.gg-reviews__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.gg-reviews__dot.is-active {
  background: rgba(255, 120, 24, 0.85);
  border-color: rgba(255, 120, 24, 0.65);
}

/* Mobile */
@media (max-width: 900px) {
  .gg-reviews {
    --gg-rev-nav: 40px;
    --gg-rev-gap: 10px;
  }

  /* IMPORTANT: keep each slide = 100% so JS aligns perfectly */
  .gg-reviews__track {
    grid-auto-columns: 100%;
  }

  /* Visually "shrink" the card without changing slide width */
  .gg-reviewCard {
    width: min(340px, 100%);
    margin: 0 auto; /* center inside the 100% slide */
  }

  .gg-home-hero__content {
    padding: 54px 0 48px;
  }

  .gg-home-what__grid {
    grid-template-columns: 1fr;
  }

  .gg-home-cards {
    grid-template-columns: 1fr;
  }

  .gg-home-info__grid {
    grid-template-columns: 1fr;
  }

  .gg-home-info__right {
    text-align: center;
    display: grid;
    justify-items: center;
  }

  .gg-home-info__copy {
    margin-left: auto;
    margin-right: auto;
  }

  .gg-home-how__row {
    grid-template-columns: 1fr;
  }

  .gg-home-how__sep {
    display: grid;
    place-items: center;
    margin: 6px 0;
  }

  .gg-home-how__arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
    transform: rotate(90deg); /* turns › into ↓ */
    opacity: 0.85;
  }

  .gg-home-how__stepText {
    max-width: 48ch;
  }
}
