:root {
    --header-h: 78px;
    --accent: #4da3ff;
    --accent2: #0088ff;
    --muted: #9aa4b2;
    --glass: rgba(255,255,255,0.02);
    --ease-out: cubic-bezier(.2,.8,.2,1);
    --ease-spring: cubic-bezier(.2,1.1,.2,1);
    --dur-fast: 140ms;
    --dur: 260ms;
    --dur-slow: 420ms;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    color-scheme: only light;
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #0b0d10;
    color: #e7edf6;
    overflow-x: hidden;
    min-height: 100%;
    transition: background .3s, color .3s;
}


@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&display=swap');

html[data-theme='light'] body { background: #f6f7fb; color: #0b0d10; }
html[data-theme='light'] .card {
    background: linear-gradient(135deg, #fff, #f3f6fa) !important;
    border-color: rgba(0,120,255,0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 30px rgba(0,120,255,0.08);
}

html[data-theme='light'] .section-content li { color: #222 !important; }
html[data-theme='light'] .section-content h2 { color: #0066cc !important; }
html[data-theme='light'] .header-login { color: #0b0d10; background: rgba(0,120,255,0.12); border-color: rgba(0,120,255,0.25); }
html[data-theme='light'] .footer { background: rgba(255,255,255,0.65); border-color: rgba(0,120,255,0.12); }


.parallax {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax div {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    transition: transform 0.1s ease-out;
    will-change: transform;
}


.l1 { width: 520px; height: 520px; background: #0b3a8f; box-shadow: 0 0 120px #0a4cff; left: -100px; top: 20%; }
.l2 { width: 440px; height: 440px; background: #0066ff; box-shadow: 0 0 160px #0066ff; right: -120px; top: 55%; }
.l3 { width: 760px; height: 760px; background: #1a5bff; opacity: 0.12; box-shadow: 0 0 200px #1a5bff; left: 10%; bottom: -40%; }


.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.header-left, .header-right { display: flex; align-items: center; gap: 12px; }
.header-left { gap: 18px; }

.logo { font-size: 1.4rem; font-weight: 800; color: inherit; text-decoration: none; }


.header-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    z-index: 1200;
}

.header-nav a {
    color: var(--muted);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: color .25s, background .25s;
}

.header-nav a:hover,
.header-nav a.active { color: var(--accent); background: rgba(77,163,255,0.12); }

.header-login {
    appearance: none;
    border: 1px solid rgba(77,163,255,0.28);
    background: rgba(77,163,255,0.10);
    color: #e7edf6;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: transform .2s, background .25s, box-shadow .25s, border-color .25s;
}

.header-login:hover {
    transform: translateY(-2px);
    background: rgba(77,163,255,0.16);
    border-color: rgba(77,163,255,0.50);
    box-shadow: 0 0 18px rgba(77,163,255,0.22);
}

.header-login:active { transform: translateY(0); }


.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.9rem;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: color .25s, background .25s;
}

.mobile-nav-toggle:hover { color: var(--accent); background: rgba(77,163,255,0.08); }


.main { padding-top: var(--header-h); }

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: opacity 0.5s ease;
}


section.highlight { animation: sectionPulse 0.6s ease; }
@keyframes sectionPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: inset 0 0 60px rgba(77,163,255,0.08); }
}


.card {
    position: relative;
    width: 100%;
    max-width: 1150px;
    background: linear-gradient(135deg, #0d111a, #0a0d14);
    padding: 60px;
    border-radius: 18px;
    border: 1px solid rgba(0,140,255,0.18);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 30px rgba(0,100,255,0.12);
    transition: transform .45s, box-shadow .45s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 40px rgba(0,120,255,0.22);
}


.title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #4da3ff, #0088ff, #4da3ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: waveGradient 6s ease infinite;
}


@keyframes waveGradient {
    0%, 100% { background-position: 0%; }
    50% { background-position: 100%; }
}


.subtitle { margin-top: 12px; color: var(--muted); font-size: 1.2rem; max-width: 700px; }

.section-content {
    font-family: "JetBrains Mono", monospace;
    line-height: 1.6;
}

.section-content .title { font-family: "JetBrains Mono", monospace; font-weight: 700; }
.section-content h2 { font-size: 1.6rem; margin-top: 34px; margin-bottom: 12px; font-weight: 700; color: #4da3ff; }
.section-content h3 { font-size: 1.35rem; margin-top: 28px; margin-bottom: 10px; font-weight: 700; color: #79b8ff; }
.section-content h4 { font-size: 1.1rem; margin-top: 8px; margin-bottom: 10px; font-weight: 600; color: #a8cfff; }
.section-content p { margin-bottom: 14px; font-size: 1.05rem; }
.section-content li { list-style: disc; margin-left: 20px; margin-bottom: 14px; font-size: 1.05rem; color: #e7edf6; }


#home .card { font-family: "JetBrains Mono", monospace; line-height: 1.6; }

.bot-logo {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 120px;
    height: auto;
    opacity: 0.95;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.card:hover .bot-logo { transform: scale(1.04); }

.features { margin-top: 26px; margin-bottom: 26px; }
.features li { list-style: disc; margin-left: 20px; margin-bottom: 10px; font-size: 1.05rem; color: #e7edf6; }


.btn {
    margin-top: 26px;
    display: inline-block;
    padding: 16px 30px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #04131c;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(0,120,255,.35);
    transition: transform .35s, box-shadow .35s;
}

.btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 0 28px rgba(0,120,255,.55); }
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.26), transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform .45s, opacity .45s;
}

.btn:hover::before { transform: scale(2.5); opacity: 1; }

.commands-header { display: grid; gap: 6px; margin-bottom: 14px; }
.commands-subtitle { margin: 0; opacity: .8; line-height: 1.35; }

.commands-search-wrap { position: relative; margin-top: 16px; max-width: 360px; }
.commands-search {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    color: #e7edf6;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.commands-search::placeholder { color: rgba(255,255,255,0.4); }
.commands-search:focus { border-color: var(--accent); background: rgba(0,0,0,0.35); box-shadow: 0 0 0 3px rgba(77,163,255,0.15); }
.commands-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: 0.5; pointer-events: none; }


.search-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.5;
    pointer-events: none;
    padding: 3px 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: opacity 0.2s;
}


.commands-search:focus ~ .search-hint { opacity: 0; }

.commands-accordion { display: grid; gap: 10px; }

.commands-group { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.02); }
.commands-group.search-hidden { display: none !important; }

.commands-summary {
    position: relative;
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    transition: background 180ms var(--ease-out);
}

.commands-summary:hover { background: rgba(77,163,255,.06); }
.commands-summary:active { background: rgba(77,163,255,.10); }
.commands-summary::-webkit-details-marker { display: none; }
.commands-group[open] .commands-summary { border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 13px 13px 0 0; background: rgba(255,255,255,.02); }
.commands-group-title { font-weight: 700; }
.commands-group-hint { opacity: .7; font-size: .95em; }


.chev {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.55);
    border-bottom: 2px solid rgba(255,255,255,.55);
    transform: rotate(-45deg);
    transition: transform var(--dur) var(--ease-spring);
    opacity: .9;
}


.commands-group[open] .chev { transform: rotate(45deg); }
.commands-group.closing .chev { transform: rotate(-45deg); }

.commands-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease-spring); overflow: hidden; }
.commands-content > .commands-grid { overflow: hidden; min-height: 0; }

.commands-group[open] .commands-content { grid-template-rows: 1fr; }
.commands-group.closing .commands-content { grid-template-rows: 0fr; }

.commands-grid {
    padding: 0 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), padding 300ms var(--ease-out), gap 300ms var(--ease-out);
}

.commands-group[open] .commands-grid { padding: 14px; opacity: 1; transform: translateY(0); }
.commands-group.closing .commands-grid { opacity: 0; padding: 0 14px; gap: 0; transform: translateY(-8px); }


.cmd {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(0,0,0,.12);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform 200ms var(--ease-spring), border-color 200ms, background 200ms, box-shadow 250ms;
}

.cmd:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(77,163,255,.25);
    background: rgba(0,0,0,.22);
    box-shadow: 0 12px 28px rgba(0,0,0,.25), 0 0 20px rgba(77,163,255,.08);
}


.cmd:active { transform: translateY(-1px) scale(.98); }
.cmd.search-hidden { display: none !important; }

.cmd-title { margin: 0 0 8px; font-size: 1.05rem; }
.cmd-title code {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(77,163,255,.20);
    background: rgba(77,163,255,.08);
    color: #79b8ff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background 200ms, border-color 200ms;
}

.cmd:hover .cmd-title code { background: rgba(77,163,255,.14); border-color: rgba(77,163,255,.30); }
.cmd-title code::after {
    content: '📋';
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.cmd:hover .cmd-title code::after { opacity: 0.6; }
.cmd-title code.copied::after { content: '✓'; opacity: 1; color: #4ade80; }

.cmd-desc { margin: 0; opacity: .80; line-height: 1.4; font-size: 0.95rem; }


.commands-group[open] .cmd { animation: cmdIn var(--dur) var(--ease-out) both; }
.commands-group[open] .cmd:nth-child(1) { animation-delay: 20ms; }
.commands-group[open] .cmd:nth-child(2) { animation-delay: 50ms; }
.commands-group[open] .cmd:nth-child(3) { animation-delay: 80ms; }
.commands-group[open] .cmd:nth-child(4) { animation-delay: 110ms; }
.commands-group[open] .cmd:nth-child(5) { animation-delay: 140ms; }
.commands-group[open] .cmd:nth-child(6) { animation-delay: 170ms; }
.commands-group[open] .cmd:nth-child(7) { animation-delay: 200ms; }
.commands-group[open] .cmd:nth-child(8) { animation-delay: 230ms; }

@keyframes cmdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


.changelog-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.changelog-list { display: grid; gap: 20px; margin-top: 24px; }
.changelog-entry {
    padding: 20px 24px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    transition: border-color 0.2s, background 0.2s;
}

.changelog-entry:hover { border-color: rgba(77,163,255,0.25); background: rgba(0,0,0,0.25); }
.changelog-version { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

.version-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #04131c;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
}

.version-date { font-size: 0.85rem; color: var(--muted); }

.changelog-changes { list-style: none; display: grid; gap: 8px; }
.changelog-changes li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(231,237,246,0.85);
}

.changelog-changes li::before {
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.changelog-add::before { content: '+'; color: #4ade80; font-weight: 700; }
.changelog-fix::before { content: '~'; color: #fb923c; font-weight: 700; }
.changelog-improve::before { content: '^'; color: #60a5fa; font-weight: 700; }
.changelog-remove::before { content: '-'; color: #f87171; font-weight: 700; }

.changelog-changes code {
    padding: 2px 6px;
    background: rgba(77,163,255,0.12);
    border-radius: 4px;
    font-size: 0.9em;
    color: #79b8ff;
}

.status-placeholder { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }


.footer {
    position: relative;
    z-index: 5;
    padding: 22px 18px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,120,255,0.14);
}

.footer-inner { max-width: 1150px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; letter-spacing: 0.2px; }
.footer small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 600; transition: color .25s, background .25s, transform .15s; }
.footer a:hover { color: var(--accent); background: rgba(77,163,255,0.12); transform: translateY(-1px); }


.fade { opacity: 0; transform: translateY(40px); filter: blur(4px); transition: opacity 1s, transform 1s, filter 1s; }
.fade.in { opacity: 1; transform: none; filter: blur(0); }

[data-stagger] > * { opacity: 0; transform: translateY(24px); filter: blur(3px); }
[data-stagger].in > * { opacity: 1; transform: none; filter: blur(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
[data-stagger].in > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.06s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.12s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.18s; }
[data-stagger].in > *:nth-child(5) { transition-delay: 0.24s; }
[data-stagger].in > *:nth-child(6) { transition-delay: 0.30s; }
[data-stagger].in > *:nth-child(7) { transition-delay: 0.36s; }
[data-stagger].in > *:nth-child(8) { transition-delay: 0.42s; }
[data-stagger].in > *:nth-child(9) { transition-delay: 0.48s; }
[data-stagger].in > *:nth-child(10) { transition-delay: 0.54s; }
[data-stagger].in > *:nth-child(n+11) { transition-delay: 0.60s; }


.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo { width: 80px; height: 80px; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-spinner { width: 40px; height: 40px; border: 3px solid rgba(77,163,255,0.2); border-top-color: var(--accent); border-radius: 50%; animation: preloaderSpin 0.8s linear infinite; }


@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.8; } }
@keyframes preloaderSpin { to { transform: rotate(360deg); } }


.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,120,255,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s var(--ease-out), visibility 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.2s;
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scroll-top-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 30px rgba(0,120,255,0.5); }
.scroll-top-btn:active { transform: translateY(-2px) scale(0.98); }


.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 2000;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(20,24,32,0.95);
    border: 1px solid rgba(77,163,255,0.25);
    color: #e7edf6;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-spring);
}

.toast.visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }


.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; left: auto; width: auto; height: auto; padding: 8px 12px; background: rgba(77,163,255,0.12); border-radius: 6px; margin: 6px; z-index: 2000; }

a:focus, button:focus { outline: 2px solid rgba(77,163,255,0.18); outline-offset: 2px; }


@media (max-width: 768px) {
    .bot-logo { position: static; display: block; margin: 0 auto 20px; width: 110px; transform: none; }
}

@media (max-width: 760px) {
    .header { padding: 0 16px; }
    .header-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,12,18,0.98); backdrop-filter: blur(10px); padding: 8px 0; border-bottom: 1px solid rgba(0,120,255,0.12); z-index: 1150; opacity: 0; transform: translateY(-14px); }
    .header-nav a { padding: 14px 22px; font-size: 1.05rem; border-radius: 0; display: block; width: 100%; }
    .header-nav.open { display: flex !important; opacity: 1; transform: translateY(0); }
    .mobile-nav-toggle { display: inline-flex; }
    .card { padding: 32px; }
    .title { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .scroll-top-btn { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 540px) {
    .card { padding: 24px !important; }
    .title { font-size: 1.8rem !important; }
    .subtitle { font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .bot-logo { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


.faq-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.faq-accordion { display: grid; gap: 10px; margin-top: 24px; }

.faq-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
}

.faq-question {
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: background 180ms var(--ease-out);
}

.faq-question:hover { background: rgba(77,163,255,.06); }
.faq-question:active { background: rgba(77,163,255,.10); }
.faq-question::-webkit-details-marker { display: none; }

.faq-question-text { flex: 1; }

.faq-item[open] .faq-question {
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
}

.faq-question .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.55);
    border-bottom: 2px solid rgba(255,255,255,.55);
    transform: rotate(-45deg);
    transition: transform var(--dur) var(--ease-spring);
    opacity: .9;
    flex-shrink: 0;
}

.faq-item[open] .chev { transform: rotate(45deg); }
.faq-item.closing .chev { transform: rotate(-45deg); }

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms var(--ease-spring);
    overflow: hidden;
}

