@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  --primary: #065f46;
  --secondary: #d97706;
  --accent: #b91c1c;
  --bg-dark: #0a1210;
  --bg-light: rgba(6, 95, 70, 0.1);
  --text-main: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.65);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

#main-header {
  transition: all 0.3s ease;
}

#main-header.scrolled {
  background: rgba(10, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(6, 95, 70, 0.3);
}

.nav-link {
  position: relative;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.4);
}

.btn-ink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-ink:hover::before {
  left: 100%;
}

.btn-ink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.6);
}

.btn-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #92400e 0%, var(--secondary) 50%, #92400e 100%);
  color: white;
  border: 2px solid #fbbf24;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
}

.btn-token:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6), inset 0 2px 4px rgba(255,255,255,0.3);
  border-color: #fde68a;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.mobile-nav {
  background: linear-gradient(180deg, #0f1f1b 0%, #0a1210 100%);
  border-left: 2px solid var(--primary);
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-main);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-nav nav a:hover,
.mobile-nav nav a.active {
  background: rgba(6, 95, 70, 0.2);
  color: var(--secondary);
}

.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0f2e25 0%, var(--bg-dark) 70%);
}

.hero-ink {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 95, 70, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(185, 28, 28, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.1) 0%, transparent 50%);
  animation: inkSpread 8s ease-in-out infinite alternate;
}

@keyframes inkSpread {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-clouds span {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-clouds span:nth-child(1) { width: 300px; height: 120px; top: 15%; left: -50px; animation: cloudMove 20s linear infinite; }
.hero-clouds span:nth-child(2) { width: 250px; height: 100px; top: 60%; right: -30px; animation: cloudMove 25s linear infinite reverse; }
.hero-clouds span:nth-child(3) { width: 200px; height: 80px; top: 35%; right: 20%; animation: cloudMove 22s linear infinite; }
.hero-clouds span:nth-child(4) { width: 180px; height: 70px; bottom: 25%; left: 10%; animation: cloudMove 18s linear infinite reverse; }

@keyframes cloudMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(60px); }
}

.hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-leaves span {
  position: absolute;
  width: 12px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary), #34d399);
  border-radius: 0 80% 0 80%;
  opacity: 0.5;
  animation: leafFall 12s linear infinite;
}

.hero-leaves span:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-leaves span:nth-child(2) { left: 25%; animation-delay: 2s; }
.hero-leaves span:nth-child(3) { left: 45%; animation-delay: 4s; }
.hero-leaves span:nth-child(4) { left: 65%; animation-delay: 1s; }
.hero-leaves span:nth-child(5) { left: 80%; animation-delay: 3s; }
.hero-leaves span:nth-child(6) { left: 95%; animation-delay: 5s; }

@keyframes leafFall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.hero-seal {
  display: inline-block;
  width: 56px;
  height: 56px;
  line-height: 52px;
  border: 3px solid var(--accent);
  color: var(--accent);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.5rem;
  border-radius: 6px;
  transform: rotate(-8deg);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
}

.hero-logo {
  width: clamp(120px, 22vw, 200px);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: floatLogo 4s ease-in-out infinite;
}

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

.hero-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.1;
  color: var(--text-main);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(6, 95, 70, 0.4);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--secondary);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
  clip-path: polygon(0% 100%, 0% 55%, 15% 35%, 30% 60%, 45% 25%, 60% 55%, 75% 30%, 90% 50%, 100% 35%, 100% 100%);
  opacity: 0.35;
  z-index: 5;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.brush-line {
  position: relative;
  display: inline-block;
}

.brush-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -5%;
  width: 110%;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 50%;
  opacity: 0.7;
  transform: rotate(-1deg);
}

