/* Scroll snap container for welcome page */
body.controller-welcome.action-index {
  overflow: hidden;
}

body.controller-welcome.action-index header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.controller-welcome.action-index footer {
  display: none;
}

body.controller-welcome.action-index main {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* Hero section improvements */
.landing-area-top {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: linear-gradient(135deg, rgba(131, 212, 0, 0.08) 0%, rgba(238, 163, 0, 0.08) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.landing-area-top::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 248, 232, 0.4) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 100%;
}

.landing-hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.landing-hero-words {
  margin-bottom: 2rem;
}

.landing-hero-cta {
  opacity: 0;
  animation: fade-in 1s ease-out 1.2s forwards;
}

.landing-hero-cta .btn {
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.landing-hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(238, 163, 0, 0.4) !important;
}

@keyframes slide-in-from-left {
  0% {
    opacity: 0;
    transform: translateX(-30%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-from-right {
  0% {
    opacity: 0;
    transform: translateX(30%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.landing-area-top-text {
  font-size: clamp(3rem, 15vw, 12rem);
  opacity: 0;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.2rem 0;
}

.landing-area-top-text:nth-child(2) {
  animation-delay: 0.3s;
}

.landing-area-top-text:nth-child(3) {
  animation-delay: 0.6s;
}

.landing-area-top-text--odd {
  color: rgb(131, 212, 0);
  animation: slide-in-from-left 0.75s ease-out forwards;
  text-shadow: 3px 3px 6px rgba(131, 212, 0, 0.2);
}

.landing-area-top-text--even {
  color: rgb(238, 163, 0);
  animation: slide-in-from-right 0.75s ease-out forwards;
  text-shadow: 3px 3px 6px rgba(238, 163, 0, 0.2);
}

/* Details section improvements */
.landing-area-details, .landing-area-details--with-snap {
  min-height: 100vh;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.landing-area-details--with-snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.landing-area-details-item {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-area-details-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.landing-area_masked-image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
}

.landing-area_masked-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.landing-area_masked-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platform cards */
.landing-platforms-section {
  background: linear-gradient(135deg, rgba(131, 212, 0, 0.05) 0%, rgba(238, 163, 0, 0.05) 100%);
  border-radius: 20px;
  padding: 3rem 1rem !important;
  margin-bottom: 3rem;
}

.landing-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.landing-section-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #2c3e50;
}

.platform-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(131, 212, 0, 0.3);
}

.platform-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.platform-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.platform-description {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Installation instructions */
.landing-install-section {
  margin-top: 3rem;
}

.install-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid rgb(238, 163, 0);
  transition: all 0.3s ease;
  cursor: pointer;
}

.install-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.install-card:focus {
  outline: 2px solid rgb(131, 212, 0);
  outline-offset: 2px;
}

.install-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.install-instructions {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .landing-area-top {
    padding: 1rem;
  }

  .landing-hero-title {
    margin-bottom: 1rem;
  }

  .landing-area-details {
    padding: 2rem 1rem;
  }

  .landing-platforms-section {
    padding: 2rem 1rem !important;
  }

  .platform-card {
    margin-bottom: 1rem;
  }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
