:root{
  --bg:#0b1220; --card:#101a2e; --card2:#0f1930; --border:#1e2a44;
  --text:#e7eefc; --muted:#a9b6d3; --brand:#4f8cff; --brand2:#8a63ff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background: radial-gradient(1200px 600px at 20% 10%, rgba(79,140,255,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(138,99,255,.18), transparent 60%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.wrap{ max-width: 1040px; margin: 0 auto; padding: 0 18px; }

.topbar{
  position: sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border-bottom: 1px solid rgba(30,42,68,.6);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 64px;
}
.brand{ display:flex; gap:10px; align-items:center; color:var(--text); text-decoration:none; }
.logo{
  width:34px; height:34px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius:10px; font-weight:800;
}
.brand-text{ font-weight:700; letter-spacing:.2px; }

.nav{ display:flex; gap:14px; align-items:center; }
.nav a{
  color: var(--muted); text-decoration:none; padding:8px 10px; border-radius:10px;
}
.nav a:hover{ color: var(--text); background: rgba(255,255,255,.05); }
.nav a.ghost{ border:1px solid rgba(255,255,255,.10); }

.hero{
  margin: 26px 0 18px;
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items: stretch;
}
.hero h1{ margin:0; font-size: 2.2rem; line-height:1.15; }
.lead{ color:var(--muted); margin: 10px 0 14px; max-width: 56ch; }
.cta-row{ display:flex; gap:10px; flex-wrap:wrap; }

.hero-card{
  background: rgba(16,26,46,.65);
  border:1px solid rgba(30,42,68,.7);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display:grid;
  gap: 12px;
}
.stat{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.stat-num{ font-weight:800; }
.stat-label{ color:var(--muted); font-size:.95rem; margin-top:4px; }

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

.toolcard{
  text-decoration:none; color:var(--text);
  background: rgba(16,26,46,.65);
  border:1px solid rgba(30,42,68,.75);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.toolcard:hover{ transform: translateY(-2px); border-color: rgba(79,140,255,.45); }
.toolcard.disabled{ opacity:.7; }
.toolcard-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; }
.toolicon{
  width:40px; height:40px; border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
}
.badge{
  font-size:.78rem; padding:6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
}
.badge.live{ background: rgba(79,140,255,.15); }
.badge.soon{ background: rgba(255,255,255,.06); color: var(--muted); }
.toolname{ font-weight:800; margin-bottom: 6px; }
.tooldesc{ color: var(--muted); font-size: .95rem; line-height: 1.35; }

.pagehead{ margin: 22px 0 14px; }
.pagehead h2{ margin:0 0 6px; }
.muted{ color: var(--muted); }
.small{ font-size:.9rem; }

.card{
  background: rgba(16,26,46,.65);
  border:1px solid rgba(30,42,68,.75);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.label{ display:block; margin-bottom: 8px; font-weight:700; }

.dropzone{
  position: relative;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.20);
  background: rgba(255,255,255,.03);
  padding: 18px;
  cursor: pointer;
}
.dropzone.dragover{
  border-color: rgba(79,140,255,.7);
  background: rgba(79,140,255,.08);
}
.dropzone .file{
  position:absolute; inset:0; opacity:0; width:100%; height:100%;
  cursor:pointer;
}
.droptext{ display:flex; flex-direction:column; gap:6px; }

.input{
  width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  color: var(--text);
}
.input:focus{ outline: none; border-color: rgba(79,140,255,.5); }

.row{ display:flex; gap:12px; align-items:center; margin-top: 14px; flex-wrap:wrap; }

.btn{
  appearance:none; border:0; cursor:pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff; font-weight:800;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
}
.btn.secondary{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.radio{ display:flex; gap:10px; align-items:center; margin: 8px 0; color: var(--text); }
.split-options{ margin-top: 10px; }

.footer{
  border-top: 1px solid rgba(30,42,68,.6);
  padding: 18px 0;
  margin-top: 30px;
  background: rgba(11,18,32,.45);
}
.footer-inner{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

code{ background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 8px; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}
.filelist{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fileitem{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.fileitem.dragover-item{
  border-color: rgba(79,140,255,.7);
  background: rgba(79,140,255,.08);
}

.draghandle{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  cursor: grab;
  user-select:none;
}

.filemeta{ flex:1; min-width:0; }
.filename{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.filesub{ display:flex; gap:10px; align-items:center; margin-top:4px; }

.pill{
  font-size:.75rem;
  padding:4px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.removebtn{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}

.emptyhint{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
}

.errorbox{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,120,120,.35);
  background: rgba(255,120,120,.08);
  color: var(--text);
}

