:root {
    color-scheme: dark;
    --bg: #0a0a0c;
    --bg-2: #0e0e12;
    --surface: #14141a;
    --surface-2: #1a1a22;
    --border: #23232d;
    --border-2: #2d2d39;
    --text: #ededee;
    --text-dim: #a7a7b0;
    --muted: #6b6b76;
    --accent: #d4ff3a;
    --accent-soft: rgba(212, 255, 58, 0.12);
    --warn: #ff8a5b;
    --caution: #f0b429;
    --ok: #7af2a8;
    --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --serif: var(--sans);
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(900px 500px at 85% -10%, rgba(212, 255, 58, 0.06), transparent 60%), radial-gradient(700px 400px at -10% 15%, rgba(122, 242, 168, 0.04), transparent 55%),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size:
        auto,
        auto,
        22px 22px;
    background-position:
        0 0,
        0 0,
        0 0;
    background-attachment: fixed;
}
::selection {
    background: var(--accent);
    color: #0b0b0f;
}

.shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 28px 80px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
}
.brand {
    font-family: var(--sans);
    font-size: 22px;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: var(--text);
}
.brand span {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 18px;
    vertical-align: 1px;
    margin-left: 1px;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-toggle,
.pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.6);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 28px;
}
.pill {
    gap: 8px;
    text-transform: uppercase;
}
.lang-toggle {
    cursor: pointer;
    min-width: 40px;
    justify-content: center;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}
.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
    animation: pulse 1.6s ease-in-out infinite;
}
.pill .dot.idle {
    background: var(--muted);
    box-shadow: none;
    animation: none;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.hero {
    margin-bottom: 36px;
}
.hero h1 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(40px, 6.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin: 0 0 18px;
    color: var(--text);
}
.hero h1 em {
    font-style: normal;
    color: var(--text-dim);
    font-weight: 500;
}
.hero h1 .accent {
    color: var(--accent);
    font-weight: 700;
}
.hero p {
    max-width: 560px;
    color: var(--text-dim);
    font-size: 15.5px;
    margin: 0;
    white-space: nowrap;
}
.hero p code {
    font-family: var(--mono);
    color: var(--text);
    background: var(--accent-soft);
    border: 1px solid rgba(212, 255, 58, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
