/* styles.css — Modern, accessible & responsive */
:root{
  --bg:#0b1220; --panel:#0f172a; --muted:#9aa4b2; --text:#e6eef8;
  --brand:#4f46e5; --accent:#06b6d4; --radius:14px; --container:1200px;
}
*{box-sizing:border-box}
html,body{height:100%; margin:0; font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; color:var(--text); -webkit-font-smoothing:antialiased}
a{color:var(--accent); text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:20px}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:18px}
.site-header{background:linear-gradient(180deg, rgba(15,23,42,.9), rgba(15,23,42,.7)); border-bottom:1px solid rgba(255,255,255,.03); position:sticky; top:0; z-index:40; padding:12px 0}
.brand{display:flex; gap:12px; align-items:center}
.logo{width:52px;height:52px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),var(--accent)); box-shadow:0 10px 30px rgba(2,6,23,.35); font-size:22px}
.site-title{margin:0; font-size:18px}
.site-sub{margin:0; font-size:12px; color:var(--muted)}
nav a{margin-left:12px; font-weight:600; color:var(--text)}
.hero{padding:28px 0}
.grid{display:grid; gap:18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top:8px}
.card{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border:1px solid rgba(255,255,255,.03); padding:18px; border-radius:12px; transition:transform .18s ease, box-shadow .18s ease; min-height:110px}
.card:hover{transform:translateY(-6px); box-shadow:0 16px 50px rgba(2,6,23,.45)}
.card h3{margin:0 0 6px}
.card p{margin:0; color:var(--muted); font-size:14px}
.site-footer{padding:28px 0; color:var(--muted); text-align:center}

/* Tool pages */
.tool-header{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:6px}
.btn{display:inline-block; padding:10px 14px; border-radius:10px; border:0; background:linear-gradient(135deg,var(--brand),var(--accent)); color:white; cursor:pointer; font-weight:700}
.dropzone{border:2px dashed rgba(255,255,255,.06); padding:18px; border-radius:12px; text-align:center; cursor:pointer; background:linear-gradient(180deg, rgba(255,255,255,.01), transparent)}
.helper{color:var(--muted); font-size:13px; margin-top:8px}
.preview-grid{display:grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:12px; margin-top:16px}
.preview{background:rgba(255,255,255,.02); padding:10px; border-radius:10px; text-align:center}
.progress{height:8px; background:rgba(255,255,255,.04); border-radius:999px; overflow:hidden; margin-top:12px}
.progress > i{display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--brand),var(--accent))}

/* small screens */
@media (max-width:720px){
  .header-inner{flex-direction:column; align-items:flex-start}
  nav{margin-top:8px}
}
