:root{
    --bg0:#070510;
    --bg1:#0b0714;
    --panel:rgba(255,255,255,0.06);
    --panel2:rgba(255,255,255,0.09);
    --text:rgba(255,255,255,0.92);
    --muted:rgba(255,255,255,0.68);
    --muted2:rgba(255,255,255,0.52);
    --stroke:rgba(255,255,255,0.10);

    --p1:#a855f7;
    --p2:#7c3aed;
    --p3:#c084fc;
    --a1:#22d3ee;

    --shadow: 0 20px 60px rgba(0,0,0,0.55);
    --shadow2: 0 14px 30px rgba(0,0,0,0.45);

    --radius: 20px;
    --radius2: 26px;

    --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color:var(--text);
    background:
    radial-gradient(1200px 700px at 15% -10%, rgba(168,85,247,0.25), transparent 60%),
    radial-gradient(1000px 700px at 90% 0%, rgba(34,211,238,0.16), transparent 55%),
    radial-gradient(900px 600px at 70% 105%, rgba(124,58,237,0.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #05040c);
    overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
button{font:inherit}

.container{
    width:min(var(--max), calc(100% - 48px));
    margin:0 auto;
}

.noise{
    pointer-events:none;
    position:fixed;
    inset:0;
    opacity:0.06;
    mix-blend-mode: overlay;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    background-size:220px 220px;
    z-index:1;
}

header{
    position:sticky;
    top:0;
    z-index:20;
    backdrop-filter: blur(14px);
    background: rgba(7,5,16,0.55);
    border-bottom:1px solid var(--stroke);
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    gap:16px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width: 220px;
}

.logo{
    width:34px;
    height:34px;
    border-radius:12px;
    background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(135deg, var(--p1), var(--p2));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 14px 30px rgba(124,58,237,0.22);
}

.brand strong{
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.navlinks{
    display:flex;
    align-items:center;
    gap:18px;
    justify-content:center;
    flex:1;
}

.navlinks a{
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    padding:8px 10px;
    border-radius: 12px;
    transition: background 180ms ease, color 180ms ease;
}

.navlinks a:hover{
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    min-width: 220px;
}

.chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    padding:8px 12px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    cursor:pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.16);
    color: var(--text);
}

.chip svg{width:16px;height:16px;opacity:0.9}

.hero{
    position:relative;
    padding: 56px 0 18px;
    z-index:2;
}

.heroGrid{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
}

.card{
    border:1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border-radius: var(--radius2);
    box-shadow: var(--shadow2);
    overflow:hidden;
    position:relative;
}

.card::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(800px 260px at 30% -10%, rgba(168,85,247,0.18), transparent 55%),
                radial-gradient(700px 250px at 90% 0%, rgba(34,211,238,0.14), transparent 55%);
    pointer-events:none;
    filter: blur(0px);
}

.heroMain{
    padding: 28px 28px 24px;
}

.kicker{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 8px 12px;
    border-radius: 999px;
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background: linear-gradient(180deg, var(--p3), var(--p1));
    box-shadow: 0 0 0 4px rgba(168,85,247,0.12);
}

h1{
    margin: 16px 0 10px;
    font-family: "Playfair Display", ui-serif, Georgia, serif;
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: 1.02;
    letter-spacing: 0.2px;
}

.sub{
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 62ch;
}

.heroBtns{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding: 11px 14px;
    border-radius: 14px;
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 700;
    cursor:pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    user-select:none;
}

.btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.btnPrimary{
    border-color: rgba(168,85,247,0.35);
    background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(124,58,237,0.9));
    box-shadow: 0 18px 55px rgba(124,58,237,0.24);
}

.btnPrimary:hover{
    background: linear-gradient(135deg, rgba(192,132,252,0.95), rgba(124,58,237,0.92));
    border-color: rgba(192,132,252,0.42);
}

.btn svg{width:18px;height:18px}

.heroSide{
    padding: 18px;
    display:flex;
    flex-direction:column;
    gap: 12px;
}

.stat{
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 14px 14px;
    position:relative;
    overflow:hidden;
}

.stat h3{
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--muted2);
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.stat p{
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.stat strong{
    color: var(--text);
    font-size: 22px;
    letter-spacing: 0.2px;
}

.statGlow{
    position:absolute;
    right:-40px;
    top:-40px;
    width:150px;
    height:150px;
    background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 60%);
    filter: blur(0px);
    pointer-events:none;
}

