/* Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Modern Header */
.main-header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.main-header:hover {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.main-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
}

.main-header .logo:hover {
    transform: translateY(-1px);
}

.main-header .logo img {
    height: 42px;
    width: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-header .logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-header .logo span {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.lang-select {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-select a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-select a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.lang-select img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-select img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.token-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
}

/* Video Section - Modern & Compact */
.video-display {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.video-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 70px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 1300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-info .main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.video-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #f8fafc;
}

.video-info p {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.video-wrapper video {
    width: 280px;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-wrapper video:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.download-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.download-button svg {
    transition: transform 0.2s ease;
}

.download-button:hover svg {
    transform: translateY(1px);
}

/* Processing State */
.processing-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 80px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.processing-card .main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-align: center;
}

.processing-icon {
    margin-bottom: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.processing-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 25px;
}

.processing-message {
    font-size: 1.4rem;
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.refresh-hint {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

/* Video Modal */
#videoModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#videoModal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#videoModal button {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 20px;
    }

    .main-header .logo {
        font-size: 1.1rem;
        gap: 10px;
    }

    .main-header .logo img {
        height: 32px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .lang-select {
        padding: 6px 8px;
        gap: 6px;
    }

    .lang-select img {
        width: 24px;
        height: 24px;
    }

    .token-section {
        padding: 20px 15px;
    }

    .processing-card .main-title {
        font-size: 1.5rem;
    }

    .video-wrapper {
        gap: 20px;
        padding: 20px;
        flex-direction: row;
        max-width: 100%;
    }

    .video-wrapper video {
        width: 140px;
        min-width: 140px;
    }

    .video-info .main-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .video-info h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .video-info p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .download-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .processing-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
}

/* Home Section */
.home-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text .main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.description {
    font-size: 1.3rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 50px;
}

.description strong {
    color: #ffffff;
    font-weight: 600;
}

.qr-info-text {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

.hero-video {
    flex: 0 0 auto;
    width: 400px;
}

.video-wrapper-home {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
}

.video-wrapper-home:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video-wrapper-home video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.video-wrapper-home:hover .video-overlay {
    opacity: 1;
}

.play-indicator {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a202c;
    transition: all 0.3s ease;
}

.play-indicator:hover {
    transform: scale(1.1);
    background: white;
}

/* Responsive Design for Home */
@media (max-width: 1024px) {
    .hero-content {
        gap: 50px;
        flex-direction: column;
        text-align: center;
    }

    .hero-text .main-title {
        font-size: 3rem;
    }

    .hero-video {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: 40px 15px;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-text .main-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .qr-info {
        font-size: 1rem;
        margin-top: 20px;
    }

    .hero-video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-text .main-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .qr-info {
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* Fade in animation */
#content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#content.visible {
    opacity: 1;
}