.faq-answer-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 250ms, transform 250ms, padding 300ms;
    color: rgba(231,237,246,0.85);
    line-height: 1.6;
}

.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-item[open] .faq-answer-inner {
    padding: 16px 20px;
    opacity: 1;
    transform: translateY(0);
}

.faq-item.closing .faq-answer { grid-template-rows: 0fr; }
.faq-item.closing .faq-answer-inner {
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-8px);
}

.faq-answer-inner code {
    padding: 2px 6px;
    background: rgba(77,163,255,0.12);
    border-radius: 4px;
    font-size: 0.9em;
    color: #79b8ff;
}


.news-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }

.news-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.news-card {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77,163,255,0.25);
    box-shadow: 0 12px 28px rgba(0,0,0,.25), 0 0 20px rgba(77,163,255,.08);
}

.news-card-image-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

.news-card:hover .news-card-image { transform: scale(1.05); }

.news-card-content { padding: 20px; }

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e7edf6;
    line-height: 1.3;
}

.news-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: rgba(231,237,246,0.75);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.news-card-link:hover { color: var(--accent2); }

.news-view-all-wrap { text-align: center; margin-top: 24px; }
.news-view-all { display: inline-block; }

.changelog-view-all { display: inline-block; margin-top: 20px; }


.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.news-list:empty { display: none; }

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: color 0.2s;
}

