 :root {
    --surface-border: rgba(255,255,255,0.08);
    --surface-border-strong: rgba(255,255,255,0.12);
    --surface-background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    --surface-background-soft: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    --surface-shadow: 0 24px 54px rgba(0, 0, 0, 0.16);
    --surface-shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.14);
    --surface-blue-glow: rgba(121, 186, 255, 0.18);
    --surface-gold-glow: rgba(212, 175, 55, 0.18);
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(121, 186, 255, 0.08), transparent 32%),
        #111;
    color: #fff;
    min-height: 100vh;
    animation: pageFadeIn 0.45s ease;
}
html[data-lang-pending="true"] body {
    visibility: hidden;
}
.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 32px 72px;
}
header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(17, 17, 17, 0.82);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}
nav a {
    position: relative;
    color: #aaa;
    text-decoration: none;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}
nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
nav a[aria-current="page"] {
    color: #fff;
    background: rgba(121, 186, 255, 0.16);
}
nav a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid rgba(121, 186, 255, 0.95);
    outline-offset: 3px;
}
h1, h2, h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    letter-spacing: -0.02em;
}
h2 { border-bottom: 1px solid #333; padding-bottom: 10px; }

.lang-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    margin-left: 0;
    transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    color: rgba(255,255,255,0.72);
    border-radius: 999px;
    min-width: 48px;
    min-height: 34px;
    padding: 0 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.lang-btn.active {
    background: linear-gradient(135deg, rgba(121, 186, 255, 0.26), rgba(121, 186, 255, 0.12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(121, 186, 255, 0.24);
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.surface-card {
    border: 1px solid var(--surface-border);
    background: var(--surface-background);
    box-shadow: var(--surface-shadow);
}

.surface-card-soft {
    border: 1px solid var(--surface-border);
    background: var(--surface-background-soft);
    box-shadow: var(--surface-shadow);
}

.surface-note {
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.05);
    box-shadow: var(--surface-shadow-soft);
}

.pill-link,
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pill-link:hover,
.pill-button:hover {
    transform: translateY(-1px);
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.22);
}

.pill-button {
    font: inherit;
    cursor: pointer;
}

.page-status-panel {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 220px;
    padding: 24px;
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    text-align: center;
}

.page-status-panel strong {
    font-size: 1.08rem;
}

.page-status-panel p {
    margin: 0;
    max-width: 460px;
    color: rgba(255,255,255,0.66);
    line-height: 1.6;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 32px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}
.site-footer h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.site-footer p {
    margin: 0;
    color: rgba(255,255,255,0.64);
    line-height: 1.6;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.site-footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.site-footer-links a:hover {
    background: rgba(121, 186, 255, 0.16);
    transform: translateY(-1px);
}
.reveal {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-reveal-ready="true"] {
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.reveal[data-reveal-ready="true"][data-reveal-state="pending"] {
    opacity: 0;
    transform: translateY(18px);
}
.reveal[data-reveal-ready="true"][data-reveal-state="visible"] {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    --reveal-delay: 0.08s;
}
.reveal-delay-2 {
    --reveal-delay: 0.16s;
}
.reveal-delay-3 {
    --reveal-delay: 0.24s;
}
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 700px) {
    .page-shell {
        padding: 34px 18px 60px;
    }
    header {
        padding: 14px 12px;
    }
    nav a {
        padding: 8px 12px;
    }
    .lang-switch {
        margin-left: 0;
    }
    .lang-btn {
        min-width: 44px;
        min-height: 32px;
        padding: 0 12px;
    }
    .site-footer-inner {
        padding: 22px 18px 26px;
        grid-template-columns: 1fr;
    }
    .site-footer-links {
        justify-content: flex-start;
    }
}
