/* =========================================================
   SOFTWARE WORLD V2
   Catalogue + product command surface.
   ========================================================= */

.swv2-head{
    display:grid;
    grid-template-columns:1fr minmax(300px,.68fr);
    gap:42px;
    align-items:end;
    margin-bottom:20px;
}
.swv2-head span{
    color:rgb(var(--world-accent)/.88);
    font:700 .43rem/1 monospace;
    letter-spacing:.1em;
}
.swv2-head h2{
    margin:10px 0 0;
    font-size:clamp(2.2rem,4vw,4.4rem);
    line-height:.92;
    letter-spacing:-.055em;
}
.swv2-head p{
    margin:0;
    color:var(--ws-muted);
    font-size:.61rem;
    line-height:1.68;
}

.swv2-policy{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    margin-bottom:10px;
}
.swv2-policy-card{
    min-height:122px;
    padding:12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:19px;
    background:
        radial-gradient(circle at 0 0,rgb(var(--world-accent)/.055),transparent 40%),
        rgba(255,255,255,.012);
}
.swv2-policy-card span{
    color:var(--ws-dim);
    font:700 .34rem/1 monospace;
    letter-spacing:.06em;
}
.swv2-policy-card strong{
    display:block;
    margin-top:13px;
    color:#fff;
    font-size:.78rem;
}
.swv2-policy-card small{
    display:block;
    margin-top:5px;
    color:rgba(255,255,255,.32);
    font-size:.42rem;
    line-height:1.42;
}

.swv2-toolbar{
    margin-bottom:10px;
    padding:9px;
    display:grid;
    grid-template-columns:minmax(240px,1fr) auto auto;
    gap:8px;
    align-items:center;
    border:1px solid rgba(255,255,255,.075);
    border-radius:20px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008)),
        rgba(9,20,31,.62);
}
.swv2-search{
    min-height:42px;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:999px;
    background:rgba(255,255,255,.015);
}
.swv2-search i{
    color:rgb(var(--world-accent)/.72);
    font-style:normal;
}
.swv2-search input{
    width:100%;
    border:0;
    outline:0;
    color:#fff;
    background:transparent;
    font-size:.54rem;
}
.swv2-search input::placeholder{color:rgba(255,255,255,.24)}

.swv2-filters{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.swv2-filter,
.swv2-sort{
    min-height:34px;
    padding:0 10px;
    border:1px solid rgba(255,255,255,.065);
    border-radius:999px;
    color:rgba(255,255,255,.36);
    background:rgba(255,255,255,.012);
    cursor:pointer;
    font:700 .35rem/1 monospace;
    letter-spacing:.05em;
}
.swv2-filter:hover,
.swv2-filter.is-active,
.swv2-sort:hover{
    color:#fff;
    border-color:rgb(var(--world-accent)/.22);
    background:rgb(var(--world-accent)/.045);
}

.swv2-layout{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
    gap:10px;
    align-items:start;
}

.swv2-catalogue,
.swv2-inspector{
    border:1px solid rgba(255,255,255,.085);
    border-radius:28px;
    background:
        radial-gradient(circle at 10% 10%,rgb(var(--world-accent)/.06),transparent 36%),
        linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.01)),
        rgba(10,22,34,.72);
    box-shadow:
        0 24px 66px rgba(0,0,0,.13),
        inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter:blur(20px) saturate(160%);
}

.swv2-catalogue{
    padding:12px;
}
.swv2-catalogue-head{
    padding:4px 4px 12px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}
.swv2-catalogue-head span{
    color:rgb(var(--world-accent)/.70);
    font:700 .38rem/1 monospace;
    letter-spacing:.07em;
}
.swv2-catalogue-head small{
    color:var(--ws-dim);
    font:650 .34rem/1 monospace;
}
.swv2-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
}
.swv2-card{
    min-height:154px;
    padding:12px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    border:1px solid rgba(255,255,255,.06);
    border-radius:18px;
    color:inherit;
    background:
        radial-gradient(circle at 0 0,rgb(var(--world-accent)/.045),transparent 42%),
        rgba(255,255,255,.01);
    text-align:left;
    cursor:pointer;
    transition:
        transform .18s var(--ws-ease),
        border-color .18s ease,
        background .18s ease;
}
.swv2-card:hover,
.swv2-card.is-active{
    transform:translateY(-2px);
    border-color:rgb(var(--world-accent)/.22);
    background:
        linear-gradient(135deg,rgb(var(--world-accent)/.045),rgb(var(--world-accent-2)/.02));
}
.swv2-card span{
    color:rgb(var(--world-accent)/.56);
    font:700 .34rem/1 monospace;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.swv2-card strong{
    display:block;
    margin-top:12px;
    color:#fff;
    font-size:.67rem;
    line-height:1.28;
}
.swv2-card footer{
    margin-top:14px;
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
}
.swv2-card small{
    color:rgba(255,255,255,.28);
    font-size:.38rem;
}
.swv2-card i{
    width:27px;
    height:27px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.07);
    border-radius:50%;
    color:rgb(var(--world-accent)/.68);
    background:rgba(255,255,255,.01);
    font-style:normal;
}

