/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red-china: #de2910;
  --yellow-gold: #ffde00;
  --dark-red: #8b0000;
  --black: #1a1a1a;
  --white: #ffffff;
  --comic-border: #000;
  --shadow: rgba(0, 0, 0, 0.3);
  --gradient-red: linear-gradient(135deg, #de2910 0%, #8b0000 100%);
  --gradient-gold: linear-gradient(135deg, #ffde00 0%, #ffa500 100%);
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Comic Frame Effect */
.comic-frame {
  position: relative;
  background: var(--black);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #000 0%, #1a0000 50%, #000 100%);
  overflow: hidden;
}

.red-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--gradient-red);
  transform: skewY(-2deg);
  transform-origin: top left;
  box-shadow: 0 10px 30px var(--shadow);
  z-index: 0;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.5;
  z-index: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.comic-title {
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.glitch {
  font-family: "Bangers", cursive;
  font-size: clamp(3rem, 10vw, 6rem);
  text-transform: uppercase;
  letter-spacing: 8px;
  color: var(--yellow-gold);
  text-shadow: 4px 4px 0 var(--red-china), 8px 8px 0 var(--dark-red),
    12px 12px 20px var(--shadow);
  animation: glitchText 3s infinite;
  position: relative;
}

@keyframes glitchText {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-3px, 3px);
  }
  94% {
    transform: translate(3px, -3px);
  }
}

.subtitle {
  margin-top: 15px;
}

.solana-badge {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--black);
  padding: 10px 30px;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 3px;
  border: 4px solid var(--black);
  box-shadow: 4px 4px 0 var(--red-china);
  transform: rotate(-2deg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.dragon-container {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dragon-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--red-china) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.xi-image {
  position: relative;
  z-index: 1;
}

.comic-border {
  width: 250px;
  height: 250px;
  background: var(--gradient-red);
  border: 8px solid var(--black);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 var(--yellow-gold), 16px 16px 30px var(--shadow);
  transform: rotate(5deg);
  animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

.comic-border .text-xl {
  font-size: 120px;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.story-box {
  animation: slideLeft 1.5s ease-out;
}

@keyframes slideLeft {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.speech-bubble {
  background: var(--white);
  color: var(--black);
  padding: 30px;
  border: 6px solid var(--black);
  border-radius: 20px;
  position: relative;
  box-shadow: 8px 8px 0 var(--red-china);
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid var(--black);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 25px solid var(--white);
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

.highlight {
  color: var(--red-china);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--yellow-gold);
  text-decoration-thickness: 3px;
}

/* Sections */
.tokenomics,
.features,
.cta {
  padding: 80px 0;
  position: relative;
}

.comic-panel {
  background: var(--white);
  color: var(--black);
  padding: 50px;
  border: 8px solid var(--black);
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--red-china);
  position: relative;
}

.section-title {
  font-family: "Bangers", cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--red-china);
  text-shadow: 3px 3px 0 var(--yellow-gold);
  letter-spacing: 4px;
}

.chinese-accent {
  display: block;
  font-size: 1.5rem;
  color: var(--dark-red);
  letter-spacing: 8px;
  margin-bottom: 10px;
}

.info-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card,
.feature-box {
  background: var(--gradient-gold);
  padding: 30px;
  border: 6px solid var(--black);
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 6px 6px 0 var(--red-china);
}

.info-card:hover,
.feature-box:hover {
  transform: translateY(-10px) rotate(-2deg);
}

.card-icon,
.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.card-icon .iconify,
.feature-icon .iconify {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.info-card:hover .iconify,
.feature-box:hover .iconify {
  transform: scale(1.1) rotate(5deg);
}

.info-card h3,
.feature-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark-red);
}

.highlight-text {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--red-china);
}

.feature-box p {
  font-size: 1rem;
  color: var(--black);
}

/* CTA Section */
.highlight-panel {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: 12px 12px 0 var(--yellow-gold);
}

.cta-text {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  border: 6px solid var(--black);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 0 var(--black);
}

.telegram {
  background: #0088cc;
  color: var(--white);
}

.twitter {
  background: var(--black);
  color: var(--white);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--yellow-gold);
}

.btn-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon .iconify {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Footer */
.footer {
  background: var(--black);
  padding: 60px 0 0;
  position: relative;
}

.footer-content {
  text-align: center;
  padding-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow-gold);
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid var(--yellow-gold);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 222, 0, 0.5);
  transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  transform: rotate(360deg) scale(1.1);
}

.dragon-symbol {
  font-size: 3rem;
}

.footer-text {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 30px;
}

.disclaimer {
  font-size: 0.9rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.red-footer-banner {
  height: 80px;
  background: var(--gradient-red);
  border-top: 8px solid var(--yellow-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .comic-border {
    width: 200px;
    height: 200px;
  }

  .comic-border .text-xl {
    font-size: 80px;
  }

  .footer-logo-img {
    width: 50px;
    height: 50px;
  }

  .speech-bubble::before,
  .speech-bubble::after {
    display: none;
  }

  .comic-panel {
    padding: 30px 20px;
  }

  .info-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .social-btn {
    justify-content: center;
  }

  .glitch {
    letter-spacing: 4px;
  }

  .section-title {
    letter-spacing: 2px;
  }

  .chinese-accent {
    letter-spacing: 4px;
  }
}

@media (max-width: 480px) {
  .red-banner {
    height: 80px;
  }

  .lead-text {
    font-size: 1rem;
  }

  .info-card h3,
  .feature-box h3 {
    font-size: 1.2rem;
  }

  .highlight-text {
    font-size: 1.1rem;
  }

  .social-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* Animations for scroll */
@media (prefers-reduced-motion: no-preference) {
  .comic-panel {
    animation: fadeInUp 0.8s ease-out;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
