.page-home {
  font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
}

.page-home .home-header {
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
  background: var(--bg);
  position: relative;
}

.page-home .home-header::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), rgba(255, 250, 235, 0.35), rgba(201, 162, 39, 0.5), transparent);
  opacity: 0.75;
  animation: seoHomeUnderline 7s ease-in-out infinite;
}

@keyframes seoHomeUnderline {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.page-home .banner-slider-img {
  border-radius: 15px;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  background-color: #000;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.page-home .swiper-slide-active .banner-slider-img {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.page-home .h3-large {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.page-home .p-large {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.page-home .trust-box-glow {
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 14px var(--accent-glow);
  background: var(--surface);
  padding: 15px 10px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
  animation: seoTrustGlow 5s ease-in-out infinite;
}

@keyframes seoTrustGlow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.22);
  }
  50% {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.38);
  }
}

.page-home .trust-box-glow .p-small {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.9rem;
}

.page-home .trust-box-glow strong {
  color: var(--accent);
}

.page-home .hero-registration-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-home .home-text-swiper .swiper-button-next,
.page-home .home-text-swiper .swiper-button-prev {
  color: var(--accent);
}

.page-home .btn-home-solid {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: var(--accent-gradient);
  color: var(--accent-text-on-gradient) !important;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.page-home .btn-home-solid:hover {
  background: var(--accent-gradient-hover);
  color: var(--accent-text-on-gradient) !important;
  filter: brightness(1.04);
}

.page-home .btn-home-outline {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: transparent;
  color: var(--accent) !important;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.page-home .btn-home-outline:hover {
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.page-home .metrics-card-home {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  padding: 40px;
  position: relative;
}

.page-home .features-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.page-home .feature-card-home {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .feature-card-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.page-home .feature-card-home .card-image {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.page-home .feature-card-home .card-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-home .feature-card-home .p-small {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.page-home .section-dark {
  background: var(--bg);
}

.page-home .basic-band {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-home .btn-inventory {
  display: inline-block;
  padding: 18px 45px;
  background: var(--accent-gradient);
  color: var(--accent-text-on-gradient) !important;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s;
  margin-bottom: 60px;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.page-home .btn-inventory:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
  box-shadow: 0 0 22px var(--accent-glow);
  color: var(--accent-text-on-gradient) !important;
}

.page-home .stat-number {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  display: block;
}

.page-home .stat-label {
  color: var(--muted);
  font-size: 14px;
}

.page-home .resource-cards {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--bg);
}

.page-home .resource-card {
  background: var(--surface);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border);
}

.page-home .resource-card:hover {
  transform: translateY(-3px);
}

.page-home .card-aged {
  border-bottom: 4px solid #28a745;
}

.page-home .card-aged:hover {
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
  border-color: #28a745;
}

.page-home .card-aged i {
  color: #28a745;
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.page-home .card-aged h4 {
  color: #28a745;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-home .card-expired {
  border-bottom: 4px solid #e83e8c;
}

.page-home .card-expired:hover {
  box-shadow: 0 0 20px rgba(232, 62, 140, 0.2);
  border-color: #e83e8c;
}

.page-home .card-expired i {
  color: #e83e8c;
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.page-home .card-expired h4 {
  color: #e83e8c;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-home .resource-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
  margin: 0;
}

.page-home .resource-card ul li {
  color: var(--muted);
  margin-bottom: 4px;
  font-size: 0.95rem;
  position: relative;
  padding-left: 25px;
}

.page-home .resource-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
}

.page-home .card-aged ul li::before {
  color: #28a745;
}

.page-home .card-expired ul li::before {
  color: #e83e8c;
}

.page-home .payment-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.page-home .payment-item {
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .payment-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-home .footer-home {
  background: var(--bg-elevated);
  padding-top: 70px;
  padding-bottom: 40px;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.page-home .soc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  margin-right: 12px;
  font-size: 14px;
  transition: 0.3s;
  border: 1px solid var(--border);
  text-decoration: none;
}

.page-home .soc-link:hover {
  background: var(--accent-gradient);
  color: var(--accent-text-on-gradient);
  border-color: rgba(184, 134, 11, 0.45);
}

.page-home .floating-wrapper {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}

.page-home .floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text-on-gradient) !important;
  font-size: 22px;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.28);
  transition: all 0.3s ease;
  text-decoration: none !important;
  position: relative;
  background: var(--accent-gradient);
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.page-home .floating-btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4af37, #fff8dc);
  opacity: 0.45;
  animation: pulse-accent 2s infinite;
}

@keyframes pulse-accent {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.page-home .floating-btn:hover {
  transform: scale(1.08) translateY(-4px);
  filter: brightness(1.06);
  color: var(--accent-text-on-gradient) !important;
}

#storyPlayer {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.story-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#storyImg {
  width: 100%;
  height: 80vh;
  object-fit: contain;
  margin-top: 50px;
}

.story-progress-container {
  position: absolute;
  top: 20px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10002;
}

.story-prog-bg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
}

.close-story {
  position: absolute;
  top: 30px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 10003;
  background: none;
  border: none;
  line-height: 1;
}

.story-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 15px;
}

.story-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 36px;
  cursor: pointer;
  padding: 24px;
  z-index: 10005;
  transition: all 0.3s ease;
  user-select: none;
  background: none;
  border: none;
}

.story-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-prev {
  left: 6px;
}

.nav-next {
  right: 6px;
}

@media (max-width: 768px) {
  .page-home .home-header {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .page-home .floating-wrapper {
    bottom: 20px;
    left: 20px;
  }

  .page-home .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

[data-theme='light'] .page-home .banner-slider-img {
  background-color: #e8ecf0;
}

[data-theme='light'] .page-home .trust-box-glow {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-header::after,
  .page-home .trust-box-glow {
    animation: none !important;
  }
  .page-home .banner-slider-img {
    transition: none;
  }
}