.swv2-inspector{
    position:sticky;
    top:112px;
    padding:18px;
    min-height:560px;
}
.swv2-inspector>span{
    color:rgb(var(--world-accent)/.72);
    font:700 .39rem/1 monospace;
    letter-spacing:.075em;
}
.swv2-inspector h3{
    margin:12px 0 8px;
    color:#fff;
    font-size:clamp(2rem,3.4vw,3.6rem);
    line-height:.9;
    letter-spacing:-.057em;
}
.swv2-inspector>p{
    margin:0;
    color:rgba(255,255,255,.45);
    font-size:.55rem;
    line-height:1.62;
}
.swv2-inspector-facts{
    margin-top:14px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
}
.swv2-fact{
    min-height:82px;
    padding:10px;
    border:1px solid rgba(255,255,255,.06);
    border-radius:15px;
    background:rgba(255,255,255,.01);
}
.swv2-fact span{
    display:block;
    color:var(--ws-dim);
    font:650 .34rem/1 monospace;
    letter-spacing:.06em;
}
.swv2-fact strong{
    display:block;
    margin-top:9px;
    color:#fff;
    font-size:.55rem;
    line-height:1.3;
}

.swv2-inspector-note{
    margin-top:10px;
    padding:12px;
    border:1px solid rgba(255,255,255,.055);
    border-radius:15px;
    color:rgba(255,255,255,.34);
    background:rgba(255,255,255,.01);
    font-size:.47rem;
    line-height:1.55;
}
.swv2-inspector-actions{
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.swv2-action{
    min-height:40px;
    padding:0 13px;
    display:inline-flex;
    align-items:center;
    border:1px solid rgba(255,255,255,.075);
    border-radius:999px;
    color:rgba(255,255,255,.58);
    background:rgba(255,255,255,.012);
    font:700 .4rem/1 monospace;
}
.swv2-action.primary{
    color:#071017;
    border-color:rgba(255,255,255,.18);
    background:
        linear-gradient(105deg,rgb(var(--world-accent)/.94),rgb(var(--world-accent-2)/.88));
}
.swv2-action:hover:not(.primary){
    color:#fff;
    border-color:rgb(var(--world-accent)/.23);
    background:rgb(var(--world-accent)/.04);
}

.swv2-category-summary{
    margin-top:12px;
    padding:15px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:24px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008)),
        rgba(9,20,31,.62);
}
.swv2-category-summary>span{
    color:rgb(var(--world-accent)/.68);
    font:700 .38rem/1 monospace;
    letter-spacing:.075em;
}
.swv2-category-grid{
    margin-top:10px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
}
.swv2-category{
    min-height:78px;
    padding:10px;
    border:1px solid rgba(255,255,255,.055);
    border-radius:15px;
    background:rgba(255,255,255,.01);
}
.swv2-category strong{
    display:block;
    color:#fff;
    font-size:.78rem;
}
.swv2-category span{
    display:block;
    margin-top:5px;
    color:rgba(255,255,255,.30);
    font-size:.38rem;
    text-transform:uppercase;
}

.swv2-empty{
    grid-column:1/-1;
    min-height:170px;
    display:grid;
    place-items:center;
    border:1px dashed rgba(255,255,255,.075);
    border-radius:18px;
    color:var(--ws-dim);
    font-size:.5rem;
}

@media(max-width:1150px){
    .swv2-head{grid-template-columns:1fr;gap:14px}
    .swv2-layout{grid-template-columns:1fr}
    .swv2-inspector{position:relative;top:auto;min-height:0}
    .swv2-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .swv2-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
    .swv2-policy{grid-template-columns:repeat(2,minmax(0,1fr))}
    .swv2-toolbar{grid-template-columns:1fr}
    .swv2-filters{justify-content:flex-start}
    .swv2-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .swv2-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
    .swv2-policy{grid-template-columns:1fr}
    .swv2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .swv2-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .swv2-catalogue,.swv2-inspector{border-radius:21px}
}
@media(max-width:470px){
    .swv2-grid{grid-template-columns:1fr}
    .swv2-category-grid{grid-template-columns:1fr}
}
