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

/* Touch-friendly improvements */
button, a, .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8e44ad;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a0f0f 0%, #2c1810 30%, #8b4513 70%, #daa520 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Muyu Demo */
.muyu-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.muyu-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Halo Effect */
.muyu-halo {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: halo-rotate 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.muyu-halo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.2) 0%, rgba(243, 156, 18, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: halo-pulse 4s ease-in-out infinite;
}

.muyu-halo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: halo-glow 6s ease-in-out infinite;
}

@keyframes halo-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

/* Real Muyu Image */
.muyu-wooden-fish {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
    animation: muyu-float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.1s ease;
}

/* Real Stick Image */
.muyu-stick {
    position: absolute;
    top: -35px;
    right: -15px;
    width: 90px;
    height: 90px;
    z-index: 3;
    transform: rotate(-15deg);
    animation: stick-swing 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.1s ease;
}

/* Click Ripple Effect */
.click-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 3px solid #f39c12;
    border-radius: 50%;
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Floating Merit Text */
.floating-texts {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.floating-text {
    color: #f39c12;
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(243, 156, 18, 0.8);
    font-family: 'Orbitron', monospace;
    pointer-events: none;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Floating Animation */
.float-enter-active {
    animation: floatUp 1.5s ease-out;
}

.float-leave-active {
    opacity: 0;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -80px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -120px) scale(1);
        opacity: 0;
    }
}

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

@keyframes stick-swing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-25deg); }
}

.merit-counter {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.merit-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #f39c12;
}

.merit-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #5ca2ed;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffd700);
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Updates Section */
.updates {
    padding: 80px 0;
    background: #f8f9fa;
}

.updates-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.update-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.update-title {
    font-size: 1.3rem;
    color: #2c3e50;
}

.update-date {
    color: #95a5a6;
    font-size: 0.9rem;
}

.update-features ul {
    list-style: none;
    padding: 0;
}

.update-features li {
    padding: 0.5rem 0;
    color: #7f8c8d;
    position: relative;
    padding-left: 1.5rem;
}

.update-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.updates-link {
    text-align: center;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a0f0f 0%, #2c1810 30%, #8b4513 70%, #daa520 100%);
    color: white;
}

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

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #f39c12;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.download-button a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-button a:hover {
    transform: translateY(-5px);
}

.download-badge {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(10px);
}

.about-feature .feature-icon {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-link {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #ecf0f1;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    /* Muyu Demo */
    .muyu-container {
        width: 250px;
        height: 250px;
    }
    
    .muyu-wooden-fish {
        width: 120px;
        height: 120px;
    }
    
    .muyu-stick {
        width: 70px;
        height: 70px;
        top: -25px;
        right: -10px;
    }
    
    .muyu-halo {
        width: 160px;
        height: 160px;
    }
    
    .muyu-halo::before {
        width: 140px;
        height: 140px;
    }
    
    .muyu-halo::after {
        width: 120px;
        height: 120px;
    }
    
    .merit-counter {
        padding: 0.8rem 1.5rem;
    }
    
    .merit-number {
        font-size: 2rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .features, .updates, .download, .about {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .updates-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .update-card {
        padding: 1.5rem;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .download-info h3 {
        font-size: 1.8rem;
    }
    
    .download-info p {
        font-size: 1rem;
    }
    
    .download-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .download-badge {
        height: 50px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .about-features {
        gap: 1rem;
    }
    
    .about-feature {
        padding: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h4 {
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Header */
    .nav-container {
        padding: 0.6rem 0.8rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0 50px;
        min-height: 85vh;
    }
    
    .hero-container {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    
    /* Muyu Demo */
    .muyu-container {
        width: 200px;
        height: 200px;
    }
    
    .muyu-wooden-fish {
        width: 100px;
        height: 100px;
    }
    
    .muyu-stick {
        width: 60px;
        height: 60px;
        top: -20px;
        right: -8px;
    }
    
    .muyu-halo {
        width: 130px;
        height: 130px;
    }
    
    .muyu-halo::before {
        width: 110px;
        height: 110px;
    }
    
    .muyu-halo::after {
        width: 90px;
        height: 90px;
    }
    
    .merit-counter {
        padding: 0.6rem 1.2rem;
    }
    
    .merit-number {
        font-size: 1.8rem;
    }
    
    .merit-label {
        font-size: 0.9rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features, .updates, .download, .about {
        padding: 50px 0;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .update-card {
        padding: 1.2rem;
    }
    
    .update-title {
        font-size: 1.2rem;
    }
    
    .download-info h3 {
        font-size: 1.6rem;
    }
    
    .download-info p {
        font-size: 0.95rem;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .download-badge {
        height: 45px;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-feature {
        padding: 0.6rem;
    }
    
    .about-feature .feature-icon {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .muyu-container {
        width: 180px;
        height: 180px;
    }
    
    .muyu-wooden-fish {
        width: 90px;
        height: 90px;
    }
    
    .muyu-stick {
        width: 50px;
        height: 50px;
        top: -18px;
        right: -6px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .download-badge {
        height: 40px;
    }
}
