/* 字体定义 */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('./JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

body {
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
}

.container {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    display: flex;
    max-width: 1584px;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo span {
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

.title-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 1;
}

.title {
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    color: #fff;
}

.title-container.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.close-button {
    position: absolute;
    right: -24px;
    top: -12px;
    transform: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #e400b8;
    background: rgba(32, 2, 26, 0.8);
    color: #e400b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(4px);
}

.title-container:hover .close-button {
    opacity: 1;
}

.close-button:hover {
    transform: scale(1.1);
    background: rgba(228, 0, 184, 0.1);
}

.close-button:active {
    transform: scale(0.95);
}

.social-links {
    display: flex;
    gap: 20px;
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    opacity: 0;
}

.social-links.visible {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.social-links a:hover {
    color: #e400b8;
}

.twitter-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.twitter-link img {
    width: 32px;
    height: 32px;
}

/* Main Content Styles */
.hero-section {
    flex: 1;
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.character-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.character-image {
    max-height: 90%;
    object-fit: contain;
}

.waitlist-button {
    width: 270px;
    height: 50px;
    background: #20021a;
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 12px;
    color: #e400b8;
    font-size: 16px;
    text-align: center;
    line-height: 50px;
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.waitlist-button:hover {
    background: rgba(228, 0, 184, 0.1);
    border-color: rgba(255, 0, 255, 0.5);
}

.waitlist-button.visible {
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Footer Styles */
footer {
    max-width: 1584px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 32px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0;
}

.footer-links.visible {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
}

.footer-links a:hover {
    color: #e400b8;
}

.separator {
    color: #fff;
    opacity: 0.5;
}

.playback-control {
    position: relative;
    opacity: 0;
}

.playback-control.visible {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.pause-button {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pause-button:hover {
    border-color: #e400b8;
}

.pause-button:hover .pause-icon::before,
.pause-button:hover .pause-icon::after {
    background-color: #e400b8;
}

.pause-icon {
    width: 15px;
    height: 15px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 15px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .title {
        font-size: 0.9rem;
    }

    .character-container {
        height: 60vh;
    }

    .waitlist-button {
        padding: 15px 30px;
        font-size: 1rem;
        bottom: 10%;
    }
}

/* 文字渐入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeInUp 0.8s ease forwards;
}

/* 为不同元素设置不同的延迟 */
.title-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0;
}

.title-container.visible {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.social-links {
    display: flex;
    gap: 20px;
    font-family: "JetBrains Mono", monospace;
    font-weight: bold;
    opacity: 0;
}

.social-links.visible {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.waitlist-button {
    opacity: 0;
}

.waitlist-button.visible {
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.footer-links {
    opacity: 0;
}

.footer-links.visible {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.playback-control {
    opacity: 0;
}

.playback-control.visible {
    animation: fadeInUp 0.8s ease 0.8s forwards;
}


@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 0 rgba(228, 0, 184, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(228, 0, 184, 0.3);
    }
    100% {
        text-shadow: 0 0 0 rgba(228, 0, 184, 0);
    }
}