:root{
    color-scheme:dark;
    --page:#0b1424;
    --panel:#1c2a3d;
    --panel-deep:#101a2a;
    --line:#34465d;
    --text:#f8fafc;
    --muted:#aebdd0;
    --teal:#2dd4bf;
    --teal-soft:#99f6e4;
    --amber:#fbbf24;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at 50% -10%,rgba(45,212,191,.11),transparent 34rem),
        linear-gradient(180deg,#0d1728 0%,var(--page) 100%);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    line-height:1.5;
}

.tools-container{
    width:min(100% - 36px,1140px);
    margin:0 auto;
    padding:16px 0 24px;
}

.topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding-bottom:11px;
    border-bottom:1px solid var(--line);
}

.brand-logo{
    display:block;
    width:230px;
    max-width:56vw;
    height:auto;
}

.page-label,.section-kicker{
    color:var(--teal-soft);
    font-size:10px;
    font-weight:800;
    letter-spacing:1.2px;
    text-transform:uppercase;
}

.tools-nav{
    display:flex;
    align-items:center;
    gap:14px;
}

.tools-nav a{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:0 13px;
    border:1px solid rgba(45,212,191,.42);
    border-radius:8px;
    background:rgba(20,184,166,.08);
    color:var(--teal-soft);
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.tools-nav a:visited{color:var(--teal-soft)}
.tools-nav a:hover{background:rgba(20,184,166,.16)}

.hero{padding:36px 0 30px}

.eyebrow{
    display:inline-flex;
    margin-bottom:14px;
    padding:6px 10px;
    border:1px solid rgba(45,212,191,.38);
    border-radius:999px;
    background:rgba(20,184,166,.08);
    color:var(--teal-soft);
    font-size:10px;
    font-weight:800;
    letter-spacing:1.15px;
    text-transform:uppercase;
}

.hero h1{
    max-width:720px;
    margin:0;
    font-size:clamp(28px,4vw,36px);
    line-height:1.08;
    letter-spacing:-.8px;
}

.hero p{
    max-width:720px;
    margin:14px 0 0;
    color:var(--muted);
    font-size:17px;
    line-height:1.65;
}

.catalog-section{margin-top:12px}
.protected-section{margin-top:48px}

.section-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:14px;
}

.section-kicker{margin:0 0 5px}

.section-heading h2{
    margin:0;
    font-size:28px;
    letter-spacing:-.65px;
}

.section-heading>p{
    margin:0;
    color:#869ab1;
    font-size:11px;
}

.tools-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:16px;
}

.tool-card{
    display:flex;
    min-width:0;
    overflow:hidden;
    flex-direction:column;
    border:1px solid var(--line);
    border-radius:15px;
    background:linear-gradient(145deg,var(--panel),#18263a);
    box-shadow:0 18px 44px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.035);
}

.tool-artwork{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1731/909;
    border-bottom:1px solid var(--line);
    background:var(--panel-deep);
    object-fit:cover;
}

.tool-artwork-framed{
    width:calc(100% + 20px);
    max-width:none;
    margin:-10px -10px 0;
}

.tool-card-main{padding:22px}

.tool-icon{
    display:grid;
    width:48px;
    height:48px;
    margin-bottom:15px;
    place-items:center;
    border:1px solid rgba(45,212,191,.42);
    border-radius:10px;
    background:rgba(20,184,166,.09);
    color:var(--teal-soft);
    font-family:Consolas,"Courier New",monospace;
    font-size:15px;
    font-weight:800;
}

.tool-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:9px;
}

.tool-tags span{
    padding:3px 7px;
    border:1px solid #43556c;
    border-radius:999px;
    color:#c3d2e1;
    font-size:8px;
    font-weight:800;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.tool-card h3{
    margin:0;
    font-size:23px;
    line-height:1.2;
    letter-spacing:-.5px;
}

.tool-description{
    min-height:64px;
    margin:8px 0 15px;
    color:var(--muted);
    font-size:12px;
    line-height:1.65;
}

.tool-credit{
    display:flex;
    flex-wrap:wrap;
    gap:6px 14px;
    margin:-6px 0 15px;
    color:#9fb0c3;
    font-size:10px;
    line-height:1.5;
}

.tool-credit a{
    color:var(--teal-soft);
    font-weight:800;
    text-decoration:none;
}

.tool-credit a:hover{text-decoration:underline}

.highlights{
    margin:0;
    padding:0;
    list-style:none;
}

.highlights li{
    position:relative;
    margin-top:7px;
    padding-left:13px;
    color:#9fb0c3;
    font-size:10px;
    line-height:1.5;
}

.highlights li::before{
    position:absolute;
    top:.65em;
    left:0;
    width:4px;
    height:4px;
    border-radius:50%;
    background:var(--teal);
    content:"";
}

.tool-details{border-top:1px solid var(--line)}

.tool-details summary{
    padding:13px 22px;
    color:#b9c9d9;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
    list-style-position:inside;
}

.tool-details summary:hover{color:var(--teal-soft)}

.tool-details summary:focus-visible{
    outline:2px solid var(--teal);
    outline-offset:-4px;
}

.details-body{
    display:grid;
    gap:13px;
    padding:4px 22px 18px;
}

.details-body h4{
    margin:0 0 3px;
    color:var(--teal-soft);
    font-size:9px;
    letter-spacing:.55px;
    text-transform:uppercase;
}

.details-body p{
    margin:0;
    color:#9fb0c3;
    font-size:10px;
    line-height:1.55;
}

.checksum code{
    display:block;
    overflow-wrap:anywhere;
    color:#c7d4e2;
    font-family:Consolas,"Courier New",monospace;
    font-size:9px;
}

.tool-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:auto;
    padding:15px 22px;
    border-top:1px solid var(--line);
    background:rgba(7,16,28,.26);
}

