/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Adventure Island Color Palette - Enhanced Game Style */
    --primary-color: #00D4FF; /* Bright Cyan */
    --primary-dark: #00B4E6;
    --primary-light: #4DFFFF;
    --secondary-color: #FF6B6B; /* Bright Pink */
    --accent-color: #4ECDC4; /* Mint Green */
    --treasure-gold: #FFD93D; /* Bright Gold */
    --island-blue: #45B7D1; /* Sky Blue */
    --forest-green: #96CEB4; /* Light Green */
    --game-purple: #A8E6CF; /* Light Purple */
    --game-orange: #FFB347; /* Bright Orange */
    --game-pink: #FF8B94; /* Light Pink */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc; /* Light Blue Gray */
    --bg-accent: #e0f2fe; /* Light Cyan */
    --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #45B7D1 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B6B 0%, #FF8B94 100%);
    --gradient-success: linear-gradient(135deg, #4ECDC4 0%, #96CEB4 100%);
    --gradient-treasure: linear-gradient(135deg, #FFD93D 0%, #FFB347 100%);
    --gradient-rainbow: linear-gradient(135deg, #00D4FF 0%, #4ECDC4 25%, #96CEB4 50%, #FFD93D 75%, #FF6B6B 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Animations */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo i {
    font-size: var(--font-size-2xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

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

.btn-download {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-rainbow);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
}
.hero-title .highlight {
  color: #e8f7fc; /* 天蓝 */
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  transition: all 0.4s ease;
}

/* 打字完成后发光 + 跳动 */
.hero-title .highlight.glow {
  color: #b3ffff;
  text-shadow:
    0 0 8px rgba(94, 214, 255, 0.9),
    0 0 18px rgba(100, 255, 255, 0.7),
    0 0 28px rgba(150, 255, 255, 0.5);
  animation: jumpAndGlow 1.4s ease-in-out infinite;
}

@keyframes jumpAndGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    text-shadow:
      0 0 8px rgba(94, 214, 255, 0.8),
      0 0 20px rgba(100, 255, 255, 0.6);
  }
  35% {
    transform: translateY(-10px) scale(1.06);
    text-shadow:
      0 0 20px rgba(180, 255, 255, 0.9),
      0 0 30px rgba(130, 240, 255, 0.7);
  }
  70% {
    transform: translateY(0px) scale(0.98);
  }
}
/* .highlight {
    color: #ed936d;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 216, 155, 0.3);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd89b 0%, #19547b 100%);
    border-radius: 2px;
} */
/* 基础高亮颜色
.hero-title .highlight {
  color: #ffb347;                /* 橙色高亮 — 可改为变量 
  font-weight: 700;
  transition: all 0.35s ease;
}

/* 发光/闪亮效果（打字结束时添加 .glow） 
.hero-title .highlight.glow {
  color: #ffd47a;
  text-shadow:
    0 0 6px rgba(255, 212, 122, 0.9),
    0 0 14px rgba(255, 180, 60, 0.7),
    0 2px 24px rgba(255, 180, 60, 0.15);
  transform-origin: center;
  animation: popGlow 0.6s ease forwards;
}

@keyframes popGlow {
  0%   { transform: scale(0.95); opacity: 0.6; text-shadow: none; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
} */
.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary, .btn-secondary {
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #ffd89b;
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.app-demo {
    padding: var(--spacing-lg);
}

.demo-header {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.demo-nav i {
    font-size: var(--font-size-lg);
    color: #cbd5e0;
    transition: var(--transition-fast);
}

.demo-nav i.active {
    color: var(--primary-color);
}

.demo-content {
    text-align: center;
}

.demo-lesson {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.lesson-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
}

.demo-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}

.progress-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 25%;
    right: -10%;
    animation-delay: 4s;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 40%;
    animation-delay: 3s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 10%;
    animation-delay: 6s;
}

/* Features Section */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: var(--font-size-2xl);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Download Section */
.download {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.download-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.download-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.download-platforms {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.platform {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.platform:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.platform-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
}

.platform-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.platform-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.platform-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-left: auto;
}

.platform-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* QR Code */
.qr-code {
    text-align: center;
}

.qr-pattern {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px solid var(--bg-accent);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-squares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 80%;
    height: 80%;
}

.qr-square {
    background: var(--text-primary);
    border-radius: 2px;
    animation: qrPulse 2s ease-in-out infinite;
}

.qr-square:nth-child(1) { animation-delay: 0s; }
.qr-square:nth-child(2) { animation-delay: 0.2s; }
.qr-square:nth-child(3) { animation-delay: 0.4s; }
.qr-square:nth-child(4) { animation-delay: 0.1s; }
.qr-square:nth-child(5) { animation-delay: 0.3s; }
.qr-square:nth-child(6) { animation-delay: 0.5s; }
.qr-square:nth-child(7) { animation-delay: 0.15s; }
.qr-square:nth-child(8) { animation-delay: 0.35s; }
.qr-square:nth-child(9) { animation-delay: 0.55s; }

.qr-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* About Section */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--gradient-primary);
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.about-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

.about-feature i {
    color: #ffd89b;
    font-size: var(--font-size-xl);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-stat {
    text-align: center;
}

.about-stat .stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #ffd89b;
}

.about-stat .stat-label {
    font-size: var(--font-size-base);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-logo i {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
}

.footer-description {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: #d1d5db;
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes qrPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Game-Style Animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes floatAndRotate {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(120deg);
    }
    66% {
        transform: translateY(-5px) rotate(240deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* Game Elements */
.game-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--treasure-gold);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
}

.game-coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-treasure);
    border-radius: 50%;
    animation: floatAndRotate 3s ease-in-out infinite;
}

.game-coin::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.game-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--treasure-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

/* Enhanced Button Effects */
.btn-primary:hover {
    animation: bounce 0.6s ease-in-out;
}

.btn-download:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Feature Cards Game Enhancement */
.feature-card:hover .feature-icon {
    animation: floatAndRotate 1s ease-in-out;
}

.feature-card:hover {
    animation: bounce 0.5s ease-in-out;
}

/* Hero Section Game Elements */
.hero-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: var(--game-star);
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 0s;
}

.hero-image::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 16px;
    height: 16px;
    background: var(--treasure-gold);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Floating Elements Enhancement */
.floating-card:hover {
    animation: bounce 0.8s ease-in-out;
}

/* Stats Animation Enhancement */
.stat:hover .stat-number {
    animation: pulse 1s ease-in-out;
}

/* QR Code Enhancement */
.qr-pattern:hover .qr-square {
    animation: bounce 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .nav-menu {
        display: none;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .download-title {
        font-size: var(--font-size-3xl);
    }
    
    .about-title {
        font-size: var(--font-size-3xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}
