/* Homepage editorial cards */
.home-blog-section { position: relative; overflow: hidden; }
.home-blog-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    left: -180px;
    top: 20px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(97,54,255,.10),transparent 68%);
}
.home-blog-section .section-head { margin-bottom: 34px; }
.home-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(60,37,139,.07);
    transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.home-blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-2);
    box-shadow: 0 22px 52px rgba(60,37,139,.13);
}
.home-blog-card .article-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg,var(--surface-soft),#fff);
}
.home-blog-card .article-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(transparent,rgba(20,13,46,.18));
    pointer-events: none;
}
.home-blog-card .article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.home-blog-card:hover .article-cover img { transform: scale(1.035); }
.home-blog-card .article-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--primary); }
.home-blog-card .article-placeholder svg { width: 52px; }
.home-blog-card .article-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.home-blog-card .article-meta { justify-content: flex-start; gap: 8px; }
.home-blog-card .article-meta span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 10px;
}
.home-blog-card h3 { margin: 13px 0 20px; font-size: 18px; line-height: 1.75; }
.home-blog-card h3 a { color: var(--ink); font-size: inherit; }
.home-blog-card h3 a:hover { color: var(--primary); }
.home-blog-card .article-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}
.home-blog-card .article-more span { transition: transform .2s ease; }
.home-blog-card .article-more:hover span { transform: translateX(-3px); }
@media (max-width: 980px) {
    .home-blog-section .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-blog-section .home-blog-card:last-child { grid-column: 1 / -1; width: min(50%,380px); justify-self: center; }
}
@media (max-width: 620px) {
    .home-blog-section .article-grid { grid-template-columns: 1fr; }
    .home-blog-section .home-blog-card:last-child { grid-column: auto; width: 100%; }
}

/* Blog archive */
.blog-hero { padding: 74px 0 62px; background: linear-gradient(145deg,rgba(97,54,255,.11),rgba(0,200,150,.055)); border-bottom: 1px solid var(--border); }
.blog-hero .container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.blog-hero h1 { margin-bottom: 12px; font-size: clamp(40px,5vw,66px); line-height: 1.25; }
.blog-hero p { max-width: 650px; margin: 0; color: var(--ink-2); font-size: 16px; }
.blog-archive-section { padding-top: 56px; }
.blog-category-nav { display: flex; gap: 8px; overflow: auto; padding-bottom: 14px; margin-bottom: 25px; scrollbar-width: thin; }
.blog-category-nav a { flex: none; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 800; }
.blog-category-nav a:hover,.blog-category-nav a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.blog-archive-card { display: flex; flex-direction: column; min-width: 0; }
.blog-archive-card .article-cover { aspect-ratio: 1/1; overflow: hidden; }
.blog-archive-card .article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-archive-card:hover .article-cover img { transform: scale(1.035); }
.blog-archive-card .article-placeholder { display: grid; width: 100%; height: 100%; place-items: center; }
.blog-archive-card .article-body { display: flex; flex: 1; flex-direction: column; }
.blog-archive-card .article-category { align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: rgba(0,200,150,.12); color: var(--success); font-size: 10px; }
.blog-archive-card h2 { font-size: 18px; }
.blog-archive-card h2 a { color: var(--ink); font-size: inherit; }
.blog-archive-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
.article-card-foot a { margin-right: auto; }
.blog-pagination ul { display: flex; justify-content: center; gap: 7px; padding: 0; margin: 38px 0 0; list-style: none; }
.blog-pagination a,.blog-pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.blog-pagination .current { border-color: var(--primary); background: var(--primary); color: #fff; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 7px; margin-top: 38px; }
.blog-pagination .nav-links a,.blog-pagination .nav-links span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.blog-pagination .nav-links .current { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Author and comments */
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; margin-top: 38px; padding: 22px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface-soft); }
.author-box img { border-radius: 50%; }
.author-box span { color: var(--success); font-size: 10px; font-weight: 900; }
.author-box h2 { margin: 2px 0 5px; font-size: 19px; }
.author-box p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.author-box a { color: var(--primary); font-size: 11px; font-weight: 800; }
.post-meta a { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--primary); font-size: 11px; }
.comments-area { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--border); }
.comments-head span { color: var(--success); font-size: 10px; font-weight: 900; }
.comments-head h2,.comment-reply-title { font-size: 23px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .comment { margin: 12px 0; padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.comment-list .children { list-style: none; }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 5px 61px 10px 0; color: var(--muted); font-size: 10px; }
.comment-content { font-size: 13px; }
.comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.comment-form-comment,.comment-notes,.comment-form-cookies-consent,.form-submit,.logged-in-as { grid-column: 1/-1; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; }
.comment-form input:not([type=checkbox]),.comment-form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); color: var(--ink); }
.comment-form textarea { min-height: 130px; resize: vertical; }
@media(max-width:780px){.blog-hero .container{grid-template-columns:1fr}}
@media(max-width:620px){.author-box{grid-template-columns:62px 1fr;padding:16px}.author-box img{width:62px;height:62px}.comment-form{grid-template-columns:1fr}.comment-form>*{grid-column:1!important}}
@media (prefers-reduced-motion: reduce) {
    .home-blog-card,.home-blog-card .article-cover img,.home-blog-card .article-more span { transition: none; }
}

