@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(fonts/plus-jakarta-sans.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Fallback';
    src: local('Arial'), local('Liberation Sans'), local('Helvetica');
    size-adjust: 108%;
    ascent-override: 96%;
    descent-override: 20.5%;
    line-gap-override: 0%;
}

:root {
    --surface-0:   #ffffff;
    --surface-1:   #f8fafc;
    --surface-2:   #f1f5f9;
    --surface-3:   #e2e8f0;

    --sky-500:     #0ea5e9;
    --sky-600:     #0284c7;
    --sky-700:     #0369a1;
    --cyan-400:    #22d3ee;
    --cyan-500:    #06b6d4;
    --cyan-600:    #0891b2;
    --cyan-700:    #0e7490;
    --cyan-800:    #155e75;
    --sky-800:     #075985;
    --indigo-700:  #4338ca;
    --blue-500:    #3b82f6;
    --blue-600:    #2563eb;
    --indigo-500:  #6366f1;

    --sky-50:      #f0f9ff;
    --sky-100:     #e0f2fe;
    --sky-200:     #bae6fd;
    --cyan-50:     #ecfeff;
    --cyan-100:    #cffafe;

    --text-900:    #0f172a;
    --text-700:    #1e293b;
    --text-500:    #334155;
    --text-400:    #475569;
    --text-300:    #64748b;

    --border-light: #e2e8f0;
    --border-mid:   #cbd5e1;
    --border-blue:  rgba(14, 165, 233, 0.25);
    --border-blue-hi: rgba(14, 165, 233, 0.45);

    --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-lg:  0 8px 24px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
    --shadow-blue: 0 4px 16px rgba(14, 165, 233, 0.20);

    --r-xs:   0.375rem;
    --r-sm:   0.5rem;
    --r-md:   0.75rem;
    --r-lg:   1rem;
    --r-xl:   1.25rem;
    --r-full: 9999px;

    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --dur-s:  150ms;
    --dur-m:  220ms;
    --dur-l:  300ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--surface-1);
    color: var(--text-900);
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky-500); }

::selection { background: var(--sky-100); color: var(--sky-700); }

:focus-visible {
    outline: 2px solid var(--sky-500);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 360px at 50% -80px, rgba(14, 165, 233, 0.13), transparent),
        radial-gradient(ellipse 60% 300px at 100% 100%, rgba(34, 211, 238, 0.07), transparent);
}

.card {
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.card-elevated {
    background: var(--surface-0);
    border: 1px solid var(--border-blue);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.text-gradient { color: var(--sky-700); }

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
#navbar.scrolled {
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 768px) { .nav-wrap { height: 68px; padding: 0 2rem; } }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
    color: #fff;
}
.logo-text {
    display: none;
    flex-direction: column;
    line-height: 1.2;
}
@media (min-width: 400px) { .logo-text { display: flex; } }
.logo-name { font-size: 0.95rem; font-weight: 700; color: var(--text-900); }
.logo-sub  { font-size: 0.72rem; font-weight: 500; color: var(--text-300); }

.nav-pills {
    position: relative;
    display: none;
    align-items: center;
    gap: 2px;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    padding: 3px;
}
@media (min-width: 680px) { .nav-pills { display: flex; } }

.nav-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-400);
    white-space: nowrap;
    transition: color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.nav-btn svg { flex-shrink: 0; }
.nav-btn:hover {
    color: var(--text-900);
    background: var(--surface-0);
}
.nav-btn.active {
    color: var(--sky-700);
    background: var(--surface-0);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--r-md);
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    color: var(--text-500);
    box-shadow: var(--shadow-sm);
    transition: background var(--dur-s), color var(--dur-s), border-color var(--dur-s);
    position: relative;
    overflow: hidden;
}
.hamburger:hover {
    background: var(--sky-50);
    color: var(--sky-600);
    border-color: var(--border-blue);
}
@media (min-width: 680px) { .hamburger { display: none; } }

