:root {
    --bg: #ffffff;
    --text: #121317;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --dark: #121317;
    --dark-hover: #2b2d33;
    --soft: #f1f3f4;
    --soft-hover: #e6e8eb;
    --pill: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
}

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

html,
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    background: rgba(255, 255, 255, 0.9);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language {
    position: relative;
}

.language-trigger {
    display: inline-flex;
    height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: var(--pill);
    outline: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease,
    color 0.2s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded='true'] {
    background: var(--soft);
    color: var(--text);
}

.language-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(44, 100, 237, 0.35);
}

.language-chevron {
    transition: transform 0.2s ease;
}

.language-trigger[aria-expanded='true'] .language-chevron {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 168px;
    padding: 6px;
    border: 1px solid rgba(18, 19, 23, 0.06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 19, 23, 0.12);
    list-style: none;
    animation: menu-in 0.16s ease;
}

.language-menu li {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.language-menu li:hover,
.language-menu li:focus {
    background: var(--soft);
}

.language-menu li[aria-selected='true'] {
    font-weight: 600;
}

.language-menu li[aria-selected='true']::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text);
    content: '';
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--pill);
    outline: 0;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(44, 100, 237, 0.35);
}

.btn[aria-disabled='true'] {
    opacity: 0.4;
    pointer-events: none;
}

.btn svg {
    flex-shrink: 0;
}

.btn-sm {
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
}

.btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 15.5px;
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--dark-hover);
    box-shadow: 0 6px 20px rgba(18, 19, 23, 0.14);
}

.btn-soft {
    background: var(--soft);
    color: var(--text);
}

.btn-soft:hover {
    background: var(--soft-hover);
}

.hero {
    display: flex;
    width: 100%;
    max-width: 920px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 24px 24px 64px;
    text-align: center;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.hero-title {
    margin-bottom: 40px;
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-status {
    min-height: 21px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 16px;
    }

    .brand span {
        display: none;
    }

    .language-trigger {
        padding: 0 10px;
    }

    .hero {
        padding: 16px 20px 40px;
    }

    .hero-brand {
        margin-bottom: 16px;
    }

    .hero-title {
        margin-bottom: 30px;
        font-size: 2.3rem;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}
