/* Studio Grain Hero, Architectural Grid Streaks, Matte Crimson Buttons & Cards */

.sg-hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-h) + 74px) 0 84px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

/* Layer 1: Smooth neutral-charcoal studio top spotlight with subtle warm obsidian falloff */
.sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.94;
  pointer-events: none;
  background: radial-gradient(
    95% 115% at 50% 0%,
    #585c66 0%,
    #464a53 12%,
    #363941 24%,
    #282a31 38%,
    #1d1f24 52%,
    #15161a 66%,
    #101114 78%,
    #0d0e11 88%,
    #0b0c0e 98%
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0, 0, 0, 0.55) 72%, transparent 100%);
}

/* Layer 2: Tiled 180x180 analog monochrome film grain overlay */
.sg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("/assets/ui/hero-grain.png");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.28;
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.45) 60%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.45) 60%, transparent 75%);
}

/* Layer 3: 4-Column Vertical Architectural Lines + Specular Light Streaks */
.sg-hero-streaks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image:
    radial-gradient(105% 95% at 50% -2%, #000 0% 44%, transparent 88%),
    linear-gradient(180deg, #000 0%, #000 34%, rgba(0, 0, 0, 0.45) 50%, transparent 66%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(105% 95% at 50% -2%, #000 0% 44%, transparent 88%),
    linear-gradient(180deg, #000 0%, #000 34%, rgba(0, 0, 0, 0.45) 50%, transparent 66%);
  mask-composite: intersect;
}

.sg-hero-vlines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.sg-hero-vlines span {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.006) 40%, transparent 100%);
}

.sg-hero-vlines span:last-child {
  border-right: none;
}

.sg-streak {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.38) 55%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.07);
}

.sg-streak-1 {
  left: 25%;
  top: -8%;
  height: 110%;
  opacity: 0.5;
}

.sg-streak-2 {
  left: 50%;
  top: -10%;
  height: 120%;
  width: 1.5px;
  opacity: 0.68;
}

.sg-streak-3 {
  left: 75%;
  top: -6%;
  height: 105%;
  opacity: 0.5;
}

/* Hero Foreground Content */
.sg-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 840px;
  margin: 0 auto;
}

.sg-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: #212328;
  border: 1px solid #3c3f47;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 28px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sg-trust-pill:hover {
  background-color: #272a30;
  border-color: rgba(255, 255, 255, 0.35);
}

.sg-trust-pill svg {
  color: var(--red-bright);
}

.sg-hero h1 {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -0.036em;
  color: #ffffff;
}

.sg-hero-lead {
  margin: 24px auto 34px;
  max-width: 640px;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.65;
  color: #a6abb6;
}

.sg-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Matte Studio Buttons */
.sg-btn {
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 0.91rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sg-btn-primary {
  background-color: var(--red-core);
  border-color: var(--red-rim);
  color: #ffffff;
}

.sg-btn-primary:hover {
  background-color: var(--red-hover);
  border-color: #e24453;
  transform: translateY(-1px);
}

.sg-btn-ghost {
  background-color: #212328;
  border-color: #3a3d45;
  color: #f3f4f6;
}

.sg-btn-ghost:hover {
  background-color: #282b31;
  border-color: rgba(255, 255, 255, 0.36);
}

.sg-btn-block {
  width: 100%;
  border-radius: 11px;
}

.sg-scroll-cue {
  display: inline-flex;
  margin-top: 46px;
  color: #7c818d;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sg-scroll-cue:hover {
  color: #ffffff;
  transform: translateY(3px);
}

/* Product Grid & Matte Cards */
.sg-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.sg-card {
  position: relative;
  border-radius: 16px;
  background-color: #16171b;
  border: 1px solid var(--border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease;
}

.sg-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.sg-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0a0b0d;
  border-bottom: 1px solid var(--border-card);
  overflow: hidden;
}

.sg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.sg-card:hover .sg-card-media img {
  transform: scale(1.03);
}

.sg-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 600;
  background: rgba(18, 19, 23, 0.88);
  border: 1px solid var(--border-strong);
  color: #e5e7eb;
}

.sg-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sg-card-cat {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sg-card-title {
  margin: 6px 0 8px;
  font-size: 1.22rem;
  font-weight: 750;
}

.sg-card-desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.sg-card-foot {
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sg-price-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sg-price-val {
  font-size: 1.18rem;
  font-weight: 750;
}

/* FAQ Accordion */
.sg-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-faq-item {
  border-radius: 14px;
  background-color: #141519;
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.sg-faq-item.is-open {
  border-color: var(--border-strong);
}

.sg-faq-item:hover {
  border-color: var(--border-hover);
}

.sg-faq-q {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.sg-faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #1d1f25;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-faq-item.is-open .sg-faq-icon {
  transform: rotate(45deg);
  color: var(--red-bright);
}

.sg-faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.sg-faq-item.is-open .sg-faq-a {
  display: block;
}

/* Local Sandbox Checkout Modal */
.sg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sg-modal-backdrop.is-open {
  display: flex;
}

.sg-modal {
  width: min(460px, 100%);
  border-radius: 16px;
  background: #141519;
  border: 1px solid var(--border-strong);
  padding: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.sg-modal h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.sg-modal p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sg-modal-summary {
  padding: 14px;
  border-radius: 11px;
  background: #0d0e11;
  border: 1px solid var(--border-card);
  margin-bottom: 18px;
  font-size: 0.88rem;
}