.hamburger .icon-hamburger,
.hamburger .icon-close {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
    pointer-events: none;
}
.hamburger .icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
}
.hamburger.is-open .icon-hamburger {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
}
.hamburger.is-open .icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear var(--dur-l);
}
#mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

#mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    transition: opacity var(--dur-l) var(--ease);
}
#mobile-menu.is-open #mobile-backdrop {
    opacity: 1;
}

#mobile-panel {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: min(300px, 85vw);
    background: var(--surface-0);
    border-left: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.34s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    will-change: transform;
    padding: 80px 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}
#mobile-menu.is-open #mobile-panel {
    transform: translateX(0);
}

.mobile-panel-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0.5rem 0.5rem;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-500);
    transition: background var(--dur-s), color var(--dur-s);
}
.mobile-nav-btn:hover {
    background: var(--surface-1);
    color: var(--text-900);
}
.mobile-nav-btn.active {
    background: var(--sky-50);
    color: var(--sky-700);
}
.mobile-nav-icon {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    flex-shrink: 0;
    color: inherit;
    transition: background var(--dur-s);
}
.mobile-nav-btn.active .mobile-nav-icon {
    background: var(--sky-100);
    color: var(--sky-700);
}

#main-content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding-top: 64px;
    min-height: 100vh;
    min-height: 100svh;
}
.r-other .hero[data-hero="versions"] { display: none; }
@media (min-width: 768px) { #main-content { padding-top: 68px; } }

.state-container {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.skeleton {
    min-height: min(55vh, 420px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}
.sk-line {
    height: 12px;
    border-radius: var(--r-full);
    background: var(--surface-3);
}
.sk-line:nth-child(1) { width: 38%; height: 18px; }
.sk-line:nth-child(2) { width: 100%; }
.sk-line:nth-child(3) { width: 92%; }
.sk-line:nth-child(4) { width: 64%; }
.skeleton .loading-text { margin-top: 0.5rem; }
.loading-text {
    color: var(--text-300);
    font-size: 0.875rem;
    text-align: center;
}

.error-card {
    max-width: 380px;
    width: 100%;
    padding: 2rem;
    text-align: center;
}
.error-icon-wrap {
    width: 56px; height: 56px;
    border-radius: var(--r-lg);
    background: #fef2f2;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.error-icon-wrap svg { width: 24px; height: 24px; color: #ef4444; }
.error-title { font-size: 1.05rem; font-weight: 700; color: var(--text-900); margin-bottom: 0.4rem; }
.error-msg   { font-size: 0.875rem; color: var(--text-400); margin-bottom: 1.5rem; }
.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--sky-700);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: background var(--dur-s);
}
.btn-retry:hover { background: var(--sky-800); }
.btn-retry svg { width: 14px; height: 14px; }

.hero {
    padding: 2.75rem 1.25rem 0.75rem;
}
@media (min-width: 768px) { .hero { padding: 4.5rem 2rem 1rem; } }

.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-card { position: relative; text-align: left; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem 0.3rem 0.65rem;
    margin-bottom: 1.25rem;
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--sky-700);
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 800;
    color: var(--text-900);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    color: var(--text-400);
    max-width: 56ch;
    line-height: 1.65;
    text-wrap: pretty;
}

.features-section {
    padding: 1.25rem 1.25rem 0;
}
@media (min-width: 768px) { .features-section { padding: 1.5rem 2rem 0; } }

.features-inner { max-width: 760px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 400px) {
    .features-grid { grid-template-columns: 1fr; gap: 0.5rem; }
}
@media (min-width: 401px) and (max-width: 560px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}

.feature-card {
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.125rem 0.75rem;
    text-align: center;
    transition: border-color var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
}
.feature-card:hover {
    border-color: var(--border-blue);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}
.feature-icon-wrap {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.625rem;
    color: var(--sky-600);
}
.feature-icon-wrap svg { width: 18px; height: 18px; }
.feature-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-700);
    margin-bottom: 0.15rem;
}
.feature-desc {
    font-size: 0.72rem;
    color: var(--text-300);
}

