/* =========================
   Front Page
========================= */

.front-page {
  position: relative;
  background: #000;
  color: #fff;
  font-family: "Inter", "DotGothic16", sans-serif;
  font-weight: 300;
}

.front-page::before,
.front-page::after {
  position: fixed;
  z-index: 10;
  color: #ff4fdf;
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  line-height: 1;
  letter-spacing: 0.18em;
  opacity: 0.11;
  text-shadow:
    1px 0 rgba(83, 255, 216, 0.72),
    -1px 0 rgba(89, 124, 255, 0.72);
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

.front-page::before {
  content: "SKR44";
  top: 31vh;
  left: 7vw;
  font-size: clamp(52px, 9vw, 150px);
  transform: rotate(-7deg);
}

.front-page::after {
  content: "Tired";
  right: 6vw;
  bottom: 14vh;
  font-size: clamp(48px, 8vw, 132px);
  transform: rotate(5deg);
}

.front-page :where(h1, h2, h3) {
  margin-inline: auto;
  font-weight: 300;
  text-align: center;
}

.front-stop-control {
  position: absolute;
  z-index: 30;
  top: 18px;
  right: 40px;
}

.front-bored-control {
  position: absolute;
  z-index: 29;
  top: clamp(82px, 14vh, 150px);
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
}

.front-bored-button {
  min-width: 142px;
  height: 44px;
  padding-inline: 22px;
  background: #0b0b0b;
  border-color: rgba(255, 255, 255, 0.72);
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
  font-size: 17px;
  text-transform: none;
}

.front-bored-button:hover,
.front-bored-button:focus-visible {
  background: #ff4fdf;
  color: #000;
  border-color: #fff;
  outline: none;
}

.front-hero__title,
.front-section-title,
.front-guide-card__title,
.front-cta__title {
  font-family: "Creepster", "DotGothic16", cursive;
  font-weight: 300;
}

.front-product-card__title {
  font-family: "Coral Pixels", "DotGothic16", sans-serif;
}

/* =========================
   Common Front Sections
========================= */

.front-section-header {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

.front-section-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================
   Hero
========================= */

.front-hero {
  box-sizing: border-box;
  min-height: calc(100vh - 96px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 72px 0;
}

.front-hero__inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.front-hero__title {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow:
    3px 0 0 #ff4fdf,
    -3px 0 0 #53ffd8,
    0 6px 0 #000;
}

@media (min-width: 769px) {
  .front-hero__title {
    max-width: 900px;
    line-height: 1.08;
    letter-spacing: 0.01em;
    word-spacing: 0.34em;
  }
}

.front-hero__actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.front-hero__actions .button--primary {
  min-width: clamp(220px, 22vw, 320px);
  height: clamp(60px, 6vw, 76px);
  padding-inline: clamp(32px, 5vw, 64px);
  font-size: clamp(17px, 1.6vw, 22px);
}

.front-hero__actions .button--primary,
.front-products .button,
.front-section-title {
  word-spacing: 0.34em;
}

.front-vibration-stop {
  font-family: "DotGothic16", monospace;
}

.front-vibration-stop.is-stopped {
  color: #000;
  background: #ff4fdf;
  border-color: #ff4fdf;
}

/* =========================
   Featured Products
========================= */

.front-products {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.front-products .front-section-header {
  margin-bottom: 20px;
  gap: 0;
}

.front-products__sample-button {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  margin: 0;
  background: #0b0b0b;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
  font-family: "Coral Pixels", sans-serif;
  opacity: 0;
  will-change: transform;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.2s ease,
    transform 3s linear;
}

.front-products__sample-button.is-moving {
  opacity: 1;
}

.front-products__sample-button:hover,
.front-products__sample-button:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.is-idle-shaking .front-products__sample-button {
  animation: none !important;
}

.front-products__grid {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.front-products__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 6px 6px 0 #ff4fdf;
  color: rgba(255, 255, 255, 0.66);
  justify-self: center;
  text-align: center;
}

.front-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 20px;
  background: #0b0b0b;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 6px 6px 0 #ff4fdf;
}

.front-product-card__image {
  position: static;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.38);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.front-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.front-product-card__image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
}

.front-product-card:hover .front-product-card__image {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.32);
}

.front-product-card:hover .front-product-card__image img {
  transform: scale(1.04);
}

.front-product-card__body {
  padding: 18px 18px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.front-product-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.front-product-card__title a:hover {
  opacity: 1;
}

.front-product-card__price {
  margin: 10px 0 0;
  font-size: 15px;
  color: #fff;
  opacity: 1;
}

.front-product-card__price del {
  color: rgba(255, 255, 255, 0.35);
}

.front-product-card__price ins {
  color: #fff;
  text-decoration: none;
}

/* =========================
   Shopping Guide
========================= */

.front-guide {
  padding: 120px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.front-guide__grid {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.front-guide-card {
  min-height: 240px;
  padding: 32px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  background: #0b0b0b;
  border: 3px solid #fff;
  border-radius: 0;
  box-shadow: 6px 6px 0 #53ffd8;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.front-guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: #151515;
}

.front-guide-card__title {
  margin: 0 auto;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.front-guide-card__text {
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.66);
}

/* =========================
   Final CTA
========================= */

.front-cta {
  padding: 140px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.front-cta__inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
  text-align: center;
}

.front-cta__title {
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 90px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
}

.front-cta__actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* =========================
   Responsive Front Page
========================= */

@media (max-width: 1024px) {
  .front-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-guide__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  .front-stop-control {
    top: 12px;
    right: 16px;
  }

  .front-stop-control .button {
    min-width: 112px;
    height: 42px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .front-bored-control {
    top: 62px;
    left: 38%;
    transform: translateX(-50%) rotate(-7deg);
  }

  .front-bored-button {
    min-width: 116px;
    height: 38px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .front-page::before,
  .front-page::after {
    opacity: 0.13;
  }

  .front-page::before {
    top: 28vh;
    left: 4vw;
    font-size: clamp(40px, 17vw, 92px);
  }

  .front-page::after {
    right: 2vw;
    bottom: 18vh;
    font-size: clamp(38px, 15vw, 82px);
  }

  .front-hero__actions .button--primary {
    min-width: min(260px, 82vw);
    height: 60px;
    font-size: 17px;
  }

  .front-section-header,
  .front-hero__inner,
  .front-products__grid,
  .front-guide__grid,
  .front-cta__inner {
    width: calc(100% - 32px);
  }

  .front-section-header {
    align-items: center;
    flex-direction: column;
    margin-bottom: 32px;
    text-align: center;
  }

  .front-hero {
    min-height: auto;
    padding: 132px 0 88px;
  }

  .front-hero__title {
    font-size: clamp(34px, 11vw, 50px);
  }

  .front-products,
  .front-guide,
  .front-cta {
    padding: 88px 0;
  }

  .front-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .front-product-card {
    padding-bottom: 14px;
    border-radius: 0;
  }

  .front-product-card__body {
    padding: 12px 10px 0;
  }

  .front-product-card__title {
    font-size: 14px;
  }

  .front-product-card__price {
    margin-top: 6px;
    font-size: 12px;
  }

  .front-guide-card {
    min-height: auto;
    padding: 28px;
  }

  .front-guide-card__title {
    margin-top: 0;
    font-size: 48px;
  }

  .front-cta__title {
    font-size: clamp(38px, 12vw, 58px);
  }

}