.news-back-link:hover { color: var(--accent); }

.news-not-found {
    text-align: center;
    padding: 40px 20px;
}

.news-not-found h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.news-not-found p {
    color: var(--muted);
    margin-bottom: 24px;
}

.news-article-container:empty { display: none; }


.news-article {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.news-article:last-child { border-bottom: none; padding-bottom: 0; }

.news-article-header { margin-bottom: 24px; }

.news-article-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-article-date {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.news-article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(231,237,246,0.9);
}

.news-article-body h3 {
    font-size: 1.4rem;
    margin: 32px 0 12px;
    color: #79b8ff;
    font-weight: 700;
}

.news-article-body h4 {
    font-size: 1.15rem;
    margin: 24px 0 10px;
    color: #a8cfff;
    font-weight: 600;
}

.news-article-body p { margin-bottom: 16px; }

.news-article-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.news-article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.news-article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 24px 0;
    background: rgba(77,163,255,0.06);
    border-radius: 0 8px 8px 0;
    color: rgba(231,237,246,0.85);
    font-style: italic;
}

.news-article-body img.news-image {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.news-article-body code {
    padding: 2px 6px;
    background: rgba(77,163,255,0.12);
    border-radius: 4px;
    font-size: 0.9em;
    color: #79b8ff;
}

.news-article-body strong { color: #e7edf6; }

.news-article-body a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.news-article-body a:hover { color: var(--accent2); text-decoration: underline; }


@media (max-width: 760px) {
    .news-preview, .news-list { grid-template-columns: 1fr; }
    .news-card-image-wrap { height: 140px; }
    .news-article-title { font-size: 1.5rem; }
    .news-article-body h3 { font-size: 1.25rem; }
}

@media (max-width: 540px) {
    .faq-question { padding: 14px 16px; font-size: 0.95rem; }
    .faq-answer-inner { font-size: 0.95rem; }
    .news-card-content { padding: 16px; }
    .news-card-title { font-size: 1.05rem; }
}


.error-page {
    min-height: calc(100vh - var(--header-h) - 100px);
}

.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: waveGradient 6s ease infinite;
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e7edf6;
    margin-bottom: 16px;
}

.error-description {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .error-code { font-size: 5rem; }
    .error-title { font-size: 1.4rem; }
    .error-description { font-size: 1rem; }
}