.content-section {
    padding: 1.25rem 1.25rem 4rem;
}
@media (min-width: 768px) { .content-section { padding: 1.5rem 2rem 5rem; } }

.content-inner { max-width: 760px; margin: 0 auto; }

.content-card {
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}
@media (min-width: 640px) { .content-card { padding: 2.25rem 2.75rem; } }

.markdown-content {
    color: var(--text-500);
    line-height: 1.8;
    font-size: 0.9375rem;
}
.markdown-content h1 {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-900);
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--sky-100);
    margin-bottom: 1.5rem;
}
.markdown-content h2 {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text-900);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border-light);
}
.markdown-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-700);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.markdown-content p { margin-bottom: 1rem; }
.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 1.375rem;
}
.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }
.markdown-content li { margin-bottom: 0.375rem; }
.markdown-content a {
    color: var(--sky-700);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--dur-s);
}
.markdown-content a:hover { color: var(--sky-800); }
.markdown-content code {
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
    padding: 0.15rem 0.4rem;
    border-radius: var(--r-xs);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.83em;
    color: var(--sky-700);
}
.markdown-content pre {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-500);
    font-size: 0.875em;
}
.markdown-content blockquote {
    border-left: 3px solid var(--sky-300, #7dd3fc);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-400);
    font-style: italic;
}
.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}
.markdown-content strong {
    color: var(--text-700);
    font-weight: 700;
}
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    display: block;
    overflow-x: auto;
    font-size: 0.875rem;
}
.markdown-content th,
.markdown-content td {
    padding: 0.6rem 0.875rem;
    text-align: left;
    border: 1px solid var(--border-light);
}
.markdown-content th {
    background: var(--surface-2);
    font-weight: 700;
    color: var(--text-700);
}
.markdown-content tr:nth-child(even) td { background: var(--surface-1); }
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    margin: 1rem 0;
    border: 1px solid var(--border-light);
}

.timeline { display: flex; flex-direction: column; }

.release {
    display: grid;
    gap: 0.9rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border-light);
}
.release:first-child { border-top: 0; padding-top: 1.25rem; }
@media (min-width: 720px) {
    .release { grid-template-columns: 170px minmax(0, 1fr); gap: 2.25rem; padding: 2.25rem 0; }
    .release:first-child { padding-top: 1.75rem; }
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    align-content: flex-start;
}
@media (min-width: 720px) {
    .release-meta { flex-direction: column; align-items: flex-start; gap: 0.6rem; position: sticky; top: 88px; align-self: start; }
}
.release-body { min-width: 0; }

.timeline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-700);
}
.release.latest .timeline-badge {
    background: var(--sky-700);
    border-color: var(--sky-700);
    color: #fff;
}
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-300);
}
.timeline-date svg { width: 13px; height: 13px; }
.badge-latest {
    padding: 0.175rem 0.55rem;
    background: var(--cyan-50);
    border: 1px solid var(--cyan-100);
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--cyan-800);
}
.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-900);
    margin-bottom: 0.85rem;
    text-wrap: balance;
}
.changes-list { display: flex; flex-direction: column; gap: 0.55rem; }
.change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-500);
}
.change-dot {
    flex-shrink: 0;
    margin-top: 0.62em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--sky-500);
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-300);
    font-size: 0.9rem;
}

.note-box {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: var(--sky-50);
    border: 1px solid var(--sky-100);
    border-left: 4px solid var(--sky-500);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}
