/* ============================================================
   ScoreChom — Home page (index.html) styles
   ------------------------------------------------------------
   Photo-led layouts, brush-stroke transitions, full-bleed
   atmospheric sections. Depends on vars.css + base.css.
   ============================================================ */

/* ---- HERO ---- */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
}
/* ----- HERO BACKGROUND IMAGE -----
   To swap the hero photo: change the url() below ONLY. The final CTA
   uses a different image (see .home-final-cta) so this one is unique. */
.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg,
      rgba(7, 11, 24, 0.55) 0%,
      rgba(7, 11, 24, 0.72) 60%,
      rgba(7, 11, 24, 0.94) 100%),
    url("../../images/marketing/site/digital-home.png");
  background-size: cover;
  background-position: center 30%;
}
.home-hero__bg::after {
  /* Subtle pitch-green wash blending into the dark */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 80% 10%, rgba(25, 184, 106, 0.18), transparent 60%),
    radial-gradient(40% 30% at 8%  90%, rgba(255, 85, 51, 0.16),  transparent 60%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  color: #fff;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: #fff;
  align-self: flex-start;
}
.home-hero__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(255, 85, 51, 0.6);
  animation: sc-pulse 1.6s var(--ease) infinite;
}

.home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.home-hero__title span { display: block; }
.home-hero__title .ht-accent { color: var(--pitch-green); }
.home-hero__title .ht-italic { font-style: italic; font-weight: 800; }

.home-hero__sub {
  font-family: var(--font-script);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--brand-yellow);
  margin: 0;
}
.home-hero__sub .heart { color: var(--heart-red); margin-left: 4px; }

.home-hero__lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0;
  line-height: 1.55;
}

.home-hero__cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* The match strip lives on the right of the hero. */
.home-hero__aside { min-width: 0; }
.home-hero__aside .sc-strip { background: rgba(7, 11, 24, 0.62); backdrop-filter: blur(10px); }

/* ---- FEATURE PILLS (under the hero) ---- */
.home-features {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0 var(--space-6);
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-2) 100%);
}
.home-features__grid {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.home-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.home-feature:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}
.home-feature__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 22px rgba(255, 85, 51, 0.32);
  margin-bottom: var(--space-2);
}
.home-feature__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.home-feature__body {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ---- LIFESTYLE SECTION (grandma photo) ---- */
.home-lifestyle {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--brand-navy);
  overflow: hidden;
}
.home-lifestyle__inner {
  position: relative;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.home-lifestyle__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.home-lifestyle__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-lifestyle__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(7, 11, 24, 0.4) 100%);
}

.home-lifestyle__copy { color: #fff; }
.home-lifestyle__eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(22px, 2vw, 28px);
  color: var(--brand-yellow);
  margin-bottom: var(--space-3);
}
.home-lifestyle__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  margin: 0 0 var(--space-4);
  color: #fff;
}
.home-lifestyle__title .accent { color: var(--brand); }
.home-lifestyle__body {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 var(--space-5);
}

/* ============================================================
   DESKTOP LIVE — big-screen sideline view
   ============================================================ */
.home-desktop {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--brand-navy) 0%, #0a1224 100%);
  overflow: hidden;
}
.home-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 30% at 90% 15%, rgba(25, 184, 106, 0.14), transparent 60%),
    radial-gradient(40% 30% at 6% 85%, rgba(255, 85, 51, 0.10), transparent 60%);
  pointer-events: none;
}
.home-desktop__inner {
  position: relative;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.home-desktop__copy { color: #fff; }
.home-desktop__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 0.95;
  margin: var(--space-3) 0 var(--space-4);
  color: #fff;
}
.home-desktop__title .accent { color: var(--brand-yellow); }
.home-desktop__body {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 var(--space-5);
}
.home-desktop__media {
  position: relative;
}
/* Fake browser chrome wrapping the screenshot */
.home-desktop__browser {
  position: relative;
  background: #0e1628;
  border-radius: 14px;
  padding: 32px 8px 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(25, 184, 106, 0.16);
  overflow: hidden;
}
.home-desktop__dots {
  position: absolute;
  top: 12px; left: 16px;
  display: inline-flex;
  gap: 6px;
}
.home-desktop__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
}
.home-desktop__dots span:nth-child(1) { background: #ff5f57; }
.home-desktop__dots span:nth-child(2) { background: #febc2e; }
.home-desktop__dots span:nth-child(3) { background: #28c840; }
.home-desktop__browser img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .home-desktop__inner { grid-template-columns: 1fr; }
}

/* ---- PRODUCT SHOWCASE (phone screenshots) ---- */
.home-showcase {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--brand-navy) 0%, #0c1325 100%);
}
.home-showcase__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: 0 var(--space-5);
}
.home-showcase__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-7);
  color: #fff;
}
.home-showcase__head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  margin: var(--space-3) 0;
  color: #fff;
}
.home-showcase__head h2 .accent { color: var(--brand); }
.home-showcase__head p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-md);
  line-height: 1.6;
  margin: 0;
}
.home-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.home-shot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.home-shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.home-shot__img {
  aspect-ratio: 9/16;
  background: #050912;
  overflow: hidden;
}
.home-shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.home-shot__caption {
  padding: var(--space-4) var(--space-5);
  color: #fff;
}
.home-shot__caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  margin-bottom: 4px;
}
.home-shot__caption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ---- FINAL CTA ---- */
.home-final-cta {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0;
  background:
    linear-gradient(135deg, rgba(7,11,24,0.86), rgba(7,11,24,0.92)),
    url("../../images/marketing/site/hero-rugby.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.home-final-cta__inner {
  max-width: var(--container-md);
  margin-inline: auto;
  padding: 0 var(--space-5);
  text-align: center;
}
.home-final-cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  margin: 0 0 var(--space-4);
  color: #fff;
}
.home-final-cta h2 em { font-style: normal; color: var(--brand-yellow); font-family: var(--font-script); }
.home-final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  max-width: 580px;
  margin: 0 auto var(--space-5);
  line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .home-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-lifestyle__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .home-showcase__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}
@media (max-width: 540px) {
  .home-features__grid { grid-template-columns: 1fr; }
}
