.page-wrap { max-width: 860px; margin: 0 auto; padding: 9rem 2rem 6rem; }
.page-wrap.wide { max-width: 1200px; }
.page-label { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--accent-2); font-size: 0.82rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.1rem; }
.page-label::before { content: ""; width: 3px; height: 15px; border-radius: 3px; background: #f4f7ff; box-shadow: 0 0 10px rgba(170,195,255,0.9), 0 0 24px rgba(120,155,240,0.6); }
.page-title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 0.9rem; background: linear-gradient(120deg, #ffffff 0%, #dfe8ff 55%, #93a9e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-date { max-width: 640px; margin-bottom: 2.6rem; color: var(--text-dim); font-size: 1.05rem; font-weight: 300; line-height: 1.6; }

.legal-body { padding: 3rem 3.25rem; border-radius: 24px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06); }
.legal-body h2 { position: relative; margin: 2.6rem 0 1rem; padding-bottom: 0.9rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.3px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.legal-body h2::before { content: ""; display: inline-block; width: 3px; height: 16px; margin-right: 0.8rem; vertical-align: -2px; border-radius: 3px; background: #f4f7ff; box-shadow: 0 0 10px rgba(170,195,255,0.9), 0 0 24px rgba(120,155,240,0.6); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 1.6rem 0 0.6rem; font-size: 1.02rem; font-weight: 600; color: var(--accent-3); }
.legal-body p { margin-bottom: 0.9rem; color: #a4abbb; font-size: 0.97rem; line-height: 1.85; }
.legal-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1rem; }
.legal-body li { position: relative; padding-left: 1.4rem; color: #a4abbb; font-size: 0.97rem; line-height: 1.75; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px rgba(150,180,255,0.7); }
.legal-body a { color: var(--accent-3); text-decoration: underline; text-decoration-color: rgba(200,215,255,0.35); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.legal-body a:hover { color: #fff; text-decoration-color: #fff; }
.legal-body strong { color: #fff; font-weight: 600; }

.compare-table { display: flex; flex-direction: column; margin-bottom: 2rem; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.compare-row { display: grid; grid-template-columns: 1fr 110px 110px; align-items: center; gap: 10px; padding: 0.85rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.compare-row:last-child { border-bottom: none; }
.compare-row > :last-child { margin: -0.85rem -1.4rem -0.85rem 0; padding: 0.85rem 1.4rem 0.85rem 0; height: calc(100% + 1.7rem); background: rgba(120,155,240,0.06); }
.compare-row.head { background: rgba(255,255,255,0.03); color: var(--text-dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.compare-row.head .compare-cell { justify-content: center; }
.compare-name { color: #dfe3ee; font-size: 0.95rem; }
.compare-cell { display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.compare-cell svg { flex-shrink: 0; }
.compare-cell.yes svg { color: var(--accent-3); }
.compare-cell.no svg { color: var(--text-dim); opacity: 0.45; }
.compare-cell.limit { color: var(--text-dim); font-weight: 600; text-align: center; }
.compare-cell.limit.pro-col { color: var(--accent-3); }

.pro-features-cta { margin-top: 2.8rem; padding: 2.6rem 2.4rem; text-align: center; border-radius: 24px; border: 1px solid rgba(255,255,255,0.08); background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(120,155,240,0.16), transparent 70%), rgba(255,255,255,0.015); }
.pro-features-cta-title { margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.4px; }
.pro-features-cta-desc { margin-bottom: 1.6rem; color: var(--text-dim); font-size: 1rem; }
.pro-features-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; border-radius: 100px; background: #f4f7ff; color: #05060a; font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 0 40px rgba(150,180,255,0.26), inset 0 1px 0 #fff; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, background 0.3s; }
.pro-features-cta-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 0 64px rgba(170,195,255,0.5), inset 0 1px 0 #fff; }
.pro-features-cta-note { margin-top: 1rem; color: var(--text-dim); font-size: 0.88rem; }

.docs-layout { display: block; }
.docs-content { min-width: 0; }
.docs-search-wrap { position: relative; margin-bottom: 2.2rem; display: none; }
.docs-search-wrap.visible { display: block; }
.docs-search-wrap svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.docs-search { width: 100%; padding: 0.95rem 1.2rem 0.95rem 3rem; border-radius: 100px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; font: inherit; font-size: 0.97rem; outline: none; transition: border-color 0.25s, box-shadow 0.25s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.docs-search::placeholder { color: var(--text-dim); }
.docs-search:focus { border-color: rgba(150,180,255,0.55); box-shadow: 0 0 0 4px rgba(120,155,240,0.12); }
.docs-no-results { display: none; padding: 4rem 1.2rem; text-align: center; color: var(--text-dim); font-size: 1.05rem; }
.docs-no-results.visible { display: block; }

.docs-landing { display: none; }
.docs-landing.active { display: block; animation: docs-fade-in 0.35s ease; }
.docs-landing-group { margin-bottom: 2.6rem; }
.docs-landing-group:last-child { margin-bottom: 0; }
.docs-landing-group-title { margin-bottom: 1rem; color: var(--text-dim); font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
.docs-landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.docs-landing-card { display: flex; align-items: center; gap: 1.1rem; width: 100%; min-height: 96px; padding: 1.2rem 1.3rem; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); transition: border-color 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.docs-landing-card:hover { border-color: rgba(150,180,255,0.4); transform: translateY(-3px); box-shadow: 0 16px 50px rgba(120,155,240,0.12); }
.docs-landing-card-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; background: #05070c !important; color: var(--accent-3) !important; border: 1px solid rgba(200,215,255,0.3); box-shadow: 0 0 18px rgba(120,155,240,0.2); }
.docs-landing-card-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.docs-landing-card-name { font-size: 1.05rem; font-weight: 600; line-height: 1.25; color: #fff; }
.docs-landing-card-count { color: var(--text-dim); font-size: 0.85rem; }

.docs-back { display: none; margin-bottom: 1.6rem; }
.docs-back.visible { display: block; }
.docs-back a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.docs-back a:hover { color: #fff; }

.docs-section { display: none; --accent: rgba(150,180,255,0.55) !important; --accent-bg: rgba(120,155,240,0.12) !important; }
.docs-section.active { display: block; animation: docs-fade-in 0.35s ease; }
.docs-content.is-searching .docs-section { display: block; margin-bottom: 3.6rem; }
.docs-content.is-searching .docs-section.search-hidden { display: none; }
.docs-content.is-searching .docs-section:last-child { margin-bottom: 0; }
@keyframes docs-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.docs-section-header { position: relative; display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.docs-section-header::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 64px; height: 2px; border-radius: 2px; background: #f4f7ff; box-shadow: 0 0 10px rgba(170,195,255,0.8); }
.docs-section-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; font-size: 24px; line-height: 1; background: #05070c; color: var(--accent-3) !important; border: 1px solid rgba(200,215,255,0.35); box-shadow: 0 0 20px rgba(120,155,240,0.25); }
.docs-section-header-text { flex: 1; min-width: 0; }
.docs-section-title { margin-bottom: 0.35rem; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.8px; }
.docs-section-sub { margin-bottom: 1.6rem; color: var(--text-dim); font-size: 1rem; font-weight: 300; line-height: 1.6; }
.docs-section-header .docs-section-sub { margin-bottom: 0; }

.cmd-card { margin-bottom: 0.8rem; overflow: hidden; border-radius: 0 16px 16px 0; border: 1px solid rgba(255,255,255,0.07); border-left: 2px solid var(--accent); background: rgba(255,255,255,0.025); transition: border-color 0.3s, background 0.3s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cmd-card:hover { border-color: rgba(150,180,255,0.3); border-left-color: rgba(200,215,255,0.9); background: rgba(255,255,255,0.04); }
.cmd-header { display: flex; align-items: center; gap: 0.9rem; padding: 1.05rem 1.3rem; }
.cmd-name { font-family: 'Consolas', monospace; font-size: 1rem; font-weight: 700; color: var(--accent-3); }
.cmd-desc { flex: 1; color: var(--text-dim); font-size: 0.92rem; }
.cmd-perm { flex-shrink: 0; padding: 0.2rem 0.75rem; border-radius: 100px; background: rgba(120,155,240,0.12); border: 1px solid rgba(150,180,255,0.3); color: #cfe0ff; font-size: 0.74rem; font-weight: 600; }
.cmd-params { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1.3rem; border-top: 1px solid rgba(255,255,255,0.06); }
.cmd-param { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.9rem; }
.param-name { flex-shrink: 0; min-width: 124px; font-family: 'Consolas', monospace; font-weight: 600; color: #fff; }
.param-req { flex-shrink: 0; padding: 0.12rem 0.55rem; border-radius: 6px; font-size: 0.68rem; font-weight: 700; }
.param-req.required { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.28); }
.param-req.optional { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.08); }
.param-desc { color: var(--text-dim); }

.panel-feature-card { margin-bottom: 0.8rem; padding: 1.3rem 1.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel-feature-name { margin-bottom: 0.4rem; font-size: 1.02rem; font-weight: 600; color: #fff; }
.panel-feature-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; }
.sidebar-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--text-dim); }

.docs-timeline { position: relative; padding-left: 2.8rem; }
.docs-timeline::before { content: ""; position: absolute; left: 0.8rem; top: 1.2rem; bottom: 1.2rem; width: 2px; background: linear-gradient(to bottom, rgba(200,215,255,0.8), rgba(120,155,240,0.08)); }
.docs-timeline-item { position: relative; margin-bottom: 1.4rem; }
.docs-timeline-item:last-child { margin-bottom: 0; }
.docs-timeline-marker { position: absolute; left: -2.8rem; top: 0.8rem; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #05070c; color: #fff; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(200,215,255,0.6); box-shadow: 0 0 14px rgba(120,155,240,0.4); }
.docs-timeline-content { padding: 1.1rem 1.4rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.025); transition: border-color 0.3s; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.docs-timeline-content:hover { border-color: rgba(150,180,255,0.3); }
.docs-timeline-title { margin-bottom: 0.4rem; font-size: 1.02rem; font-weight: 600; color: #fff; }
.docs-timeline-desc { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

.docs-content table { width: 100%; border-collapse: collapse; }
.docs-content code { font-family: 'Consolas', monospace; }

.notfound-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 7rem 1.5rem 4rem; text-align: center; }
.notfound-inner { max-width: 520px; }
.notfound-mark { display: block; width: 88px; height: 88px; margin: 0 auto 1.6rem; border-radius: 50%; background: #000 url('/img/logo-mark.webp') center / cover; border: 1px solid rgba(200,215,255,0.45); box-shadow: 0 0 60px rgba(120,155,240,0.4); }
.notfound-code { margin-bottom: 0.6rem; font-size: clamp(5.5rem, 18vw, 9.5rem); font-weight: 700; letter-spacing: -6px; line-height: 1; background: linear-gradient(180deg, #ffffff 0%, #93a9e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound-title { margin-bottom: 0.8rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.4px; }
.notfound-sub { margin-bottom: 2.2rem; color: var(--text-dim); font-size: 1.05rem; font-weight: 300; line-height: 1.7; }

@media (max-width: 700px) {
    .page-wrap { padding: 7.5rem 1.25rem 4rem; }
    .legal-body { padding: 2rem 1.4rem; border-radius: 20px; }
    .compare-row { grid-template-columns: 1fr 62px 62px; gap: 6px; padding: 0.75rem 0.9rem; }
    .compare-row > :last-child { margin: -0.75rem -0.9rem -0.75rem 0; padding: 0.75rem 0.9rem 0.75rem 0; height: calc(100% + 1.5rem); }
    .compare-name { font-size: 0.85rem; }
    .pro-features-cta { padding: 2rem 1.3rem; }
    .cmd-header { flex-wrap: wrap; row-gap: 0.45rem; }
    .cmd-name { order: 1; }
    .cmd-perm { order: 2; margin-left: auto; }
    .cmd-desc { order: 3; flex: 1 1 100%; }
    .cmd-param { flex-wrap: wrap; }
    .param-name { min-width: 0; }
    .docs-section-title { font-size: 1.5rem; }
    .docs-section-header { align-items: flex-start; }
}