main{
    position:relative;
    z-index:2;
    padding: 14px 0 64px;
}

.toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    padding: 16px 0 12px;
}

.search{
    flex:1;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 10px 12px;
    min-width: 240px;
}

.search svg{width:18px;height:18px;color: var(--muted2)}
.search input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color: var(--text);
    font-size: 14px;
}
.search input::placeholder{color: rgba(255,255,255,0.42)}

.filters{
    display:flex;
    align-items:center;
    gap: 8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.pill{
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    padding: 9px 11px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor:pointer;
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
    user-select:none;
}

.pill:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.16);
    color: var(--text);
}

.pill.active{
    color: rgba(255,255,255,0.96);
    border-color: rgba(168,85,247,0.45);
    background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(124,58,237,0.22));
    box-shadow: 0 14px 32px rgba(124,58,237,0.14);
}

.grid{
    column-count: 3;
    column-gap: 16px;
    padding-top: 8px;
}

@media (max-width: 980px){
    .heroGrid{grid-template-columns:1fr; }
    .actions{min-width:auto}
    .brand{min-width:auto}
    .grid{column-count: 2;}
}

@media (max-width: 620px){
    .navlinks{display:none}
    .grid{column-count: 1;}
    .container{width:min(var(--max), calc(100% - 32px))}
    .heroMain{padding: 22px 20px 18px}
}

.tile{
    break-inside: avoid;
    margin: 0 0 16px;
    border-radius: var(--radius2);
    overflow:hidden;
    border:1px solid var(--stroke);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow2);
    cursor:pointer;
    position:relative;
    transform: translateZ(0);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tile:hover{
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.05);
}

.imgWrap{
    position:relative;
    overflow:hidden;
}

.imgWrap img{
    width:100%;
    height:auto;
    display:block;
    aspect-ratio: var(--ar, 4/5);
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
    transform: scale(1.02);
    transition: transform 300ms ease;
}

.tile:hover img{transform: scale(1.06)}

.meta{
    padding: 12px 12px 12px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.meta h4{
    margin:0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15px;
}

.meta p{
    margin:4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.tag{
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.86);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(168,85,247,0.20);
    border: 1px solid rgba(168,85,247,0.28);
    white-space:nowrap;
}

.tile::after{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(700px 240px at 20% -10%, rgba(168,85,247,0.14), transparent 55%);
    opacity:0;
    transition: opacity 200ms ease;
    pointer-events:none;
}

.tile:hover::after{opacity:1}

footer{
    padding: 28px 0 46px;
    color: var(--muted2);
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 34px;
    position:relative;
    z-index:2;
}

.foot{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
}

.foot strong{
    color: var(--text);
    font-family: "Playfair Display", ui-serif, Georgia, serif;
}

.foot a{
    color: var(--muted);
    font-weight: 700;
}

.foot a:hover{color: var(--text)}

dialog{
    border:0;
    padding:0;
    background: transparent;
    color: inherit;
    width: min(980px, calc(100% - 24px));
}

dialog::backdrop{
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

.lightbox{
    border:1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    box-shadow: var(--shadow);
    overflow:hidden;
    position:relative;
}

.lbTop{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    background: rgba(7,5,16,0.45);
    backdrop-filter: blur(12px);
}

.lbTitle{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding-left:6px;
    min-width: 0;
}

.lbTitle strong{
    font-size: 14px;
    letter-spacing: 0.2px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.lbTitle span{
    font-size: 12px;
    color: var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.lbBtns{
    display:flex;
    align-items:center;
    gap:8px;
}

.iconBtn{
    width:40px;
    height:40px;
    border-radius: 14px;
    border:1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.iconBtn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.iconBtn svg{width:18px;height:18px}

.lbBody{
    position:relative;
    background: rgba(0,0,0,0.25);
}

.lbBody img{
    width:100%;
    height:auto;
    display:block;
    max-height: 76vh;
    object-fit: contain;
    background: rgba(0,0,0,0.35);
}

.lbNav{
    position:absolute;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    pointer-events:none;
    padding: 14px;
}

.navBtn{
    pointer-events:auto;
    width:46px;
    height:46px;
    border-radius: 18px;
    border:1px solid rgba(255,255,255,0.14);
    background: rgba(7,5,16,0.55);
    backdrop-filter: blur(10px);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.navBtn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(168,85,247,0.35);
}

.navBtn svg{width:20px;height:20px}

.srOnly{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
