:root {
    --resource-ink: #080b12;
    --resource-panel: #101523;
    --resource-paper: #f4f5f9;
    --resource-violet: #806dff;
    --resource-cyan: #62d8ec;
    --resource-green: #79e2af;
}

.resources-page {
    background: var(--resource-paper);
}

.resource-shell {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.resource-header {
    position: relative;
    z-index: 20;
    height: 76px;
    color: #fff;
    background: var(--resource-ink);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.resource-header .brand-mark img,
.resource-footer .brand-mark img {
    filter: invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, .18));
}

.resource-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-nav nav {
    display: flex;
    gap: 38px;
    margin-left: auto;
    margin-right: 36px;
}

.resource-nav nav a {
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    text-decoration: none;
    transition: color 180ms ease;
}

.resource-nav nav a:hover,
.resource-nav nav a.is-current {
    color: #fff;
}

.resource-language {
    min-width: 54px;
    padding: 8px 12px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    cursor: pointer;
}

.resource-hero {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--resource-ink);
}

.resource-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.resource-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .16;
}

.resource-orb-violet { left: -170px; top: -120px; background: var(--resource-violet); }
.resource-orb-cyan { right: -150px; bottom: -260px; background: var(--resource-cyan); }

.resource-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr);
    gap: 88px;
    align-items: end;
    padding: 100px 0;
}

.resource-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: .2em;
}

.resource-kicker span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--resource-green);
    box-shadow: 0 0 0 7px rgba(121, 226, 175, .1), 0 0 20px rgba(121, 226, 175, .6);
}

.resource-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.06;
    letter-spacing: -.06em;
}

.resource-hero h1 em {
    color: #9ba3b7;
    font-style: normal;
    font-weight: 560;
}

.resource-hero-copy > p {
    margin: 0 0 38px;
    color: #aeb5c4;
    font-size: 17px;
    line-height: 1.85;
}