.file-name{
    min-width:0;
    overflow:hidden;
    color:#8397ac;
    font-family:Consolas,"Courier New",monospace;
    font-size:9px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.download-button{
    display:inline-flex;
    min-height:40px;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 14px;
    border:1px solid #14b8a6;
    border-radius:8px;
    background:rgba(20,184,166,.13);
    color:var(--teal-soft);
    font-size:10px;
    font-weight:800;
    text-decoration:none;
    transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.download-button:hover{
    transform:translateY(-1px);
    border-color:var(--teal);
    background:rgba(20,184,166,.22);
}

.download-button:focus-visible{
    outline:2px solid var(--teal);
    outline-offset:3px;
}

.download-button span{font-size:16px}

.tool-actions{
    display:flex;
    flex:0 0 auto;
    gap:9px;
}

.request-pin-button{font-family:inherit;cursor:pointer}

.download-disabled{
    border-color:#4a5869;
    background:rgba(148,163,184,.06);
    color:#8999aa;
}

.protected-card .tool-icon{
    border-color:rgba(251,191,36,.42);
    background:rgba(251,191,36,.08);
    color:#fde68a;
}

.request-status{
    margin-bottom:16px;
    padding:12px 14px;
    border:1px solid #14b8a6;
    border-radius:9px;
    background:rgba(20,184,166,.12);
    color:var(--teal-soft);
    font-size:12px;
    font-weight:700;
    transition:opacity .35s ease,transform .35s ease;
}

.request-status-hiding{opacity:0;transform:translateY(-6px)}

.request-status-error{
    border-color:#ef4444;
    background:rgba(239,68,68,.12);
    color:#fecaca;
}

.request-pin-dialog{
    width:min(100% - 28px,520px);
    padding:0;
    border:1px solid var(--line);
    border-radius:15px;
    background:linear-gradient(145deg,var(--panel),#18263a);
    color:var(--text);
    box-shadow:0 24px 70px rgba(0,0,0,.6);
}

.request-pin-dialog::backdrop{
    background:rgba(3,9,18,.78);
    backdrop-filter:blur(3px);
}

.request-pin-dialog form{display:grid;gap:14px;padding:24px}

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

.dialog-heading h2{margin:2px 0 0;font-size:25px}

.dialog-close{
    width:38px;
    height:38px;
    padding:0;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--panel-deep);
    color:var(--text);
    font-size:25px;
    line-height:1;
    cursor:pointer;
}

.request-tool{
    margin:0;
    color:var(--teal-soft);
    font-size:11px;
    font-weight:800;
}

.request-pin-dialog label{
    display:grid;
    gap:6px;
    color:#dbe7f3;
    font-size:11px;
    font-weight:800;
}

.request-pin-dialog input,
.request-pin-dialog textarea{
    width:100%;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--panel-deep);
    color:var(--text);
    font:inherit;
}

.request-pin-dialog input{min-height:44px}
.request-pin-dialog textarea{min-height:120px;resize:vertical}
.request-pin-dialog input:focus,
.request-pin-dialog textarea:focus{outline:2px solid var(--teal);outline-offset:1px}
.request-pin-dialog .request-submit{width:100%;cursor:pointer}
.request-honeypot{position:absolute!important;left:-10000px!important}

.footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:42px;
    padding-top:18px;
    border-top:1px solid var(--line);
    color:#7f92a9;
    font-size:10px;
}

@media(min-width:1100px){
    .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
    .tools-grid{grid-template-columns:1fr}
    .tool-description{min-height:0}
}

@media(max-width:600px){
    .tools-container{width:min(100% - 24px,1140px)}
    .hero{padding:38px 0 30px}
    .hero h1{letter-spacing:-1.4px}
    .hero p{font-size:15px}
    .section-heading{align-items:flex-start;flex-direction:column;gap:5px}
    .tool-footer{align-items:stretch;flex-direction:column}
    .file-name{white-space:normal}
    .tool-actions{display:grid;grid-template-columns:1fr 1fr}
    .download-button{width:100%}
    .download-button,.tool-details summary,.tools-nav a{min-height:44px}
    .tool-details a{display:inline-flex;min-height:44px;align-items:center}
    .footer{align-items:flex-start;flex-direction:column}
}

@media(max-width:420px){
    .tool-actions{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
    .download-button{transition:none}
}

.unlock-shell{
    width:min(100% - 28px,520px);
    margin:0 auto;
    padding:48px 0;
}

.back-link{
    display:inline-block;
    margin-bottom:18px;
    color:var(--teal-soft);
    font-size:12px;
    font-weight:700;
    text-decoration:none;
}

.unlock-card{
    padding:28px;
    border:1px solid var(--line);
    border-radius:15px;
    background:linear-gradient(145deg,var(--panel),#18263a);
    box-shadow:0 18px 44px rgba(0,0,0,.25);
}

.unlock-card h1{margin:5px 0 10px;font-size:30px}
.unlock-card>p:not(.section-kicker){color:var(--muted);font-size:13px}
.unlock-card form{display:grid;gap:10px;margin-top:22px}
.unlock-card label{font-size:11px;font-weight:800}
.unlock-card input{
    min-height:46px;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--panel-deep);
    color:var(--text);
    font-size:18px;
    letter-spacing:3px;
}
.unlock-card button{width:100%;cursor:pointer}
.form-error{
    margin-top:16px;
    padding:11px 12px;
    border:1px solid rgba(251,191,36,.45);
    border-radius:8px;
    background:rgba(251,191,36,.08);
    color:#fde68a;
    font-size:12px;
}