.brush-dot {
  color: var(--secondary);
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  font-size: 1.3rem;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-intro {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1c18 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-text {
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.25);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.intro-text::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

.intro-scroll p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-indent: 2em;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-item {
  background: linear-gradient(145deg, rgba(6, 95, 70, 0.15), rgba(6, 95, 70, 0.05));
  border: 1px solid rgba(6, 95, 70, 0.3);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.35s ease;
}

.stat-item:hover {
  transform: translateY(-6px);
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(6, 95, 70, 0.25);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: rgba(217, 119, 6, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.25rem;
}

.stat-num {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-features {
  background: linear-gradient(180deg, #0d1c18 0%, var(--bg-dark) 100%);
}

.feature-scroll {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-scroll {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid rgba(6, 95, 70, 0.25);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(6, 95, 70, 0.25);
  border-color: var(--secondary);
}

.feature-image {
  height: 180px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.08);
}

.feature-content {
  padding: 1.5rem;
  position: relative;
}

.feature-num {
  position: absolute;
  top: -20px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.feature-content h3 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-download {
  background: radial-gradient(ellipse at center, #0f2e25 0%, var(--bg-dark) 70%);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.download-character-frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(6, 95, 70, 0.3), rgba(6, 95, 70, 0.1));
  border: 3px solid rgba(217, 119, 6, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(6, 95, 70, 0.3);
}

.download-character-frame img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.download-tokens {
  position: absolute;
  inset: 0;
}

.token {
  position: absolute;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--secondary), #92400e);
  border: 2px solid #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.token-1 { top: 10%; left: 15%; animation: tokenFloat 3s ease-in-out infinite; }
.token-2 { top: 60%; right: 10%; animation: tokenFloat 3.5s ease-in-out infinite 0.5s; }
.token-3 { bottom: 10%; left: 25%; animation: tokenFloat 4s ease-in-out infinite 1s; }

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

.download-info {
  text-align: center;
}

@media (min-width: 768px) {
  .download-info {
    text-align: left;
  }
}

.download-desc {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .download-platforms {
    justify-content: flex-start;
  }
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 95, 70, 0.4);
  border-radius: 8px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.platform-btn:hover {
  background: rgba(6, 95, 70, 0.2);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.platform-btn i {
  color: var(--secondary);
  font-size: 1.25rem;
}

.section-contact {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1c18 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bamboo-card {
  position: relative;
  background: rgba(6, 95, 70, 0.08);
  border-left: 4px solid #65a30d;
  border-right: 4px solid #65a30d;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.bamboo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(6, 95, 70, 0.2);
  border-color: var(--secondary);
}

.bamboo-top {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 16px;
  background: repeating-linear-gradient(90deg, #65a30d 0px, #65a30d 8px, #3f6212 8px, #3f6212 10px);
  border-radius: 8px;
}

.bamboo-card:hover .bamboo-top {
  background: repeating-linear-gradient(90deg, var(--secondary) 0px, var(--secondary) 8px, #92400e 8px, #92400e 10px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(6, 95, 70, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
}

.contact-card h3 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.qr-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  padding: 8px;
  background: white;
  border-radius: 8px;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-tag {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  background: rgba(217, 119, 6, 0.15);
  color: var(--secondary);
  border-radius: 9999px;
  font-size: 0.85rem;
}

.ai-bot {
  background: rgba(185, 28, 28, 0.15);
  color: var(--accent);
}

.footer-ink {
  position: relative;
  background: linear-gradient(180deg, #0d1c18 0%, #050a09 100%);
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.footer-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-clouds span {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(30px);
  animation: footerCloud 15s linear infinite;
}

.footer-clouds span:nth-child(1) { width: 200px; height: 80px; top: 20%; left: 10%; }
.footer-clouds span:nth-child(2) { width: 180px; height: 70px; top: 50%; right: 15%; animation-delay: 5s; }
.footer-clouds span:nth-child(3) { width: 220px; height: 90px; bottom: 20%; left: 40%; animation-delay: 10s; }

@keyframes footerCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

.footer-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, #064e3b 0%, var(--bg-dark) 100%);
  clip-path: polygon(0% 100%, 0% 70%, 20% 50%, 40% 75%, 60% 45%, 80% 70%, 100% 55%, 100% 100%);
  opacity: 0.25;
}

.footer-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 48px;
  height: auto;
}

.footer-brand span {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.6rem;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-content {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-actions a {
    width: 100%;
  }

  .intro-stats {
    grid-template-columns: 1fr;
  }

  .download-character-frame {
    width: 220px;
    height: 220px;
  }

  .download-character-frame img {
    width: 150px;
  }

  .download-platforms {
    flex-direction: column;
  }

  .platform-btn {
    width: 100%;
    justify-content: center;
  }
}
