/* ==========================================================================
   Home hero — cinematic backdrop + floating launcher shot.
   Loaded after sd-market.css, before sd-mobile.css, so mobile can adjust it.
   ========================================================================== */

.sd-hero2 {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4.5vw, 58px) var(--pad-x) clamp(20px, 3.5vw, 40px);
  overflow: clip;
}

.sd-hero2__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.sd-hero2__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.sd-hero2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sd-hero2__pill,
.sd-hero2__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sd-hero2__pill .sd-i,
.sd-hero2__live .sd-i {
  color: #d6d6d6;
}

.sd-hero2__live {
  color: rgba(220, 255, 235, 0.85);
}

.sd-hero2__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45e08a;
  box-shadow: 0 0 0 0 rgba(69, 224, 138, 0.55);
  animation: sd-hero2-pulse 2.2s ease-out infinite;
}

@keyframes sd-hero2-pulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 224, 138, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(69, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 224, 138, 0); }
}

.sd-hero2__title {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #f4f7fb;
  text-wrap: balance;
}

.sd-hero2__accent {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
  background: linear-gradient(96deg, #c4c4c4 0%, #c9c9c9 45%, #e2e2e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sd-hero2__sub {
  max-width: 46ch;
  margin: 0;
  color: rgba(226, 232, 240, 0.62);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.6;
}

.sd-hero2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.sd-hero2__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.2vw, 44px);
  margin-top: 12px;
  padding-top: 20px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-hero2__visual {
  position: relative;
  min-width: 0;
  padding: 16px 10px 22px 0;
}

.sd-hero2__shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0a0d14;
  box-shadow:
    0 50px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px -20px rgba(255, 255, 255, 0.22);
  transform: perspective(1500px) rotateY(-9deg) rotateX(3.5deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-hero2__shot:hover {
  transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
}

.sd-hero2__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.sd-hero2__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
  animation: sd-hero2-float 7s ease-in-out infinite;
}

.sd-hero2__chip--fps {
  top: 2px;
  right: 0;
  color: #e8e8e8;
}

.sd-hero2__chip--fps .sd-i {
  color: #d6d6d6;
}

.sd-hero2__chip--java {
  bottom: 44px;
  left: -14px;
  animation-delay: -2.4s;
}

.sd-hero2__chip--ver {
  bottom: -2px;
  right: 18px;
  color: #0a0d14;
  background: linear-gradient(180deg, #eaf5ff, #e0e0e0);
  border-color: rgba(255, 255, 255, 0.6);
  animation-delay: -4.2s;
}

@keyframes sd-hero2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 980px) {
  .sd-hero2__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .sd-hero2__visual {
    order: 2;
    padding-right: 0;
  }

  .sd-hero2__shot {
    transform: none;
  }
}

@media (max-width: 620px) {
  .sd-hero2 {
    padding-top: 18px;
  }

  .sd-hero2__title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .sd-hero2__stats {
    gap: 18px;
  }

  .sd-hero2__chip--java {
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-hero2__chip,
  .sd-hero2__dot {
    animation: none;
  }
}

/* ==========================================================================
   Home polish — product frame, glass stats, section rhythm, accents.
   Layered on top of sd-market.css so the older home rules stay untouched.
   ========================================================================== */

/* tighter vertical rhythm: the page read as too airy on 1440px */
.sd-hm .sd-section {
  gap: clamp(18px, 2.2vw, 28px);
  padding-block: clamp(34px, 3.6vw, 54px);
}

/* bento grid: 5 cards read as 2 + 3 instead of leaving a hole */
.sd-hm__caps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* real star glyphs (the icon font “a” codepoint is not a star) */
.sd-star svg {
  display: block;
}

/* FAQ chevron: font glyphs are inline, so their rotate() never applied */
.sd-hm__faq-chev {
  display: block;
  transition: transform 0.3s var(--ease-smooth);
}

.sd-hm__faq.is-open .sd-hm__faq-chev {
  transform: rotate(180deg);
}

/* ---- hero shot: 1px gradient ring, brighter frame, soft reflection ---- */

.sd-hero2__shot {
  padding: 1px;
  border: 0;
  border-radius: 19px;
  /* the source shot has a dead strip at the bottom — crop it instead of
     shrinking the actual launcher window inside the frame */
  aspect-ratio: 1196 / 585;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.42) 100%);
  box-shadow:
    0 60px 130px -55px rgba(0, 0, 0, 0.98),
    0 0 110px -30px rgba(255, 255, 255, 0.42);
}

.sd-hero2__shot img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.1) contrast(1.04) brightness(1.05);
}

.sd-hero2__visual::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 9%;
  bottom: -22%;
  height: 52%;
  background: url("/assets/launcher-shot.png") center top / 100% auto no-repeat;
  transform: scaleY(-1);
  transform-origin: top center;
  opacity: 0.13;
  filter: blur(3px) saturate(0.5) brightness(0.9);
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 72%);
  pointer-events: none;
  z-index: -1;
}

/* ---- hero stats: glass tiles instead of a bare row ---- */

.sd-hero2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
}

.sd-hero2__stats .sd-hm__counter {
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

.sd-hero2__stats .sd-hm__counter:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.015));
}

/* ---- trust band: align with the section column ---- */

.sd-hm__trust {
  width: min(100% - var(--pad-x) * 2, calc(var(--content) - var(--pad-x) * 2));
  margin: 0 auto 16px;
}

/* ---- builds: accent hairline on top of each card ---- */

.sd-hm__build {
  position: relative;
  overflow: hidden;
}

.sd-hm__build::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 201, 201, 0.5), transparent);
  opacity: 0.65;
  transition: opacity 0.25s var(--ease-soft);
}

.sd-hm__build.is-paid::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.sd-hm__build:hover::before {
  opacity: 1;
}

/* ---- market teaser: stronger emphasis, brighter side panel ---- */

.sd-hm__market {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 46px 100px -56px rgba(0, 0, 0, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sd-hm__market::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 46%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.sd-hm__market-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(0, 0, 0, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 620px) {
  .sd-hero2__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-hero2__visual::after {
    display: none;
  }
}

/* ---------- Home stage ----------
   The home page shares the cabinet backdrop: the same animated shader layer
   over the same body gradient, with the same soft vignette. */
body:has(.sd-hm) #sd-shader {
  opacity: var(--shader-opacity, 0.62);
}