.note-box p {
    font-size: 0.875rem;
    color: var(--text-500);
}
.note-box strong { color: var(--text-900); }
.note-link {
    color: var(--sky-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.note-link:hover { color: var(--sky-800); }

footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    background: var(--surface-0);
    border-top: 1px solid var(--border-light);
}
.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}
@media (min-width: 768px) { .footer-container { padding: 2.5rem 2rem; } }

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
@media (min-width: 600px) {
    .footer-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-brand-icon {
    width: 38px; height: 38px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--sky-500), var(--cyan-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.footer-brand-name { font-size: 0.95rem; font-weight: 700; color: var(--text-900); }
.footer-brand-sub  { font-size: 0.7rem; font-weight: 500; color: var(--text-300); margin-top: 1px; }

.footer-credit {
    font-size: 0.8125rem;
    color: var(--text-300);
}
.footer-credit .name {
    color: var(--text-500);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-300);
}
@media (min-width: 560px) {
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 600;
}
.tag-cyan   { background: var(--cyan-50);  color: var(--cyan-800);   border: 1px solid var(--cyan-100); }
.tag-sky    { background: var(--sky-50);   color: var(--sky-700);    border: 1px solid var(--sky-100);  }
.tag-indigo { background: #eef2ff;         color: var(--indigo-700); border: 1px solid #e0e7ff; }

:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --rise: 14px; }

.nav-indicator {
    position: absolute;
    top: 3px; bottom: 3px; left: 0;
    width: 0;
    border-radius: var(--r-full);
    background: var(--surface-0);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
}
.nav-pills.is-ready .nav-indicator { opacity: 1; }
.nav-pills.is-ready.no-anim .nav-indicator { transition: none; }
.nav-pills.is-ready .nav-btn.active,
.nav-pills.is-ready .nav-btn.active:hover { background: transparent; box-shadow: none; }

#progress {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--sky-500), var(--cyan-400));
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 80;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    background: var(--sky-700);
    color: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s, background var(--dur-s);
}
.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}
.to-top:hover { background: var(--sky-800); }
.to-top svg { width: 20px; height: 20px; }

.mobile-nav-btn {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background var(--dur-s), color var(--dur-s);
}
#mobile-menu.is-open .mobile-nav-btn {
    opacity: 1;
    transform: none;
    transition-delay: calc(80ms + var(--i, 0) * 50ms), calc(80ms + var(--i, 0) * 50ms), 0s, 0s;
}

.nav-btn:active, .mobile-nav-btn:active, .btn-retry:active, .hamburger:active { transform: scale(0.97); }
.to-top:active { transform: scale(0.92); }
.markdown-content a {
    text-decoration-color: rgba(3, 105, 161, 0.35);
    text-decoration-thickness: 1.5px;
    transition: color var(--dur-s), text-decoration-color var(--dur-s);
}
.markdown-content a:hover { text-decoration-color: currentColor; }
.markdown-content img { transition: transform 0.5s var(--ease-out), box-shadow 0.3s; }
@media (hover: hover) {
    .markdown-content a > img:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }
}
@media (hover: none) {
    .feature-card:hover { transform: none; }
}

@keyframes rise  { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.animate-in .release      { animation: rise 0.5s var(--ease-out) calc(0.06s + min(var(--i, 0), 5) * 60ms) both; }
.animate-in .feature-card { animation: rise 0.45s var(--ease-out) calc(0.05s + var(--i, 0) * 60ms) both; }

.sk-line { animation: pulse 1.4s ease-in-out infinite; }
.sk-line:nth-child(2) { animation-delay: 0.15s; }
.sk-line:nth-child(3) { animation-delay: 0.3s; }
.sk-line:nth-child(4) { animation-delay: 0.45s; }

.boot-msg { display: none; text-align: center; }
.boot-failed .skeleton .sk-line,
.boot-failed .skeleton .loading-text { display: none; }
.boot-failed .boot-msg { display: block; }
.boot-msg p { color: var(--text-400); margin-bottom: 1rem; font-size: 0.95rem; }
.boot-msg a { display: inline-flex; padding: 0.55rem 1.25rem; background: var(--sky-700); color: #fff; border-radius: var(--r-md); font-weight: 600; font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
    :root { --rise: 0px; }
    html { scroll-behavior: auto; }
    .sk-line { animation: none; opacity: 0.7; }
    #mobile-panel { transform: none; opacity: 0; transition: opacity var(--dur-m) var(--ease); }
    #mobile-menu.is-open #mobile-panel { opacity: 1; }
    .mobile-nav-btn { transform: none; }
    .to-top { transform: none; }
}