.resource-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.resource-stats div {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.resource-stats strong,
.resource-stats span {
    display: block;
}

.resource-stats strong { font-size: 17px; }
.resource-stats span { margin-top: 5px; color: #747d90; font-size: 11px; }

.resource-pillars,
.resource-library {
    padding: 118px 0;
}

.resource-section-heading {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: end;
    margin-bottom: 48px;
}

.resource-section-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.resource-index {
    color: var(--resource-violet);
    font-size: 13px;
    font-weight: 750;
}

.resource-section-heading p {
    margin: 0;
    color: #737b8b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.resource-section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -.045em;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pillar-card {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    color: var(--resource-ink);
    text-align: left;
    background: #fff;
    border: 1px solid rgba(8, 11, 18, .1);
    border-radius: 24px;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(128, 109, 255, .4);
    box-shadow: 0 24px 60px rgba(8, 11, 18, .1);
}

.pillar-number {
    position: absolute;
    top: 28px;
    right: 30px;
    color: #a1a7b2;
    font-size: 12px;
}

.pillar-signal {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 74px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 11px #fff;
}

.pillar-product .pillar-signal { color: var(--resource-violet); background: var(--resource-violet); }
.pillar-ai .pillar-signal { color: var(--resource-cyan); background: var(--resource-cyan); }
.pillar-skills .pillar-signal { color: var(--resource-green); background: var(--resource-green); }

.pillar-card strong,
.pillar-card small {
    display: block;
}

.pillar-card strong { font-size: 23px; letter-spacing: -.025em; }
.pillar-card small { max-width: 290px; margin-top: 10px; color: #6b7382; font-size: 14px; line-height: 1.65; }
.pillar-count { position: absolute; right: 30px; bottom: 28px; color: #89909e; font-size: 12px; }
.pillar-count b { color: var(--resource-ink); font-size: 16px; }
.pillar-count i { font-style: normal; }

.resource-library {
    background: #fff;
}

.library-head {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: end;
}

.resource-section-heading.compact {
    grid-template-columns: 150px 1fr;
    margin-bottom: 0;
}

.resource-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(8, 11, 18, .15);
    border-radius: 12px;
}

.resource-search:focus-within {
    border-color: var(--resource-violet);
    box-shadow: 0 0 0 4px rgba(128, 109, 255, .1);
}

.resource-search svg { width: 19px; color: #7b8291; }
.resource-search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; }

.resource-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 50px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(8, 11, 18, .1);
}

.resource-filter button {
    padding: 9px 15px;
    color: #687080;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.resource-filter button:hover,
.resource-filter button.is-active {
    color: #fff;
    background: var(--resource-ink);
}

[data-result-count] {
    margin: 0 0 20px;
    color: #7b8291;
    font-size: 13px;
}

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

.resource-card {
    min-width: 0;
    overflow: hidden;
    background: var(--resource-paper);
    border: 1px solid rgba(8, 11, 18, .09);
    border-radius: 20px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.resource-card:hover { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(8, 11, 18, .1); }
.resource-card a { display: flex; min-height: 100%; flex-direction: column; text-decoration: none; }

.resource-card-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2.35 / 1;
    height: auto;
    overflow: hidden;
    background: #111626;
}

.resource-card-cover img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.resource-card-abstract {
    display: grid;
    place-items: center;
    height: 196px;
    color: #fff;
    background-color: #111626;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

.resource-card-abstract span { width: 86px; height: 86px; border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 24px #111626; }
.resource-card[data-category="product"] .resource-card-abstract span { color: var(--resource-violet); background: var(--resource-violet); }
.resource-card[data-category="skills"] .resource-card-abstract span { color: var(--resource-green); background: var(--resource-green); }

.resource-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.resource-card-label { color: #737b8b; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.resource-card h3 { margin: 14px 0 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.resource-card p { margin: 0; color: #687080; font-size: 14px; line-height: 1.7; }
.resource-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 28px; color: #848b98; font-size: 11px; }

.resource-empty {
    padding: 70px 20px;
    color: #777f8e;
    text-align: center;
    border: 1px dashed rgba(8,11,18,.18);
    border-radius: 20px;
}
.resource-empty strong, .resource-empty span { display: block; }
.resource-empty strong { color: var(--resource-ink); font-size: 20px; }
.resource-empty span { margin-top: 8px; }

.resource-footer {
    padding: 46px 0;
    color: #fff;
    background: var(--resource-ink);
}

.resource-footer .resource-shell { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.resource-footer p { margin: 0; color: #8f98a9; }
.resource-footer > .resource-shell > span { color: #626b7c; font-size: 12px; }

.article-main {
    position: relative;
    min-height: 75vh;
    padding: 52px 0 110px;
    overflow: hidden;
    background: var(--resource-ink);
}

.article-main > .resource-grid-bg { height: 520px; }
.article-main > .resource-shell { position: relative; z-index: 2; }
.article-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 58px; color: #9da6b7; font-size: 13px; text-decoration: none; }
.article-back:hover { color: #fff; }

.article-hero { max-width: 960px; margin: 0 auto 54px; color: #fff; text-align: center; }
.article-category { display: inline-flex; padding: 7px 12px; color: var(--resource-cyan); font-size: 11px; font-weight: 750; letter-spacing: .12em; border: 1px solid rgba(98,216,236,.28); border-radius: 999px; }
.article-hero h1 { margin: 24px 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.08; letter-spacing: -.055em; }
.article-hero > p { max-width: 760px; margin: 0 auto; color: #aeb5c4; font-size: 18px; line-height: 1.8; }
.article-meta { display: flex; justify-content: center; gap: 18px; margin-top: 26px; color: #777f90; font-size: 12px; }
.article-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 22px; }
.article-tags span { padding: 5px 9px; color: #9da6b7; font-size: 11px; background: rgba(255,255,255,.05); border-radius: 6px; }

.article-edition,
.article-body {
    width: min(100%, 920px);
    margin-inline: auto;
    background: #fff;
}

.article-edition {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
    padding: 16px 22px;
    color: #5d6574;
    font-size: 13px;
    border-radius: 14px;
}

.article-edition button { padding: 7px 12px; color: #fff; white-space: nowrap; background: var(--resource-violet); border: 0; border-radius: 999px; cursor: pointer; }
.article-body { padding: 42px; border-radius: 22px; box-shadow: 0 35px 100px rgba(0,0,0,.26); }
.article-body img { max-width: 100% !important; height: auto !important; }
.article-body a { color: #5641d8; }
.article-body .english-edition { color: #273142; font-size: 17px; line-height: 1.85; }
.article-body .english-edition h2 { margin: 0 0 22px; font-size: 30px; letter-spacing: -.035em; }
.article-body .english-edition ul { margin: 30px 0 0; padding: 0; list-style: none; }
.article-body .english-edition li { position: relative; margin-top: 13px; padding: 18px 18px 18px 48px; background: #f3f4f8; border-radius: 12px; }
.article-body .english-edition li::before { content: ""; position: absolute; left: 19px; top: 26px; width: 10px; height: 10px; background: var(--resource-cyan); border-radius: 50%; }

.article-loading,
.article-error { min-height: 400px; display: grid; place-items: center; align-content: center; gap: 14px; color: #9ca5b6; text-align: center; }
.article-loading span { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--resource-cyan); border-radius: 50%; animation: resource-spin .8s linear infinite; }
.article-error strong { color: #fff; font-size: 30px; }
.article-error p { margin: 0; }
.article-error a { padding: 10px 18px; color: #fff; text-decoration: none; background: var(--resource-violet); border-radius: 999px; }
.article-footer a { color: var(--resource-cyan); text-decoration: none; }

@keyframes resource-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .resource-hero-layout { grid-template-columns: 1fr; gap: 46px; }
    .pillar-grid, .resource-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .library-head { grid-template-columns: 1fr; }
    .resource-search { max-width: 520px; }
}

@media (max-width: 700px) {
    .resource-shell { width: min(calc(100% - 32px), 1240px); }
    .resource-nav nav { display: none; }
    .resource-hero { min-height: 620px; }
    .resource-hero-layout { padding: 76px 0; }
    .resource-hero h1 { font-size: clamp(42px, 13vw, 60px); }
    .resource-stats { grid-template-columns: 1fr; }
    .resource-pillars, .resource-library { padding: 82px 0; }
    .resource-section-heading, .resource-section-heading.compact { grid-template-columns: 1fr; gap: 18px; }
    .pillar-grid, .resource-card-grid { grid-template-columns: 1fr; }
    .pillar-card { min-height: 260px; }
    .pillar-signal { margin-bottom: 46px; }
    .resource-card-cover { height: auto; }
    .resource-card-abstract { height: 210px; }
    .resource-footer .resource-shell { align-items: flex-start; flex-direction: column; }
    .article-main { padding-top: 34px; }
    .article-back { margin-bottom: 38px; }
    .article-hero { text-align: left; }
    .article-hero h1 { font-size: 40px; }
    .article-hero > p { font-size: 16px; }
    .article-meta, .article-tags { justify-content: flex-start; }
    .article-meta { flex-wrap: wrap; }
    .article-edition { align-items: flex-start; flex-direction: column; }
    .article-body { padding: 20px 14px; border-radius: 16px; }
}