/* Single post */
.single-post-section { padding-top: 54px; background: linear-gradient(180deg,rgba(97,54,255,.045),transparent 360px); }
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 28px; align-items: start; }
.post-article { min-width: 0; padding: 34px; background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 18px 55px rgba(60,37,139,.08); }
.post-header { padding-bottom: 24px; }
.post-category { display: inline-flex; padding: 5px 11px; margin-bottom: 13px; border-radius: 999px; background: rgba(0,200,150,.12); color: var(--success); font-size: 11px; font-weight: 900; }
.post-header h1 { margin-bottom: 18px; font-size: clamp(30px,4.2vw,50px); line-height: 1.45; letter-spacing: -1px; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.post-meta span { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.post-featured { overflow: hidden; margin: 0 0 30px; border-radius: 22px; background: var(--surface-soft); }
.post-featured img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.post-body { color: var(--ink-2); font-size: 16px; line-height: 2.05; }
.post-body > :first-child { margin-top: 0; }
.post-body h2,.post-body h3,.post-body h4 { color: var(--ink); line-height: 1.55; scroll-margin-top: 100px; }
.post-body h2 { margin: 44px 0 15px; padding-right: 14px; border-right: 4px solid var(--primary); font-size: 28px; }
.post-body h3 { margin: 32px 0 12px; font-size: 22px; }
.post-body p { margin-bottom: 20px; }
.post-body img { max-width: 100%; height: auto; border-radius: 16px; }
.post-body a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 28px 0; padding: 20px 24px; border: 0; border-right: 4px solid var(--signal); border-radius: 16px; background: var(--surface-soft); color: var(--ink-2); }
.post-body ul,.post-body ol { padding-right: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body table { display: block; overflow: auto; max-width: 100%; border-collapse: collapse; }
.post-body th,.post-body td { padding: 10px 12px; border: 1px solid var(--border); }
.post-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-navigation a { display: flex; height: 100%; flex-direction: column; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.post-navigation a:hover { border-color: var(--primary); background: var(--surface-soft); }
.post-navigation small { color: var(--muted); font-size: 10px; }
.post-navigation strong { margin-top: 4px; font-size: 12px; line-height: 1.7; }
.post-sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.post-sidebar > section { padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(60,37,139,.07); }
.post-sidebar h2 { margin-bottom: 15px; font-size: 18px; }
.sidebar-cta { overflow: hidden; background: linear-gradient(145deg,#211548,#4f1fe8) !important; color: #fff; }
.sidebar-cta > span { color: #75e5c4; font-size: 11px; font-weight: 800; }
.sidebar-cta h2 { margin: 7px 0 18px; color: #fff; line-height: 1.65; }
.sidebar-cta .btn { width: 100%; background: var(--signal); color: #062c23; box-shadow: none; }
.sidebar-posts { display: grid; gap: 12px; }
.sidebar-posts > a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.sidebar-posts img,.sidebar-post-placeholder { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 11px; background: var(--surface-soft); }
.sidebar-posts strong { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sidebar-posts small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.sidebar-categories { display: grid; }
.sidebar-categories a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--ink-2); font-size: 12px; }
.sidebar-categories a:last-child { border: 0; }
.sidebar-categories b { min-width: 25px; padding: 2px 7px; border-radius: 999px; background: var(--surface-soft); color: var(--primary); text-align: center; }
@media (max-width: 980px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .post-sidebar .sidebar-cta { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .single-post-section { padding-top: 30px; }
    .post-article { padding: 20px 17px; border-radius: 20px; }
    .post-header h1 { font-size: 29px; }
    .post-body { font-size: 15px; }
    .post-body h2 { font-size: 23px; }
    .post-navigation,.post-sidebar { grid-template-columns: 1fr; }
    .post-sidebar .sidebar-cta { grid-column: auto; }
}

/* ===== Install/download guide page ===== */
.guide-video-section{padding-top:0}
.guide-video-wrap{max-width:900px;margin:0 auto;border-radius:28px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow);background:#000}
.guide-video-wrap video{display:block;width:100%;aspect-ratio:16/9;background:#000}
.guide-download-section{padding-top:0}
.guide-download-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.guide-download-card{padding:34px;border-radius:var(--radius);background:var(--surface-soft);border:1px solid var(--border);display:flex;flex-direction:column}
.guide-download-card h2{font-size:22px;margin-bottom:10px}
.guide-card-desc{color:var(--ink-2);font-size:14px;margin-bottom:20px}
.guide-feature-list{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:11px;flex:1}
.guide-feature-list li{position:relative;padding-right:26px;font-size:14px;color:var(--ink-2)}
.guide-feature-list li::before{content:"";position:absolute;right:0;top:7px;width:11px;height:6px;border:solid var(--success);border-width:0 0 2px 2px;transform:rotate(-45deg)}
.guide-download-btn{width:100%}
.guide-secure-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.guide-secure-card{padding:34px;border-radius:var(--radius);background:rgb(224,244,251);border:1px solid rgba(14,116,144,.18)}
.guide-secure-card h2{font-size:21px;margin-bottom:10px;color:#0c4a6e}
.guide-secure-card>p{color:#155e75;font-size:14px;margin-bottom:20px}
.guide-btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.guide-btn-row .btn{flex:1;min-width:150px}
.guide-divider{border:0;border-top:1px solid rgba(14,116,144,.25);margin:24px 0}
.guide-steps-card{padding:34px;border-radius:var(--radius);background:rgb(255,243,229);border:1px solid rgba(180,110,20,.18)}
.guide-steps-card h2{font-size:21px;margin-bottom:18px;color:#7c3d0a}
.guide-steps-content{color:#78350f;font-size:14px;line-height:2}
.guide-steps-content ol{margin:0;padding-inline-start:22px}
.guide-steps-content li{margin-bottom:12px}
.guide-steps-content code{background:rgba(120,53,15,.09);padding:2px 7px;border-radius:6px;font-size:13px;direction:ltr;display:inline-block}
@media(max-width:860px){.guide-download-grid,.guide-secure-grid{grid-template-columns:1fr}}
