:root {
    --bg: #f3f5fa;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e6eaf2;
    --text: #1e2433;
    --text-muted: #667085;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --brand-dark: #1d4ed8;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --info: #2563eb;
    --info-bg: #eff6ff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px -14px rgba(15, 23, 42, .18);
    --shadow-sm: 0 4px 14px -8px rgba(15, 23, 42, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* ---------- App shell ---------- */
.app {
    display: grid;
    grid-template-columns: 296px 1fr;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    background: linear-gradient(180deg, #0b1224 0%, #101b34 60%, #0d1830 100%);
    color: #e6edfb;
    padding: 22px 16px 90px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 16px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .55);
}

.brand-text {
    line-height: 1.2;
}

.brand-text strong {
    display: block;
    font-size: 14.5px;
    color: #fff;
}

.brand-text span {
    font-size: 11.5px;
    color: #93a4c3;
}

.nav-search {
    position: relative;
    margin-bottom: 16px;
}

.nav-search input {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 999px;
    padding: 9px 14px 9px 34px;
    font-size: 13px;
    outline: none;
}

.nav-search input::placeholder {
    color: #7b8bad;
}

.nav-search input:focus {
    border-color: var(--brand-2);
    background: rgba(255, 255, 255, .1);
}

.nav-search .ic {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: .8;
}

.nav-group {
    margin-bottom: 6px;
}

.nav-group-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #7284a8;
    padding: 14px 10px 6px;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #d7e1f7;
    font-size: 13.6px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
    margin: 2px 0;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease;
}

.nav-link .ic {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: 0 0 auto;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.nav-link.active {
    background: rgba(37, 99, 235, .22);
    color: #fff;
    border-left-color: var(--brand-2);
}

.nav-link.active .ic {
    background: var(--brand);
}

.nav-link[data-hidden="1"] {
    display: none;
}

.nav-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    color: #7284a8;
}

.menu-toggle {
    display: none;
}

/* ---------- Content ---------- */
.content {
    min-width: 0;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 26px 70px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 240px at 8% -20%, rgba(255, 255, 255, .16), transparent),
        radial-gradient(700px 260px at 100% -10%, rgba(6, 182, 212, .35), transparent),
        linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0891b2);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 30px 26px;
    box-shadow: var(--shadow);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.hero p.lead {
    margin: 0;
    color: #dfeaff;
    line-height: 1.6;
    font-size: 15px;
    max-width: 640px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    padding: 4px;
    flex: 0 0 auto;
}

.lang-link {
    text-decoration: none;
    color: #eaf2ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 6px 13px;
    border-radius: 999px;
}

.lang-link:hover {
    background: rgba(255, 255, 255, .14);
}

.lang-link.active {
    background: #fff;
    color: #1d4ed8;
}

.hero-badges {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #eef4ff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.hero-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-light {
    background: #fff;
    color: #1d4ed8;
}

.btn-light:hover {
    background: #eaf1ff;
}

.btn-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .2);
}

/* ---------- What's new ---------- */
.whatsnew {
    margin-top: 22px;
}

.whatsnew-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.whatsnew-head h2 {
    margin: 0;
    font-size: 20px;
}

.new-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.new-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease;
}

.new-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.new-card .icon-badge {
    align-self: flex-start;
}

.new-card h4 {
    margin: 0;
    font-size: 14.5px;
}

.new-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.new-card .goto {
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
}

.icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--info-bg);
}

.icon-badge.blue {
    background: #eff6ff;
}

.icon-badge.cyan {
    background: #ecfeff;
}

.icon-badge.green {
    background: #ecfdf5;
}

.icon-badge.amber {
    background: #fffbeb;
}

.icon-badge.purple {
    background: #f5f3ff;
}

.icon-badge.pink {
    background: #fdf2f8;
}

.icon-badge.red {
    background: #fef2f2;
}

/* ---------- Sections ---------- */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-top: 18px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-head .icon-badge {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.section-head h2 {
    margin: 0;
    font-size: 21px;
    color: #0f172a;
}

.section-head .kicker {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.section h3 {
    margin: 20px 0 8px;
    font-size: 15.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section p {
    margin: 0 0 10px;
    line-height: 1.65;
    color: #3a445c;
    font-size: 14.5px;
}

ul.list {
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

ul.list li {
    position: relative;
    margin: 8px 0;
    padding-left: 22px;
    line-height: 1.6;
    color: #3a445c;
    font-size: 14.5px;
}

ul.list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 7px;
    vertical-align: middle;
    text-transform: uppercase;
}

.pill.new {
    background: #dcfce7;
    color: #15803d;
}

.pill.fix {
    background: #fee2e2;
    color: #b91c1c;
}

.pill.upd {
    background: #dbeafe;
    color: #1d4ed8;
}

.grid2 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: var(--surface-2);
}

.mini h4 {
    margin: 0 0 8px;
    font-size: 14.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 10px 0;
    font-size: 13.8px;
    line-height: 1.55;
}

.callout .ic {
    font-size: 16px;
    margin-top: 1px;
}

.callout.info {
    background: var(--info-bg);
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
}

.callout.success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.callout.warn {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}

.callout.danger {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.callout strong {
    font-weight: 700;
}

table.tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13.5px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

table.tbl th,
table.tbl td {
    border: 1px solid var(--border);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

table.tbl th {
    background: var(--surface-2);
    color: #0f172a;
    font-weight: 700;
}

table.tbl tr:nth-child(even) td {
    background: #fafbfe;
}

.table-wrap {
    overflow-x: auto;
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 4px 40px;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: #3a445c;
    line-height: 1.55;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
}

.footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 12.5px;
    text-align: center;
    padding-bottom: 10px;
}

.footer-credit {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.footer-credit a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -6px rgba(37, 99, 235, .55);
    text-decoration: none;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 40;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-top:hover {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 82%;
        max-width: 320px;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 20px 0 60px rgba(0, 0, 0, .35);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 50;
        background: #0b1224;
        color: #fff;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .menu-toggle button {
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        color: #fff;
        border-radius: 8px;
        padding: 7px 10px;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
    }

    .scrim {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, .5);
        z-index: 55;
    }

    .scrim.show {
        display: block;
    }
}

@media (max-width: 720px) {
    .new-grid {
        grid-template-columns: 1fr;
    }

    .grid2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 23px;
    }

    .content-inner {
        padding: 20px 14px 60px;
    }

    .section {
        padding: 18px;
    }
}