/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  background-color: #0f0f11;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ===== Font: ZCOOL KuaiLe ===== */
@font-face {
  font-family: 'ZCOOL KuaiLe';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../font/zcool-kuaile.woff2) format('woff2');
}

.font-cute {
  font-family: 'ZCOOL KuaiLe', cursive;
}

/* ===== Liquid Glass Effect ===== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
          rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
          rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
          rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== Header / Nav ===== */
.site-nav {
  width: 100%;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 30;
}

.site-nav .logo {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
}

@media (min-width: 640px) {
  .site-nav {
    padding: 1.25rem 1.5rem;
  }
  .site-nav .logo {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .site-nav {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 70vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-bg-img,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s ease;
}

.hero-bg-img {
  opacity: 1;
}

.hero-bg-video {
  opacity: 0;
}

.hero.video-loaded .hero-bg-img {
  opacity: 0;
}

.hero.video-loaded .hero-bg-video {
  opacity: 1;
}

.hero-overlay-dim {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent, #0f0f11);
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4rem;
  position: relative;
  z-index: 10;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero-content-inner {
  text-align: center;
  max-width: 48rem;
}

.hero-title {
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 28rem;
  margin: 1.5rem auto 0;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #111827;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.01);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-scroll-hint {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-scroll-hint span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.scroll-wheel {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-wheel-dot {
  width: 0.25rem;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  animation: scrollWheel 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@media (min-width: 640px) {
  .hero-content {
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-top: 2rem;
  }
  .hero-buttons {
    margin-top: 2rem;
    gap: 1rem;
  }
  .btn {
    padding: 0.75rem 1.5rem;
  }
  .hero-scroll-hint {
    margin-top: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 6rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ===== Product Sections ===== */
.product-section {
  position: relative;
  z-index: 10;
  padding: 4rem 1.25rem;
}

.product-section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
}

.product-card {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

@media (min-width: 640px) {
  .product-section {
    padding: 5rem 1.5rem;
  }
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 3rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-section {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-section {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.25rem;
}

.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  padding: 0.75rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
