/* ===========================
   Spread the Wings!! CTF
   Splash Animation + Landing Page
   =========================== */

/* ===== Splash Overlay ===== */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.8s ease;
}

.splash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Micro-light particles */
.splash-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(141, 187, 255, 0.4);
  border-radius: 50%;
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-120px) scale(0.5); opacity: 0; }
}

/* Splash title */
.splash-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #f54275, #e75bec, #8dbbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.splash-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer overlay on title */
.splash-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: title-shimmer 3s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes title-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.splash-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 6px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 1;
  text-align: center;
}

.splash-subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

.splash-skip {
  position: absolute;
  bottom: 32px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  z-index: 1;
}

/* ===== Falling Petals ===== */
.splash-petal {
  position: absolute;
  top: -30px;
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  z-index: 1;
  animation: petal-fall linear forwards;
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--drift)) rotate(var(--spin));
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .splash-petal {
    animation: none !important;
    display: none;
  }
  .splash-particle {
    animation: none !important;
    display: none;
  }
  .splash-title::after {
    animation: none !important;
  }
  .splash-title,
  .splash-subtitle {
    transition-duration: 0.01s !important;
  }
}

/* ===== Landing Page ===== */
.landing-page {
  background: #0a0a1a;
  color: #e8ecf4;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  background: linear-gradient(135deg, #0e1428 0%, #1a0e2e 40%, #1e0a20 70%, #0a0a1a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(141,187,255,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(231,91,236,0.06) 0%, transparent 50%);
  animation: hero-shimmer 12s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0%, 100% { transform: translateX(-10%) translateY(-10%); }
  50% { transform: translateX(10%) translateY(10%); }
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #f54275, #e75bec, #8dbbff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.hero-event {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #f54275, #e75bec, #8dbbff);
  margin: 28px auto;
  border: none;
  position: relative;
  z-index: 1;
}

/* ===== Sections Common ===== */
.landing-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
}

.section-title span {
  background: linear-gradient(90deg, #f54275, #e75bec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== About Section ===== */
.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-text strong {
  color: #e75bec;
  font-weight: 600;
}

.about-highlight {
  display: inline-block;
  background: rgba(141, 187, 255, 0.1);
  border: 1px solid rgba(141, 187, 255, 0.2);
  border-radius: 8px;
  padding: 16px 24px;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #8dbbff;
  text-align: center;
}

/* ===== Members Section ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.member-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.283s ease, box-shadow 0.283s ease, border-color 0.283s ease;
}

.member-card:hover {
  transform: translateY(-6px);
}

.member-card.amana:hover {
  border-color: rgba(245, 66, 117, 0.4);
  box-shadow: 0 8px 32px rgba(245, 66, 117, 0.15);
}

.member-card.tenka:hover {
  border-color: rgba(231, 91, 236, 0.4);
  box-shadow: 0 8px 32px rgba(231, 91, 236, 0.15);
}

.member-card.chiyuki:hover {
  border-color: rgba(141, 187, 255, 0.4);
  box-shadow: 0 8px 32px rgba(141, 187, 255, 0.15);
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
}

.member-avatar-fallback.amana { background: linear-gradient(135deg, #f54275, #ff7ea3); }
.member-avatar-fallback.tenka { background: linear-gradient(135deg, #e75bec, #c44bd6); }
.member-avatar-fallback.chiyuki { background: linear-gradient(135deg, #8dbbff, #5a9bff); }

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.member-name-en {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* ===== Roadmap Section ===== */
.roadmap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
  padding: 0 10px;
}

/* Connecting line */
.roadmap::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, #f54275, #e75bec, #8dbbff, #e75bec, #f54275);
}

.roadmap-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.roadmap-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0a0a1a;
  border: 2px solid rgba(141, 187, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8dbbff;
  margin-bottom: 12px;
  transition: all 0.283s ease;
}

.roadmap-node:hover .roadmap-dot {
  border-color: #e75bec;
  color: #e75bec;
  box-shadow: 0 0 16px rgba(231, 91, 236, 0.3);
}

.roadmap-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  max-width: 120px;
}

.roadmap-stage {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 48px 32px 80px;
}

.cta-button {
  display: inline-block;
  padding: 18px 48px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: white;
  background: linear-gradient(135deg, #f54275, #e75bec, #8dbbff);
  background-size: 200% 200%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.283s ease, box-shadow 0.283s ease;
  animation: cta-gradient 4s ease infinite, cta-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(231, 91, 236, 0.3);
}

@keyframes cta-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.cta-button:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 6px 32px rgba(231, 91, 236, 0.45);
}

.cta-hint {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  letter-spacing: 1px;
}

/* ===== Landing Footer ===== */
.landing-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 32px;
  text-align: center;
}

.landing-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 320px;
    margin: 32px auto 0;
  }

  .roadmap {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-left: 40px;
  }

  .roadmap::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .roadmap-node {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .roadmap-dot {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .roadmap-label {
    max-width: none;
  }

  .hero {
    min-height: 50vh;
    padding: 48px 20px;
  }

  .landing-section {
    padding: 48px 20px;
  }
}
