/* ============================================
   HERO SECTION - Video Background
   对应 Figma 节点: 309:8701 - 309:8711
   ============================================ */

/* Hero Container - Sticky 效果 */
.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 970px;
  overflow: hidden;
  z-index: 1; /* 低于 .content (z-index: 10)，让内容覆盖 hero */
}

/* Video Background Container */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative; /* 确保 z-index 生效 */
  z-index: 1; /* 高于 fallback，确保视频显示 */
}

.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* WebP with PNG fallback */
  background: url('../assets/images/webp/hero-bg.webp') center/cover no-repeat;
  z-index: 0;
}

/* Fallback for browsers without WebP support */
@supports not (background-image: url('../assets/images/webp/hero-bg.webp')) {
  .hero-video-fallback {
    background: url('../assets/images/hero-bg.png') center/cover no-repeat;
  }
}

/* Dark Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(245deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.85) 97%);
  z-index: 1;
}

/* Hero Content - Main Container */
.hero-content {
  position: absolute;
  left: 80px;
  top: 214px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 2;
  box-sizing: border-box;
}

/* Title Group */
.hero-title-group {
  display: flex;
  flex-direction: column;
}

/* Main Title - "Create Explore Share" */
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  line-height: 1.2;
  letter-spacing: -2px;
  color: var(--color-white);
  white-space: pre-line;
}

/* Subtitle */
.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.36;
  color: var(--color-white);
  max-width: 452px;
  margin-top: 0;
}

/* CTA Row - Button + Rabbit */
.hero-cta-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 294px;
  height: 124px;
  overflow: visible;
}

/* Pre-Order Button */
.btn-preorder-hero {
  padding: 24px 52px;
  background: var(--color-orange);
  border: none;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.36;
  color: var(--color-white);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-preorder-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 107, 65, 0.4);
}

.btn-preorder-hero:active {
  transform: translateY(0);
}

/* Rabbit Mascot Image */
.rabbit-hero {
  position: absolute;
  width: 129px;
  height: 121px;
  left: 202px;
  top: -30px;
  object-fit: contain;
}

/* ============================================
   RESPONSIVE STYLES FOR HERO
   ============================================ */

/* Desktop (1280px - 1440px) */
@media (max-width: 1440px) {
  .hero-content {
    left: 60px;
  }
}

/* Laptop (1024px - 1280px) */
@media (max-width: 1280px) {
  .hero-content {
    left: 40px;
  }
  
  .hero-title {
    font-size: 80px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
}

/* Tablet Landscape (768px - 1024px) */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 700px;
    padding: 120px 40px 60px;
  }
  
  .hero-content {
    position: relative;
    left: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 64px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  /* 保持 hero-cta-row 原始布局，与 Figma 一致 */
  .hero-cta-row {
    width: 294px;
    height: 124px;
    flex-direction: row;
  }
  
  /* rabbit 使用 left 定位，与 Figma 设计一致 (left: 202px, top: -30px) */
  .rabbit-hero {
    position: absolute;
    width: 100px;
    height: auto;
    left: 160px;  /* 按比例缩小: 202 * (100/129) ≈ 157, 微调到 160 */
    top: -25px;   /* 按比例缩小: -30 * (100/129) ≈ -23, 微调到 -25 */
    right: auto;
  }
}

/* Tablet Portrait (600px - 768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 600px;
    padding: 100px 24px 40px;
  }
  
  .hero-content {
    gap: 30px;
    width: 100%;
  }
  
  .hero-title {
    font-size: 48px;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    max-width: 100%;
  }
  
  .hero-cta-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 20px;
    position: relative;
  }
  
  .btn-preorder-hero {
    width: 100%;
    padding: 18px 32px;
    font-size: 22px;
    text-align: center;
  }
  
  /* 保持 rabbit 在按钮右上角，与 Figma 设计一致 */
  .rabbit-hero {
    position: absolute;
    width: 80px;
    height: auto;
    right: -10px;
    top: -50px;
    left: auto;
  }
}

/* Mobile Large (480px - 600px) */
@media (max-width: 600px) {
  .hero {
    min-height: 550px;
    padding: 80px 20px 30px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .btn-preorder-hero {
    font-size: 20px;
  }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 480px;
    padding: 70px 16px 24px;
  }
  
  .hero-content {
    gap: 24px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .btn-preorder-hero {
    padding: 14px 24px;
    font-size: 18px;
  }
  
  .rabbit-hero {
    width: 70px;
    right: -5px;
    top: -45px;
  }
}

/* Small Mobile (max 360px) */
@media (max-width: 360px) {
  .hero {
    min-height: 420px;
    padding: 60px 12px 20px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 80px;
    padding-bottom: 20px;
  }
  
  .hero-content {
    gap: 20px;
  }
}

/* High DPI / Retina Display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-video-fallback {
    background-image: url('../assets/images/hero-bg@2x.png');
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .btn-preorder-hero:hover {
    transform: none;
  }
  
  .btn-preorder-hero:active {
    transform: scale(0.98);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .btn-preorder-hero {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .hero-video-container,
  .hero-overlay {
    display: none !important;
  }
  
  .hero {
    position: relative;
    height: auto;
    background: var(--color-orange);
    color: white;
    padding: 40px;
  }
}

