/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.mountain-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, 
    rgba(30, 73, 59, 0.8) 0%, 
    rgba(16, 20, 24, 0) 100%
  );
  clip-path: polygon(0 100%, 0 40%, 20% 20%, 40% 35%, 60% 15%, 80% 30%, 100% 10%, 100% 100%);
}

.cloud-layer {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 200%;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(245, 237, 224, 0.08) 0%, transparent 70%);
  animation: drift-clouds 30s infinite linear;
}

.mist-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(245, 237, 224, 0.05) 0%, transparent 100%);
  animation: mist-move 10s infinite ease-in-out;
}

.energy-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  animation: pulse-energy 8s infinite ease-in-out;
}

@keyframes drift-clouds {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes mist-move {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-20px); }
}

@keyframes pulse-energy {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: 12px;
  margin-bottom: 24px;
  line-height: 1.2;
  animation: title-glow 3s infinite ease-in-out;
}

@keyframes title-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--cloud-white);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 4px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--cloud-white);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--cloud-white);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

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

.scroll-indicator span {
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(0);
}

.nav.scrolled {
  background: rgba(16, 20, 24, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 4px;
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--cloud-white);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--cloud-white);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* World Intro Timeline */
.world-intro {
  background: linear-gradient(180deg, var(--dark-ink) 0%, rgba(30, 73, 59, 0.1) 50%, var(--dark-ink) 100%);
}

.timeline {
  max-width: 900px;
  margin: 80px auto 0;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -46px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--dark-ink);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-item.highlight .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
  width: 18px;
  height: 18px;
  left: -48px;
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-item.highlight .timeline-content h3 {
  font-size: 1.8rem;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-content p {
  color: rgba(245, 237, 224, 0.7);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Tea Realms Grid */
.tea-realms {
  background: var(--dark-ink);
}

.realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.realm-card {
  background: rgba(30, 73, 59, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
}

.realm-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.realm-image {
  height: 220px;
  background: linear-gradient(135deg, rgba(30, 73, 59, 0.3), rgba(16, 20, 24, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.realm-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
  border-radius: 50%;
  animation: realm-pulse 4s infinite ease-in-out;
}

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

.realm-icon {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  animation: float-icon 3s infinite ease-in-out;
}

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

.realm-info {
  padding: 28px;
}

.realm-info h3 {
  font-size: 1.5rem;
  color: var(--cloud-white);
  margin-bottom: 8px;
  font-weight: 600;
}

.realm-info p {
  color: rgba(245, 237, 224, 0.6);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.realm-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.realm-link:hover {
  letter-spacing: 2px;
}

/* Tea Spirits Showcase */
.tea-spirits {
  background: linear-gradient(180deg, var(--dark-ink) 0%, rgba(30, 73, 59, 0.08) 50%, var(--dark-ink) 100%);
}

.spirits-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 80px;
}

.spirit-card {
  background: rgba(16, 20, 24, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.spirit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.spirit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.spirit-card:hover::before {
  transform: scaleX(1);
}

.spirit-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spirit-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: ring-rotate 10s infinite linear;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spirit-icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
}

.spirit-card h3 {
  font-size: 1.6rem;
  color: var(--cloud-white);
  margin-bottom: 8px;
  font-weight: 600;
}

.spirit-type {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.spirit-desc {
  color: rgba(245, 237, 224, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.spirit-btn {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.spirit-btn:hover {
  background: var(--gold);
  color: var(--dark-ink);
}

/* Digital Teahouse */
.digital-teahouse {
  background: var(--dark-ink);
  overflow: hidden;
}

.teahouse-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features-list {
  list-style: none;
  margin: 32px 0 40px;
}

.features-list li {
  padding: 12px 0;
  color: rgba(245, 237, 224, 0.85);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
}

.features-list li:hover {
  color: var(--gold);
  padding-left: 10px;
}

.teahouse-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.teahouse-demo {
  position: relative;
  width: 320px;
  height: 400px;
}

.tea-jar {
  position: relative;
  width: 180px;
  height: 240px;
  margin: 0 auto;
}

.jar-lid {
  width: 140px;
  height: 30px;
  background: linear-gradient(135deg, #D4AF37, #f4e4bc);
  border-radius: 10px 10px 0 0;
  margin: 0 auto;
  box-shadow: 0 -5px 20px rgba(212, 175, 55, 0.3);
}

.jar-body {
  width: 180px;
  height: 210px;
  background: linear-gradient(180deg, rgba(30, 73, 59, 0.3), rgba(16, 20, 24, 0.9));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tea-leaves {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 140px;
  background: radial-gradient(ellipse at center, #1E493B, #2d6a4f);
  border-radius: 50% 50% 40% 40%;
  animation: tea-settle 4s infinite ease-in-out;
}

@keyframes tea-settle {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(0.95); }
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent);
  border-radius: 50%;
  animation: jar-glow 3s infinite ease-in-out;
}

@keyframes jar-glow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

.floating-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.label {
  position: absolute;
  background: rgba(16, 20, 24, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
  animation: float-label 4s infinite ease-in-out;
}

.label:nth-child(1) {
  top: 20px;
  right: 0;
  animation-delay: 0s;
}

.label:nth-child(2) {
  top: 50%;
  left: -20px;
  animation-delay: 1s;
}

.label:nth-child(3) {
  bottom: 40px;
  right: 10px;
  animation-delay: 2s;
}

@keyframes float-label {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-8px); opacity: 0.7; }
}

/* Map Entrance */
.map-entrance {
  background: linear-gradient(180deg, var(--dark-ink) 0%, rgba(30, 73, 59, 0.1) 50%, var(--dark-ink) 100%);
}

.map-preview {
  text-align: center;
}

.map-container {
  margin: 60px auto 40px;
  max-width: 800px;
}

.map-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, rgba(30, 73, 59, 0.2), rgba(16, 20, 24, 0.9));
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.map-placeholder:hover {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.map-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: map-pulse 5s infinite ease-in-out;
}

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

.map-points {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.point {
  position: absolute;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.point:hover {
  background: var(--gold);
  color: var(--dark-ink);
  transform: translate(-50%, -50%) scale(1.1);
}

.point.main-city {
  background: var(--gold);
  color: var(--dark-ink);
  font-weight: 600;
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-large {
  padding: 18px 56px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: rgba(16, 20, 24, 0.98);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.footer-brand p {
  color: rgba(245, 237, 224, 0.6);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: var(--cloud-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column a {
  display: block;
  color: rgba(245, 237, 224, 0.6);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
  color: rgba(245, 237, 224, 0.4);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: rgba(245, 237, 224, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .teahouse-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .teahouse-visual {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(16, 20, 24, 0.98);
    flex-direction: column;
    padding: 30px 20px;
    gap: 24px;
    backdrop-filter: blur(20px);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 6px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .realms-grid,
  .spirits-showcase {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .map-placeholder {
    height: 350px;
  }
}
